preinstall.sh - исходный текст
#!/system/bin/sh
MARK=/data/local/pre_apks_installed
PKGS=/system/oranth/preinstall/
#echo "
Preinstall
"
if [ ! -e $MARK ]; then
# default 24-hour format
#settings put system time_12_24 12
settings put system time_12_24 24
busybox find $PKGS -name "*\.apk" -exec sh /system/bin/pm install -g {} \;
/system/bin/xapk_installer.sh
touch $MARK
sync
fi
#echo "
End Preinstall
"