SELinux: Use custom ADB over network property
* Use a custom system property to trigger the real one, so we avoid running afoul of any SELinux CTS requirements. Change-Id: If5e7a275f492631a673284408f1e430a12358380
This commit is contained in:
parent
6bc84be525
commit
909343f3df
@ -139,6 +139,9 @@ service bugreport /system/bin/dumpstate -d -p -B \
|
||||
keycodes 114 115 116
|
||||
|
||||
# adb over network
|
||||
on property:adb.network.port=*
|
||||
setprop service.adb.tcp.port ${adb.network.port}
|
||||
|
||||
on property:service.adb.tcp.port=5555
|
||||
stop adbd
|
||||
start adbd
|
||||
|
@ -1 +0,0 @@
|
||||
allow adbd adbtcp_prop:property_service set;
|
@ -1,4 +1,4 @@
|
||||
service.adb.tcp.port u:object_r:adbtcp_prop:s0
|
||||
adb.network.port u:object_r:adbtcp_prop:s0
|
||||
recovery.perf.mode u:object_r:recovery_prop:s0
|
||||
adb.secure u:object_r:recovery_prop:s0
|
||||
cm.userinit.active u:object_r:userinit_prop:s0
|
||||
|
@ -1 +0,0 @@
|
||||
allow shell adbtcp_prop:property_service set;
|
Loading…
Reference in New Issue
Block a user