summaryrefslogtreecommitdiff
path: root/init.recovery.device.rc
blob: 7df16ec1b511cda913f4b3f11e37cc83d947e991 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
on fs
    wait /dev/block/platform/soc/${ro.boot.bootdevice}
    symlink /dev/block/platform/soc/${ro.boot.bootdevice} /dev/block/bootdevice

on init
    setprop sys.usb.configfs 1
    # Don't lose recovery logs- keep warm reset for coming out of recovery.
    write /sys/module/msm_poweroff/parameters/warm_reset 1
    # Enable thermal mitigation
    write /sys/devices/virtual/thermal/tz-by-name/backup-charge/mode enabled

on early-init
    # Wait to make sure we do not try to talk too early to the display
    wait /sys/class/drm/card0