Skip to content

Instantly share code, notes, and snippets.

@Cynnexis
Created August 3, 2021 15:42
Show Gist options
  • Select an option

  • Save Cynnexis/9a408654baa95865aa779ae123ad7dd9 to your computer and use it in GitHub Desktop.

Select an option

Save Cynnexis/9a408654baa95865aa779ae123ad7dd9 to your computer and use it in GitHub Desktop.
Install APK on android with ADB

APK Installation with adb

Tutorial

Make sure that your phone has USB debugging enabled.

Connect your phone to your computer, and make sure that the OS identified the device with:

adb devices -l

Then, print your device architecture:

adb shell getprop ro.product.cpu.abi

Finally, install the corresponding APK with:

adb install app.apk

Your may need to authorize the installation on your phone via a popup.

Example

$ adb devices -l
List of devices attached
h610a3865d               device product:tucana_eea model:Mi_9 device:tucana transport_id:1

$ adb shell getprop ro.product.cpu.abi
arm64-v8a

$ adb install app-arm64-v8a-release.apk
Performing Streamed Install
Success

Sources

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment