Merge "Fix a near instant stats permission check false negative."

This commit is contained in:
TreeHugger Robot
2017-01-13 19:36:44 +00:00
committed by Android (Google) Code Review

View File

@@ -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);
}