How to uninstall an android app from command line on the device

前端 未结 8 1717
死守一世寂寞
死守一世寂寞 2020-12-12 17:15

I can uninstall an app on the device from my computer using adb uninstall , but I\'d like to do the same with a script on the actual device.

8条回答
  •  臣服心动
    2020-12-12 17:59

    Some Apps can't be uninstalled,so below command gives the error:

    adb shell pm uninstall package_name
    Failure [DELETE_FAILED_INTERNAL_ERROR]  

    Try to run disable command instead,

    adb shell pm disable package_name
    Package package_name new state: disabled 

提交回复
热议问题