2
0
mirror of https://gitlab.com/Nanolx/NanoDroid synced 2024-11-07 15:20:36 +00:00
NanoDroid/F-Droid/META-INF/com/google/android/update-binary

44 lines
569 B
Plaintext
Raw Normal View History

2018-01-23 20:11:52 +00:00
#!/sbin/sh
umask 022
OUTFD=${2}
ZIP=${3}
ZIPDIR=$(dirname "${ZIP}")
MODID=NanoDroid_FDroid
mkdir /dev/tmp
unzip -o "${ZIP}" CommonInstaller -d "/dev/tmp"
if [ ! -f /dev/tmp/CommonInstaller ]; then
echo " !! failed to load Common Installer"
exit 1
else
source "/dev/tmp/CommonInstaller"
fi
2018-01-23 20:11:52 +00:00
detect_bootmode
detect_outfd
show_progress 1.0 0
2018-01-23 20:11:52 +00:00
show_banner
set_progress 0.1
2018-01-23 20:11:52 +00:00
2018-02-25 13:26:55 +00:00
mount_partitions
2018-01-23 20:11:52 +00:00
unpack_zip
detect_arch
${BOOTMODE} || setup_busybox
2018-01-23 20:11:52 +00:00
get_cfg_setup
detect_mode
set_progress 0.5
2018-01-23 20:11:52 +00:00
install_fdroid
set_progress 0.9
2018-01-23 20:11:52 +00:00
nanodroid_finalize
set_progress 1.0
2018-01-23 20:11:52 +00:00
exit 0