From 2ff82a7182a245951b4ad0c3b215c36e4274b2a0 Mon Sep 17 00:00:00 2001 From: krzee <4845550+krzee@users.noreply.github.com> Date: Tue, 19 Nov 2019 12:35:42 -0400 Subject: [PATCH] new pogo download link thanks jab / avi --- update_mad.sh | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/update_mad.sh b/update_mad.sh index 853d363..843ab52 100644 --- a/update_mad.sh +++ b/update_mad.sh @@ -1,13 +1,13 @@ #!/system/bin/sh # update mad -# version 2.2 +# version 2.3 # created by GhostTalker # # adb connect %1:5555 # adb -s %1:5555 push update_mad.sh sdcard # adb -s %1:5555 shell su -c "mount -o rw,remount /system" -# adb -s %1:5555 shell su -c "cp /sdcard/update_mad.sh /system/bin/update_mad.sh" -# adb -s %1:5555 shell su -c "chmod 555 /system/bin/update_mad.sh" +# adb -s %1:5555 shell su -c "cp /sdcard/update_mad.sh /system/bin/update_mad" +# adb -s %1:5555 shell su -c "chmod 555 /system/bin/update_mad" # adb -s %1:5555 shell su -c "mount -o ro,remount /system" function stop_mad(){ @@ -52,7 +52,7 @@ function update_pokemon(){ /system/bin/rm -f /sdcard/Download/pogo.apk echo "Download APK PokemonGo" cd /sdcard/Download/ - /system/bin/curl -L -o pogo.apk -k -s "$(curl -k -s "https://m.apkpure.com$(curl -k -s "https://m.apkpure.com$(curl -k -s 'https://m.apkpure.com/pokemon-go/com.nianticlabs.pokemongo/versions'|awk -F'"' '/Download Pokémon GO v/{print $4}'|head -n1)"|grep -A10 armeabi-v7a|awk -F'"' '/Download Pokémon GO v/{print $4}'|head -n1)"|awk -F'"' '/click here/{print $12}')" + /system/bin/curl -s -k -L -o /sdcard/pogo.apk "https://www.apkmirror.com/wp-content/themes/APKMirror/download.php?id=$(curl -s -k -L 'https://www.apkmirror.com/apk/niantic-inc/pokemon-go/variant-%7B%22arches_slug%22%3A%5B%22armeabi-v7a%22%5D%7D/'| grep data-postid|head -n1|awk -F'"' '{print $14}')" echo "Install APK PokemonGo" /system/bin/pm install -r /sdcard/Download/pogo.apk echo @@ -68,11 +68,11 @@ function print_help(){ echo "install:" echo "su" echo "mount -o rw,remount /system" - echo "cp //update_mad.sh /system/bin/update_mad.sh" - echo "chmod 555 /system/bin/update_mad.sh" + echo "cp //update_mad.sh /system/bin/update_mad" + echo "chmod 555 /system/bin/update_mad" echo "mount -o ro,remount /system" echo "" - echo "just run: /usr/bin/adb -s :5555 shell su -c \"update_mad.sh \"" + echo "just run: /usr/bin/adb -s :5555 shell su -c \"update_mad \"" echo "" echo "Options:" echo " -r (Update RemoteGPSController)"