Created
August 23, 2020 16:35
-
-
Save OzTamir/a15ef324d3fdced3a5db9ea57f8bbba6 to your computer and use it in GitHub Desktop.
Launch "Sport 5" channel on CellcomTV on MiBox
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
UP=19 | |
DOWN=20 | |
LEFT=21 | |
RIGHT=22 | |
# Replace "XX:XX:XX:XX:XX:XX" with the MAC address of you Mi Box | |
IP=$(arp -n | grep "XX:XX:XX:XX:XX:XX" | cut -d " " -f1) | |
echo "Connecting..." | |
adb connect $IP | |
adb devices -l | |
echo "Home" | |
adb shell input keyevent HOME | |
sleep 1 | |
for i in `seq 5`; do echo "Up"; adb shell input keyevent $UP; done | |
echo "Down" | |
adb shell input keyevent $DOWN | |
for i in `seq 6`; do echo "Left"; adb shell input keyevent $LEFT; done | |
echo "Enter" | |
adb shell input keyevent ENTER | |
sleep 1 | |
echo "Down" | |
adb shell input keyevent $DOWN | |
echo "Enter" | |
adb shell input keyevent ENTER | |
echo "Reached CellcomTV" | |
for i in `seq 13`; do echo "Up"; adb shell input keyevent $UP; done | |
for i in `seq 15`; do echo "Right"; adb shell input keyevent $RIGHT; done | |
for i in `seq 2`; do echo "Left"; adb shell input keyevent $LEFT; done | |
echo "Enter" | |
adb shell input keyevent ENTER | |
echo "Channels Screen" | |
echo "Going Into Sport5" | |
for i in `seq 5`; do echo "Down"; adb shell input keyevent $DOWN; done | |
echo "Enter" | |
adb shell input keyevent ENTER | |
echo "Done" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment