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
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