A python script for uninstalling the app in your Phone or Simulator automatically

README-English Here

About

Android developers, emulators or mobile phones often have a large number of debugging Demo, for the mobile phone is fine, but for the emulator, it may cause a decrease in debugging speed and startup speed. It is also troublesome to delete apps one by one in the simulator. With ADB commands, you can do a lot of things, including batch manipulating emulators or apps on your phone. Including deletion, of course.

Using Python scripts and ADB shell commands and the CMD window that comes with AS, we can condense all of this into a command line.

Effect

another Gif see Here

Usage

  • Make sure your AS can use ADB commands
  • Configuring the Python 2.7 environment (3+ should also be fine)
  • Find the current script path in CMD provided by AS and enter: python unistall.py
  • Follow the command prompt and enter the core keyword of the package you want to remove from your App, such AS com.example.RxCacheDemo.
  • After the preceding steps are complete, a message will be displayed indicating whether the deletion is successful.

Of course, the script can also specify the application for deletion; you just need to remove the comment and the code that calls the existing function.

Reference

  • The ADB shell command
  • ADB common commands
  • Python Executes the system command os.popen

Help

The following is the core code of the program, providing a variety of options

License

The MIT License (MIT)