'-l' means forward-lock the app
'-r' means reinstall the app, keeping its data
例如:adb install F:GphoneMyCodeHelloAndroidinHelloAndroid.apk
查看安装位置
adb shell
#cd data
#cd app
#ls
(本文来源于图老师网站,更多请访问http://m.tulaoshi.com/bianchengyuyan/)显示已经安装的 APK 包
com.android.hello.apk
(本文来源于图老师网站,更多请访问http://m.tulaoshi.com/bianchengyuyan/)卸载 APK 包
adb shell
#cd data
#cd app
#ls
(本文来源于图老师网站,更多请访问http://m.tulaoshi.com/bianchengyuyan/)# rm com.android.hello.apk