Skip to content

Commit

Permalink
new pogo download link
Browse files Browse the repository at this point in the history
thanks jab / avi
  • Loading branch information
krzee authored Nov 19, 2019
1 parent 428c110 commit 2ff82a7
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions update_mad.sh
Original file line number Diff line number Diff line change
@@ -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(){
Expand Down Expand Up @@ -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
Expand All @@ -68,11 +68,11 @@ function print_help(){
echo "install:"
echo "su"
echo "mount -o rw,remount /system"
echo "cp /<SCRIPTPATH>/update_mad.sh /system/bin/update_mad.sh"
echo "chmod 555 /system/bin/update_mad.sh"
echo "cp /<SCRIPTPATH>/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 <DEVICEIP>:5555 shell su -c \"update_mad.sh <options>\""
echo "just run: /usr/bin/adb -s <DEVICEIP>:5555 shell su -c \"update_mad <options>\""
echo ""
echo "Options:"
echo " -r (Update RemoteGPSController)"
Expand Down

0 comments on commit 2ff82a7

Please sign in to comment.