I\'m trying to get the output of a adb command using the following code:
pathCmd = \'./adb shell pm path \' + packageName pathData = subprocess.Popen(pathC
from subprocess import Popen, PIPE with Popen(['adb devices'], shell=True,stdout=PIPE) as proc: for val in proc.stdout.readlines()[1:-1]: print(val.decode('UTF-8').replace('device', '').strip())