gpt4 book ai didi

Android 设备没有 : Android (Security Settings) Model : One plus 9 pro 的选项

转载 作者:行者123 更新时间:2023-12-05 05:41:53 24 4
gpt4 key购买 nike

我不能给android应用程序权限,在开发者选项菜单中,只有USB调试选项可用。

这是命令行输出,

  $ pm grant com.draco.resolutionchanger android.permission.WRITE_SECURE_SETTINGS

Exception occurred while executing 'grant':
java.lang.SecurityException: grantRuntimePermission: Neither user 2000 nor current process has android.permission.GRANT_RUNTIME_PERMISSIONS.
at android.app.ContextImpl.enforce(ContextImpl.java:2186)
at android.app.ContextImpl.enforceCallingOrSelfPermission(ContextImpl.java:2214)
at com.android.server.pm.permission.PermissionManagerService.grantRuntimePermissionInternal(PermissionManagerService.java:1470)
at com.android.server.pm.permission.PermissionManagerService.grantRuntimePermission(PermissionManagerService.java:1452)
at android.permission.PermissionManager.grantRuntimePermission(PermissionManager.java:378)
at com.android.server.pm.PackageManagerShellCommand.runGrantRevokePermission(PackageManagerShellCommand.java:2419)
at com.android.server.pm.PackageManagerShellCommand.onCommand(PackageManagerShellCommand.java:260)
at com.android.modules.utils.BasicShellCommandHandler.exec(BasicShellCommandHandler.java:97)
at android.os.ShellCommand.exec(ShellCommand.java:38)
at com.android.server.pm.PackageManagerService.onShellCommand(PackageManagerService.java:25770)
at android.os.Binder.shellCommand(Binder.java:970)
at android.os.Binder.onTransact(Binder.java:854)
at android.content.pm.IPackageManager$Stub.onTransact(IPackageManager.java:4818)
at com.android.server.pm.PackageManagerService.onTransact(PackageManagerService.java:8872)
at android.os.Binder.execTransactInternal(Binder.java:1226)
at android.os.Binder.execTransact(Binder.java:1163)

最佳答案

在 android 的开发者设置中启用“禁用权限监控”,然后关闭“USB 调试”并重新打开。重置手机后,它应该可以正常工作。

来自 https://forum.xda-developers.com/t/unable-to-grant-permissions-using-adb.3812658/page-2

(它在一加 9 和相同的命令上为我做了)

关于Android 设备没有 : Android (Security Settings) Model : One plus 9 pro 的选项,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/72207959/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com