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

Commit 562aee08 authored by Ana Krulec's avatar Ana Krulec
Browse files

SF: Enable dumpsys on SurfaceFlinger.

It currently fails because of permission errors. Added IBinder::DUMP_TRANSACTION as viable permission code.

Change-Id: I4a34cb024f35913fcad940282e02a82839cfa5f5
Test: SF test pass.
Bug: 112371983
parent c7c599ff
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -4630,10 +4630,10 @@ status_t SurfaceFlinger::CheckTransactCodeCredentials(uint32_t code) {
        }
    }

    // This code is used for IBinder protocol to interrogate the recipient
    // side of the transaction for its canonical interface descriptor. We
    // can let it pass by default.
    if (code == IBinder::INTERFACE_TRANSACTION) {
    // These codes are used for the IBinder protocol to either interrogate the recipient
    // side of the transaction for its canonical interface descriptor or to dump its state.
    // We let them pass by default.
    if (code == IBinder::INTERFACE_TRANSACTION || code == IBinder::DUMP_TRANSACTION) {
        return OK;
    }
    // Numbers from 1000 to 1029 are currently use for backdoors. The code