Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c046c890 authored by Treehugger Robot's avatar Treehugger Robot
Browse files

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

Change-Id: I2724cd33d88cf8a75133f0dde46363f7c7721ccc
parents eb431445 f8af6922
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);
    }