How can I install some apps to android without copying the .apk
file? I can do the same in iOS. that must be a possible thing, but I couldnt find it neither here nor Google.
EDIT:
Imagine you want to install your own app to someone's device without letting them have the apk file.
Answer
Provided you have physical access to the device, you can manually install your app by doing the following:
- Install Android SDK tools from this page (Download for other platforms → SDK Tools Only.)
- Install USB drivers for the phone (usually from manufacturer's site.)
- Turn on USB debugging on the phone (in Settings → Developer options)
- Connect the phone via USB (you can also do this over Wi-Fi with a number of apps if the phone is rooted.)
- Open Command Prompt or Terminal and navigate to the "platform-tools" sub-directory of where you installed the SDK tools.
- Issue the following command:
adb install path_to_apk\your_app.apk
Keep in mind though that you are still essentially "letting them have" the apk, since the installation simply copies the APK file to the appropriate directory on the phone (usually /data/app
or /data/app-private
) and registers it with Android's Package Manager. A knowledgeable enough user can still retrieve the APK.
No comments:
Post a Comment