Skip to content

Commit

Permalink
4.2.3
Browse files Browse the repository at this point in the history
  • Loading branch information
LoveJessyChen committed Jan 25, 2025
1 parent 69a4849 commit ca85c79
Show file tree
Hide file tree
Showing 7 changed files with 101 additions and 14 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ Note: I am not responsible if your device bootloops. Please back up your data be
- VPN
- Chinese WLAN service
- HealthKit
- HealthKit
- AirPrint
- Assistive Touch
- iCloud
Expand Down
28 changes: 22 additions & 6 deletions gui/main_window.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
from tweaks.custom_gestalt_tweaks import CustomGestaltTweaks, ValueTypeStrings
from tweaks.daemons_tweak import Daemon

App_Version = "4.2.2"
App_Version = "4.2.3"
App_Build = 0

class Page(Enum):
Expand Down Expand Up @@ -173,6 +173,8 @@ def __init__(self, device_manager: DeviceManager):
self.ui.showRiskyChk.toggled.connect(self.on_showRiskyChk_toggled)
self.ui.showAllSpoofableChk.toggled.connect(self.on_showAllSpoofableChk_toggled)

self.ui.revertRdarChk.toggled.connect(self.on_revertRdarChk_toggled)

self.ui.skipSetupChk.toggled.connect(self.on_skipSetupChk_toggled)
self.ui.supervisionChk.toggled.connect(self.on_supervisionChk_toggled)
self.ui.supervisionOrganization.textEdited.connect(self.on_supervisionOrgTxt_textEdited)
Expand Down Expand Up @@ -319,6 +321,7 @@ def change_selected_device(self, index):
"18.0": [self.ui.aodChk, self.ui.aodVibrancyChk, self.ui.iphone16SettingsChk]
}
MaxTweakVersions = {
"patch": [self.ui.revertRdarChk, self.ui.revertRdarLine],
"17.7": [self.ui.euEnablerContent],
"18.0": [self.ui.photosChk, self.ui.aiChk]
}
Expand Down Expand Up @@ -357,12 +360,18 @@ def change_selected_device(self, index):
view.hide()
# toggle option visibility for the max versions
for version in MaxTweakVersions.keys():
parsed_ver = Version(version)
for view in MaxTweakVersions[version]:
if device_ver <= parsed_ver:
view.show()
else:
if version == "patch":
if patched:
view.hide()
else:
view.show()
else:
parsed_ver = Version(version)
for view in MaxTweakVersions[version]:
if device_ver <= parsed_ver:
view.show()
else:
view.hide()
if device_ver >= Version("18.0"):
# show the other dynamic island options
self.ui.dynamicIslandDrp.addItem("2622 (iPhone 16 Pro Dynamic Island)")
Expand Down Expand Up @@ -765,6 +774,9 @@ def on_modifyDaemonsChk_clicked(self, checked: bool):

def on_thermalmonitordChk_clicked(self, checked: bool):
tweaks["Daemons"].set_multiple_values(Daemon.thermalmonitord.value, value=checked)
if checked:
# set the modify toggle checked so it actually applies
self.on_modifyDaemonsChk_clicked(True)
def on_otadChk_clicked(self, checked: bool):
tweaks["Daemons"].set_multiple_values(Daemon.OTA.value, value=checked)
def on_usageTrackingAgentChk_clicked(self, checked: bool):
Expand Down Expand Up @@ -864,6 +876,10 @@ def on_autoRebootChk_toggled(self, checked: bool):
self.device_manager.auto_reboot = checked
# save the setting
self.settings.setValue("auto_reboot", checked)

def on_revertRdarChk_toggled(self, checked: bool):
tweaks["RdarFix"].set_enabled(checked)

