android 8.0 Permission Denial: not allowed to send broadcast
阿新 • • 發佈:2018-12-15
adb shell am broadcast -a android.intent.action.BOOT_COMPLETED Broadcasting: Intent { act=android.intent.action.BOOT_COMPLETED flg=0x400000 } Security exception: Permission Denial: not allowed to send broadcast android.intent.action.BOOT_COMPLETED from pid=13327, uid=2000 java.lang.SecurityException: Permission Denial: not allowed to send broadcast android.intent.action.BOOT_COMPLETED from pid=13327, uid=2000 at com.android.server.am.ActivityManagerService.broadcastIntentLocked(ActivityManagerService.java:19405) at com.android.server.am.ActivityManagerService.broadcastIntent(ActivityManagerService.java:20069) at com.android.server.am.ActivityManagerShellCommand.runSendBroadcast(ActivityManagerShellCommand.java:621) at com.android.server.am.ActivityManagerShellCommand.onCommand(ActivityManagerShellCommand.java:154) at android.os.ShellCommand.exec(ShellCommand.java:96) at com.android.server.am.ActivityManagerService.onShellCommand(ActivityManagerService.java:15222) at android.os.Binder.shellCommand(Binder.java:594) at android.os.Binder.onTransact(Binder.java:492) at android.app.IActivityManager$Stub.onTransact(IActivityManager.java:4252) at com.android.server.am.ActivityManagerService.onTransact(ActivityManagerService.java:2971) at android.os.Binder.execTransact(Binder.java:697)