springboard tweaks/internal options for cli

This commit is contained in:
leminlimez
2024-09-26 12:42:00 -04:00
parent 0f234a803c
commit 453dd6101e
4 changed files with 158 additions and 5 deletions

View File

@@ -1,13 +1,13 @@
from devicemanagement.constants import Version
from .tweak_classes import MobileGestaltTweak, MobileGestaltMultiTweak, MobileGestaltPickerTweak, FeatureFlagTweak, TweakModifyType
from .tweak_classes import MobileGestaltTweak, MobileGestaltMultiTweak, MobileGestaltPickerTweak, FeatureFlagTweak, TweakModifyType, BasicPlistTweak
from .eligibility_tweak import EligibilityTweak
from .basic_plist_locations import FileLocation
tweaks = {
## MobileGestalt Tweaks
"DynamicIsland": MobileGestaltPickerTweak("Toggle Dynamic Island", "oPeik/9e8lQWMszEjbPzng", "ArtworkDeviceSubType", [2436, 2556, 2796, 2976, 2622, 2868]),
"ModelName": MobileGestaltTweak("Set Device Model Name", "oPeik/9e8lQWMszEjbPzng", "ArtworkDeviceProductDescription", "", TweakModifyType.TEXT),
# MobileGestaltTweak("Fix Dynamic Island", "YlEtTtHlNesRBMal1CqRaA"),
# MobileGestaltTweak("Set Dynamic Island Location", "Zg7DduDoSCy6vY6mhy3n2w", value="{ x: 390.000000, y: 205.848432, width: 50.000000, height: 105.651573 }"), # not sure what value this is supposed to be but it removes the island currently
"BootChime": MobileGestaltTweak("Toggle Boot Chime", "QHxt+hGLaBPbQJbXiUJX3w"),
"ChargeLimit": MobileGestaltTweak("Toggle Charge Limit", "37NVydb//GP/GrhuTN+exg"),
"CollisionSOS": MobileGestaltTweak("Toggle Collision SOS", "HCzWusHQwZDea6nNhaKndw"),
@@ -25,7 +25,8 @@ tweaks = {
"AOD": MobileGestaltMultiTweak("Always On Display",
{"2OOJf1VhaM7NxfRok3HbWQ": 1, "j8/Omm6s1lsmTDFsXjsBfA": 1},
min_version=Version("18.0")),
"SleepApnea": MobileGestaltTweak("Toggle Sleep Apnea (real) [for apple watches]", "e0HV2blYUDBk/MsMEQACNA", min_version=Version("18.0"), divider_below=True),
## Feature Flag Tweaks
"ClockAnim": FeatureFlagTweak("Toggle Lockscreen Clock Animation", flag_category='SpringBoard',
flag_names=['SwiftUITimeAnimation'],
min_version=Version("18.0")),
@@ -33,5 +34,116 @@ tweaks = {
flag_names=['AutobahnQuickSwitchTransition', 'SlipSwitch', 'PosterEditorKashida'],
min_version=Version("18.0")),
"PhotoUI": FeatureFlagTweak("Enable Old Photo UI", flag_category='Photos', flag_names=['Lemonade'], is_list=False, inverted=True, min_version=Version("18.0")),
"AI": FeatureFlagTweak("Enable Apple Intelligence", flag_category='SpringBoard', flag_names=['Domino', 'SuperDomino'], min_version=Version("18.1"))
"AI": FeatureFlagTweak("Enable Apple Intelligence", flag_category='SpringBoard', flag_names=['Domino', 'SuperDomino'], min_version=Version("18.1"), divider_below=True),
## Springboard Tweaks
"LockScreenFootnote": BasicPlistTweak(
"Lock Screen Footnote Text",
FileLocation.footnote,
key="LockScreenFootnote", value="",
edit_type=TweakModifyType.TEXT
),
"SBDontLockAfterCrash": BasicPlistTweak(
"Disable Lock After Respring",
FileLocation.springboard,
"SBDontLockAfterCrash"
),
"SBDontDimOrLockOnAC": BasicPlistTweak(
"Disable Screen Dimming While Charging",
FileLocation.springboard,
"SBDontDimOrLockOnAC"
),
"SBHideLowPowerAlerts": BasicPlistTweak(
"Disable Low Battery Alerts",
FileLocation.springboard,
"SBHideLowPowerAlerts"
),
"SBNeverBreadcrumb": BasicPlistTweak(
"Disable Breadcrumb",
FileLocation.springboard,
"SBNeverBreadcrumb"
),
"SBShowSupervisionTextOnLockScreen": BasicPlistTweak(
"Show Supervision Text on Lock Screen",
FileLocation.springboard,
"SBShowSupervisionTextOnLockScreen"
),
"AirplaySupport": BasicPlistTweak(
"Enable AirPlay support for Stage Manager",
FileLocation.springboard,
"SBExtendedDisplayOverrideSupportForAirPlayAndDontFileRadars",
divider_below=True
),
## Internal Options
"SBBuildNumber": BasicPlistTweak(
"Show Build Version in Status Bar",
FileLocation.globalPreferences,
"UIStatusBarShowBuildVersion"
),
"RTL": BasicPlistTweak(
"Force Right-to-Left Layout",
FileLocation.globalPreferences,
"NSForceRightToLeftWritingDirection"
),
"MetalForceHudEnabled": BasicPlistTweak(
"Enable Metal HUD Debug",
FileLocation.globalPreferences,
"MetalForceHudEnabled"
),
"AccessoryDeveloperEnabled": BasicPlistTweak(
"Enable Accessory Debugging",
FileLocation.globalPreferences,
"AccessoryDeveloperEnabled"
),
"iMessageDiagnosticsEnabled": BasicPlistTweak(
"Enable iMessage Debugging",
FileLocation.globalPreferences,
"iMessageDiagnosticsEnabled"
),
"IDSDiagnosticsEnabled": BasicPlistTweak(
"Enable Continuity Debugging",
FileLocation.globalPreferences,
"IDSDiagnosticsEnabled"
),
"VCDiagnosticsEnabled": FileLocation(
"Enable FaceTime Debugging",
FileLocation.globalPreferences,
"VCDiagnosticsEnabled"
),
"AppStoreDebug": FileLocation(
"Enable App Store Debug Gesture",
FileLocation.appStore,
"debugGestureEnabled"
),
"NotesDebugMode": FileLocation(
"Enable Notes App Debug Mode",
FileLocation.notes,
"DebugModeEnabled"
),
"BKDigitizerVisualizeTouches": FileLocation(
"Show Touches With Debug Info",
FileLocation.backboardd,
"BKDigitizerVisualizeTouches"
),
"BKHideAppleLogoOnLaunch": FileLocation(
"Hide Respring Icon",
FileLocation.backboardd,
"BKHideAppleLogoOnLaunch"
),
"EnableWakeGestureHaptic": FileLocation(
"Vibrate on Raise-to-Wake",
FileLocation.coreMotion,
"EnableWakeGestureHaptic"
),
"PlaySoundOnPaste": FileLocation(
"Play Sound on Paste",
FileLocation.pasteboard,
"PlaySoundOnPaste"
),
"AnnounceAllPastes": FileLocation(
"Show Notifications for System Pastes",
FileLocation.pasteboard,
"AnnounceAllPastes"
)
}