summaryrefstree
path: root/system/init.recovery.hardware.rc
blob: 467568b39376870b480b9bdfd944f620edbf3a97 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
on init
    #pstore/ramoops previous console log
    mount pstore pstore /sys/fs/pstore
    chown system log /sys/fs/pstore/console-ramoops
    chmod 0444 /sys/fs/pstore/console-ramoops
    chown system log /sys/fs/pstore/console-ramoops-0
    chmod 0444 /sys/fs/pstore/console-ramoops-0
    chown system log /sys/fs/pstore/pmsg-ramoops-0
    chmod 0444 /sys/fs/pstore/pmsg-ramoops-0

on property:vendor.kpdpwr.reset.enabled=0
    write /sys/devices/soc/800f000.qcom,spmi/spmi-0/spmi0-00/800f000.qcom,spmi:qcom,pm660@0:qcom,power-on@800/kpdpwr_reset 0

on property:vendor.kpdpwr.reset.enabled=1
    write /sys/devices/soc/800f000.qcom,spmi/spmi-0/spmi0-00/800f000.qcom,spmi:qcom,pm660@0:qcom,power-on@800/kpdpwr_reset 1