From 2570aed627ccfc3f43b3fcb9af5ac0ce240a507d Mon Sep 17 00:00:00 2001 From: Ketut Putu Kumajaya Date: Sun, 28 Sep 2014 15:07:59 +0700 Subject: LPM: KitKat bootloader compatibility fix Should still compatible to JB bootloader Change-Id: Ic6951b9cbeabdd95db43f1937ea6839c780c4957 --- rootdir/lpm.rc | 47 +++++++++++++++++++++-------------------------- 1 file changed, 21 insertions(+), 26 deletions(-) (limited to 'rootdir') diff --git a/rootdir/lpm.rc b/rootdir/lpm.rc index 1eed990..4be4f98 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 @@ -19,46 +18,43 @@ on init mkdir /efs mkdir /tmp mkdir /dbdata - mkdir /mnt 0775 root root - #mount /tmp /tmp tmpfs - -on early-fs -# insmod /lib/modules/vibrator.ko + mkdir /mnt 0775 root root mount ext4 /dev/block/platform/dw_mmc/by-name/SYSTEM /system ro wait noatime - mkdir /data/log 0777 - - chmod 0666 /dev/log/radio - chmod 0666 /dev/log/main - chmod 0666 /dev/log/event + mkdir /data/log 0777 -on boot -# write /sys/class/sec/switch/usb_sel PDA + chmod 0666 /dev/log/radio + chmod 0666 /dev/log/main + chmod 0666 /dev/log/event -# CPU Frequency Governor - write /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor pegasusq + # CPU Frequency Governor + write /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor pegasusq -# EHCI runtime enable for LPA - write /sys/devices/platform/s5p-ehci/power/control auto + # EHCI runtime enable for LPA + write /sys/devices/platform/s5p-ehci/power/control auto - ifup lo - hostname localhost - domainname localdomain + ifup lo + hostname localhost + domainname localdomain - class_start default + class_start default service debuggerd /system/bin/debuggerd service ueventd /sbin/ueventd - critical + critical #service console /bin/sh service console /system/bin/sh - console - + 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 @@ -73,4 +69,3 @@ on property:persist.service.adb.enable=1 on property:persist.service.adb.enable=0 stop adbd - -- cgit v1.1