I'm trying to get the output of a adb command using the following code:
pathCmd = './adb shell pm path ' + packageName
pathData = subprocess.Popen(pathCmd,stdout = subprocess.PIPE)
result = pathData.stdout.read()
print result
Any idea why doesn't this command work?
This is the error I see:
OSError: [Errno 2] No such file or directory
I can get the output as os.system but it fails for a subprocess