1. remove hard-coded binary path 2. define TCP_PORT in fallback path 3. only detect device when not called from client 4. struct.pack() requires bytes / bytearray when packing a string. 5. fix typo "existing" -> "exiting" 6. remove unused imports
shell=False
subprocess.run()
fm11rf08s_recovery.py