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.
adb uninstall
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.
-k
I haven't tested this myself, but I don't think this should show a warning message.