Does anyone know how to fix adb permission denial?


Spookie

Members
14 Dec 2021
392
67
I wanted to disable the rotate button but I stumbled across this error. Any idea on how to fix it?
Code:
Exception occurred while executing 'put':
java.lang.SecurityException: Permission denial: writing to settings requires:android.permission.WRITE_SECURE_SETTINGS
        at com.android.providers.settings.SettingsProvider.enforceWritePermission(Unknown Source:30)
        at com.android.providers.settings.SettingsProvider.mutateSecureSetting(Unknown Source:6)
        at com.android.providers.settings.SettingsProvider.insertSecureSetting(Unknown Source:12)
        at com.android.providers.settings.SettingsProvider.call(Unknown Source:613)
        at android.content.ContentProvider.call(Unknown Source:0)
        at android.content.ContentProvider$Transport.call(Unknown Source:25)
        at com.android.providers.settings.SettingsService$MyShellCommand.putForUser(Unknown Source:94)
        at com.android.providers.settings.SettingsService$MyShellCommand.onCommand(Unknown Source:619)
        at com.android.modules.utils.BasicShellCommandHandler.exec(Unknown Source:27)
        at android.os.ShellCommand.exec(Unknown Source:4)
        at com.android.providers.settings.SettingsService.onShellCommand(Unknown Source:15)
        at android.os.Binder.shellCommand(Unknown Source:0)
        at android.os.Binder.onTransact(Unknown Source:148)
        at android.os.Binder.execTransactInternal(Unknown Source:118)
        at android.os.Binder.execTransact(Unknown Source:16)
 

Attachments

  • Screenshot_20230107_034850.png
    Screenshot_20230107_034850.png
    64.9 KB · Views: 568
Last edited by a moderator:
there not care,,, my camera on x12tpro not working, I buy fist xiaomi 12t pro 200 mpx camera now not working half of it... waiting to global update,,this is a joke
 
I wanted to disable the rotate button but I stumbled across this error. Any idea on how to fix it?
Code:
Exception occurred while executing 'put':
java.lang.SecurityException: Permission denial: writing to settings requires:android.permission.WRITE_SECURE_SETTINGS
        at com.android.providers.settings.SettingsProvider.enforceWritePermission(Unknown Source:30)
        at com.android.providers.settings.SettingsProvider.mutateSecureSetting(Unknown Source:6)
        at com.android.providers.settings.SettingsProvider.insertSecureSetting(Unknown Source:12)
        at com.android.providers.settings.SettingsProvider.call(Unknown Source:613)
        at android.content.ContentProvider.call(Unknown Source:0)
        at android.content.ContentProvider$Transport.call(Unknown Source:25)
        at com.android.providers.settings.SettingsService$MyShellCommand.putForUser(Unknown Source:94)
        at com.android.providers.settings.SettingsService$MyShellCommand.onCommand(Unknown Source:619)
        at com.android.modules.utils.BasicShellCommandHandler.exec(Unknown Source:27)
        at android.os.ShellCommand.exec(Unknown Source:4)
        at com.android.providers.settings.SettingsService.onShellCommand(Unknown Source:15)
        at android.os.Binder.shellCommand(Unknown Source:0)
        at android.os.Binder.onTransact(Unknown Source:148)
        at android.os.Binder.execTransactInternal(Unknown Source:118)
        at android.os.Binder.execTransact(Unknown Source:16)
adb shell first
then the thing you want to do
 
  • Like
Reactions: Spookie