From f0906fbf4cd61f24250fc2aed2d03b1283cd3216 Mon Sep 17 00:00:00 2001 From: Zhao Wei Liew Date: Fri, 11 Nov 2016 06:57:07 +0800 Subject: [PATCH] land: Set up low power modes on recovery Change-Id: I3f79b5277936e4d3f0b5c0b134ea4211ab3cf920 --- product/init.mk | 1 + rootdir/Android.mk | 8 ++++++++ rootdir/init.qcom.power.rc | 3 +++ 3 files changed, 12 insertions(+) diff --git a/product/init.mk b/product/init.mk index c6d3875..fb2b644 100644 --- a/product/init.mk +++ b/product/init.mk @@ -6,4 +6,5 @@ PRODUCT_PACKAGES += \ fstab.qcom \ init.qcom.rc \ init.qcom.sh \ + init.recovery.qcom.rc \ ueventd.qcom.rc diff --git a/rootdir/Android.mk b/rootdir/Android.mk index c3a7df2..3e13d3f 100644 --- a/rootdir/Android.mk +++ b/rootdir/Android.mk @@ -50,6 +50,14 @@ LOCAL_SRC_FILES := init.qcom.usb.sh LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT) include $(BUILD_PREBUILT) +include $(CLEAR_VARS) +LOCAL_MODULE := init.recovery.qcom.rc +LOCAL_MODULE_TAGS := optional eng +LOCAL_MODULE_CLASS := ETC +LOCAL_SRC_FILES := init.qcom.power.rc +LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT) +include $(BUILD_PREBUILT) + include $(CLEAR_VARS) LOCAL_MODULE := ueventd.qcom.rc LOCAL_MODULE_TAGS := optional eng diff --git a/rootdir/init.qcom.power.rc b/rootdir/init.qcom.power.rc index 9a734b0..69e1034 100644 --- a/rootdir/init.qcom.power.rc +++ b/rootdir/init.qcom.power.rc @@ -136,3 +136,6 @@ on class_start:late_start on charger trigger enable-low-power + +on property:init.svc.recovery=running + trigger enable-low-power