D | PermissionTest.java | 23 import static android.app.AppOpsManager.MODE_ALLOWED; 24 import static android.app.AppOpsManager.MODE_FOREGROUND; 25 import static android.app.AppOpsManager.MODE_IGNORED; 26 import static android.app.AppOpsManager.permissionToOp; 37 import android.app.AppOpsManager; 358 private void setFlag(String app, String permission, int flag) { in setFlag() argument 360 () -> sContext.getPackageManager().updatePermissionFlags(permission, app, in setFlag() 364 private void clearFlag(String app, String permission, int flag) { in clearFlag() argument 366 () -> sContext.getPackageManager().updatePermissionFlags(permission, app, in clearFlag() 370 private boolean isFlagSet(String app, String permission, int flag) { in isFlagSet() argument [all …]
|