


model=$( getprop ro.product.model | cut -d"-" -f2 )
빌드프롭에서 모델명을 뽑습니다.
tlist=$( find /sdcard /storage/extSdCard -type f -iname "*.tar" | grep -i $model )
모델명이 들어간 tar 파일을 내장,외장 메모리에서 검색합니다.
나머지는 스크립트가 알아서 ^^*
tar -> cache.img
cache.img -> ext4.cache.img
img mount
extract recovery/sec_csc.zip
sec_csc.zip -> feature.xml
** 7za 바이너리 필수입니다.
** simg2img 바이너리 첨부합니다. /system/xbin 에 755 퍼미션으로 넣어주세요.