You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
NanoDroid/F-Droid/META-INF/com/google/android/update-binary

39 lines
479 B
Bash

#!/sbin/sh
umask 022
OUTFD=${2}
ZIP=${3}
ZIPDIR=$(dirname "${ZIP}")
MODID=NanoDroid_FDroid
umount /system &>/dev/null
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
detect_bootmode
detect_outfd
show_banner
mount_partitions
unpack_zip
detect_arch
get_cfg_setup
detect_mode
install_fdroid
nanodroid_finalize
exit 0