1on post-fs
2## ensure correct calibration file permissions
3    chown root system /mnt/vendor/persist/sensorcal.json
4    chmod 0640 /mnt/vendor/persist/sensorcal.json
5    start vendor.flash-nanohub-fw
6
7on post-fs-data
8    mkdir /data/vendor/sensor
9    chown root system /data/vendor/sensor
10    chmod 0770 /data/vendor/sensor
11
12service vendor.flash-nanohub-fw /vendor/bin/nanoapp_cmd download
13    oneshot
14    disabled
15    user root
16    group system
17
18on post-fs-data
19    mkdir /data/system/nanohub_lock/
20    restorecon /data/system/nanohub_lock
21