diff options
Diffstat (limited to 'etc')
-rw-r--r-- | etc/Android.mk | 20 | ||||
-rw-r--r-- | etc/META-INF/com/google/android/update-script | 8 | ||||
-rw-r--r-- | etc/init.rc | 6 | ||||
-rw-r--r-- | etc/init.recovery.hlthchrg25.rc | 5 | ||||
-rw-r--r-- | etc/init.recovery.hlthchrg26.rc | 5 |
5 files changed, 30 insertions, 14 deletions
diff --git a/etc/Android.mk b/etc/Android.mk index decd3e2d6..cda0f372e 100644 --- a/etc/Android.mk +++ b/etc/Android.mk @@ -51,6 +51,26 @@ else include $(BUILD_PREBUILT) endif +ifeq ($(shell test $(PLATFORM_SDK_VERSION) -ge 26; echo $$?),0) + include $(CLEAR_VARS) + LOCAL_MODULE := init.recovery.hlthchrg.rc + LOCAL_MODULE_TAGS := eng + LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES + LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT) + + LOCAL_SRC_FILES := init.recovery.hlthchrg26.rc + include $(BUILD_PREBUILT) +else + include $(CLEAR_VARS) + LOCAL_MODULE := init.recovery.hlthchrg.rc + LOCAL_MODULE_TAGS := eng + LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES + LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT) + + LOCAL_SRC_FILES := init.recovery.hlthchrg25.rc + include $(BUILD_PREBUILT) +endif + ifeq ($(TWRP_INCLUDE_LOGCAT), true) ifeq ($(TARGET_USES_LOGD), true) diff --git a/etc/META-INF/com/google/android/update-script b/etc/META-INF/com/google/android/update-script deleted file mode 100644 index b091b1927..000000000 --- a/etc/META-INF/com/google/android/update-script +++ /dev/null @@ -1,8 +0,0 @@ -assert compatible_with("0.1") == "true" -assert file_contains("SYSTEM:build.prop", "ro.product.device=dream") == "true" || file_contains("SYSTEM:build.prop", "ro.build.product=dream") == "true" -assert file_contains("RECOVERY:default.prop", "ro.product.device=dream") == "true" || file_contains("RECOVERY:default.prop", "ro.build.product=dream") == "true" -assert getprop("ro.product.device") == "dream" -format BOOT: -format SYSTEM: -copy_dir PACKAGE:system SYSTEM: -write_raw_image PACKAGE:boot.img BOOT: diff --git a/etc/init.rc b/etc/init.rc index 3523181fa..d1c4526d7 100644 --- a/etc/init.rc +++ b/etc/init.rc @@ -16,7 +16,6 @@ on early-init restorecon /postinstall start ueventd - start healthd service set_permissive /sbin/permissive.sh oneshot @@ -46,7 +45,6 @@ on init on fs mount pstore pstore /sys/fs/pstore - mkdir /dev/usb-ffs 0770 shell shell mkdir /dev/usb-ffs/adb 0770 shell shell mount functionfs adb /dev/usb-ffs/adb uid=2000,gid=2000 @@ -104,10 +102,6 @@ service ueventd /sbin/ueventd critical seclabel u:r:ueventd:s0 -service healthd /sbin/healthd -r - critical - seclabel u:r:healthd:s0 - service adbd /sbin/adbd --root_seclabel=u:r:su:s0 --device_banner=recovery disabled socket adbd stream 660 system system diff --git a/etc/init.recovery.hlthchrg25.rc b/etc/init.recovery.hlthchrg25.rc new file mode 100644 index 000000000..62b24894d --- /dev/null +++ b/etc/init.recovery.hlthchrg25.rc @@ -0,0 +1,5 @@ +# healthd for pre Android 8.0 + +service healthd /sbin/healthd -r + critical + seclabel u:r:healthd:s0 diff --git a/etc/init.recovery.hlthchrg26.rc b/etc/init.recovery.hlthchrg26.rc new file mode 100644 index 000000000..8a49c86fd --- /dev/null +++ b/etc/init.recovery.hlthchrg26.rc @@ -0,0 +1,5 @@ +# charger for Android 8.0 and up + +service charger /charger -r + critical + seclabel u:r:charger:s0 |