Official website download ADB tool download
URL: https://adbdownload.com/
1. Install JDK (It doesn’t matter if you don’t install it, it’s not tested) and ADB (V1.0.31 or above), there are many guidance methods on the Internet, so I’ll repeat them here.
2. Add the ADB path to the PATH environment variable. In this way, ADB commands can be called anywhere. If the location of adb.exe is c:\adb\adb.exe, add c:\adb to the path.
Be sure to add configuration environment variables
Copy the following command and make it into a logcat.bat file. logcat.bat can be placed anywhere (such as: desktop). log
@ECHO OFF
for /f "tokens=2 delims==" %%a in ('wmic OS Get localdatetime /value') do set "dt=%%a"
SET timeStamp=%dt:~0,4%-%dt:~4,2%-%dt:~6,2%_%dt:~8,2%-%dt:~10,2%-%dt:~12,2%
SET mutID=_mut
@ECHO ON
adb logcat -v time > .\"%mutID%_%timeStamp%_logcat.log"
pause
Click Run Ctrl+C to stop the file in the current directory
Need to connect mobile usb or wifi
Extension:
adb logcat -v time
Here you can switch other adb commands