admin 管理员组

文章数量: 887019

华为手机,mate 7, mate 9, mate 10, mate 20, mate 20 pro 禁止 系统更新

作为一个华为粉,一直钟情于mate系列,当然我是隔代买的,毕竟不是土豪,目前7,9,20等都用了,20的人脸解锁的确很棒,但是华为手机的系统更新却不是很让人喜欢,毕竟手机频繁更新,使用者会很烦躁。所以购买手机后的第一件事,就是要禁用该功能,如何禁用,如下:

  • 前提:手机端 网络 启用 飞行模式,找到 系统更新 选项 清除存储数据
  • 其他手机: 仅第四步的驱动名称不同

操作

  • 1.下载ADB工具包 (建议使用下面链接下载,使用官方工具包)

    • windows: Download the ADB Windows zip from Google.
    • linux: Download the ADB Linux zip from Google.
    • macOS: Download the ADB macOS zip from Google.
    • 如果被墙,请在评论区留言. 稍后给出备用地址
  • 2.解压adb工具包并通过cmd进入解压目录,测试adb命令

C:\Users\Administrator\Desktop\platform-tools-latest-windows>cd platform-tools

C:\Users\Administrator\Desktop\platform-tools-latest-windows\platform-tools>adb
Android Debug Bridge version 1.0.40
Version 4986621
Installed as C:\Users\Administrator\Desktop\platform-tools-latest-windows\platform-tools\adb.exe

global options:
 -a         listen on all network interfaces, not just localhost
 -d         use USB device (error if multiple devices connected)
 -e         use TCP/IP device (error if multiple TCP/IP devices available)
 -s SERIAL  use device with given serial (overrides $ANDROID_SERIAL)
 -t ID      use device with given transport id
 -H         name of adb server host [default=localhost]
 -P         port of adb server [default=5037]
 -L SOCKET  listen on given socket for adb server [default=tcp:localhost:5037]

  • 3.打开手机开发者模式,允许USB调试,允许ADB调试. (第4步关闭过程中,同意ADB工具连接指纹)

  • 4.执行关闭系统更新命令:$ adb shell pm disable-user com.huawei.android.hwouc .(多执行几次该命令)

# 执行关闭命令
C:\Users\Administrator\Desktop\platform-tools-latest-windows\platform-tools>adb shell pm disable-user com.huawei.android.hwouc
error: no devices/emulators found

# 重新断开usb数据线,再次连接,如第3步,再次执行关闭命令
C:\Users\Administrator\Desktop\platform-tools-latest-windows\platform-tools>adb shell pm disable-user com.huawei.android.hwouc
adb server version (39) doesn't match this client (40); killing...
* daemon started successfully
error: device unauthorized.
This adb server's $ADB_VENDOR_KEYS is not set
Try 'adb kill-server' if that seems wrong.
Otherwise check for a confirmation dialog on your device.

# 手机上同意 ADB工具连接指纹
C:\Users\Administrator\Desktop\platform-tools-latest-windows\platform-tools>adb shell pm disable-user com.huawei.android.hwouc
error: device unauthorized.
This adb server's $ADB_VENDOR_KEYS is not set
Try 'adb kill-server' if that seems wrong.
Otherwise check for a confirmation dialog on your device.

# 指纹同意后,再次执行关闭命令,显示如下,即表示成功.
C:\Users\Administrator\Desktop\platform-tools-latest-windows\platform-tools>adb shell pm disable-user com.huawei.android.hwouc
Package com.huawei.android.hwouc new state: disabled-user

  • 5.成功后,手机的 系统更新功能已经禁用, 无法打开.
  • 6.开启系统更新:重复1-3步骤, 执行 $ adb shell pm enable com.huawei.android.hwouc 即可.

本文标签: 华为 系统 手机 mate Pro