Skip to content
Snippets Groups Projects
Commit 75814d20 authored by Bruno Martins's avatar Bruno Martins Committed by TheScarastic
Browse files

mido: Use MIUI poweroff charging animation

 * It's cool, and more importantly... it actually works!
   Oh look, it even displays battery level. Wow. :-P

Change-Id: I6351e2eac6df89aa1b6b98e4e6b2815fa5c37794
parent d8fc43f6
No related branches found
No related tags found
No related merge requests found
......@@ -202,6 +202,10 @@ PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/gps/etc/sap.conf:$(TARGET_COPY_OUT_VENDOR)/etc/sap.conf \
$(LOCAL_PATH)/gps/etc/xtwifi.conf:$(TARGET_COPY_OUT_VENDOR)/etc/xtwifi.conf
# Healthd
PRODUCT_PACKAGES += \
chargeonlymode
# HIDL
PRODUCT_PACKAGES += \
android.hidl.base@1.0 \
......
......@@ -69,3 +69,14 @@ LOCAL_MODULE_CLASS := ETC
LOCAL_SRC_FILES := etc/init.qcom.post_boot.sh
LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR_EXECUTABLES)
include $(BUILD_PREBUILT)
# Offmode charging
include $(CLEAR_VARS)
LOCAL_MODULE := chargeonlymode
LOCAL_MODULE_OWNER := xiaomi
LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT_SBIN)
LOCAL_UNSTRIPPED_PATH := $(TARGET_ROOT_OUT_SBIN_UNSTRIPPED)
LOCAL_SRC_FILES := sbin/chargeonlymode
LOCAL_MODULE_TAGS := optional
LOCAL_MODULE_CLASS := EXECUTABLES
include $(BUILD_PREBUILT)
......@@ -574,11 +574,10 @@ service ril-daemon2 /vendor/bin/hw/rild -c 2
group radio cache inet misc audio sdcard_r sdcard_rw diag oem_2901 log
capabilities BLOCK_SUSPEND NET_ADMIN NET_RAW
service charger /charger
service charger /sbin/chargeonlymode
class charger
group system graphics
seclabel u:r:healthd:s0
writepid /dev/cpuset/system-background/tasks
seclabel u:r:charger:s0
service vendor.msm_irqbalance /vendor/bin/msm_irqbalance -f /system/vendor/etc/msm_irqbalance.conf
class core
......
......@@ -185,9 +185,8 @@ on charger
write /sys/devices/system/cpu/cpu2/online 0
write /sys/devices/system/cpu/cpu3/online 0
write /sys/module/lpm_levels/parameters/sleep_disabled 0
wait /dev/block/bootdevice/by-name/system
mount ext4 /dev/block/bootdevice/by-name/system /system ro barrier=1
start hvdcp_opti
start thermal-engine
on boot
write /dev/cpuset/top-app/cpus 0-7
......
File added
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment