From baccadafabc5955613e89cff5a8837f4ecc402fd Mon Sep 17 00:00:00 2001 From: Evan Date: Mon, 16 Dec 2013 14:39:15 -0600 Subject: [PATCH] Fix superuser for user builds Change-Id: Ib2d8d38825a2982d2bc7625eeb1d9c1f9631a400 Signed-off-by: Evan Anderson --- configs/system.mk | 1 + prebuilt/etc/init.d/99SuperSUDaemon | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/configs/system.mk b/configs/system.mk index 9a35f1ca..9d53b328 100644 --- a/configs/system.mk +++ b/configs/system.mk @@ -40,6 +40,7 @@ PRODUCT_COPY_FILES += \ # SU Support PRODUCT_COPY_FILES += \ + vendor/$(VENDOR)/prebuilt/bin/su:system/xbin/daemonsu \ vendor/$(VENDOR)/prebuilt/bin/su:system/xbin/su \ vendor/$(VENDOR)/prebuilt/etc/init.d/99SuperSUDaemon:system/etc/init.d/99SuperSUDaemon \ vendor/$(VENDOR)/prebuilt/apk/Superuser.apk:system/app/Superuser.apk diff --git a/prebuilt/etc/init.d/99SuperSUDaemon b/prebuilt/etc/init.d/99SuperSUDaemon index 5c4bd4fa..de738c17 100644 --- a/prebuilt/etc/init.d/99SuperSUDaemon +++ b/prebuilt/etc/init.d/99SuperSUDaemon @@ -1,2 +1,2 @@ #!/system/bin/sh -/system/xbin/su --auto-daemon & +/system/xbin/daemonsu --auto-daemon &