Thanks to visit codestin.com
Credit goes to Github.com

Skip to content

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

License

Notifications You must be signed in to change notification settings

lugandong/Automatic-unistall-App

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Automatic-uninstall-App

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

README-English Here

About

开发 Android 的朋友,模拟器或者手机里面常常有大量调试的 Demo,对于手机来说还好,可是对于模拟器,有可能就会造成调试速度以及启动速度的下降。 而且模拟器中 App 一个一个删除也是很麻烦。 利用 ADB 命令,我们可以做很多事,其中就包括批量操作模拟器或者手机上的 App。当然包括删除操作啦。

利用 Python 脚本和 ADB shell 命令以及 AS 自带的 CMD 窗口,我们就可以将这一切浓缩成一个命令行啦。

Update

代码中我留了一个彩蛋,如果你想选择指定的应用删除,去掉下图中红色方框即可,同时注释掉 delAllApp() 这个函数即可。

uninstall-help.png

Effect

another Gif see Here

Usage

  • 确保你的 AS 能够使用 ADB 命令
  • 配置 Python 2.7 环境(3+ 应该也没有问题)
  • 在 AS 提供的 CMD 中找到当前脚本路径 输入: python unistall.py
  • 根据命令提示输入你想要删除 App 的包的核心关键字,如:com.example.RxCacheDemo ,输入 example 即可(每个人 AS 的这个配置应该都是一样的)
  • 以上步骤完成之后会有提示 删除成功与否。

当然,脚本还可以指定具体应用进行删除,你只需要去掉注释以及注释调用现有函数的代码即可。

Reference

Help

以下为程序的核心代码,提供多种选择

License

The MIT License (MIT)

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages

  • Python 100.0%