/
MSM8960_lpm.rc
86 lines (69 loc) · 2.45 KB
/
MSM8960_lpm.rc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
on early-init
start ueventd
on init
sysclktz 0
loglevel 3
# setup the global environment
export PATH /sbin:/vendor/bin:/system/sbin:/system/bin:/system/xbin
export LD_LIBRARY_PATH /vendor/lib:/system/lib
export ANDROID_BOOTLOGO 1
export ANDROID_ROOT /system
export ANDROID_ASSETS /system/app
# export ANDROID_DATA /data
# export EXTERNAL_STORAGE /mnt/sdcard
# export ASEC_MOUNTPOINT /mnt/asec
export LOOP_MOUNTPOINT /mnt/obb
export BOOTCLASSPATH /system/framework/core.jar:/system/framework/bouncycastle.jar:/system/framework/ext.jar:/system/framework/framework.jar:/system/framework/android.policy.jar:/system/framework/services.jar:/system/framework/core-junit.jar
mkdir /system
mkdir /data 0771 system system
mkdir /persist 0771 system system
mkdir /cache 0770 system cache
mkdir /config 0500 root root
mkdir /persist 0771 system system
on emmc-fs
# mount mmc partitions
wait /dev/block/mmcblk0p16
mount ext4 /dev/block/mmcblk0p16 /system barrier=1
# wait /dev/block/mmcblk0p18
# exec /system/bin/e2fsck -v -y /dev/block/mmcblk0p18
# mount ext4 /dev/block/mmcblk0p18 /data nosuid nodev barrier=1 noauto_da_alloc
# mount ext4 /dev/block/mmcblk0p11 /persist nosuid nodev barrier=1
# mount ext4 /dev/block/mmcblk0p17 /cache nosuid nodev barrier=1
on fs
# mount mtd partitions
# Mount /system rw first to give the filesystem a chance to save a checkpoint
mount yaffs2 mtd@system /system
mount yaffs2 mtd@system /system ro remount
# mount yaffs2 mtd@userdata /data nosuid nodev
# mount yaffs2 mtd@persist /persist nosuid nodev
# mount yaffs2 mtd@cache /cache nosuid nodev
# mount yaffs2 mtd@persist /persist nosuid nodev
on boot
ifup lo
hostname localhost
domainname localdomain
class_start default
write /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor "userspace"
write /sys/devices/system/cpu/cpu0/cpufreq/scaling_setspeed 245760
service ueventd /sbin/ueventd
critical
service console /system/bin/sh
console
user shell
group log
# adbd is controlled by the persist.service.adb.enable system property
service adbd /sbin/adbd
disabled
# adbd on at boot in emulator
on property:ro.kernel.qemu=1
start adbd
service playlpm /system/bin/playlpm
user root
oneshot
service lpmkey /system/bin/lpmkey
user root
oneshot
on property:persist.service.adb.enable=1
start adbd
on property:persist.service.adb.enable=0
stop adbd