def on_skipSetupChk_toggled(self, checked: bool):
self.device_manager.skip_setup = checked
# save the setting
Expand Down
28 changes: 28 additions & 0 deletions qt/mainwindow.ui
Original file line number Diff line number Diff line change
Expand Up @@ -4960,6 +4960,34 @@ Warning: Disabling will cause the battery to show &quot;Unknown Part&quot; or &q
</item>
<item>
<widget class="Line" name="line_24">
<property name="toolTip">
<string/>
</property>
<property name="styleSheet">
<string notr="true">QFrame {
color: #414141;
}</string>
</property>
<property name="frameShadow">
<enum>QFrame::Plain</enum>
</property>
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="revertRdarChk">
<property name="toolTip">
<string>If you used the rdar/status bar fix in a previous iOS version, this will revert that.</string>
</property>
<property name="text">
<string>Revert rdar Fix (reset resolution)</string>
</property>
</widget>
</item>
<item>
<widget class="Line" name="revertRdarLine">
<property name="styleSheet">
<string notr="true">QFrame {
color: #414141;
Expand Down
22 changes: 22 additions & 0 deletions qt/mainwindow_ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -2590,6 +2590,21 @@ def setupUi(self, Nugget):

self._21.addWidget(self.line_24)

self.revertRdarChk = QCheckBox(self.settingsPageContent)
self.revertRdarChk.setObjectName(u"revertRdarChk")

self._21.addWidget(self.revertRdarChk)

self.revertRdarLine = QFrame(self.settingsPageContent)
self.revertRdarLine.setObjectName(u"revertRdarLine")
self.revertRdarLine.setStyleSheet(u"QFrame {\n"
" color: #414141;\n"
"}")
self.revertRdarLine.setFrameShadow(QFrame.Plain)
self.revertRdarLine.setFrameShape(QFrame.HLine)

self._21.addWidget(self.revertRdarLine)

self.skipSetupChk = QCheckBox(self.settingsPageContent)
self.skipSetupChk.setObjectName(u"skipSetupChk")
self.skipSetupChk.setChecked(True)
Expand Down Expand Up @@ -3511,6 +3526,13 @@ def retranslateUi(self, Nugget):
self.showAllSpoofableChk.setWhatsThis("")
#endif // QT_CONFIG(whatsthis)
self.showAllSpoofableChk.setText(QCoreApplication.translate("Nugget", u"Show All Spoofable Models", None))
#if QT_CONFIG(tooltip)
self.line_24.setToolTip("")
#endif // QT_CONFIG(tooltip)
#if QT_CONFIG(tooltip)
self.revertRdarChk.setToolTip(QCoreApplication.translate("Nugget", u"If you used the rdar/status bar fix in a previous iOS version, this will revert that.", None))
#endif // QT_CONFIG(tooltip)
self.revertRdarChk.setText(QCoreApplication.translate("Nugget", u"Revert rdar Fix (reset resolution)", None))
self.skipSetupChk.setText(QCoreApplication.translate("Nugget", u"Skip Setup * (non-exploit files only)", None))
self.supervisionChk.setText(QCoreApplication.translate("Nugget", u"Enable Supervision * (requires Skip Setup)", None))
self.supervisionOrganization.setPlaceholderText(QCoreApplication.translate("Nugget", u"Enter Organization Name", None))
Expand Down
22 changes: 22 additions & 0 deletions qt/ui_mainwindow.py
Original file line number Diff line number Diff line change
Expand Up @@ -2590,6 +2590,21 @@ def setupUi(self, Nugget):

self._21.addWidget(self.line_24)

self.revertRdarChk = QCheckBox(self.settingsPageContent)
self.revertRdarChk.setObjectName(u"revertRdarChk")

self._21.addWidget(self.revertRdarChk)

self.revertRdarLine = QFrame(self.settingsPageContent)
self.revertRdarLine.setObjectName(u"revertRdarLine")
self.revertRdarLine.setStyleSheet(u"QFrame {\n"
" color: #414141;\n"
"}")
self.revertRdarLine.setFrameShadow(QFrame.Plain)
self.revertRdarLine.setFrameShape(QFrame.Shape.HLine)

self._21.addWidget(self.revertRdarLine)

self.skipSetupChk = QCheckBox(self.settingsPageContent)
self.skipSetupChk.setObjectName(u"skipSetupChk")
self.skipSetupChk.setChecked(True)
Expand Down Expand Up @@ -3511,6 +3526,13 @@ def retranslateUi(self, Nugget):
self.showAllSpoofableChk.setWhatsThis("")
#endif // QT_CONFIG(whatsthis)
self.showAllSpoofableChk.setText(QCoreApplication.translate("Nugget", u"Show All Spoofable Models", None))
#if QT_CONFIG(tooltip)
self.line_24.setToolTip("")
#endif // QT_CONFIG(tooltip)
#if QT_CONFIG(tooltip)
self.revertRdarChk.setToolTip(QCoreApplication.translate("Nugget", u"If you used the rdar/status bar fix in a previous iOS version, this will revert that.", None))
#endif // QT_CONFIG(tooltip)
self.revertRdarChk.setText(QCoreApplication.translate("Nugget", u"Revert rdar Fix (reset resolution)", None))
self.skipSetupChk.setText(QCoreApplication.translate("Nugget", u"Skip Setup * (non-exploit files only)", None))
self.supervisionChk.setText(QCoreApplication.translate("Nugget", u"Enable Supervision * (requires Skip Setup)", None))
self.supervisionOrganization.setPlaceholderText(QCoreApplication.translate("Nugget", u"Enter Organization Name", None))
Expand Down
2 changes: 1 addition & 1 deletion tweaks/custom_gestalt_tweaks.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class CustomGestaltTweaks:
custom_tweaks: list[CustomGestaltTweak] = []

def create_tweak(key: str="", value: str="1", value_type: ValueType = ValueType.Integer) -> int:
new_tweak = MobileGestaltTweak("", key, value=value)
new_tweak = MobileGestaltTweak(key, value=value)
CustomGestaltTweaks.custom_tweaks.append(CustomGestaltTweak(new_tweak, value_type))
# return the tweak id
return len(CustomGestaltTweaks.custom_tweaks) - 1
Expand Down
12 changes: 6 additions & 6 deletions tweaks/daemons_tweak.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,12 @@ class Daemon(Enum):
VPN = ["com.apple.racoon"]
ChineseLAN = ["com.apple.wapic"]
HealthKit = ["com.apple.healthd"]
AirPrint = ["com.apple.printd"],
AssistiveTouch = ["com.apple.assistivetouchd"],
iCloud = ["com.apple.itunescloudd"],
InternetTethering = ["com.apple.MobileInternetSharing"],
PassBook = ["com.apple.passd"],
Spotlight = ["com.apple.searchd"],
AirPrint = ["com.apple.printd"]
AssistiveTouch = ["com.apple.assistivetouchd"]
iCloud = ["com.apple.itunescloudd"]
InternetTethering = ["com.apple.MobileInternetSharing"]
PassBook = ["com.apple.passd"]
Spotlight = ["com.apple.searchd"]
VoiceControl = [
"com.apple.assistant_service",
"com.apple.assistantd",
Expand Down

0 comments on commit ca85c79

Please sign in to comment.