Skip to content

华为手机优化

批量禁用华为应用

适用性

下文的卸载或禁用应用的方式也适用于鸿蒙系统。

左下角和右下角滑动出现 服务中心,桌面快速下滑会出现 智慧搜索,无法在设置中禁用。

禁用 com.huawei.ohos.famanager 服务中心:

bash
adb shell pm disable-user com.huawei.ohos.famanager

卸载 com.huawei.search 智慧搜索:

bash
adb shell pm uninstall --user 0 com.huawei.search

下面是批量禁用脚本。

使用后要重启手机,sleep 必须要保留,adb 命令并发无效。

py
import os
import time

CMD = 'adb shell pm disable-user {}'

packages = [
    'com.huawei.intelligent',
    'com.huawei.search',
    'com.huawei.fastapp',
    'com.huawei.smarthome',
    'com.huawei.pengine',
    'com.huawei.hiai',
    'com.huawei.tips',
    'com.huawei.browser',
    'com.huawei.vassistant',
    'com.huawei.scanner',
    'com.huawei.hwsearch'
]

for package in packages:
    os.system(CMD.format(package))
    time.sleep(2)

获取应用列表

可参考 常见华为应用包名

sh
adb shell pm list packages
包名应用
com.huawei.intelligent华为智慧助手
com.huawei.fastapp快应用
com.huawei.smarthome智慧生活
com.huawei.pengine华为智能建议
com.huawei.hiai华为智慧引擎
com.huawei.tips智能提醒
com.huawei.browser浏览器
com.huawei.vassistant智慧语音
com.huawei.scanner智慧视觉
com.huawei.hwsearch华为搜索
com.huawei.search智慧搜索
com.huawei.ohos.famanager服务中心