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/Full/META-INF/com/google/android/update-binary

61 lines
777 B
Bash

#!/sbin/sh
umask 022
OUTFD=${2}
ZIP=${3}
ZIPDIR=$(dirname "${ZIP}")
MODID=NanoDroid
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
#check_space
show_progress 1.0 0
show_banner
set_progress 0.1
unpack_zip
mount_partitions
detect_arch
setup_busybox
set_progress 0.2
get_cfg_setup
get_cfg_apps
get_cfg_overlay
detect_mode
set_progress 0.3
install_nanodroidscripts
install_microg
install_mapsv1
install_fdroid
install_store
set_progress 0.5
install_apps
set_progress 0.75
install_initd
install_bash
install_shell_utils
set_progress 0.9
nanodroid_finalize
set_progress 1.0
exit 0