Exception occurred while executing 'set': java.lang.SecurityException: uid 2000 does not have android.permission.MANAGE_APP_OPS_MODES. at android.app.ContextImpl.enforce(ContextImpl.java:2189) at android.app.ContextImpl.enforcePermission(ContextImpl.java:2198) at com.android.server.appop.AppOpsService.enforceManageAppOpsModes(AppOpsService.java:2575) at com.android.server.appop.AppOpsService.setMode(AppOpsService.java:2905) at com.android.server.appop.AppOpsService.setMode(AppOpsService.java:2900) at com.android.server.appop.AppOpsService.onShellCommand(AppOpsService.java:5680) at com.android.server.appop.AppOpsService$Shell.onCommand(AppOpsService.java:5449) at com.android.modules.utils.BasicShellCommandHandler.exec(BasicShellCommandHandler.java:97) at android.os.ShellCommand.exec(ShellCommand.java:38) at com.android.server.appop.AppOpsService.onShellCommand(AppOpsService.java:5621) at android.os.Binder.shellCommand(Binder.java:971) at android.os.Binder.onTransact(Binder.java:855) at com.android.internal.app.IAppOpsService$Stub.onTransact(IAppOpsService.java:1198) at com.android.server.appop.OplusAppOpsService.onTransact(OplusAppOpsService.java:38) at android.os.Binder.execTransactInternal(Binder.java:1227) at android.os.Binder.execTransact(Binder.java:1164)