How to quickly uninstall APK in Android

Source: Internet
Author: User

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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.