1on charger
2    ## ensure correct calibration file permissions
3    chown root system /persist/sensorcal.json
4    chmod 0640 /persist/sensorcal.json
5    ## Update SH FW if needed
6    start flash-sh-fw
7
8on post-fs
9    ## ensure correct calibration file permissions
10    chown root system /persist/sensorcal.json
11    chmod 0640 /persist/sensorcal.json
12    ## Update SH FW if needed
13    start flash-sh-fw
14
15service flash-sh-fw /vendor/bin/sensortool.angler -f /vendor/firmware/nano4x1.bin
16    oneshot
17    disabled
18    group system
19