Merge "Fix a near instant stats permission check false negative."
This commit is contained in:
committed by
Android (Google) Code Review
commit
f0707fe34a
@@ -87,6 +87,7 @@ public class StorageStatsService extends IStorageStatsManager.Stub {
|
||||
case AppOpsManager.MODE_DEFAULT:
|
||||
mContext.enforceCallingPermission(
|
||||
android.Manifest.permission.PACKAGE_USAGE_STATS, TAG);
|
||||
return;
|
||||
default:
|
||||
throw new SecurityException("Blocked by mode " + mode);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user