Skip to content

Commit

Permalink
Create adb-debug-mac.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
cagnulein committed Mar 20, 2024
1 parent 753739c commit 6f35cd3
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions InstallPackage/adb-debug-mac.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
#!/bin/bash

# Assumes Android treadmill USB debugging is turned on

read -p "Enter treadmill IP address: " TMIP

ping -c 4 $TMIP
sleep 5

./adb disconnect
./adb kill-server
./adb connect $TMIP
./adb devices -l
sleep 5

# pull live logcat and QZ Companion logcat
./adb logcat -d > logcat.txt
./adb pull /sdcard/logcat.log

# pull all wolflogs
./adb pull /sdcard/.wolflogs/
./adb pull /sdcard/eru/

echo.
echo Debug files generated - logcat.log, logcat.txt, and \.wolflogs
echo.

pause

0 comments on commit 6f35cd3

Please sign in to comment.