2019-03-11 23:18:27 +00:00
|
|
|
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
|
|
|
|
|
|
2017-05-10 16:28:53 -07:00
|
|
|
on property:sys.boot_completed=1 && property:ro.build.type=user
|
|
|
|
|
write /proc/sys/kernel/modules_disabled 1
|
2017-08-09 22:04:19 -07:00
|
|
|
|
|
|
|
|
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
|
2017-09-19 12:11:14 +08:00
|
|
|
|
|
|
|
|
on boot && property:ro.build.type=userdebug
|
|
|
|
|
write /sys/class/uio/uio1/device/rtel/rtel 1
|
2018-03-26 17:27:30 -07:00
|
|
|
|
2018-04-03 16:20:04 -07:00
|
|
|
on property:persist.vendor.charge.stop.level=* && property:sys.all.modules.ready=1
|
2018-03-26 17:27:30 -07:00
|
|
|
write /sys/module/htc_battery/parameters/charge_stop_level ${persist.vendor.charge.stop.level}
|
|
|
|
|
|
2018-04-03 16:20:04 -07:00
|
|
|
on property:persist.vendor.charge.start.level=* && property:sys.all.modules.ready=1
|
2018-03-26 17:27:30 -07:00
|
|
|
write /sys/module/htc_battery/parameters/charge_start_level ${persist.vendor.charge.start.level}
|
2019-06-03 15:30:17 -07:00
|
|
|
|
|
|
|
|
# Write the dark theme magic (`theme-dark`, or 0x7468656d652d6461726b in hex string) to /misc
|
|
|
|
|
# partition. Offset 12360 (0x3048) in vendor space is effectively offset 14408 (0x3848) in /misc
|
|
|
|
|
# partition.
|
|
|
|
|
service vendor.darkboot /vendor/bin/misc_writer --vendor-space-offset 12360 --hex-string 0x7468656d652d6461726b
|
|
|
|
|
disabled
|
|
|
|
|
oneshot
|
|
|
|
|
|
|
|
|
|
# Clear the 10-byte dark theme magic in /misc partition. Offset 0 in vendor space is effectively
|
|
|
|
|
# offset 2048 in /misc partition.
|
|
|
|
|
service vendor.darkboot_clear /vendor/bin/misc_writer --vendor-space-offset 12360 --hex-string 0x00000000000000000000
|
|
|
|
|
disabled
|
|
|
|
|
oneshot
|
|
|
|
|
|
|
|
|
|
# Set the dark boot flag on dark mode (UiModeManager.MODE_NIGHT_YES == 2).
|
|
|
|
|
on property:persist.sys.theme=2
|
|
|
|
|
start vendor.darkboot
|
|
|
|
|
|
|
|
|
|
# Clear the dark theme flag on light mode (UiModeManager.MODE_NIGHT_NO == 1) or auto mode
|
|
|
|
|
# (UiModeManager.MODE_NIGHT_AUTO == 0).
|
|
|
|
|
on property:persist.sys.theme=1
|
|
|
|
|
start vendor.darkboot_clear
|
|
|
|
|
|
|
|
|
|
on property:persist.sys.theme=0
|
|
|
|
|
start vendor.darkboot_clear
|