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

Commit 5ea77ae3 authored by Glenn Kasten's avatar Glenn Kasten
Browse files

Fix error message to match CTS

Bug: 8657725
Change-Id: Ib608eb55f14d557d667f93e4f646c03d5ea470c1
parent 64595e67
Loading
Loading
Loading
Loading
+3 −1
Original line number Original line Diff line number Diff line
@@ -60,7 +60,9 @@ status_t MediaLogService::dump(int fd, const Vector<String16>& args)
    static const String16 sDump("android.permission.DUMP");
    static const String16 sDump("android.permission.DUMP");
    if (!(IPCThreadState::self()->getCallingUid() == AID_MEDIA ||
    if (!(IPCThreadState::self()->getCallingUid() == AID_MEDIA ||
            PermissionCache::checkCallingPermission(sDump))) {
            PermissionCache::checkCallingPermission(sDump))) {
        fdprintf(fd, "Permission denied.\n");
        fdprintf(fd, "Permission Denial: can't dump media.log from pid=%d, uid=%d\n",
                IPCThreadState::self()->getCallingPid(),
                IPCThreadState::self()->getCallingUid());
        return NO_ERROR;
        return NO_ERROR;
    }
    }