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

Commit deed4e7d authored by David Sodman's avatar David Sodman
Browse files

SF: Update backdoor permissions check constant

Update the permissions check on backdoor calls to allow
for code 1029 which was recently added.

Test: None
Change-Id: I7b160bc55799633b9a973c347acc4131760df513
parent 818cafee
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -4636,9 +4636,9 @@ status_t SurfaceFlinger::CheckTransactCodeCredentials(uint32_t code) {
    if (code == IBinder::INTERFACE_TRANSACTION) {
        return OK;
    }
    // Numbers from 1000 to 1028 are currently use for backdoors. The code
    // Numbers from 1000 to 1029 are currently use for backdoors. The code
    // in onTransact verifies that the user is root, and has access to use SF.
    if (code >= 1000 && code <= 1028) {
    if (code >= 1000 && code <= 1029) {
        ALOGV("Accessing SurfaceFlinger through backdoor code: %u", code);
        return OK;
    }