tldr/pages.zh/common/adb-install.md

21 lines
552 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

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