i use some batch script for android device , it should clear The device log , start and close an apk and then take the log out of it. thats my code i use:
adb -s %DeviceId% logcat -c
adb -s %DeviceId% shell am start -n com.mv4d.sdktutorialbasicchangeframesize/com.mv4d.sdktutorialbasicchangeframesize.MainActivity
SLEEP 80
adb -s %DeviceId% shell am force-stop com.mv4d.sdktutorialbasicchangeframesize
adb -s %DeviceId% logcat -d -v time > D:\Roey\Jen2\ChangeFrameSize\Results\Logcat\AndroidLog.txt
the created log is missing lot of first and last lines. (that appears if you start the app and check the live log via android studio for example...) any ideas ?