"setup_port_forwarding" method in runner.py file from python bindings is throwing an exception
"setup_port_forwarding" method in runner.py file from python bindings is throwing an exception "adb: usage: forward takes two arguments". In that method when executing "android" condition, when execution of "else" condition where port forwarding happens based on deviceID.
subprocess.Popen(['adb', 'forward','-s '+deviceID, 'tcp:' + str(port), 'tcp:' + str(self.TCP_PORT)]), at line 172 I have changes it to
subprocess.Popen('adb -s '+deviceID+' forward tcp:'+str(port)+' tcp:'+str(TCP_PORT)) and it is working fine. But I am not sure if it is a correct solution.
@robert_poienar can you please check