-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathupdate.sh
17 lines (17 loc) · 863 Bytes
/
update.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/bash
device=$1
version=$2
./adb connect $device
type=$(./adb -s $device shell uname -m)
versioninfo=$(./adb -s $device shell dumpsys package com.nianticlabs.pokemongo | grep versionName | head -n1 | sed 's/ *versionName=//')
if [ "$version" = "$versioninfo" ]; then
./adb disconnect $device
elif [ "$type" = "aarch64" ]; then
./adb -s $device install -r -d ./apks/downloads/pogo64.apk
./adb -s $device shell 'am startservice com.pokemod.atlas/com.pokemod.atlas.services.MappingService'
echo "$device is done"
else
./adb -s $device install -r -d ./apks/downloads/pogo32.apk
./adb -s $device shell 'am startservice com.pokemod.atlas/com.pokemod.atlas.services.MappingService'
echo "$device is done"
fi