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

Change-Id: Ia46c91c95fe0022fa1f3c66d98cf165a09151c9e
This commit is contained in:
Treehugger Robot
2020-02-18 06:35:28 +00:00

View File

@@ -235,8 +235,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);
}