Linux command
adb-install 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Install
adb install [app.apk]
Replace
adb install -r [app.apk]
Example
adb install -s [app.apk]
Example
adb install -d [app.apk]
Example
adb install -g [app.apk]
说明
adb install pushes an Android application package (APK) to a connected device and installs it. The APK is copied to the device's temporary storage, installed by the package manager, and then the temporary file is removed. The command provides various options to control installation behavior, including replacing existing apps, downgrading versions, and automatically granting runtime permissions.
参数
- -l
- Install with forward lock (deprecated)
- -r
- Replace existing application (keep data)
- -t
- Allow installation of test APKs
- -s
- Install on SD card instead of internal storage
- -d
- Allow version code downgrade (debuggable packages only)
- -g
- Grant all runtime permissions automatically
- --abi _abi_
- Override platform's default ABI
- -p
- Partial application install (install base splits)
- --instant
- Install as instant app
FAQ
What is the adb-install command used for?
adb install pushes an Android application package (APK) to a connected device and installs it. The APK is copied to the device's temporary storage, installed by the package manager, and then the temporary file is removed. The command provides various options to control installation behavior, including replacing existing apps, downgrading versions, and automatically granting runtime permissions.
How do I run a basic adb-install example?
Run `adb install [app.apk]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -l do in adb-install?
Install with forward lock (deprecated)