Files
tldr/pages.zh/common/adb-install.md
Vitor Henrique 006abfda34 pages*: sync https://developer.android.com more info links (#12288)
* pages*: sync https://developer.android.com more info links

* dalvikvm: fix wrong link
2024-02-22 17:53:50 +05:30

29 lines
836 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# adb install
> 安卓调试桥 -Install: 将应用安装包推送到 Android 模拟器或已连接的安卓设备。
> 更多信息:<https://developer.android.com/tools/adb>.
- 向模拟器/设备推送安卓 app
`adb install {{路径/到/应用.apk}}`
- 向特定的模拟器/设备推送安卓 app覆盖 `$ANDROID_SERIAL`
`adb -s {{序列号}} install {{路径/到/应用.apk}}`
- 重装 app, 保持原有数据:
`adb install -r {{路径/到/应用.apk}}`
- 推送一个允许版本代码降级的安卓 app仅适用于可调试的软件包
`adb install -d {{路径/到/应用.apk}}`
- 授予 app manifest 中列举的所有权限许可:
`adb install -g {{路径/到/应用.apk}}`
- 快速部署模式,仅更新 APK 更改过的部分:
`adb install --fastdeploy {{路径/到/应用.apk}}`