System Grab Bag

View all TLDR pages from common (or from all pages)

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}}
  • Reinstall an existing app, keeping its data:
    adb install -r {{path/to/file.apk}}
  • Push an Android application allowing version code downgrade (debuggable packages only):
    adb install -d {{path/to/file.apk}}
  • Grant 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}}

License and Disclaimer

The content on this page is copyright © 2014—present the tldr-pages team and contributors.
This page is used with permission under Creative Commons Attribution 4.0 International License.

While we do attempt to make sure content is accurate, there isn't a warranty of any kind.