's'
This commit is contained in:
@@ -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__":
|
||||
|
||||
@@ -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):
|
||||
|
||||
@@ -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):
|
||||
|
||||
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user