diff --git a/QuestAppVersionSwitcher/CoreService.cs b/QuestAppVersionSwitcher/CoreService.cs index 38c3ea5..55abb67 100644 --- a/QuestAppVersionSwitcher/CoreService.cs +++ b/QuestAppVersionSwitcher/CoreService.cs @@ -3,15 +3,17 @@ using ComputerUtils.Android.Logging; using QuestAppVersionSwitcher.Mods; using System; -using System.IO; using System.Net.Security; using System.Net; using System.Reflection; using Android.OS; +using Android.Systems; using Android.Views; using AndroidX.Activity.Result; using ComputerUtils.Android; +using Java.IO; using Newtonsoft.Json; +using File = System.IO.File; using JsonSerializer = System.Text.Json.JsonSerializer; using Object = Java.Lang.Object; @@ -56,7 +58,6 @@ public static void Start() // Accept every ssl certificate, may be a security risk but it's the only way to get the mod list (CoPilot) Logger.displayLogInConsole = true; - // Create all directories and files if (!started) { @@ -64,6 +65,7 @@ public static void Start() File.WriteAllText(coreVars.QAVSDir + ".nomedia", ""); Logger.SetLogFile(coreVars.QAVSDir + "qavslog.log"); Logger.Log("\n\n\nQAVS Version: " + version + " starting up...\n\n\n"); + Logger.Log(Android.OS.Build.VERSION.Incremental); ServicePointManager.ServerCertificateValidationCallback = new RemoteCertificateValidationCallback(delegate { return true; }); FileManager.CreateDirectoryIfNotExisting(coreVars.QAVSBackupDir); FileManager.RecreateDirectoryIfExisting(coreVars.QAVSTmpDowngradeDir); diff --git a/QuestAppVersionSwitcher/FolderPermission.cs b/QuestAppVersionSwitcher/FolderPermission.cs index a5979b8..05fc62a 100644 --- a/QuestAppVersionSwitcher/FolderPermission.cs +++ b/QuestAppVersionSwitcher/FolderPermission.cs @@ -7,6 +7,7 @@ using Android.OS; using Android.OS.Storage; using Android.Provider; +using Android.Systems; using Android.Views.TextClassifiers; using AndroidX.Activity.Result; using AndroidX.Activity.Result.Contract; diff --git a/QuestAppVersionSwitcher/QAVSWebViewClient.cs b/QuestAppVersionSwitcher/QAVSWebViewClient.cs index 0f1a6ae..2e19b97 100644 --- a/QuestAppVersionSwitcher/QAVSWebViewClient.cs +++ b/QuestAppVersionSwitcher/QAVSWebViewClient.cs @@ -68,6 +68,11 @@ public override void OnPageFinished(WebView view, string url) // redirect to oculus page view.LoadUrl("https://developer.oculus.com/manage"); } + if (url.ToLower().StartsWith("https://auth.meta.com/language")) + { + // redirect to oculus page + view.LoadUrl("https://auth.meta.com/settings"); + } } public static Dictionary headers = new Dictionary diff --git a/QuestAppVersionSwitcher/WebServer.cs b/QuestAppVersionSwitcher/WebServer.cs index 658d28d..68f13f1 100644 --- a/QuestAppVersionSwitcher/WebServer.cs +++ b/QuestAppVersionSwitcher/WebServer.cs @@ -968,7 +968,6 @@ public void Start() { FolderPermission.openDirectory(Environment.ExternalStorageDirectory.AbsolutePath + "/Android/data"); FolderPermission.openDirectory(Environment.ExternalStorageDirectory.AbsolutePath + "/Android/obb"); - } else {