Android 批量卸载手机上的apk


Step1:把要卸载的APK包名保存到一个文件中,本文称之为file,保存格式如下


ubei.tingshu cn.amazon.mShop.android cn.wps.moffice_eng com.adobe.reader com.android.chrome com.android.packagename com.blossomapps.thelion com.blovestorm com.clov4r.android.nil com.devuni.flashlight com.dolphin.smartspeaker com.dropbox.android com.dsi.ant.service.socket com.estrongs.android.pop com.evernote.widget com.example.android.apis com.forthblue.pool com.gamestar.pianocnperfect com.google.android.apps.currents com.google.android.apps.docs


Step2. 编写shell 脚本,批量卸载,文件名为uninstall

#!/bin/sh echo "begin to uninstall ....."; cat $1 | while read line; do if [ -z $line ]; then continue else echo "$line"; adb uninstall $line -l fi done echo "uninstall over............."; ~


Step3. 赋予可执行权限

sudo chmodd a+x uninstall
Step4: 运行卸载程序

./uninstall file
检查下有没有卸载干净。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值