From b6e51229c96e59cdde561e1d6d1d973c731d650e Mon Sep 17 00:00:00 2001 From: Huy Nguyen Date: Tue, 3 Sep 2024 09:23:34 +0700 Subject: [PATCH 1/2] add magic --- main_app.py | 29 +++++++++++++++++++++++++++-- 1 file changed, 27 insertions(+), 2 deletions(-) diff --git a/main_app.py b/main_app.py index c355dc9..4c85cc2 100644 --- a/main_app.py +++ b/main_app.py @@ -12,6 +12,10 @@ boot_chime_enabled = False charge_limit_enabled = False stage_manager_enabled = False shutter_sound_enabled = False +always_on_display_enabled = False +apple_pencil_enabled = False +action_button_enabled = False +internal_storage_enabled = False gestalt_path = Path.joinpath(Path.cwd(), "com.apple.MobileGestalt.plist") @@ -42,7 +46,7 @@ while running: `--`-' `--`-' """) print("by LeminLimez") - print("v1.1\n\n") + print("v1.2\n\n") if not passed_check and Path.exists(gestalt_path) and Path.is_file(gestalt_path): passed_check = True @@ -54,7 +58,11 @@ while running: print_option(4, charge_limit_enabled, "Toggle Charge Limit") print_option(5, stage_manager_enabled, "Toggle Stage Manager Supported") print_option(6, shutter_sound_enabled, "Disable Region Restrictions (ie. Shutter Sound)") - print("\n9. Apply") + print_option(7, always_on_display_enabled, "Always On Display (iOS 18+ only)") + print_option(8, apple_pencil_enabled, "Toggle Apple Pencil") + print_option(9, action_button_enabled, "Toggle Action Button") + print_option(10, internal_storage_enabled, "Toggle Internal Storage") + print("\n10. Apply") print("0. Exit\n") page = int(input("Enter a number: ")) if page == 1: @@ -72,7 +80,15 @@ while running: stage_manager_enabled = not stage_manager_enabled elif page == 6: shutter_sound_enabled = not shutter_sound_enabled + elif page == 7: + always_on_display_enabled = not always_on_display_enabled + elif page == 8: + apple_pencil_enabled = not apple_pencil_enabled elif page == 9: + action_button_enabled = not action_button_enabled + elif page == 10: + internal_storage_enabled = not internal_storage_enabled + elif page == 11: print() # set the tweaks and apply # first open the file in read mode @@ -93,6 +109,15 @@ while running: if shutter_sound_enabled: plist["CacheExtra"]["h63QSdBCiT/z0WU6rdQv6Q"] = "US" plist["CacheExtra"]["zHeENZu+wbg7PUprwNwBWg"] = "LL/A" + if always_on_display_enabled: + plist["CacheExtra"]["2OOJf1VhaM7NxfRok3HbWQ"] = True + plist["CacheExtra"]["j8/Omm6s1lsmTDFsXjsBfA"] = True + if apple_pencil_enabled: + plist["CacheExtra"]["yhHcB0iH0d1XzPO/CFd3ow"] = True + if action_button_enabled: + plist["CacheExtra"]["cT44WE1EohiwRzhsZ8xEsw"] = True + if internal_storage_enabled: + plist["CacheExtra"]["LBJfwOEzExRxzlAnSuI7eg"] = True # write back to the file with open(gestalt_path, 'wb') as out_fp: From c65e0808f52de6c21f212a8e7dc2313ca62551ac Mon Sep 17 00:00:00 2001 From: leminlimez <59540996+leminlimez@users.noreply.github.com> Date: Mon, 2 Sep 2024 22:44:33 -0400 Subject: [PATCH 2/2] disclaimer + fix apply button --- main_app.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main_app.py b/main_app.py index 4c85cc2..77cbbef 100644 --- a/main_app.py +++ b/main_app.py @@ -47,6 +47,7 @@ while running: """) print("by LeminLimez") print("v1.2\n\n") + print("\nPlease back up your device before using!") if not passed_check and Path.exists(gestalt_path) and Path.is_file(gestalt_path): passed_check = True @@ -62,7 +63,7 @@ while running: print_option(8, apple_pencil_enabled, "Toggle Apple Pencil") print_option(9, action_button_enabled, "Toggle Action Button") print_option(10, internal_storage_enabled, "Toggle Internal Storage") - print("\n10. Apply") + print("\n11. Apply") print("0. Exit\n") page = int(input("Enter a number: ")) if page == 1: