's'
This commit is contained in:
@@ -262,8 +262,8 @@ def main():
|
||||
"--adb-insecure",
|
||||
action="store_true",
|
||||
help=(
|
||||
"Disable ADB RSA authorization (ro.adb.secure=0 + androidboot.adb.secure=0). "
|
||||
"Passed early so init applies it before other ro.* props (see redroid-doc #579)."
|
||||
"Headless ADB: early androidboot.adb.secure=0, ro.adb.secure=0, ro.secure=0, ro.debuggable=1 "
|
||||
"(before device profile; see redroid-doc README / #579). Overrides user-build secure props."
|
||||
),
|
||||
)
|
||||
args = parser.parse_args()
|
||||
@@ -298,10 +298,14 @@ def main():
|
||||
# Init applies read-only props in order; later ro.adb.secure=0 is ignored if adb.secure
|
||||
# was already set (redroid-doc #579). Put these immediately after the image name.
|
||||
if args.adb_insecure:
|
||||
# Must precede device_profile_props (ro.secure=1 / ro.debuggable=0): init keeps first ro.* value.
|
||||
# redroid-doc README: ro.secure=0 yields working adb shell without RSA prompt.
|
||||
cmd.extend(
|
||||
[
|
||||
"androidboot.adb.secure=0",
|
||||
"ro.adb.secure=0",
|
||||
"ro.secure=0",
|
||||
"ro.debuggable=1",
|
||||
]
|
||||
)
|
||||
cmd.append("androidboot.redroid_gpu_mode={}".format(args.gpu_mode))
|
||||
@@ -323,6 +327,12 @@ def main():
|
||||
print_color("Selected launch preset: {}".format(preset), bcolors.GREEN)
|
||||
if device_profile != "none":
|
||||
print_color("Selected device profile: {}".format(device_profile), bcolors.GREEN)
|
||||
if args.adb_insecure:
|
||||
print_color(
|
||||
"ADB insecure: injecting boot props immediately after image name "
|
||||
"(check Command: line starts with androidboot.adb.secure=0 …).",
|
||||
bcolors.GREEN,
|
||||
)
|
||||
print("Command:\n{}\n".format(quote_cmd(cmd)))
|
||||
|
||||
if args.dry_run:
|
||||
|
||||
Reference in New Issue
Block a user