i want to redirect the Android developer tools logcat output to a file into the virtual device from a shell command, before than running the android app test. The command i usually use to redirect the output to a file is:
adb shell logcat -v time - f log.txt packageName:F *:E > /folder/log.txt
but it puts the log file into a computer directory (/folder/ in this case)
.
I want to change it with a directory in the virtual device but like above, it says the folder does not exist.
There is way to do it via shell command?