@echo off
adb root
adb remount
rem clear ylog
adb shell ylogctl clear
rem get day time
set Day=%date:~0,10%
set Day=%Day:/=_%
rem get time now
set hour=%time:~0,2%
if %hour% lss 10 (
set hour=%time:~1,1%
) else (
set hour=%time:~0,2%
)
set min=%time:~3,2%
if not exist %Day%_%hour%_%min% (
mkdir %Day%_%hour%_%min%
echo %Day%_%hour%_%min%
)
cd %Day%_%hour%_%min%
rem get ylog path
for /F %%i in ('adb shell ylogctl rootdir') do (set ylogpath=%%i)
echo ylogpath=%ylogpath%
echo -e "do something and press Enter to finish\n"
set /p answer=
adb pull %ylogpath% .
cd ap
python analyzer.python
pause
04-05
1002
02-27
9840
07-20
4131
01-30
1206
09-28