25 lines
508 B
Bash
Executable File
25 lines
508 B
Bash
Executable File
#!/bin/bash
|
|
|
|
IFS=$'\n'
|
|
set -f
|
|
device="$1"
|
|
i=0
|
|
for code in $(cat amoe.txt); do
|
|
echo "Navigating menus..."
|
|
adb -s "$device" shell input tap 540 2150
|
|
sleep 1
|
|
adb -s "$device" shell input tap 360 2150
|
|
sleep 1
|
|
echo "Pasting $code."
|
|
adb -s "$device" shell input text "$code"
|
|
sleep 1
|
|
adb -s "$device" shell input tap 540 1300
|
|
i=$((i+1))
|
|
if [ $(( $i % 10 )) -eq 0 ]; then
|
|
echo -n "Enter next device's IP: "
|
|
read device
|
|
else
|
|
sleep 4
|
|
fi
|
|
done
|