Skip to content
This repository has been archived by the owner on Jan 20, 2025. It is now read-only.

Commit

Permalink
enable medusa/ipad multitasking
Browse files Browse the repository at this point in the history
  • Loading branch information
leminlimez committed Sep 29, 2024
1 parent 90aa746 commit 11b9d6d
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 3 deletions.
Binary file modified .DS_Store
Binary file not shown.
5 changes: 5 additions & 0 deletions gui/main_window.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ def __init__(self, device_manager: DeviceManager):
self.ui.iphone16SettingsChk.clicked.connect(self.on_iphone16SettingsChk_clicked)
self.ui.parallaxChk.clicked.connect(self.on_parallaxChk_clicked)
self.ui.stageManagerChk.clicked.connect(self.on_stageManagerChk_clicked)
self.ui.enableMedusaChk.clicked.connect(self.on_enableMedusaChk_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)
Expand Down Expand Up @@ -235,13 +236,15 @@ def change_selected_device(self, index):
self.ui.spoofModelChk.hide()
if Version(self.device_manager.data_singleton.current_device.version) >= Version("18.0"):
self.ui.aodChk.show()
self.ui.iphone16SettingsChk.show()
self.ui.sleepApneaChk.show()
self.ui.featureFlagsPageBtn.show()
# show the other dynamic island options
self.ui.dynamicIslandDrp.addItem("2622 (iPhone 16 Pro Dynamic Island)")
self.ui.dynamicIslandDrp.addItem("2868 (iPhone 16 Pro Max Dynamic Island)")
else:
self.ui.aodChk.hide()
self.ui.iphone16SettingsChk.hide()
self.ui.sleepApneaChk.hide()
self.ui.featureFlagsPageBtn.hide()
else:
Expand Down Expand Up @@ -380,6 +383,8 @@ def on_parallaxChk_clicked(self, checked: bool):

def on_stageManagerChk_clicked(self, checked: bool):
tweaks["StageManager"].set_enabled(checked)
def on_enableMedusaChk_clicked(self, checked: bool):
tweaks["Medusa"].set_enabled(checked)
def on_ipadAppsChk_clicked(self, checked: bool):
tweaks["iPadApps"].set_enabled(checked)
def on_shutterChk_clicked(self, checked: bool):
Expand Down
9 changes: 8 additions & 1 deletion qt/mainwindow.ui
Original file line number Diff line number Diff line change
Expand Up @@ -1566,7 +1566,7 @@ QToolButton:pressed {
<item>
<widget class="QLabel" name="label">
<property name="text">
<string>Nugget GUI - Version 3.0 (beta 4)</string>
<string>Nugget GUI - Version 3.0</string>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
Expand Down Expand Up @@ -1971,6 +1971,13 @@ QComboBox QAbstractItemView::item:hover {
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="enableMedusaChk">
<property name="text">
<string>Enable Medusa (iPad Multitasking) (WARNING: may be risky on some phones)</string>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="ipadAppsChk">
<property name="text">
Expand Down
8 changes: 7 additions & 1 deletion qt/mainwindow_ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -1072,6 +1072,11 @@ def setupUi(self, Nugget):

self.verticalLayout_8.addWidget(self.stageManagerChk)

self.enableMedusaChk = QCheckBox(self.gestaltPageContent)
self.enableMedusaChk.setObjectName(u"enableMedusaChk")

self.verticalLayout_8.addWidget(self.enableMedusaChk)

self.ipadAppsChk = QCheckBox(self.gestaltPageContent)
self.ipadAppsChk.setObjectName(u"ipadAppsChk")

Expand Down Expand Up @@ -2554,7 +2559,7 @@ def retranslateUi(self, Nugget):
self.toolButton_15.setText(QCoreApplication.translate("Nugget", u"Additional Thanks", None))
self.libiBtn.setText(QCoreApplication.translate("Nugget", u"pymobiledevice3", None))
self.qtBtn.setText(QCoreApplication.translate("Nugget", u"Qt Creator", None))
self.label.setText(QCoreApplication.translate("Nugget", u"Nugget GUI - Version 3.0 (beta 4)", None))
self.label.setText(QCoreApplication.translate("Nugget", u"Nugget GUI - Version 3.0", None))
self.statusBarLbl.setText(QCoreApplication.translate("Nugget", u"Mobile Gestalt", None))
self.label_9.setText(QCoreApplication.translate("Nugget", u"Device Subtype Preset", None))
self.dynamicIslandDrp.setItemText(0, QCoreApplication.translate("Nugget", u"None", None))
Expand All @@ -2575,6 +2580,7 @@ def retranslateUi(self, Nugget):
self.iphone16SettingsChk.setText(QCoreApplication.translate("Nugget", u"Enable iPhone 16 Settings", None))
self.parallaxChk.setText(QCoreApplication.translate("Nugget", u"Disable Wallpaper Parallax", None))
self.stageManagerChk.setText(QCoreApplication.translate("Nugget", u"Enable Stage Manager Supported (WARNING: risky on some devices, mainly phones)", None))
self.enableMedusaChk.setText(QCoreApplication.translate("Nugget", u"Enable Medusa (iPad Multitasking) (WARNING: may be risky on some 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))
Expand Down
8 changes: 7 additions & 1 deletion qt/ui_mainwindow.py
Original file line number Diff line number Diff line change
Expand Up @@ -1072,6 +1072,11 @@ def setupUi(self, Nugget):

self.verticalLayout_8.addWidget(self.stageManagerChk)

self.enableMedusaChk = QCheckBox(self.gestaltPageContent)
self.enableMedusaChk.setObjectName(u"enableMedusaChk")

self.verticalLayout_8.addWidget(self.enableMedusaChk)

self.ipadAppsChk = QCheckBox(self.gestaltPageContent)
self.ipadAppsChk.setObjectName(u"ipadAppsChk")

Expand Down Expand Up @@ -2554,7 +2559,7 @@ def retranslateUi(self, Nugget):
self.toolButton_15.setText(QCoreApplication.translate("Nugget", u"Additional Thanks", None))
self.libiBtn.setText(QCoreApplication.translate("Nugget", u"pymobiledevice3", None))
self.qtBtn.setText(QCoreApplication.translate("Nugget", u"Qt Creator", None))
self.label.setText(QCoreApplication.translate("Nugget", u"Nugget GUI - Version 3.0 (beta 4)", None))
self.label.setText(QCoreApplication.translate("Nugget", u"Nugget GUI - Version 3.0", None))
self.statusBarLbl.setText(QCoreApplication.translate("Nugget", u"Mobile Gestalt", None))
self.label_9.setText(QCoreApplication.translate("Nugget", u"Device Subtype Preset", None))
self.dynamicIslandDrp.setItemText(0, QCoreApplication.translate("Nugget", u"None", None))
Expand All @@ -2575,6 +2580,7 @@ def retranslateUi(self, Nugget):
self.iphone16SettingsChk.setText(QCoreApplication.translate("Nugget", u"Enable iPhone 16 Settings", None))
self.parallaxChk.setText(QCoreApplication.translate("Nugget", u"Disable Wallpaper Parallax", None))
self.stageManagerChk.setText(QCoreApplication.translate("Nugget", u"Enable Stage Manager Supported (WARNING: risky on some devices, mainly phones)", None))
self.enableMedusaChk.setText(QCoreApplication.translate("Nugget", u"Enable Medusa (iPad Multitasking) (WARNING: may be risky on some 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))
Expand Down
1 change: 1 addition & 0 deletions tweaks/tweaks.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"CameraButton": MobileGestaltMultiTweak("Toggle iPhone 16 Settings", {"CwvKxM2cEogD3p+HYgaW0Q": 1, "oOV1jhJbdV3AddkcCg0AEA": 1}, min_version=Version("18.0")),
"Parallax": MobileGestaltTweak("Disable Wallpaper Parallax", "UIParallaxCapability", value=0),
"StageManager": MobileGestaltTweak("Toggle Stage Manager Supported (WARNING: risky on some devices, mainly phones)", "qeaj75wk3HF4DwQ8qbIi7g", value=1),
"Medusa": MobileGestaltMultiTweak("Toggle Medusa (iPad Multitasking) (WARNING: may be risky on some phones)", {"mG0AnH/Vy1veoqoLRAIgTA": 1, "UCG5MkVahJxG1YULbbd5Bg": 1, "ZYqko/XM5zD3XBfN5RmaXA": 1, "nVh/gwNpy7Jv1NOk00CMrw": 1, "uKc7FPnEO++lVhHWHFlGbQ": 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"),
Expand Down

0 comments on commit 11b9d6d

Please sign in to comment.