1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-08-26 10:43:53 +02:00
tldr/pages/common/adb-install.md
Vitor Henrique c8f956319f
pages*: simplify page description (#12149)
Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
2024-02-14 21:25:13 +01:00

894 B

adb install

Android Debug Bridge Install: push packages to an Android emulator instance or connected Android devices. More information: https://developer.android.com/studio/command-line/adb.

  • Push an Android application to an emulator/device:

adb install {{path/to/file.apk}}

  • Push an Android application to a specific emulator/device (overrides $ANDROID_SERIAL):

adb -s {{serial_number}} install {{path/to/file.apk}}

  • [r]einstall an existing app, keeping its data:

adb install -r {{path/to/file.apk}}

  • Push an Android application allowing version code [d]owngrade (debuggable packages only):

adb install -d {{path/to/file.apk}}

  • [g]rant all permissions listed in the app manifest:

adb install -g {{path/to/file.apk}}

  • Quickly update an installed package by only updating the parts of the APK that changed:

adb install --fastdeploy {{path/to/file.apk}}