2
0
mirror of https://gitlab.com/Nanolx/NanoDroid synced 2024-11-09 19:10:30 +00:00
NanoDroid/microG/META-INF/com/google/android/update-binary
2018-04-22 20:47:14 +02:00

52 lines
674 B
Bash

#!/sbin/sh
umask 022
OUTFD=${2}
ZIP=${3}
ZIPDIR=$(dirname "${ZIP}")
MODID=NanoDroid_microG
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_progress 1.0 0
show_banner
set_progress 0.1
mount_partitions
unpack_zip
detect_arch
get_cfg_setup
get_cfg_overlay
detect_mode
set_progress 0.2
install_nanodroidscripts
install_microg
set_progress 0.6
install_mapsv1
install_store
set_progress 0.75
install_gsync
install_swipe
set_progress 0.9
nanodroid_finalize
set_progress 1.0
exit 0