1on init
2    # Modem temperature driver
3    chown radio system /sys/devices/platform/cp-tm1/cp_temp
4
5on post-fs-data
6    # Log data folder
7    mkdir /data/vendor 0771 radio system
8    mkdir /data/vendor/log 0771 radio system
9    mkdir /data/vendor/log/cbd 0771 radio system
10    mkdir /data/vendor/log/rfsd 0771 radio system
11    mkdir /data/vendor/slog 0771 system system
12
13    # Modem extended log folder
14    mkdir /data/vendor/radio/extended_logs 0770 radio system
15
16    # Modem MDS log folder
17    mkdir /data/vendor/radio/mds 0771 radio system
18
19    # Modem OTA UECap folder
20    mkdir /data/vendor/radio/ota_uecap 0773 radio system
21
22    # Unzipped modem images folder
23    mkdir /data/vendor/radio/image 0771 radio system
24
25    # Modem stat folder
26    mkdir /data/vendor/modem_stat 0771 radio system
27    write /data/vendor/modem_stat/debug.txt ""
28    chown radio system /data/vendor/modem_stat/debug.txt
29    chmod 0664 /data/vendor/modem_stat/debug.txt
30
31    # Modem replay folder
32    mkdir /mnt/vendor/modem_userdata/replay 0775 radio system
33
34on fs
35    # Mount modem partition
36    mount_all /vendor/etc/fstab.modem --early
37
38    restorecon_recursive /mnt/vendor/efs
39    chown radio system /mnt/vendor/efs
40    restorecon_recursive /mnt/vendor/efs_backup
41    chown radio system /mnt/vendor/efs_backup
42    restorecon_recursive /mnt/vendor/modem_userdata
43    chown radio system /mnt/vendor/modem_userdata
44    restorecon_recursive /mnt/vendor/modem_img
45    restorecon_recursive /mnt/vendor/persist/modem
46