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

前端 未结 8 1708
死守一世寂寞
死守一世寂寞 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 18:10

    Trying using the pm command:

    pm uninstall 
    

    or

    pm uninstall -k 
    

    The -k flag keeps the data and cache directories after the package is removed.

    I haven't tested this myself, but I don't think this should show a warning message.

提交回复
热议问题