19 lines
690 B
Batchfile
19 lines
690 B
Batchfile
@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
|