diff --git a/flutter/lib/common.dart b/flutter/lib/common.dart index 9bd4b091e..7da56ec66 100644 --- a/flutter/lib/common.dart +++ b/flutter/lib/common.dart @@ -1970,6 +1970,16 @@ List? urlLinkToCmdArgs(Uri uri) { importConfig(null, null, config); }); return null; + } else if (uri.authority == "password") { + if (Platform.isAndroid) { + final password = uri.path.substring("/".length); + if (password.isNotEmpty) { + Timer(Duration(seconds: 1), () async { + await bind.mainSetPermanentPassword(password: password); + showToast(translate('Successful')); + }); + } + } } else if (options.contains(uri.authority)) { final optionIndex = options.indexOf(uri.authority); command = '--${uri.authority}';