赞
踩
感谢大佬指路,终于把坑填了,该死的OPPO手机
报错:
An unknown server-side error occurred while processing the command. Original error: Error executing adbExec. Original error: ‘Command ‘E:\tools\android-sdk-windows\platform-tools\adb.exe -P 5037 -s 1aa3a2ca shell settings delete global hidden_api_policy_pre_p_apps’ exited with code 255’; Stderr: ‘Exception occurred while executing ‘delete’: java.lang.SecurityException: Permission denial: writing to settings requires:android.permission.WRITE_SECURE_SETTINGS at com.android.providers.settings.SettingsProvider.enforceWritePermission(SettingsProvider.java:2641) at com.android.providers.settings.SettingsProvider.mutateGlobalSetting(SettingsProvider.java:1633) at com.android.providers.settings.SettingsProvider.mutateGlobalSetting(SettingsProvider.java:1625) at com.android.providers.settings.SettingsProvider.deleteGlobalSetting(SettingsProvider.java:1596) at com.android.providers.settings.SettingsProvider.call(SettingsProvider.java:662) at android.content.ContentProvider.call(ContentProvider.java:2473) at android.content.ContentProvider
T
r
a
n
s
p
o
r
t
.
c
a
l
l
(
C
o
n
t
e
n
t
P
r
o
v
i
d
e
r
.
j
a
v
a
:
521
)
a
t
c
o
m
.
a
n
d
r
o
i
d
.
p
r
o
v
i
d
e
r
s
.
s
e
t
t
i
n
g
s
.
S
e
t
t
i
n
g
s
S
e
r
v
i
c
e
Transport.call(ContentProvider.java:521) at com.android.providers.settings.SettingsService
Transport.call(ContentProvider.java:521)atcom.android.providers.settings.SettingsServiceMyShellCommand.deleteForUser(SettingsService.java:408) at com.android.providers.settings.SettingsService$MyShellCommand.onCommand(SettingsService.java:282) at com.android.modules.utils.BasicShellCommandHandler.exec(BasicShellCommandHandler.java:97) at android.os.ShellCommand.exec(ShellCommand.java:38) at com.android.providers.settings.SettingsService.onShellCommand(SettingsService.java:50) at android.os.Binder.shellCommand(Binder.java:970) at android.os.Binder.onTransact(Binder.java:854) at android.os.Binder.execTransactInternal(Binder.java:1226) at android.os.Binder.execTransact(Binder.java:1163)’; Code: ‘255’
解决方法:
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。