手机 启用黑暗模式,关闭用户体验 ,卸载很多应用,手机感觉还是占用内存高,上华为论坛学习了一下,得到华为安卓手机的精简方法,当然其他安卓手机也是可以用的
下面开始adb大法卸载停用更多用不到的系统应用
注意:运用adb命令,需要你的手机打开开发者服务,打开设置--系统--关于手机--点击版本号5-6下,手机这时候会提示你已经打开开发者服务。
设置 -》系统和更新-》开发人员选项
打开开发人员选项找到usb调试,打开它。然后打开“仅充电模式下允许adb调试”。把手机接入电脑,待电脑装好驱动后(只要手机通过手机助手能连接电脑就说明驱动已安装好了),就可以开始adb之旅了
Android Debug Bridge,简称为adb,它是一个非常强大的命令行工具,通过这个工具你能够与你的安卓设备进行交互
连上电脑手机没反应,后来知道是线有问题,是充电线不是数据线
再次整个数据线链接,电脑上华为手机助手链接后手机也要安装华为手机助手,手机上如果没有会自动提示安装
再链接,开发者模式里开启usb相关选项,手机上助手会弹出密码,电脑上输入密码才能继续使用
然后用脚本链接,测试连接状态,能打印序列号不是未授权就说明可用了,未授权是手机上要点击允许
首先用别人脚本卸载应用
输入85 就是命令 adb shell dumpsys battery 查看电量
Current Battery Service state:
AC powered: false #AC电源,false未使用
USB powered: true #UsB电源,true使用
Wireless powered: false #无线电源,false未使用
Max charging current: 500000 #最大充电电流
Max charging voltage: 4867000 #最大充电电压
Charge counter: 453000 #电荷计数?
status: 2 #电池状态,1没充电,2在充电
health: 2 #电池健康状态,1不健康,2健康
present: true #有无安装电池,true安装
level: 80 #当前电量
scale: 100 #总电量
voltage: 4165 #电池电压(mv)
temperature: 270 #电池温度(x0.1摄氏度)
technology: Li-poly #电池类型,Li-ion锂电池
下面是得到当前电量等级
adb shell dumpsys battery | findstr level
手机刚到手,先不大改,先卸载google全家桶吧
下面是列出设备号
adb devices
下面是禁用一个个应用
adb shell pm disable-user com.huawei.hwstartupguide
adb shell pm disable-user com.huawei.hiview
adb shell pm disable-user com.huawei.hiviewtunnel
adb shell pm disable-user com.huawei.android.pushagent
adb shell pm disable-user com.huawei.watch.sync
adb shell pm disable-user com.huawei.iconnect
adb shell pm disable-user com.huawei.synergy
adb shell pm disable-user com.huawei.suggestion
adb shell pm disable-user com.huawei.intelligent
这2个智慧助手,不用了的话也可卸载试试
adb shell pm uninstall --user 0 com.huawei.suggestion
adb shell pm uninstall --user 0 com.huawei.intelligent
下面是列出包名
adb shell pm list libraries
断开手机看了下,已经内存占用降到50%,比原先61%好多了,那就先这样用用吧
---------------------------
根据别人提供的系统app宝名,一不小心精简过头,手机重启不正常了,然后恢复出厂设置了,,然后根据上面步骤再来,这次小心一点,只精简了
google全家桶吧
adb shell pm uninstall --user 0 com.google.android.gms
adb shell pm uninstall --user 0 com.google.android.gsf
adb shell pm uninstall --user 0 com.android.vending
adb shell pm uninstall --user 0 com.google.android.onetimeinitializer
adb shell pm uninstall --user 0 com.google.android.partnersetup
adb shell pm uninstall --user 0 com.google.android.marvin.talkback
adb shell pm uninstall --user 0 com.google.android.printservice.recommendation
adb shell pm uninstall --user 0 com.google.android.syncadapters.contacts
adb shell pm disable-user com.huawei.hwstartupguide
adb shell pm disable-user com.huawei.iconnect
adb shell pm disable-user com.huawei.synergy
然后手机设置开发者模式关闭动画 后台运行允许3个进程,马马虎虎内存55%波动,不敢再多删了
另一台手机荣耀6x,只是删了com.google.android.gms ,和 iconnect ,感觉一下子降了好多