| MTK side: |
| 1.encrypt library on platform with command "secure_program enc [path/to/library] [path/to/encryptedlibrary] |
| 2.put encryptedlibrary in folder "files" |
| |
| Customer side: |
| 1.put encryptedlibrary in folder "files" after receiving encryptedlibrary |
| 2.make sure or modify "EncryptedLibraryName" value to library name in encryptlibrary-init.bb |
| 4.add encryptlibrary-init in image: |
| eg: add encryptlibrary-init in section "IMAGE_INSTALL_append" of meta/meta-mediatek-mt8516/recipes-audio/images/mtk-image-aud-8516.bb |
| 5.at bootup time, the encryptedlibrary will be decrypted and put in /tmp |