From 8e916bd80dd670af7d941ccb350cc1a4eba28c30 Mon Sep 17 00:00:00 2001 From: Alessandro Astone Date: Sun, 29 Jun 2025 21:38:13 +0200 Subject: [PATCH] upgrade: Migrate auto_adb to False on first upgrade Because we now default adb to secure, disable auto_adb to avoid prompting the user on every session startup --- tools/actions/upgrader.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tools/actions/upgrader.py b/tools/actions/upgrader.py index 0643f9c..e85b7bb 100644 --- a/tools/actions/upgrader.py +++ b/tools/actions/upgrader.py @@ -23,6 +23,11 @@ def migration(args): tools.helpers.run.user(args, ["chmod", "-R", "g-w,o-w"] + [os.path.join(args.work, f) for f in chmod_paths], check=False) tools.helpers.run.user(args, ["chmod", "g-w,o-w", args.work], check=False) os.remove(os.path.join(args.work, "session.cfg")) + if versiontuple(old_ver) <= versiontuple("1.6.0"): + # Because we now default adb to secure, disable auto_adb to avoid prompting the user on every session startup + cfg = tools.config.load(args) + cfg["waydroid"]["auto_adb"] = "False" + tools.config.save(args, cfg) except: pass -- 2.47.3