Merge branch 'main' into v3

This commit is contained in:
leminlimez
2024-09-26 12:42:16 -04:00
5 changed files with 15 additions and 3 deletions

View File

@@ -1,5 +1,7 @@
# Nugget
Unlock your device's full potential! Works on all versions iOS 17.0+
Unlock your device's full potential! Works on all versions iOS 17.0-18.1 beta 4
Sparserestore was patched in iOS 18.1 beta 5. It will not be supported, please stop asking.
This uses the sparserestore exploit to write to files outside of the intended restore location, like mobilegestalt.

View File

@@ -1,4 +1,4 @@
from exploit import backup, perform_restore
from Sparserestore import backup, perform_restore
from pymobiledevice3 import usbmux
from pymobiledevice3.lockdown import create_using_usbmux
from pymobiledevice3.lockdown import LockdownClient
@@ -34,4 +34,4 @@ back = backup.Backup(files=[
backup.ConcreteFile("", "SysContainerDomain-../../../../../../../.." + "/crash_on_purpose", contents=b""),
])
perform_restore(backup=back, reboot=True, lockdown_client=lockdown)
perform_restore(backup=back, reboot=True, lockdown_client=lockdown)

View File

@@ -98,6 +98,7 @@ class MainWindow(QtWidgets.QMainWindow):
self.ui.stageManagerChk.clicked.connect(self.on_stageManagerChk_clicked)
self.ui.ipadAppsChk.clicked.connect(self.on_ipadAppsChk_clicked)
self.ui.shutterChk.clicked.connect(self.on_shutterChk_clicked)
self.ui.findMyFriendsChk.clicked.connect(self.on_findMyFriendsChk_clicked)
self.ui.pencilChk.clicked.connect(self.on_pencilChk_clicked)
self.ui.actionButtonChk.clicked.connect(self.on_actionButtonChk_clicked)
@@ -318,6 +319,8 @@ class MainWindow(QtWidgets.QMainWindow):
def on_shutterChk_clicked(self, checked: bool):
# TODO: allow the user to select the region
tweaks["Shutter"].set_enabled(checked)
def on_findMyFriendsChk_clicked(self, checked: bool):
tweaks["FindMyFriends"].set_enabled(checked)
def on_pencilChk_clicked(self, checked: bool):
tweaks["Pencil"].set_enabled(checked)
def on_actionButtonChk_clicked(self, checked: bool):

View File

@@ -1417,6 +1417,11 @@ class Ui_Nugget(object):
self.verticalLayout_8.addWidget(self.shutterChk)
self.findMyFriendsChk = QCheckBox(self.gestaltPageContent)
self.findMyFriendsChk.setObjectName(u"findMyFriendsChk")
self.verticalLayout_8.addWidget(self.findMyFriendsChk)
self.pencilChk = QCheckBox(self.gestaltPageContent)
self.pencilChk.setObjectName(u"pencilChk")
@@ -2192,6 +2197,7 @@ class Ui_Nugget(object):
self.stageManagerChk.setText(QCoreApplication.translate("Nugget", u"Enable Stage Manager Supported (WARNING: risky on some devices, mainly phones)", None))
self.ipadAppsChk.setText(QCoreApplication.translate("Nugget", u"Allow iPad Apps on iPhone", None))
self.shutterChk.setText(QCoreApplication.translate("Nugget", u"Disable Region Restrictions (ie. Shutter Sound)", None))
self.findMyFriendsChk.setText(QCoreApplication.translate("Nugget", u"Enable Find My Friends", None))
self.pencilChk.setText(QCoreApplication.translate("Nugget", u"Enable Apple Pencil Settings Tab", None))
self.actionButtonChk.setText(QCoreApplication.translate("Nugget", u"Enable Action Button Settings Tab", None))
self.internalInstallChk.setText(QCoreApplication.translate("Nugget", u"Set as Apple Internal Install (ie Metal HUD in any app)", None))

View File

@@ -17,6 +17,7 @@ tweaks = {
"StageManager": MobileGestaltTweak("Toggle Stage Manager Supported (WARNING: risky on some devices, mainly phones)", "qeaj75wk3HF4DwQ8qbIi7g", value=1),
"iPadApps": MobileGestaltTweak("Allow iPad Apps on iPhone", "9MZ5AdH43csAUajl/dU+IQ", value=[1, 2]),
"Shutter": MobileGestaltMultiTweak("Disable Region Restrictions (ie. Shutter Sound)", {"h63QSdBCiT/z0WU6rdQv6Q": "US", "zHeENZu+wbg7PUprwNwBWg": "LL/A"}),
"FindMyFriends": MobileGestaltTweak("Toggle Find My Friends", "Y2Y67z0Nq/XdDXgW2EeaVg"),
"Pencil": MobileGestaltTweak("Toggle Apple Pencil", "yhHcB0iH0d1XzPO/CFd3ow"),
"ActionButton": MobileGestaltTweak("Toggle Action Button", "cT44WE1EohiwRzhsZ8xEsw"),
"InternalStorage": MobileGestaltTweak("Toggle Internal Storage (WARNING: risky for some devices, mainly iPads)", "LBJfwOEzExRxzlAnSuI7eg"),