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

Commit 3b44a035 authored by Peiyong Lin's avatar Peiyong Lin
Browse files

[SurfaceFlinger] Allow opcode 1030 to pass.

BUG: 111505327
Test: Build, flash, boot and test with Settings.
Change-Id: I9adbecdab42d82e28a4ccfff3085522508373212
parent e6b2368b
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -4778,9 +4778,9 @@ status_t SurfaceFlinger::CheckTransactCodeCredentials(uint32_t code) {
        code == IBinder::SYSPROPS_TRANSACTION) {
        code == IBinder::SYSPROPS_TRANSACTION) {
        return OK;
        return OK;
    }
    }
    // Numbers from 1000 to 1029 are currently use for backdoors. The code
    // Numbers from 1000 to 1030 are currently use for backdoors. The code
    // in onTransact verifies that the user is root, and has access to use SF.
    // in onTransact verifies that the user is root, and has access to use SF.
    if (code >= 1000 && code <= 1029) {
    if (code >= 1000 && code <= 1030) {
        ALOGV("Accessing SurfaceFlinger through backdoor code: %u", code);
        ALOGV("Accessing SurfaceFlinger through backdoor code: %u", code);
        return OK;
        return OK;
    }
    }