張濟川

adb命令 停用google服务

2020-02-24 · 2 min read

下载adb程序platform-tools_r28.0.3-windows.zip
cd c:adb
手机开发人员选项开启usb调试模式,连接电脑。

01.输入adb devices
返回以下内容为连接成功:
List of devices attached
XXXXXXXXXXXXXXX device
02.如果想要禁用
adb shell pm disable-user com.google.android.syncadapters.calendar
adb shell pm disable-user com.google.android.syncadapters.contacts
adb shell pm disable-user com.android.vending
adb shell pm disable-user com.google.android.gsf
adb shell pm disable-user com.google.android.gms
adb shell pm disable-user com.google.android.feedback
adb shell pm disable-user com.google.android.backuptransport
adb shell pm disable-user com.google.android.ext.services
adb shell pm disable-user com.google.android.onetimeinitializer
adb shell pm disable-user com.google.android.configupdater
adb shell pm disable-user com.google.android.partnersetup
adb shell pm disable-user com.google.android.printservice.recommendation
adb shell pm disable-user com.google.android.gms.policy_sidecar_aps

03.如果想要启用
adb shell pm enable

可以用adb shell pm disable-user
命令停用任何app