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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
|
########################
# # init.htc.common.rc #
########################
import init.htc.usb.rc
on fs
mkdir /firmware 0771 system system
mkdir /firmware/image 0771 system system
#Modem_BSP+
#mount rfg_3
mkdir /firmware/wsd 0500 rfs rfs
wait /dev/block/bootdevice/by-name/rfg_3
mount vfat /dev/block/bootdevice/by-name/rfg_3 /firmware/wsd ro shortname=lower,uid=3012,gid=3012,dmask=277,fmask=377
#Modem_BSP-
# Mount radio image
mkdir /firmware/radio 0771 system system
wait /dev/block/bootdevice/by-name/radio
mount vfat /dev/block/bootdevice/by-name/radio /firmware/radio ro shortname=lower,uid=1000,gid=1000,dmask=227,fmask=337
# Mount adsp image
mkdir /firmware/adsp 0771 system system
wait /dev/block/bootdevice/by-name/adsp
mount vfat /dev/block/bootdevice/by-name/adsp /firmware/adsp ro shortname=lower,uid=1000,gid=1000,dmask=227,fmask=337
wait /system/bin/sh
#HTC_AUD_START
exec -- /system/bin/sh /init.qcom.firmware_links.sh /firmware/adsp /firmware/image "adsp*"
# 8994 only
exec -- /system/bin/sh /init.qcom.firmware_links.sh /firmware/cpe /firmware/image "cpe*"
#HTC_AUD_END
exec -- /system/bin/sh /init.qcom.firmware_links.sh /firmware/radio /firmware/image "modem* mba* radiover* version* qdsp6m* msadp*"
exec -- /system/bin/sh /init.qcom.firmware_links.sh /system/etc/firmware /firmware/image "keymaste* gpta*"
exec -- /system/bin/sh /init.qcom.firmware_links.sh /firmware/slpi /firmware/image "slpi*"
exec -- /system/bin/sh /init.qcom.firmware_links.sh /system/vendor/firmware /firmware/image "keymaste*"
#SSD_DISP start
chown system graphics /sys/class/leds/lcd-backlight/cabc_level_ctl
chown system graphics /sys/class/leds/lcd-backlight/color_temp_ctl
chown system graphics /sys/class/leds/lcd-backlight/color_profile_ctl
chown system graphics /sys/class/leds/lcd-backlight/disp_cali_enable
chown system graphics /sys/class/leds/lcd-backlight/bklt_cali_enable
chown system system /sys/class/leds/lcd-backlight/burst_switch
chown system system /sys/class/leds/lcd-backlight-nits/brightness
#SSD_DISP end
# maintain the list of processes name for kernel monitoring usage
chown system /sys/process/task_comm_list
on boot
# Assign androidboot.ddrsize to ro.product.ram
setprop ro.product.ram ${ro.boot.ddrsize}
# remove /dev/mem and /dev/kmem
rm /dev/mem
rm /dev/kmem
# + SSD_RIL: set radio_feedback permissions
chown radio radio /dev/radio_feedback
chmod 0660 /dev/radio_feedback
# - SSD_RIL
# NFC ++
# permissions for NFC
chmod 0600 /dev/pn544
chown nfc nfc /dev/pn544
service htc-post-boot /system/bin/sh /system/etc/init.htc.post_boot.sh
class late_start
user root
disabled
oneshot
on property:sys.boot_completed=1
start htc-post-boot
on property:sys.qseecomd.stage=2
start wv-prov
service wv-prov /system/bin/hcheck-v2
class late_start
user root
disabled
oneshot
# HTC HRDUMP - BEGIN
on post-fs-data
start hrdump
service hrdump /system/bin/hrdump -s
disabled
oneshot
ioprio idle 0
cgroup bg
on property:ro.boot.htc.hrdump=detected
setprop debug.htc.hrdump "detected"
# HTC HRDUMP - END
# HTC minidump for TellHTC - BEGIN
service minidump-sh /system/bin/sh /init.minidump.sh
class late_start
user root
oneshot
# HTC minidump for TellHTC - END
# hang_detector - BEGIN
service hang_start_moni /system/bin/hang_detector -b
user root
disabled
oneshot
on property:init.svc.zygote=restarting
start hang_start_moni
service hang_end_moni /system/bin/hang_detector -e
user root
disabled
oneshot
on property:sys.boot_completed=1
start hang_end_moni
service hang_daemon /system/bin/hang_detector -d
user root
socket hang_detector stream 0666 system system
disabled
on post-fs-data
start hang_daemon
# hang_detector - END
# when temperature protection is disabled, bg anr is disabled as well
on property:ro.boot.temp_protect=0
setprop profiler.debug.hide_bg_anr "1"
on property:sys.vm.max_map_count=*
write /proc/sys/vm/max_map_count ${sys.vm.max_map_count}
|