[时间:2016-08] [状态:Open]
[关键词:android, apk,adb install]
将apk安装到模拟器或者手机上。
Pushes an Android application (specified as a full path to an .apk file) to an emulator/device.
adb install [option]
普通安装
adb install test.apk
带有命令行的安装,-l
(关于forward lock)
adb install -l test.apk #forward lock application
-r
替换已存在应用
adb install -r test.apk #replace existing application
-t
测试package标志
adb install -t test.apk #allow test packages
-s
将应用安装到sdcard
adb install -s test.apk #install application on sdcard
-d
忽略版本号安装apk
adb install -d test.apk #allow version code downgrade
-p
部分安装apk标志
adb install -p test.apk #partial application install
reference http://adbshell.com/commands/adb-install