第一步:网上下载adb文件夹(Android Development Bridge), 把文件夹设置为环境变量, 如果不会设置可以直接把文件复制到系统文件夹C:\Windows\System32里面去 。
第二步: 打开一个命令窗口, 输入adb devices回车。 如果连接成功了, 就会显示如下的提示, 如果list of devices attached下面是空的, 说明USB没有连接上, 看看是否要安装什么驱动。
List of devices attached
1576768334561VW device
常用adb命令:
adb shell pm list packages 展示所有程序
adb shell pm uninstall --user 0 <app包名> 卸载程序
adb shell wm size 1136x2480 修改为指定分辨率
adb shell wm size reset 恢复为默认分辨率
adb shell wm density 480 修改像素密度到480
adb shell wm density 查看像素密度
第三步:逐一删除app, 如
adb shell pm uninstall --user 0 com.youku.phone 删除优酷
但是这样太慢了, 可以用Python从文件中批量读取包名批量删除 以下是可以可以删除的应用列表。
com.vivo.share
com.yozo.vivo.office
com.vivo.wallet
com.vivo.space
com.vivo.agent
com.vivo.assistant
com.android.bbkmusic
com.android.VideoPlayer
com.iqoo.secure
com.vivo.doubletimezoneclock
com.vivo.car.networking
com.bbk.facewake
com.vivo.hiboard
com.vivo.abe
com.vivo.vtouch
com.vivo.smartLife
com.vivo.compass
com.vivo.health
com.vivo.magazine
com.vivo.musicwidgetmix
com.vivo.voicewakeup
com.vivo.game
com.vivo.gamecube
com.bbk.iqoo.logsystem
com.bbk.iqoo.feedback
com.vivo.vivokaraoke
com.vivo.floatingball
com.vivo.livewallpaper.behavior
com.vivo.minscreen
com.vivo.desktopstickers
com.vivo.widgetweather
com.vivo.weather.provider
com.vivo.dream.weather
com.vivo.weather
com.vivo.puresearch
com.vivo.favorite
com.vivo.videoeditor
com.vivo.Tips
com.vivo.dream.clock
com.vivo.scanner
com.vivo.globalsearch
com.vivo.widget.cleanspeed
com.vivo.contentcatcher
com.vivo.globalanimation
com.vivo.livewallpaper.behavioriqoo
com.vivo.browser
com.vivo.vivoconsole
com.vivo.upslide
com.vivo.carlauncher
com.vivo.familycare.local
com.vivo.easyshare
com.vivo.appfilter
com.qualcomm.qti.poweroffalarm
com.vivo.childrenmode
com.android.BBKCrontab
com.vivo.email
com.vivo.smartanswer
com.vivo.safecenter
com.vivo.deformer
com.android.browser
com.google.android.marvin.talkbackcom.android.providers.userdictionary
com.android.theme.icon.vessel
com.android.theme.icon.teardrop
com.android.theme.icon.taperedrect
com.android.theme.color.space
com.android.theme.icon.roundedrect
com.android.theme.icon_pack.rounded.settings
com.android.theme.icon_pack.rounded.android
com.android.theme.color.purple
com.vlife.vivo.wallpaper
com.android.theme.icon.pebble
com.android.theme.color.green
com.android.internal.display.cutout.emulation.double
com.android.internal.display.cutout.emulation.waterfall
com.vivo.third.numbermark
com.chaozh.iReader
com.vivo.numbermark
com.android.internal.display.cutout.emulation.corner
com.baidu.input_vivo
com.vivo.quickpay
com.vivo.hybrid
com.google.android.marvin.talkback
在桌面新建一个文档 apps.txt , 把上面的内容复制进去, 然后运行以下Python代码。 以下是Python代码
import os
txt = open('C:\\Users\\Administrator\\Desktop\\app\\apps.txt', 'r')
apps = txt.readlines()
num = 0
for app in apps:
os.system('adb shell pm uninstall --user 0 '+app)
print(app+'卸载成功!')
num += 1
print('一共成功卸载', num, '个应用')
如果失败无法开机, 可以长按音量上下加电源键强制进入恢复模式,删除数据重启。
|