Created
August 8, 2016 01:25
-
-
Save ibnux/dca0168adfec4e0d4ce40f1b9bfa4049 to your computer and use it in GitHub Desktop.
simple pokemon go bot for rooted android
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# set an infinite loop | |
echo "pokestop @ alun2 serang" | |
echo "10 seconds before started" | |
while : | |
do | |
echo "tap left pokestop x=200 y=800" | |
input touchscreen tap 200 800 | |
echo "sleep 2 second" | |
sleep 2 | |
echo "swipe from x=10 to x=700" | |
input touchscreen swipe 10 700 700 700 | |
echo "sleep 1 second" | |
sleep 1 | |
echo "swipe" | |
input touchscreen swipe 10 700 700 700 | |
echo "sleep 1 second" | |
sleep 1 | |
echo "swipe" | |
input touchscreen swipe 10 700 700 700 | |
echo "sleep 1 second" | |
sleep 1 | |
echo "escape" | |
input keyevent 111 | |
echo "sleep 2 second" | |
sleep 2 | |
echo "tap right pokestop at x=500 y=800" | |
input touchscreen tap 500 800 | |
echo "sleep 2 second" | |
sleep 2 | |
echo "swipe" | |
input touchscreen swipe 10 700 700 700 | |
echo "sleep 1 second" | |
sleep 1 | |
echo "swipe" | |
input touchscreen swipe 10 700 700 700 | |
echo "sleep 1 second" | |
sleep 1 | |
echo "swipe" | |
input touchscreen swipe 10 700 700 700 | |
echo "sleep 1 second" | |
sleep 1 | |
echo "escape" | |
input keyevent 111 | |
echo "sleep 5 minutes 30 second" | |
sleep 330 | |
done |
Tap screen:
input touchscreen tap X Y
Swipe:
input touchscreen swipe fromX fromY toX toY
Input key:
input keyevent keycode
https://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_ESCAPE
Delay:
sleep second(s)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You must set your phone to sleep after 10minutes
Save above script to /sdcard/pokestop.sh
Install Android Terminal
Open pokemon go
Find nearest 2 pokestop
Positioning your character
As this image
http://m.imgur.com/Ks6C0Ks
Click home button to hide pokemon go
Open Terminal
Run "su" command
Give root access
cd /sdcard/
chmod 777 pokestop.sh
sh pokestop.sh
Escape and open pokemon go
If it success
You can sleep or wait until battery full.