1on late-fs 2 # boot time fs tune 3 write /sys/block/sda/queue/iostats 0 4 write /sys/block/sda/queue/scheduler cfq 5 write /sys/block/sda/queue/iosched/slice_idle 0 6 write /sys/block/sda/queue/read_ahead_kb 2048 7 write /sys/block/sda/queue/nr_requests 256 8 write /sys/block/sde/queue/iostats 0 9 write /sys/block/sde/queue/scheduler cfq 10 write /sys/block/sde/queue/iosched/slice_idle 0 11 write /sys/block/sde/queue/read_ahead_kb 2048 12 write /sys/block/sde/queue/nr_requests 256 13 write /sys/block/dm-0/queue/read_ahead_kb 2048 14 write /sys/block/dm-1/queue/read_ahead_kb 2048 15 16on property:sys.boot_completed=1 17 # end boot time fs tune 18 write /sys/block/sda/queue/read_ahead_kb 128 19 write /sys/block/sda/queue/nr_requests 128 20 write /sys/block/sda/queue/iostats 1 21 write /sys/block/sde/queue/read_ahead_kb 128 22 write /sys/block/sde/queue/nr_requests 128 23 write /sys/block/sde/queue/iostats 1 24 write /sys/block/dm-0/queue/read_ahead_kb 128 25 write /sys/block/dm-1/queue/read_ahead_kb 128 26 27on boot 28 # Allow ftm4 autotune from adb shell 29 chown system shell /sys/devices/virtual/input/ftm4_touch/autotune 30 31on init && property:ro.boot.revision=* 32 setprop ro.boot.hardware.revision ${ro.boot.revision} 33 34on property:init.svc.vendor.fps_hal=running && property:ro.boot.revision=rev_0 35 stop vendor.fps_hal 36 37on property:sys.all.modules.ready=1 38 # Update touch firmware if required 39 write /sys/devices/virtual/input/ftm4_touch/check_fw 1 40 41on property:ro.boot.hardware.display=2-1 42 setprop sys.display.low_persistence_mode_brightness 255 43 44on property:persist.vendor.charge.stop.level=* && property:sys.all.modules.ready=1 45 write /sys/module/lge_battery/parameters/charge_stop_level ${persist.vendor.charge.stop.level} 46 47on property:persist.vendor.charge.start.level=* && property:sys.all.modules.ready=1 48 write /sys/module/lge_battery/parameters/charge_start_level ${persist.vendor.charge.start.level} 49 50on late-init && property:ro.boot.revision=rev_a 51 setprop vendor.thermal.config thermal_info_config_evt.json 52 53on late-init && property:ro.boot.revision=rev_b 54 setprop vendor.thermal.config thermal_info_config_evt.json 55 56# Write the dark theme magic to /misc partition. 57service vendor.theme_set /vendor/bin/misc_writer --set-dark-theme 58 disabled 59 oneshot 60 61# Clear the dark theme magic in /misc partition. 62service vendor.theme_clear /vendor/bin/misc_writer --clear-dark-theme 63 disabled 64 oneshot 65 66# Set the dark boot flag on dark mode (UiModeManager.MODE_NIGHT_YES == 2). 67on property:persist.sys.theme=2 68 start vendor.theme_set 69 70# Clear the dark theme flag on light mode (UiModeManager.MODE_NIGHT_NO == 1) or auto mode 71# (UiModeManager.MODE_NIGHT_AUTO == 0). 72on property:persist.sys.theme=1 73 start vendor.theme_clear 74 75on property:persist.sys.theme=0 76 start vendor.theme_clear 77