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:
Ethan Chen 2015-12-15 10:00:00 -08:00 committed by Gerrit Code Review
parent 6bc84be525
commit 909343f3df
4 changed files with 4 additions and 3 deletions

View File

@ -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

View File

@ -1 +0,0 @@
allow adbd adbtcp_prop:property_service set;

View File

@ -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

View File

@ -1 +0,0 @@
allow shell adbtcp_prop:property_service set;