This commit is contained in:
eric
2026-04-04 15:42:13 -05:00
parent 898238b3e0
commit 0e11bd85ff
4 changed files with 15 additions and 3 deletions

View File

@@ -258,6 +258,11 @@ def main():
default=[], default=[],
help="Additional redroid property, repeatable", 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() args = parser.parse_args()
image = args.image image = args.image
@@ -296,6 +301,8 @@ def main():
cmd.extend(preset_props(preset)) cmd.extend(preset_props(preset))
cmd.extend(device_profile_props(device_profile)) cmd.extend(device_profile_props(device_profile))
cmd.extend(args.extra_prop) cmd.extend(args.extra_prop)
if args.adb_insecure:
cmd.append("ro.adb.secure=0")
if args.replace and not args.dry_run: if args.replace and not args.dry_run:
subprocess.run( subprocess.run(
@@ -318,6 +325,11 @@ def main():
subprocess.run(cmd, check=True) subprocess.run(cmd, check=True)
print_color("Container started as {}".format(name), bcolors.GREEN) print_color("Container started as {}".format(name), bcolors.GREEN)
print("ADB: adb connect 127.0.0.1:{}".format(args.port)) 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__": if __name__ == "__main__":

View File

@@ -66,7 +66,7 @@ on property:sys.boot_completed=1
"No available libhoudini for Android {}".format(version)) "No available libhoudini for Android {}".format(version))
def download(self): def download(self):
print_color("Downloading libhoudini now .....", bcolors.GREEN) print_color("Resolving libhoudini bundle ...", bcolors.GREEN)
super().download() super().download()
def copy(self): def copy(self):

View File

@@ -17,7 +17,7 @@ class Houdini_Hack(General):
self.act_md5 = "8f71a58f3e54eca879a2f7de64dbed58" self.act_md5 = "8f71a58f3e54eca879a2f7de64dbed58"
def download(self): def download(self):
print_color("Downloading libhoudini_hack now .....", bcolors.GREEN) print_color("Resolving libhoudini_hack bundle ...", bcolors.GREEN)
super().download() super().download()
def copy(self): def copy(self):

View File

@@ -110,7 +110,7 @@ class MindTheGapps(General):
self.act_md5 = self.dl_links[self.version][self.arch[0]][1] self.act_md5 = self.dl_links[self.version][self.arch[0]][1]
def download(self): def download(self):
print_color("Downloading MindTheGapps now .....", bcolors.GREEN) print_color("Resolving MindTheGapps bundle ...", bcolors.GREEN)
super().download() super().download()
def copy(self): def copy(self):