Rupesh
04/15/2020, 11:18 AMval startCommand = "adb shell am start -S -W $appPackage/$launchActivity -c android.intent.category.LAUNCHER -a android.intent.action.MAIN"
Runtime.getRuntime().exec("$startCommand")
But when I tried to write log into file its not:
val writeLog = "adb logcat -d | grep --line-buffered ABC >> logcat.txt"
Runtime.getRuntime().exec("$writeLog")mbonnin
04/15/2020, 10:20 PMexec() . You would need a shell to understand the >>mbonnin
04/15/2020, 10:20 PMmbonnin
04/15/2020, 10:21 PMmbonnin
04/15/2020, 10:21 PMmbonnin
04/15/2020, 10:23 PM