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
diff --git a/services/surfaceflinger/SurfaceFlinger.cpp b/services/surfaceflinger/SurfaceFlinger.cpp
index 4b95036..8310455 100644
--- a/services/surfaceflinger/SurfaceFlinger.cpp
+++ b/services/surfaceflinger/SurfaceFlinger.cpp
@@ -4630,10 +4630,10 @@
}
}
- // 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