1on fs 2 wait /dev/block/platform/soc/${ro.boot.bootdevice} 3 symlink /dev/block/platform/soc/${ro.boot.bootdevice} /dev/block/bootdevice 4 5on init 6 setprop sys.usb.configfs 1 7 # Don't lose recovery logs- keep warm reset for coming out of recovery. 8 write /sys/module/msm_poweroff/parameters/warm_reset 1 9 # Enable thermal mitigation 10 write /sys/devices/virtual/thermal/tz-by-name/backup-charge/mode enabled 11 12 # Block layer tuning: discard chunk size up to 128MB 13 # Otherwise, contiguous discards can be merged 14 write /sys/block/sda/queue/discard_max_bytes 134217728 15 16on early-init 17 # Wait to make sure we do not try to talk too early to the display 18 wait /sys/class/drm/card0 19