Files
project-iphone-unlock-app/tools/capture_ethernet_tethering_log.bat

19 lines
690 B
Batchfile
Raw Normal View History

2026-10-29 13:29:14 +06:00
@echo off
setlocal
where adb >nul 2>&1
if errorlevel 1 (
echo ERROR: adb.exe was not found. Use Android Studio Terminal or install Android platform-tools.
pause
exit /b 1
)
adb start-server
echo Confirm the phone is connected and authorized:
adb devices
echo.
echo Clearing old Logcat entries. After the command starts, press Start Sharing in the app.
echo Press Ctrl+C after the error appears; the log will be saved to ethernet-tethering-log.txt.
adb logcat -c
adb logcat -v time SystemTetheringManager:I TetheringCapabilityChecker:I MainViewModel:I EthernetMonitor:I AndroidRuntime:E '*:S' > "%~dp0ethernet-tethering-log.txt"
echo Log saved to %~dp0ethernet-tethering-log.txt
pause