diff --git a/run_redroid.py b/run_redroid.py index 81bcb53..0579c1d 100644 --- a/run_redroid.py +++ b/run_redroid.py @@ -258,6 +258,11 @@ def main(): default=[], help="Additional redroid property, repeatable", ) + parser.add_argument( + "--adb-insecure", + action="store_true", + help="Set ro.adb.secure=0 so adb over TCP does not stay 'unauthorized' (no UI to approve keys)", + ) args = parser.parse_args() image = args.image @@ -296,6 +301,8 @@ def main(): cmd.extend(preset_props(preset)) cmd.extend(device_profile_props(device_profile)) cmd.extend(args.extra_prop) + if args.adb_insecure: + cmd.append("ro.adb.secure=0") if args.replace and not args.dry_run: subprocess.run( @@ -318,6 +325,11 @@ def main(): subprocess.run(cmd, check=True) print_color("Container started as {}".format(name), bcolors.GREEN) print("ADB: adb connect 127.0.0.1:{}".format(args.port)) + if not args.adb_insecure: + print( + "If the device shows as unauthorized, stop the container and re-run with --adb-insecure " + "(headless instances cannot tap the USB debugging authorization dialog)." + ) if __name__ == "__main__": diff --git a/stuff/houdini.py b/stuff/houdini.py index 4f1b294..34abd4c 100644 --- a/stuff/houdini.py +++ b/stuff/houdini.py @@ -66,7 +66,7 @@ on property:sys.boot_completed=1 "No available libhoudini for Android {}".format(version)) def download(self): - print_color("Downloading libhoudini now .....", bcolors.GREEN) + print_color("Resolving libhoudini bundle ...", bcolors.GREEN) super().download() def copy(self): diff --git a/stuff/houdini_hack.py b/stuff/houdini_hack.py index 6ee2f8f..0a9d50f 100644 --- a/stuff/houdini_hack.py +++ b/stuff/houdini_hack.py @@ -17,7 +17,7 @@ class Houdini_Hack(General): self.act_md5 = "8f71a58f3e54eca879a2f7de64dbed58" def download(self): - print_color("Downloading libhoudini_hack now .....", bcolors.GREEN) + print_color("Resolving libhoudini_hack bundle ...", bcolors.GREEN) super().download() def copy(self): diff --git a/stuff/mindthegapps.py b/stuff/mindthegapps.py index 28e523f..1acaa66 100644 --- a/stuff/mindthegapps.py +++ b/stuff/mindthegapps.py @@ -110,7 +110,7 @@ class MindTheGapps(General): self.act_md5 = self.dl_links[self.version][self.arch[0]][1] def download(self): - print_color("Downloading MindTheGapps now .....", bcolors.GREEN) + print_color("Resolving MindTheGapps bundle ...", bcolors.GREEN) super().download() def copy(self):