snippetbashTip
adb install — Push packages to a connected Android device or emulator. More information: <https://developer.androi
Viewed 0 times
connectedcommandpushcliandroidadb installdevicepackages
Problem
How to use the
adb install command: Push packages to a connected Android device or emulator. More information: <https://developer.android.com/tools/adb>.Solution
adb install — Push packages to a connected Android device or emulator. More information: <https://developer.android.com/tools/adb>.Push an Android application to an emulator/device:
adb install {{path/to/file}}.apkPush 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}}.apkPush 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}}.apkQuickly update an installed package by only updating the parts of the APK that changed:
adb install --fastdeploy {{path/to/file}}.apkCode Snippets
Push an Android application to an emulator/device
adb install {{path/to/file}}.apkPush 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}}.apkPush 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}}.apkContext
tldr-pages: common/adb install
Revisions (0)
No revisions yet.