Lines Matching refs:AppOpsManager
20 import android.app.AppOpsManager;
354 AppOpsManager appOps = (AppOpsManager)context.getSystemService(Context.APP_OPS_SERVICE);
362 int mode = appOps.checkOp(AppOpsManager.OP_WRITE_SMS, applicationData.mUid,
364 if (mode != AppOpsManager.MODE_ALLOWED) {
368 appOps.setMode(AppOpsManager.OP_WRITE_SMS, applicationData.mUid,
369 applicationData.mPackageName, AppOpsManager.MODE_ALLOWED);
441 AppOpsManager appOps = (AppOpsManager)context.getSystemService(Context.APP_OPS_SERVICE);
446 appOps.setMode(AppOpsManager.OP_WRITE_SMS, info.applicationInfo.uid,
447 oldPackageName, AppOpsManager.MODE_IGNORED);
463 appOps.setMode(AppOpsManager.OP_WRITE_SMS, applicationData.mUid,
464 applicationData.mPackageName, AppOpsManager.MODE_ALLOWED);
487 PackageManager packageManager, AppOpsManager appOps, String packageName) {
498 int mode = appOps.checkOp(AppOpsManager.OP_WRITE_SMS, info.applicationInfo.uid,
500 if (mode != AppOpsManager.MODE_ALLOWED) {
502 appOps.setMode(AppOpsManager.OP_WRITE_SMS, info.applicationInfo.uid,
503 packageName, AppOpsManager.MODE_ALLOWED);