X-Git-Url: https://glassweightruler.freedombox.rocks/gitweb/waydroid.git/blobdiff_plain/ec85ccf53cd5c3c9a38d0ffecbf85986963007c1..a62118db494bfd3d1fc176b60fe2abec92241e4f:/tools/actions/upgrader.py diff --git a/tools/actions/upgrader.py b/tools/actions/upgrader.py index 7f71e1e..e85b7bb 100644 --- a/tools/actions/upgrader.py +++ b/tools/actions/upgrader.py @@ -5,7 +5,6 @@ import os from tools import helpers from tools.helpers.version import versiontuple import tools.config -import dbus def get_config(args): cfg = tools.config.load(args) @@ -24,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