I need to use adb connect pc to device and do some checking. So I try to use java.lang.Runtime.getRuntime().exec(cmd)
to get adb
shell result into my program. But I don't know how to write the adb shell commend in the exec
call, something like:
String cmd =adkHome + "adb.exe -s " + device + " shell ls";
then cd data/app
How do I do this?