1. 普通卸載
- 獲取應(yīng)用包名列表
adb shell pm list packages
找到你要卸載應(yīng)用的,例如com.test.demo
- 卸載應(yīng)用
adb shell uninstall com.test.demo
如果成功,到此處就結(jié)束了崖叫,若出現(xiàn)[DELETE_FAILED_DEVICE_POLICY_MANAGER]
接著向下看
3雁芙、找到要卸載應(yīng)用的安裝路徑
adb shell pm path com.test.demo
package:/data/app/com.test.demo/demo.apk
4肥照、掛載系統(tǒng)讀寫(xiě)權(quán)限
adb remount
出現(xiàn)remount succeeded
表示成功了鸠信,跳過(guò)下述,直接開(kāi)始第5步
如果出現(xiàn)
Not running as root. Try "adb root" first. remount failed
獲取系統(tǒng)root 權(quán)限
adb root
restarting adbd as root
成功之后再
adb remount
5攒岛、刪除apk
adb shell rm /data/app/com.test.demo/demo.apk
6赖临、重啟設(shè)備
adb reboot