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

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

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

Change-Id: Ide554d628c5b68bad064bf156c8f9edf75db3fd2
parents 99c31b92 c046c890
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);
    }