done
This commit is contained in:
18
tools/capture_ethernet_tethering_log.bat
Normal file
18
tools/capture_ethernet_tethering_log.bat
Normal file
@@ -0,0 +1,18 @@
|
||||
@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
|
||||
Reference in New Issue
Block a user