Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/system/bin/sh
- MARK=/data/local/symbol_thirdpart_apks_installed
- PKGS=/system/preinstall/
- KODI=/storage/emulated/0/
- if [ ! -e $MARK ]; then
- echo "booting the first time, so pre-install some APKs."
- busybox find $PKGS -name "*\.apk" -exec sh /system/bin/pm install {} \;
- busybox tar xzf $PKGS/apps.tar.gz -C /tmp/apps
- busybox find /tmp/apps -name "*\.apk" -exec sh /system/bin/pm install {} \;
- busybox rm -rf /tmp/apps
- touch $MARK
- echo "OK, installation complete."
- if [ ! -e $KODI ]; then
- mkdir -p /storage/emulated/legacy/Android/data/org.xbmc.kodi
- fi
- busybox tar xzf $PKGS/kodipack.tar.gz -C $KODI
- busybox reboot
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement