Merge "Check for dump permission before other permissions." am: f8af692214 am: c046c8905e

Change-Id: Ide554d628c5b68bad064bf156c8f9edf75db3fd2
This commit is contained in:
Treehugger Robot
2020-02-17 22:57:49 +00:00

View File

@@ -234,8 +234,8 @@ public class PlatformCompat extends IPlatformCompat.Stub {
@Override
protected void dump(FileDescriptor fd, PrintWriter pw, String[] args) {
checkCompatChangeReadAndLogPermission();
if (!DumpUtils.checkDumpAndUsageStatsPermission(mContext, "platform_compat", pw)) return;
checkCompatChangeReadAndLogPermission();
mCompatConfig.dumpConfig(pw);
}