Tuesday, June 18, 2019

installing app without copying apk file


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:




  1. Install Android SDK tools from this page (Download for other platforms → SDK Tools Only.)

  2. Install USB drivers for the phone (usually from manufacturer's site.)

  3. Turn on USB debugging on the phone (in SettingsDeveloper options)

  4. Connect the phone via USB (you can also do this over Wi-Fi with a number of apps if the phone is rooted.)

  5. Open Command Prompt or Terminal and navigate to the "platform-tools" sub-directory of where you installed the SDK tools.

  6. 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

samsung galaxy s 2 - Cannot restore Kies backup after firmware upgrade

I backed up my Samsung Galaxy S2 on Kies before updating to Ice Cream Sandwich. After the upgrade I tried to restore, but the restore fails ...