def unlock_device(self): # Use subprocess to run a command to unlock the device subprocess.check_call(["fastboot", "oem", "unlock"])