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

48 lines
660 B
Bash

#!/sbin/sh
umask 022
OUTFD=${2}
ZIP=${3}
mkdir /dev/tmp
unzip -oq "${ZIP}" CommonPatcher -d "/dev/tmp"
if [ ! -f /dev/tmp/CommonPatcher ]; then
echo " !! failed to load CommonPatcher"
exit 1
else
source "/dev/tmp/CommonPatcher"
fi
detect_bootmode
detect_outfd
show_banner
setup_patcher
setup_busybox
mount_partitions
detect_sdk
detect_arch
detect_mode
if check_fake_package_signature; then
error " ROM has native signature spoofing already!"
fi
detect_odex
patch_services
install_services
install_addond
${BOOTMODE} || umount_partitions
ui_print " "
ui_print " > Done!"
ui_print " "
ui_print "Thanks for using NanoDroid"
ui_print " "
exit 0