How to install . apk apps via adb?

Asked

Viewed 19,780 times

4

I need help, I would like to understand how to use CMD for this and why they say it is more effective than downloading a file scanning software and installing directly on the device. I basically want to access my phone that is on my Wifi and intalar . apks on it. Thank you.

1 answer

7


Connect your device to your computer (with debugging]a). Download and install the Android SDK on your computer.

Once the SDK is installed, launch the Android SDK Manager (located in the program-files/android-sdks folder.) Select 'Android SDK Tools Platform' and click "Install".

Once the installation is complete, locate the program adb.exe (within program-files/android-sdks/Platform-tools) and right-click on it, keeping the "Shift" key. Select "command prompt opened here" and adb will open a new window. This is where you will enter all your commands.

Start by typing 'adb Devices' and press 'Enter'. If you have connected the device successfully, it will be listed in the adb window. If it is not in the list, try to connect the device to a different port and check if the correct drivers installed.

Once adb recognizes the device, type 'adb install' followed by the apk location, including the file name and its extension . apk and Press 'Enter'.

When the process is completed, the app will appear in your list of apps and be ready to use.

ps: If you want to make the connection via wi-fi it can be done as follows:

./adb.exe connect 192.168.2.143
connected to 192.168.2.143:5555

./adb.exe install -r xyz.apk
 pkg: /data/local/tmp/xyz.apk
  • Dante, your solution requires the device to be connected to the computer. I believe it does not meet the need of OP, who specified the installation of Apks via wireless network.

  • huuuuuum, but then just try to do the process only that with the mobile connected via wi-fi in the notebook...the essential is the software installed

  • Maybe you can elaborate a little then on how to 'connect the phone via wi-fi in the notebook'. I confess that I did not understand.

  • Thus connecting, for example: . /adb.exe connect 192.168.2.143 Connected to 192.168.2.143:5555 . /adb.exe install -r Xyz.apk pkg: /data/local/tmp/Xyz.apk

  • Perfect, that would work. It may be interesting to insert these 2 lines in your reply, to facilitate understanding by both the OP and future visitors.

  • 1

    very good, gave the :D wanted to vote in favor but I need 15 points for this :c, I managed to install a fake_malware.apk here, now just go straight to my application and re-test. Thank you!

  • @If you get the points then come over and vote for it.

  • 1

    @Onosendai I will add to my reply this too, gets more complete! Thank you

  • @Dante, you can be sure I’m going back to vote for. ^^

  • 1

    @Dante as promised, as soon as I got my points, I vote for ^^

  • Opa @paccamicio, thanks man! Success in its development!

Show 6 more comments

Browser other questions tagged

You are not signed in. Login or sign up in order to post.