summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKetut Putu Kumajaya <ketut.kumajaya@gmail.com>2014-09-28 14:56:53 +0700
committerKetut Putu Kumajaya <ketut.kumajaya@gmail.com>2014-09-28 23:15:46 +0700
commit59c7a180f652771a31fc349ce03c6b296e3f2620 (patch)
tree638bb987cde5fd60a59b6557767388218e295b58
parent2afece3afb558a194d87e5d65d13085b2fa8f6b7 (diff)
downloaddevice_samsung_smdk4412-common-59c7a180f652771a31fc349ce03c6b296e3f2620.zip
device_samsung_smdk4412-common-59c7a180f652771a31fc349ce03c6b296e3f2620.tar.gz
device_samsung_smdk4412-common-59c7a180f652771a31fc349ce03c6b296e3f2620.tar.bz2
LPM: KitKat bootloader compatibility fix
Should still compatible to JB bootloader Change-Id: I9fff2896331483903259a49f9aef8c581362e93c
-rw-r--r--rootdir/lpm.rc18
1 files 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