Skip to content
Snippets Groups Projects
Commit c14c79bb authored by atrost's avatar atrost
Browse files

Check for dump permission before other permissions.

There are test that rely on that being checked first.

Bug: 149350547
Test: atest android.security.cts.ServicePermissionsTest#testDumpProtected
Change-Id: Ifeac7219c217ee522af442e46dc7832b6afb9e42
parent 0ab50898
No related branches found
No related tags found
No related merge requests found
......@@ -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);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment