pure-python-adb
pure-python-adb copied to clipboard
call disable-user if app is device-admin
Since lots of malware gets DEVICE_ADMIN permission adb uninstall command fails with DELETE_FAILED_DEVICE_POLICY_MANAGER error . Therefore if app is device-admin, call disable-user if uninstall fails.
I've adopted this change in https://github.com/CloCkWeRX/pure-python-adb/