summaryrefslogtreecommitdiff
path: root/init.angler.sensorhub.rc
blob: b2e172564b7caa96fbc020468433bac2c2778fb1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
on charger
    ## ensure correct calibration file permissions
    chown root system /persist/sensorcal.json
    chmod 0640 /persist/sensorcal.json
    ## Update SH FW if needed
    start flash-sh-fw

on post-fs
    ## ensure correct calibration file permissions
    chown root system /persist/sensorcal.json
    chmod 0640 /persist/sensorcal.json
    ## Update SH FW if needed
    start flash-sh-fw

service flash-sh-fw /vendor/bin/sensortool.angler -f /vendor/firmware/nano4x1.bin
    oneshot
    disabled
    group system