2020-11-04 20:12:56 +00:00
|
|
|
# adb install
|
|
|
|
|
2021-08-02 09:41:09 +01:00
|
|
|
> 安卓调试桥 -Install: 将应用安装包推送到 Android 模拟器或已连接的安卓设备。
|
2021-08-31 08:13:49 +01:00
|
|
|
> 更多信息:<https://developer.android.com/studio/command-line/adb>.
|
2020-11-04 20:12:56 +00:00
|
|
|
|
2021-08-02 09:41:09 +01:00
|
|
|
- 向模拟器/设备推送安卓 app:
|
2020-11-04 20:12:56 +00:00
|
|
|
|
|
|
|
`adb install {{路径/到/应用.apk}}`
|
|
|
|
|
2021-08-02 09:41:09 +01:00
|
|
|
- 重装 app, 保持原有数据:
|
2020-11-04 20:12:56 +00:00
|
|
|
|
|
|
|
`adb install -r {{路径/到/应用.apk}}`
|
|
|
|
|
2021-08-02 09:41:09 +01:00
|
|
|
- 授予 app manifest 中列举的所有权限许可:
|
2020-11-04 20:12:56 +00:00
|
|
|
|
|
|
|
`adb install -g {{路径/到/应用.apk}}`
|
|
|
|
|
2021-08-02 09:41:09 +01:00
|
|
|
- 快速部署模式,仅更新 APK 更改过的部分:
|
2020-11-04 20:12:56 +00:00
|
|
|
|
|
|
|
`adb install --fastdeploy {{路径/到/应用.apk}}`
|