2020-09-14 12:58:51 +01:00
|
|
|
# adb install
|
2020-08-28 14:18:03 +01:00
|
|
|
|
2024-02-14 20:25:13 +00:00
|
|
|
> Android Debug Bridge Install: push packages to an Android emulator instance or connected Android devices.
|
2024-02-16 15:37:37 +00:00
|
|
|
> More information: <https://developer.android.com/tools/adb>.
|
2020-08-28 14:18:03 +01:00
|
|
|
|
|
|
|
- Push an Android application to an emulator/device:
|
|
|
|
|
|
|
|
`adb install {{path/to/file.apk}}`
|
|
|
|
|
2022-06-28 03:26:43 +01:00
|
|
|
- Push an Android application to a specific emulator/device (overrides `$ANDROID_SERIAL`):
|
|
|
|
|
|
|
|
`adb -s {{serial_number}} install {{path/to/file.apk}}`
|
|
|
|
|
2024-02-09 14:34:08 +00:00
|
|
|
- [r]einstall an existing app, keeping its data:
|
2020-08-28 14:18:03 +01:00
|
|
|
|
|
|
|
`adb install -r {{path/to/file.apk}}`
|
|
|
|
|
2024-02-09 14:34:08 +00:00
|
|
|
- Push an Android application allowing version code [d]owngrade (debuggable packages only):
|
2022-09-04 19:38:33 +01:00
|
|
|
|
|
|
|
`adb install -d {{path/to/file.apk}}`
|
|
|
|
|
2024-02-09 14:34:08 +00:00
|
|
|
- [g]rant all permissions listed in the app manifest:
|
2020-08-28 14:18:03 +01:00
|
|
|
|
|
|
|
`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}}`
|