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 #329 from leminlimez/v4.2.2
Browse files Browse the repository at this point in the history
v4.2.2
  • Loading branch information
leminlimez authored Dec 31, 2024
2 parents af6abe6 + 465a8ca commit 95562af
Show file tree
Hide file tree
Showing 7 changed files with 226 additions and 15 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,14 @@ 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
- Internet Tethering (aka Personal Hotspot)
- PassBook
- Spotlight
- Voice Control
- Risky (Hidden) Options:
- Disable thermalmonitord
- OTA Killer
Expand Down
2 changes: 1 addition & 1 deletion Sparserestore/restore.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def restore_files(files: list, reboot: bool = False, lockdown_client: LockdownCl
# create the files to be backed up
files_list = [
]
sorted_files = sorted(files, key=lambda x: x.restore_path, reverse=True)
sorted_files = sorted(files, key=lambda x: x.restore_path, reverse=False)
# add the file paths
last_domain = ""
last_path = ""
Expand Down
28 changes: 26 additions & 2 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.1"
App_Version = "4.2.2"
App_Build = 0

class Page(Enum):
Expand Down Expand Up @@ -136,6 +136,7 @@ def __init__(self, device_manager: DeviceManager):
self.ui.thermalmonitordChk.toggled.connect(self.on_thermalmonitordChk_clicked)
self.ui.otadChk.toggled.connect(self.on_otadChk_clicked)
self.ui.usageTrackingAgentChk.toggled.connect(self.on_usageTrackingAgentChk_clicked)

self.ui.gameCenterChk.toggled.connect(self.on_gameCenterChk_clicked)
self.ui.screenTimeChk.toggled.connect(self.on_screenTimeChk_clicked)
self.ui.clearScreenTimeAgentChk.toggled.connect(self.on_clearScreenTimeAgentChk_clicked)
Expand All @@ -146,6 +147,14 @@ def __init__(self, device_manager: DeviceManager):
self.ui.wapicChk.toggled.connect(self.on_wapicChk_clicked)
self.ui.healthdChk.toggled.connect(self.on_healthdChk_clicked)

self.ui.airprintChk.toggled.connect(self.on_airprintChk_clicked)
self.ui.assistiveTouchChk.toggled.connect(self.on_assistiveTouchChk_clicked)
self.ui.icloudChk.toggled.connect(self.on_icloudChk_clicked)
self.ui.hotspotChk.toggled.connect(self.on_hotspotChk_clicked)
self.ui.passbookChk.toggled.connect(self.on_passbookChk_clicked)
self.ui.spotlightChk.toggled.connect(self.on_spotlightChk_clicked)
self.ui.voiceControlChk.toggled.connect(self.on_voiceControlChk_clicked)

## RISKY OPTIONS PAGE ACTIONS
self.ui.disableOTAChk.toggled.connect(self.on_disableOTAChk_clicked)
self.ui.enableResolutionChk.toggled.connect(self.on_enableResolutionChk_clicked)
Expand Down Expand Up @@ -304,7 +313,7 @@ def change_selected_device(self, index):
# hide options that are for newer versions
# remove the new dynamic island options
MinTweakVersions = {
"no_patch": [self.ui.chooseGestaltBtn, self.ui.gestaltPageBtn, self.ui.resetGestaltBtn, self.ui.gestaltLocationLbl, self.ui.showAllSpoofableChk],
"no_patch": [self.ui.chooseGestaltBtn, self.ui.gestaltPageBtn, self.ui.resetGestaltBtn, self.ui.gestaltLocationLbl, self.ui.gestaltLocationTitleLbl, self.ui.showAllSpoofableChk],
"exploit": [("18.0", self.ui.featureFlagsPageBtn), ("18.1", self.ui.eligFileChk), ("1.0", self.ui.regularDomainsLbl)],
"18.1": [self.ui.enableAIChk, self.ui.aiEnablerContent],
"18.0": [self.ui.aodChk, self.ui.aodVibrancyChk, self.ui.iphone16SettingsChk]
Expand Down Expand Up @@ -779,6 +788,21 @@ def on_wapicChk_clicked(self, checked: bool):
def on_healthdChk_clicked(self, checked: bool):
tweaks["Daemons"].set_multiple_values(Daemon.HealthKit.value, value=checked)

def on_airprintChk_clicked(self, checked: bool):
tweaks["Daemons"].set_multiple_values(Daemon.AirPrint.value, value=checked)
def on_assistiveTouchChk_clicked(self, checked: bool):
tweaks["Daemons"].set_multiple_values(Daemon.AssistiveTouch.value, value=checked)
def on_icloudChk_clicked(self, checked: bool):
tweaks["Daemons"].set_multiple_values(Daemon.iCloud.value, value=checked)
def on_hotspotChk_clicked(self, checked: bool):
tweaks["Daemons"].set_multiple_values(Daemon.InternetTethering.value, value=checked)
def on_passbookChk_clicked(self, checked: bool):
tweaks["Daemons"].set_multiple_values(Daemon.PassBook.value, value=checked)
def on_spotlightChk_clicked(self, checked: bool):
tweaks["Daemons"].set_multiple_values(Daemon.Spotlight.value, value=checked)
def on_voiceControlChk_clicked(self, checked: bool):
tweaks["Daemons"].set_multiple_values(Daemon.VoiceControl.value, value=checked)

## Risky Options Page
def on_disableOTAChk_clicked(self, checked: bool):
tweaks["DisableOTAFile"].set_enabled(checked)
Expand Down
66 changes: 65 additions & 1 deletion qt/mainwindow.ui
Original file line number Diff line number Diff line change
Expand Up @@ -3956,6 +3956,70 @@ To work properly, also disable the daemon using the toggle above.</string>
</property>
</widget>
</item>
<item>
<widget class="Line" name="line_26">
<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="airprintChk">
<property name="text">
<string>Disable AirPrint</string>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="assistiveTouchChk">
<property name="text">
<string>Disable Assistive Touch</string>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="icloudChk">
<property name="text">
<string>Disable iCloud</string>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="hotspotChk">
<property name="text">
<string>Disable Internet Tethering (Hotspot)</string>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="passbookChk">
<property name="text">
<string>Disable Passbook</string>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="spotlightChk">
<property name="text">
<string>Disable Spotlight</string>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="voiceControlChk">
<property name="text">
<string>Disable Voice Control</string>
</property>
</widget>
</item>
<item>
<spacer name="verticalSpacer_6">
<property name="orientation">
Expand Down Expand Up @@ -4495,7 +4559,7 @@ Warning: Disabling will cause the battery to show &quot;Unknown Part&quot; or &q
</spacer>
</item>
<item>
<widget class="QLabel" name="modifiedTweaksLbl">
<widget class="QLabel" name="gestaltLocationTitleLbl">
<property name="text">
<string>Current gestalt file location:</string>
</property>
Expand Down
62 changes: 57 additions & 5 deletions qt/mainwindow_ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -2076,6 +2076,51 @@ def setupUi(self, Nugget):

self.verticalLayout_132.addWidget(self.healthdChk)

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

self.verticalLayout_132.addWidget(self.line_26)

self.airprintChk = QCheckBox(self.daemonsPageContent)
self.airprintChk.setObjectName(u"airprintChk")

self.verticalLayout_132.addWidget(self.airprintChk)

self.assistiveTouchChk = QCheckBox(self.daemonsPageContent)
self.assistiveTouchChk.setObjectName(u"assistiveTouchChk")

self.verticalLayout_132.addWidget(self.assistiveTouchChk)

self.icloudChk = QCheckBox(self.daemonsPageContent)
self.icloudChk.setObjectName(u"icloudChk")

self.verticalLayout_132.addWidget(self.icloudChk)

self.hotspotChk = QCheckBox(self.daemonsPageContent)
self.hotspotChk.setObjectName(u"hotspotChk")

self.verticalLayout_132.addWidget(self.hotspotChk)

self.passbookChk = QCheckBox(self.daemonsPageContent)
self.passbookChk.setObjectName(u"passbookChk")

self.verticalLayout_132.addWidget(self.passbookChk)

self.spotlightChk = QCheckBox(self.daemonsPageContent)
self.spotlightChk.setObjectName(u"spotlightChk")

self.verticalLayout_132.addWidget(self.spotlightChk)

self.voiceControlChk = QCheckBox(self.daemonsPageContent)
self.voiceControlChk.setObjectName(u"voiceControlChk")

self.verticalLayout_132.addWidget(self.voiceControlChk)

self.verticalSpacer_62 = QSpacerItem(20, 40, QSizePolicy.Policy.Minimum, QSizePolicy.Policy.Expanding)

self.verticalLayout_132.addItem(self.verticalSpacer_62)
Expand Down Expand Up @@ -2346,11 +2391,11 @@ def setupUi(self, Nugget):

self.verticalLayout_24.addItem(self.verticalSpacer_10)

self.modifiedTweaksLbl = QLabel(self.verticalWidget2)
self.modifiedTweaksLbl.setObjectName(u"modifiedTweaksLbl")
self.modifiedTweaksLbl.setAlignment(Qt.AlignCenter)
self.gestaltLocationTitleLbl = QLabel(self.verticalWidget2)
self.gestaltLocationTitleLbl.setObjectName(u"gestaltLocationTitleLbl")
self.gestaltLocationTitleLbl.setAlignment(Qt.AlignCenter)

self.verticalLayout_24.addWidget(self.modifiedTweaksLbl)
self.verticalLayout_24.addWidget(self.gestaltLocationTitleLbl)

self.gestaltLocationLbl = QLabel(self.verticalWidget2)
self.gestaltLocationLbl.setObjectName(u"gestaltLocationLbl")
Expand Down Expand Up @@ -3408,6 +3453,13 @@ def retranslateUi(self, Nugget):
self.healthdChk.setToolTip(QCoreApplication.translate("Nugget", u"Disables HealthKit services used by the health app.", None))
#endif // QT_CONFIG(tooltip)
self.healthdChk.setText(QCoreApplication.translate("Nugget", u"Disable HealthKit", None))
self.airprintChk.setText(QCoreApplication.translate("Nugget", u"Disable AirPrint", None))
self.assistiveTouchChk.setText(QCoreApplication.translate("Nugget", u"Disable Assistive Touch", None))
self.icloudChk.setText(QCoreApplication.translate("Nugget", u"Disable iCloud", None))
self.hotspotChk.setText(QCoreApplication.translate("Nugget", u"Disable Internet Tethering (Hotspot)", None))
self.passbookChk.setText(QCoreApplication.translate("Nugget", u"Disable Passbook", None))
self.spotlightChk.setText(QCoreApplication.translate("Nugget", u"Disable Spotlight", None))
self.voiceControlChk.setText(QCoreApplication.translate("Nugget", u"Disable Voice Control", None))
self.advancedOptionsLbl.setText(QCoreApplication.translate("Nugget", u"Risky Options", None))
self.label_17.setText(QCoreApplication.translate("Nugget", u"Disclaimer:\n"
"\n"
Expand Down Expand Up @@ -3437,7 +3489,7 @@ def retranslateUi(self, Nugget):
self.resWidthWarningLbl.setText(QCoreApplication.translate("Nugget", u"!", None))
self.statusBarLbl_5.setText(QCoreApplication.translate("Nugget", u"Apply", None))
self.label_16.setText("")
self.modifiedTweaksLbl.setText(QCoreApplication.translate("Nugget", u"Current gestalt file location:", None))
self.gestaltLocationTitleLbl.setText(QCoreApplication.translate("Nugget", u"Current gestalt file location:", None))
self.gestaltLocationLbl.setText(QCoreApplication.translate("Nugget", u"None", None))
self.chooseGestaltBtn.setText(QCoreApplication.translate("Nugget", u" Choose Gestalt File", None))
self.applyTweaksBtn.setText(QCoreApplication.translate("Nugget", u" Apply Changes", None))
Expand Down
62 changes: 57 additions & 5 deletions qt/ui_mainwindow.py
Original file line number Diff line number Diff line change
Expand Up @@ -2076,6 +2076,51 @@ def setupUi(self, Nugget):

self.verticalLayout_132.addWidget(self.healthdChk)

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

self.verticalLayout_132.addWidget(self.line_26)

self.airprintChk = QCheckBox(self.daemonsPageContent)
self.airprintChk.setObjectName(u"airprintChk")

self.verticalLayout_132.addWidget(self.airprintChk)

self.assistiveTouchChk = QCheckBox(self.daemonsPageContent)
self.assistiveTouchChk.setObjectName(u"assistiveTouchChk")

self.verticalLayout_132.addWidget(self.assistiveTouchChk)

self.icloudChk = QCheckBox(self.daemonsPageContent)
self.icloudChk.setObjectName(u"icloudChk")

self.verticalLayout_132.addWidget(self.icloudChk)

self.hotspotChk = QCheckBox(self.daemonsPageContent)
self.hotspotChk.setObjectName(u"hotspotChk")

self.verticalLayout_132.addWidget(self.hotspotChk)

self.passbookChk = QCheckBox(self.daemonsPageContent)
self.passbookChk.setObjectName(u"passbookChk")

self.verticalLayout_132.addWidget(self.passbookChk)

self.spotlightChk = QCheckBox(self.daemonsPageContent)
self.spotlightChk.setObjectName(u"spotlightChk")

self.verticalLayout_132.addWidget(self.spotlightChk)

self.voiceControlChk = QCheckBox(self.daemonsPageContent)
self.voiceControlChk.setObjectName(u"voiceControlChk")

self.verticalLayout_132.addWidget(self.voiceControlChk)

self.verticalSpacer_62 = QSpacerItem(20, 40, QSizePolicy.Policy.Minimum, QSizePolicy.Policy.Expanding)

self.verticalLayout_132.addItem(self.verticalSpacer_62)
Expand Down Expand Up @@ -2346,11 +2391,11 @@ def setupUi(self, Nugget):

self.verticalLayout_24.addItem(self.verticalSpacer_10)

self.modifiedTweaksLbl = QLabel(self.verticalWidget2)
self.modifiedTweaksLbl.setObjectName(u"modifiedTweaksLbl")
self.modifiedTweaksLbl.setAlignment(Qt.AlignCenter)
self.gestaltLocationTitleLbl = QLabel(self.verticalWidget2)
self.gestaltLocationTitleLbl.setObjectName(u"gestaltLocationTitleLbl")
self.gestaltLocationTitleLbl.setAlignment(Qt.AlignCenter)

self.verticalLayout_24.addWidget(self.modifiedTweaksLbl)
self.verticalLayout_24.addWidget(self.gestaltLocationTitleLbl)

self.gestaltLocationLbl = QLabel(self.verticalWidget2)
self.gestaltLocationLbl.setObjectName(u"gestaltLocationLbl")
Expand Down Expand Up @@ -3408,6 +3453,13 @@ def retranslateUi(self, Nugget):
self.healthdChk.setToolTip(QCoreApplication.translate("Nugget", u"Disables HealthKit services used by the health app.", None))
#endif // QT_CONFIG(tooltip)
self.healthdChk.setText(QCoreApplication.translate("Nugget", u"Disable HealthKit", None))
self.airprintChk.setText(QCoreApplication.translate("Nugget", u"Disable AirPrint", None))
self.assistiveTouchChk.setText(QCoreApplication.translate("Nugget", u"Disable Assistive Touch", None))
self.icloudChk.setText(QCoreApplication.translate("Nugget", u"Disable iCloud", None))
self.hotspotChk.setText(QCoreApplication.translate("Nugget", u"Disable Internet Tethering (Hotspot)", None))
self.passbookChk.setText(QCoreApplication.translate("Nugget", u"Disable Passbook", None))
self.spotlightChk.setText(QCoreApplication.translate("Nugget", u"Disable Spotlight", None))
self.voiceControlChk.setText(QCoreApplication.translate("Nugget", u"Disable Voice Control", None))
self.advancedOptionsLbl.setText(QCoreApplication.translate("Nugget", u"Risky Options", None))
self.label_17.setText(QCoreApplication.translate("Nugget", u"Disclaimer:\n"
"\n"
Expand Down Expand Up @@ -3437,7 +3489,7 @@ def retranslateUi(self, Nugget):
self.resWidthWarningLbl.setText(QCoreApplication.translate("Nugget", u"!", None))
self.statusBarLbl_5.setText(QCoreApplication.translate("Nugget", u"Apply", None))
self.label_16.setText("")
self.modifiedTweaksLbl.setText(QCoreApplication.translate("Nugget", u"Current gestalt file location:", None))
self.gestaltLocationTitleLbl.setText(QCoreApplication.translate("Nugget", u"Current gestalt file location:", None))
self.gestaltLocationLbl.setText(QCoreApplication.translate("Nugget", u"None", None))
self.chooseGestaltBtn.setText(QCoreApplication.translate("Nugget", u" Choose Gestalt File", None))
self.applyTweaksBtn.setText(QCoreApplication.translate("Nugget", u" Apply Changes", None))
Expand Down
13 changes: 12 additions & 1 deletion tweaks/daemons_tweak.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,15 @@ class Daemon(Enum):
Tips = ["com.apple.tipsd"]
VPN = ["com.apple.racoon"]
ChineseLAN = ["com.apple.wapic"]
HealthKit = ["com.apple.healthd"]
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"],
VoiceControl = [
"com.apple.assistant_service",
"com.apple.assistantd",
"com.apple.voiced"
]

0 comments on commit 95562af

Please sign in to comment.