From c52c5b8e3d690201b2ae009a2d396d1899033e3d Mon Sep 17 00:00:00 2001 From: Nick Kralevich Date: Sat, 18 Jan 2014 09:22:50 -0800 Subject: adbd: switch to su domain when running as root When adbd runs as root, it should transition into the su domain. This is needed to run the adbd and shell domains in enforcing on userdebug / eng devices without breaking developer workflows. Use the new device_banner command line option. Change-Id: Ib33c0dd2dd6172035230514ac84fcaed2ecf44d6 --- etc/init.rc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'etc') diff --git a/etc/init.rc b/etc/init.rc index 8d49f24..159747e 100644 --- a/etc/init.rc +++ b/etc/init.rc @@ -59,7 +59,7 @@ service healthd /sbin/healthd -n service recovery /sbin/recovery seclabel u:r:recovery:s0 -service adbd /sbin/adbd recovery +service adbd /sbin/adbd --root_seclabel=u:r:su:s0 --device_banner=recovery disabled socket adbd stream 660 system system seclabel u:r:adbd:s0 -- cgit v1.1