This repository has been archived by the owner on Apr 10, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
/
init-common.rc
60 lines (46 loc) · 2.19 KB
/
init-common.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
on late-fs
# boot time fs tune
write /sys/block/sda/queue/iostats 0
write /sys/block/sda/queue/scheduler cfq
write /sys/block/sda/queue/iosched/slice_idle 0
write /sys/block/sda/queue/read_ahead_kb 2048
write /sys/block/sda/queue/nr_requests 256
write /sys/block/dm-0/queue/read_ahead_kb 2048
write /sys/block/dm-1/queue/read_ahead_kb 2048
on property:sys.boot_completed=1
# end boot time fs tune
write /sys/block/sda/queue/read_ahead_kb 128
write /sys/block/sda/queue/nr_requests 128
write /sys/block/sda/queue/iostats 1
write /sys/block/dm-0/queue/read_ahead_kb 128
write /sys/block/dm-1/queue/read_ahead_kb 128
on property:sys.boot_completed=1 && property:ro.build.type=user
write /proc/sys/kernel/modules_disabled 1
on init && property:ro.boot.revision=EVM
setprop ro.boot.hardware.revision 0.5
on init && property:ro.boot.revision=EVT0
setprop ro.boot.hardware.revision 0.6
on init && property:ro.boot.revision=EVT1
setprop ro.boot.hardware.revision 0.7
on init && property:ro.boot.revision=EVT2
setprop ro.boot.hardware.revision 0.8
on init && property:ro.boot.revision=DVT
setprop ro.boot.hardware.revision 1.0
on init && property:ro.boot.revision=MP0 # PVT
setprop ro.boot.hardware.revision 1.0
on init && property:ro.boot.revision=MP1
setprop ro.boot.hardware.revision 1.0
on boot && property:ro.build.type=userdebug
write /sys/class/uio/uio1/device/rtel/rtel 1
on property:persist.vendor.charge.stop.level=* && property:sys.all.modules.ready=1
write /sys/module/htc_battery/parameters/charge_stop_level ${persist.vendor.charge.stop.level}
on property:persist.vendor.charge.start.level=* && property:sys.all.modules.ready=1
write /sys/module/htc_battery/parameters/charge_start_level ${persist.vendor.charge.start.level}
# Write the dark theme magic to /misc partition. Offset 12360 (0x3048) in vendor space is
# effectively offset 14408 (0x3848) in /misc partition.
service vendor.darkboot /vendor/bin/misc_writer --set-dark-theme --override-vendor-space-offset 12360
disabled
oneshot
# Set dark boot flag when the device is provisioned.
on property:persist.sys.device_provisioned=1
start vendor.darkboot