From b4bbfcec8457c9e66fd918eb42f00f0d99a3e9d1 Mon Sep 17 00:00:00 2001 From: Hades <5561948+hxhlb@users.noreply.github.com> Date: Tue, 18 Aug 2026 20:40:36 +0800 Subject: [PATCH 1/3] fix iOS 27 region info key --- mond/helpers/mg.swift | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/mond/helpers/mg.swift b/mond/helpers/mg.swift index 9a08bb9..78e8562 100644 --- a/mond/helpers/mg.swift +++ b/mond/helpers/mg.swift @@ -140,6 +140,9 @@ extension mg_tweak { } } +private let region_code_key = "h63QSdBCiT/z0WU6rdQv6Q" +private let region_info_key = "yK+xavymRGZ3xWc1tb8XDg" + let all_tweaks: [mg_tweak] = [ mg_tweak(title: "Enable Dynamic Island Capability", minv: 19.0, key: "YlEtTtHlNesRBMal1CqRaA", value: 1, info_t: .info, info_msg: "An alternate way to enable the Dynamic Island, as used by Nugget."), mg_tweak(title: "Always-On Display", minv: 18.0, keys: ["2OOJf1VhaM7NxfRok3HbWQ", "j8/Omm6s1lsmTDFsXjsBfA"], value: 1, info_t: .warning, info_msg: "Can increase screen burn-in risk on devices that don't officially support it."), @@ -168,19 +171,19 @@ let all_tweaks: [mg_tweak] = [ info_msg: "This tweak may be broken or have no effect on some iOS versions or devices.", r: { dict in guard let cache_extra = dict["CacheExtra"] as? NSMutableDictionary else { return false } - return cache_extra["h63QSdBCiT/z0WU6rdQv6Q"] as? String == "US" && - cache_extra["zHeENZu+wbg7PUprwNwBWg"] as? String == "LL/A" + return cache_extra[region_code_key] as? String == "US" && + cache_extra[region_info_key] as? String == "LL/A" }, w_on: { dict in guard let cache_extra = dict["CacheExtra"] as? NSMutableDictionary else { return } Alertinator.shared.alert(title: "Warning!", body: "Please do not use this feature to bypass region restrictions that would equate to breaking regional laws (e.g. disabling the camera shutter sound). We will NOT be held responsible for enabling any illegal activites!") - cache_extra["h63QSdBCiT/z0WU6rdQv6Q"] = "US" - cache_extra["zHeENZu+wbg7PUprNwBWg"] = "LL/A" + cache_extra[region_code_key] = "US" + cache_extra[region_info_key] = "LL/A" }, w_off: { dict in guard let cache_extra = dict["CacheExtra"] as? NSMutableDictionary else { return } - cache_extra.removeObject(forKey: "h63QSdBCiT/z0WU6rdQv6Q") - cache_extra.removeObject(forKey: "zHeENZu+wbg7PUprNwBWg") + cache_extra.removeObject(forKey: region_code_key) + cache_extra.removeObject(forKey: region_info_key) } ), From 0152fc981142b7cb47802640487c1a849f668a18 Mon Sep 17 00:00:00 2001 From: Hades <5561948+hxhlb@users.noreply.github.com> Date: Tue, 18 Aug 2026 21:34:48 +0800 Subject: [PATCH 2/3] use native US region code --- mond/helpers/mg.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mond/helpers/mg.swift b/mond/helpers/mg.swift index 78e8562..a05d033 100644 --- a/mond/helpers/mg.swift +++ b/mond/helpers/mg.swift @@ -171,13 +171,13 @@ let all_tweaks: [mg_tweak] = [ info_msg: "This tweak may be broken or have no effect on some iOS versions or devices.", r: { dict in guard let cache_extra = dict["CacheExtra"] as? NSMutableDictionary else { return false } - return cache_extra[region_code_key] as? String == "US" && + return cache_extra[region_code_key] as? String == "LL" && cache_extra[region_info_key] as? String == "LL/A" }, w_on: { dict in guard let cache_extra = dict["CacheExtra"] as? NSMutableDictionary else { return } Alertinator.shared.alert(title: "Warning!", body: "Please do not use this feature to bypass region restrictions that would equate to breaking regional laws (e.g. disabling the camera shutter sound). We will NOT be held responsible for enabling any illegal activites!") - cache_extra[region_code_key] = "US" + cache_extra[region_code_key] = "LL" cache_extra[region_info_key] = "LL/A" }, w_off: { dict in From ccef17dc2f33fcd0dd261024a1761e81af290cd7 Mon Sep 17 00:00:00 2001 From: Hades <5561948+hxhlb@users.noreply.github.com> Date: Tue, 18 Aug 2026 22:06:50 +0800 Subject: [PATCH 3/3] fix persist after reboot default --- mond/mond.swift | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mond/mond.swift b/mond/mond.swift index 8fbc2c1..58fd40b 100644 --- a/mond/mond.swift +++ b/mond/mond.swift @@ -37,7 +37,10 @@ struct mond: App { dup2(pipe.fileHandleForWriting.fileDescriptor, STDOUT_FILENO) } - UserDefaults.standard.register(defaults: ["method": "bad_query"]) + UserDefaults.standard.register(defaults: [ + "method": "bad_query", + "atomic_write": true + ]) if UserDefaults.standard.bool(forKey: "ka_on") { keep_alive() }