Merge pull request #329 from leminlimez/v4.2.2

v4.2.2
This commit is contained in:
leminlimez
2024-12-31 16:52:37 -05:00
committed by GitHub
7 changed files with 226 additions and 15 deletions

View File

@@ -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

View File

@@ -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 = ""

View File

@@ -18,7 +18,7 @@ from tweaks.tweaks import tweaks
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):
@@ -136,6 +136,7 @@ class MainWindow(QtWidgets.QMainWindow):
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)
@@ -146,6 +147,14 @@ class MainWindow(QtWidgets.QMainWindow):
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)
@@ -304,7 +313,7 @@ class MainWindow(QtWidgets.QMainWindow):
# 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]
@@ -779,6 +788,21 @@ class MainWindow(QtWidgets.QMainWindow):
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)

View File

@@ -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">
@@ -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>

View File

@@ -2076,6 +2076,51 @@ class Ui_Nugget(object):
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)
@@ -2346,11 +2391,11 @@ class Ui_Nugget(object):
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")
@@ -3408,6 +3453,13 @@ class Ui_Nugget(object):
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"
@@ -3437,7 +3489,7 @@ class Ui_Nugget(object):
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))

View File

@@ -2076,6 +2076,51 @@ class Ui_Nugget(object):
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)
@@ -2346,11 +2391,11 @@ class Ui_Nugget(object):
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")
@@ -3408,6 +3453,13 @@ class Ui_Nugget(object):
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"
@@ -3437,7 +3489,7 @@ class Ui_Nugget(object):
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))

View File

@@ -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"
]