In adnroid, running ADB uninstall directly Cannot uninstall the APK. Attackers can manually uninstall each time they enter settings.
Today, my brother finally couldn't stand it. he deleted the APK directly in ddms. Then run ADB Uninstall!
So brother immediately wrote three scripts: one is to delete the APK, including SQLite and share Pref under it, and the other is to uninstall the APK. The last step is to reinstall it.
Brother writes a jar package for operating the ADB shell, so you can run the command by configuring it.
Adbrun.txt
CD/data/APP
RM *. * // Delete All APK
CD Data/data/COM. Android. providers. Contacts/databases
RM *. * // Delete the database
CD/data/COM. Android. Photo/shared_prefs
RM *. * // Delete XML
Exit
Uninstall. BAT:
Java-jar adbrun. Jar adbrun.txt // delete data and APK
ADB uninstall com. Android. Center // uninstall APK
Install. BAT:
ADB install APK/center.apk // install APK
With this, my brother is no longer suffering, and the testing speed is greatly improved.