summaryrefstree
path: root/vendor/etc/init/init.honor.thermal.rc
blob: 36c1b2f5bf58599614dc5fdd87fc7fbda0280315 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
on boot
    chown system system /sys/class/hn_thermal/temp/ambient
    chown system system /sys/class/hn_thermal/temp/fold_state

    chown system system /sys/class/hn_thermal/ipa/cur_power
    chmod 0664 /sys/class/hn_thermal/ipa/cur_power

    chown system system /sys/class/hn_thermal/ipa/target_power
    chmod 0664 /sys/class/hn_thermal/ipa/target_power

    chown system system /sys/class/hn_thermal/ipa/mode
    chmod 0664 /sys/class/hn_thermal/ipa/mode

    chown system system /sys/class/hn_thermal/ipa/ipa_switch
    chmod 0664 /sys/class/hn_thermal/ipa/ipa_switch

    chown system system /sys/class/hn_thermal/ipa/perf_power
    chmod 0664 /sys/class/hn_thermal/ipa/perf_power

    chown system system /sys/class/hn_thermal/ipa/limit_power
    chmod 0664 /sys/class/hn_thermal/ipa/limit_power

    chown system system /sys/class/hn_thermal/ipa/issued_power
    chmod 0664 /sys/class/hn_thermal/ipa/issued_power

    chown system system /sys/class/hn_thermal/ipa/weight
    chmod 0664 /sys/class/hn_thermal/ipa/weight

    chown system system /sys/class/hn_thermal/ipa/cur_enable
    chmod 0664 /sys/class/hn_thermal/ipa/cur_enable

    chown system system /sys/class/hn_thermal/temp/shell_back/temp
    chmod 0664 /sys/class/hn_thermal/temp/shell_back/temp
    chown system system /sys/class/hn_thermal/temp/shell_frame/temp
    chmod 0664 /sys/class/hn_thermal/temp/shell_frame/temp
    chown system system /sys/class/hn_thermal/temp/shell_front/temp
    chmod 0664 /sys/class/hn_thermal/temp/shell_front/temp

on property:vendor.all.modules.ready=1
    setprop sys.bms_limit_mode normal