10. 使い方 AppOpsCheck appOpsCheck = new AppOpsCheck(this); int appOpsModeNotification = appOpsCheck.checkOpNoThrow( AppOpsCheck.OP_POST_NOTIFICATION, this.getApplicationContext().getPackageName()); if (appOpsMode == 0) { Log.d(TAG, "allowed"); } else if (appOpsMode == 1) { Log.d(TAG, "not allowed"); } else { Log.d(TAG, "error"); }