From 59c7a180f652771a31fc349ce03c6b296e3f2620 Mon Sep 17 00:00:00 2001 From: Ketut Putu Kumajaya Date: Sun, 28 Sep 2014 14:56:53 +0700 Subject: LPM: KitKat bootloader compatibility fix Should still compatible to JB bootloader Change-Id: I9fff2896331483903259a49f9aef8c581362e93c --- rootdir/lpm.rc | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/rootdir/lpm.rc b/rootdir/lpm.rc index f1601f9..04cba30 100644 --- a/rootdir/lpm.rc +++ b/rootdir/lpm.rc @@ -2,7 +2,6 @@ on early-init start ueventd on init - export PATH /sbin:/vendor/bin:/system/sbin:/system/bin:/system/xbin export LD_LIBRARY_PATH /vendor/lib:/system/lib export ANDROID_ROOT /system @@ -21,25 +20,20 @@ on init mkdir /tmp mkdir /dbdata mkdir /mnt 0775 root root - #mount /tmp /tmp tmpfs - -on early-fs mount ext4 /dev/block/platform/dw_mmc/by-name/SYSTEM /system ro wait noatime mount ext4 /dev/block/platform/dw_mmc/by-name/USERDATA /data rw wait noatime nosuid nodev discard noauto_da_alloc journal_async_commit + mkdir /data/log 0777 chmod 0666 /dev/log/radio chmod 0666 /dev/log/main chmod 0666 /dev/log/event -on boot -# write /sys/class/sec/switch/usb_sel PDA - -# CPU Frequency Governor + # CPU Frequency Governor write /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor pegasusq -# EHCI runtime enable for LPA + # EHCI runtime enable for LPA write /sys/devices/platform/s5p-ehci/power/control auto ifup lo @@ -56,8 +50,12 @@ service ueventd /sbin/ueventd service console /system/bin/sh console +service healthd-charger /sbin/healthd -n + critical + seclabel u:r:healthd:s0 + service lpm /system/bin/lpm - user root + critical # adbd is controlled by the persist.service.adb.enable system property service adbd /sbin/adbd -- cgit v1.1