Skip to content
This repository has been archived by the owner on Jan 20, 2025. It is now read-only.

Commit

Permalink
Merge pull request #3 from straight-tamago/main
Browse files Browse the repository at this point in the history
added toggle for shutter sound/remove region restrictions
  • Loading branch information
leminlimez authored Sep 3, 2024
2 parents 60b8c79 + 00dd0b8 commit b5fc7d6
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions main_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
boot_chime_enabled = False
charge_limit_enabled = False
stage_manager_enabled = False
shutter_sound_enabled = False

gestalt_path = Path.joinpath(Path.cwd(), "com.apple.MobileGestalt.plist")

Expand Down Expand Up @@ -52,6 +53,7 @@ def print_option(num: int, active: bool, message: str):
print_option(3, boot_chime_enabled, "Toggle Boot Chime")
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("0. Exit\n")
page = int(input("Enter a number: "))
Expand All @@ -68,6 +70,8 @@ def print_option(num: int, active: bool, message: str):
charge_limit_enabled = not charge_limit_enabled
elif page == 5:
stage_manager_enabled = not stage_manager_enabled
elif page == 6:
shutter_sound_enabled = not shutter_sound_enabled
elif page == 9:
print()
# set the tweaks and apply
Expand All @@ -86,6 +90,9 @@ def print_option(num: int, active: bool, message: str):
plist["CacheExtra"]["37NVydb//GP/GrhuTN+exg"] = True
if stage_manager_enabled:
plist["CacheExtra"]["qeaj75wk3HF4DwQ8qbIi7g"] = 1
if shutter_sound_enabled:
plist["CacheExtra"]["h63QSdBCiT/z0WU6rdQv6Q"] = "US"
plist["CacheExtra"]["zHeENZu+wbg7PUprwNwBWg"] = "LL/A"

# write back to the file
with open(gestalt_path, 'wb') as out_fp:
Expand Down

0 comments on commit b5fc7d6

Please sign in to comment.