Skip to content
Snippets Groups Projects
Commit 676003cf authored by Chris Forbes's avatar Chris Forbes
Browse files

allow surfaceflinger to use socket from adbd

Fixes `adb shell cmd gpu vkjson`, which was previously failing due to
surfaceflinger not being able to use the socket passed to it by adbd.

Bug: b/37157136
Test: run above command, verified on marlin + bullhead
Change-Id: I57fa7e99d5c3dc7bc7d033b83f8ce6032162d7d3
parent b9d5d5cc
No related branches found
No related tags found
No related merge requests found
......@@ -52,6 +52,9 @@ set_prop(surfaceflinger, ctl_bootanim_prop)
allow surfaceflinger appdomain:fd use;
allow surfaceflinger app_data_file:file { read write };
# Use socket supplied by adbd, for cmd gpu vkjson etc.
allow surfaceflinger adbd:unix_stream_socket { read write getattr };
# Allow a dumpstate triggered screenshot
binder_call(surfaceflinger, dumpstate)
binder_call(surfaceflinger, shell)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment