运行结果
===unknown Phh-Treble with GApps (CQ3001HFUG)===
ACTIVITY com.android.launcher3/.Launcher 64550c8 pid=2573
FINDSTR: Line 4 is too long.- @echo off
- ::adb临时加入到path环境变量
- set My_PATH=%~dp0
- set PATH=%PATH%;%My_PATH%
- @for /f "skip=1 usebackq" %%i in (`adb devices`) do call:print_deviceInfo %%i
- pause
- goto :eof
-
- :print_deviceInfo
-
- for /f "tokens=1 usebackq" %%i in (`adb -s %1 shell getprop ro.product.manufacturer`) do set manufacturer=%%i
-
- for /f "tokens=1,2,3 usebackq" %%i in (`adb -s %1 shell getprop ro.product.model`) do set model=%%i %%j %%k
-
- echo ===%manufacturer% %model% (%1)===
-
- adb -s %1 shell dumpsys activity top|findstr ACTIVITY
-
- echo.
-
- goto :eof
复制代码
|