2
0
mirror of https://gitlab.com/Nanolx/NanoDroid synced 2024-11-07 15:20:36 +00:00
NanoDroid/FDroid/META-INF/com/google/android/update-binary
Christopher Roy Bratusek 328c6aa8d8 change paths
2019-07-21 21:33:28 +02:00

44 lines
558 B
Bash

#!/sbin/sh
umask 022
OUTFD=${2}
ZIP=${3}
ZIPDIR=$(dirname "${ZIP}")
MODID=NanoDroid_FDroid
mkdir -p /dev/tmp
unzip -oq "${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_progress 1.0 0
show_banner
set_progress 0.1
unpack_zip
mount_partitions
detect_arch
setup_busybox
get_cfg_setup
detect_mode
set_progress 0.5
install_fdroid
set_progress 0.9
nanodroid_finalize
set_progress 1.0
exit 0