Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android 手机如何停用系统应用 #21

Open
CyanSalt opened this issue Mar 12, 2019 · 0 comments
Open

Android 手机如何停用系统应用 #21

CyanSalt opened this issue Mar 12, 2019 · 0 comments

Comments

@CyanSalt
Copy link
Owner

CyanSalt commented Mar 12, 2019


path: disable-android-system-app


某些手机具有内置的停用应用功能,例如 MIUI,但某些情况下并不能停用。例如,MIUI 默认停用了 com.android.documentsui(一般“文档”或“文件”),但同时部分系统入口依赖此功能,例如证书导入;在设置中 MIUI 支持手动启用“文件”,但启用后便不能关闭。

如果手机支持 USB 调试模式(一般需要开启开发者选项,MIUI 需要在关于本机中点击6次版本号以开启,即可在其他设置选择开启开发者选项和 USB 调试模式),可以通过 ADB 完成操作。

ADB 安装参见 https://stackoverflow.com/questions/31374085/installing-adb-on-macos 。安装完成后连接手机,在命令行执行

adb shell pm list packages

查看所有可调试的包,确认无误后,执行

adb shell pm disable-user <package>

即可禁用应用。

如果发现误操作,执行

adb shell pm enable <package>

即可重新启用应用。

@CyanSalt CyanSalt transferred this issue from another repository Feb 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant