import init.${ro.hardware}.${ro.boot.soc_type}.main.rc


on post-fs-data
    # create for OP-TEE test
    mkdir /data/tee 0660 media media
    mkdir /data/tee/optee_armtz 0660 media media
    restorecon_recursive /data/tee


on boot
    # optee device
    chmod 0660 /dev/tee0
    chown media media /dev/tee0

    chmod 0660 /dev/teepriv0
    chown media media /dev/teepriv0


service tee_supplicant /system/bin/tee-supplicant
    class main
    user root
    group shell
    oneshot

