1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages/common/adb-install.md

29 lines
831 B
Markdown
Raw Normal View History

2020-09-14 08:58:51 -03:00
# adb install
2020-08-28 10:18:03 -03:00
> Push packages to a connected Android device or emulator.
> More information: <https://developer.android.com/tools/adb>.
2020-08-28 10:18:03 -03:00
- Push an Android application to an emulator/device:
`adb install {{path/to/file.apk}}`
2022-06-27 23:26:43 -03:00
- 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:
2020-08-28 10:18:03 -03:00
`adb install -r {{path/to/file.apk}}`
- Push an Android application allowing version code [d]owngrade (debuggable packages only):
2022-09-05 02:38:33 +08:00
`adb install -d {{path/to/file.apk}}`
- [g]rant all permissions listed in the app manifest:
2020-08-28 10:18:03 -03: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}}`