summaryrefslogtreecommitdiffstats
path: root/etc/Android.mk
diff options
context:
space:
mode:
authorEthan Yonker <dees_troy@teamw.in>2016-08-25 22:32:21 +0200
committerEthan Yonker <dees_troy@teamw.in>2016-08-25 22:36:13 +0200
commitf117962eb25bde75e981c3bff91ba708a55df65e (patch)
tree4d8565830b460a940ad33701e953d0371a0e5355 /etc/Android.mk
parentUpdate to 7.0 (diff)
downloadandroid_bootable_recovery-f117962eb25bde75e981c3bff91ba708a55df65e.tar
android_bootable_recovery-f117962eb25bde75e981c3bff91ba708a55df65e.tar.gz
android_bootable_recovery-f117962eb25bde75e981c3bff91ba708a55df65e.tar.bz2
android_bootable_recovery-f117962eb25bde75e981c3bff91ba708a55df65e.tar.lz
android_bootable_recovery-f117962eb25bde75e981c3bff91ba708a55df65e.tar.xz
android_bootable_recovery-f117962eb25bde75e981c3bff91ba708a55df65e.tar.zst
android_bootable_recovery-f117962eb25bde75e981c3bff91ba708a55df65e.zip
Diffstat (limited to '')
-rw-r--r--etc/Android.mk20
1 files changed, 20 insertions, 0 deletions
diff --git a/etc/Android.mk b/etc/Android.mk
index 5e612b63e..461457787 100644
--- a/etc/Android.mk
+++ b/etc/Android.mk
@@ -31,6 +31,26 @@ include $(BUILD_PREBUILT)
endif
+ifeq ($(shell test $(PLATFORM_SDK_VERSION) -ge 22; echo $$?),0)
+ include $(CLEAR_VARS)
+ LOCAL_MODULE := init.recovery.service.rc
+ LOCAL_MODULE_TAGS := eng
+ LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES
+ LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT)
+
+ LOCAL_SRC_FILES := init.recovery.servicenew.rc
+ include $(BUILD_PREBUILT)
+else
+ include $(CLEAR_VARS)
+ LOCAL_MODULE := init.recovery.service.rc
+ LOCAL_MODULE_TAGS := eng
+ LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES
+ LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT)
+
+ LOCAL_SRC_FILES := init.recovery.serviceold.rc
+ include $(BUILD_PREBUILT)
+endif
+
ifeq ($(TWRP_INCLUDE_LOGCAT), true)
ifeq ($(TARGET_USES_LOGD), true)