diff options
Diffstat (limited to '')
-rwxr-xr-x | prebuilt/99SuperSUDaemon | 2 | ||||
-rw-r--r-- | prebuilt/Android.mk | 18 | ||||
-rwxr-xr-x | prebuilt/chattr | bin | 0 -> 9956 bytes | |||
-rwxr-xr-x | prebuilt/install-recovery.sh | 19 | ||||
-rwxr-xr-x | prebuilt/su | bin | 96260 -> 112164 bytes |
5 files changed, 39 insertions, 0 deletions
diff --git a/prebuilt/99SuperSUDaemon b/prebuilt/99SuperSUDaemon new file mode 100755 index 000000000..de738c17b --- /dev/null +++ b/prebuilt/99SuperSUDaemon @@ -0,0 +1,2 @@ +#!/system/bin/sh +/system/xbin/daemonsu --auto-daemon & diff --git a/prebuilt/Android.mk b/prebuilt/Android.mk index 73432b3cb..08e09aca7 100644 --- a/prebuilt/Android.mk +++ b/prebuilt/Android.mk @@ -234,6 +234,24 @@ ifneq ($(TW_EXCLUDE_SUPERSU), true) LOCAL_SRC_FILES := $(LOCAL_MODULE) include $(BUILD_PREBUILT) + #install-recovery.sh + include $(CLEAR_VARS) + LOCAL_MODULE := install-recovery.sh + LOCAL_MODULE_TAGS := eng + LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES + LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/supersu + LOCAL_SRC_FILES := $(LOCAL_MODULE) + include $(BUILD_PREBUILT) + + #99SuperSUDaemon + include $(CLEAR_VARS) + LOCAL_MODULE := 99SuperSUDaemon + LOCAL_MODULE_TAGS := eng + LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES + LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/supersu + LOCAL_SRC_FILES := $(LOCAL_MODULE) + include $(BUILD_PREBUILT) + #SuperSU special installer APK include $(CLEAR_VARS) LOCAL_MODULE := Superuser.apk diff --git a/prebuilt/chattr b/prebuilt/chattr Binary files differnew file mode 100755 index 000000000..12ccf8610 --- /dev/null +++ b/prebuilt/chattr diff --git a/prebuilt/install-recovery.sh b/prebuilt/install-recovery.sh new file mode 100755 index 000000000..9b4374520 --- /dev/null +++ b/prebuilt/install-recovery.sh @@ -0,0 +1,19 @@ +#!/system/bin/sh + +# If you're implementing this in a custom kernel/firmware, +# I suggest you use a different script name, and add a service +# to launch it from init.rc + +# Launches SuperSU in daemon mode only on Android 4.3+. +# Nothing will happen on 4.2.x or older. +# If you want to force loading the daemon, use "--daemon" instead + +/system/xbin/daemonsu --auto-daemon & + +# Some apps like to run stuff from this script as well, but the +# installer will have done "chattr +i" on this file to prevent +# accidental modification and deletion. In your code, just search +# this file for "install-recovery-2.sh", and if present, write +# there instead. + +/system/etc/install-recovery-2.sh diff --git a/prebuilt/su b/prebuilt/su Binary files differindex 7d31770de..da77f0a70 100755 --- a/prebuilt/su +++ b/prebuilt/su |