When filtering logcat in terminal by using adb it's possible to command like this:
adb logcat -d -T "01-26 00:00:00.000"
And filtering all logs after 01-26 00:00:00
.
But it doesn't work in programmatically mode. This is my Kotlin code:
Runtime.getRuntime().exec("logcat -d -T 01-26 00:00:00.000")
What's wrong with this code?