aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCosme Domínguez Díaz <cosme.ddiaz@gmail.com>2018-02-17 17:15:57 +0100
committerCosme Domínguez Díaz <cosme.ddiaz@gmail.com>2018-02-19 21:44:59 +0100
commit6686f6a83f0d00c79563846d836b3756b0858fd2 (patch)
tree6b3331d7d54b05ade5cad0ceb60344dc8fc73e71
parent9be211237e12497afb32a703c18dfb9646603533 (diff)
Enable boot from offline charging mode with the power button.
-rwxr-xr-xmsm8996.mk4
-rw-r--r--system.prop3
2 files changed, 4 insertions, 3 deletions
diff --git a/msm8996.mk b/msm8996.mk
index 358e83c..db6a9da 100755
--- a/msm8996.mk
+++ b/msm8996.mk
@@ -306,3 +306,7 @@ PRODUCT_COPY_FILES += \
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/wifi/WCNSS_cfg.dat:$(TARGET_COPY_OUT_VENDOR)/etc/wifi/WCNSS_cfg.dat \
$(LOCAL_PATH)/wifi/WCNSS_qcom_cfg.ini:$(TARGET_COPY_OUT_VENDOR)/etc/wifi/WCNSS_qcom_cfg.ini
+
+# Offline charging
+PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \
+ ro.enable_boot_charger_mode=true
diff --git a/system.prop b/system.prop
index 479a723..e771f67 100644
--- a/system.prop
+++ b/system.prop
@@ -33,9 +33,6 @@ persist.camera.video.ubwc=0
ro.persist.qcapb=1
camera.disable_zsl_mode=1
-# Charger
-ro.enable_boot_charger_mode=1
-
# CNE
persist.cne.feature=1