separate ai writing tools + experimental test

This commit is contained in:
leminlimez
2024-10-29 14:05:14 -04:00
parent ca22526ec0
commit c000e6723c
5 changed files with 68 additions and 13 deletions

View File

@@ -76,6 +76,8 @@ class MainWindow(QtWidgets.QMainWindow):
self.ui.regionCodeTxt.textEdited.connect(self.on_regionCodeTxt_textEdited) self.ui.regionCodeTxt.textEdited.connect(self.on_regionCodeTxt_textEdited)
self.ui.enableAIChk.toggled.connect(self.on_enableAIChk_toggled) self.ui.enableAIChk.toggled.connect(self.on_enableAIChk_toggled)
self.ui.writingToolsChk.toggled.connect(self.on_writingToolsChk_toggled)
self.ui.experimentalChk.toggled.connect(self.on_experimentalChk_toggled)
self.ui.languageTxt.textEdited.connect(self.on_languageTxt_textEdited) self.ui.languageTxt.textEdited.connect(self.on_languageTxt_textEdited)
self.ui.spoofedModelDrp.activated.connect(self.on_spoofedModelDrp_activated) self.ui.spoofedModelDrp.activated.connect(self.on_spoofedModelDrp_activated)
@@ -543,6 +545,12 @@ class MainWindow(QtWidgets.QMainWindow):
self.ui.aiEnablerContent.show() self.ui.aiEnablerContent.show()
else: else:
self.ui.aiEnablerContent.hide() self.ui.aiEnablerContent.hide()
def on_writingToolsChk_toggled(self, checked: bool):
tweaks["AIWritingTools"].set_enabled(checked)
def on_experimentalChk_toggled(self, checked: bool):
tweaks["AIExperiment"].set_enabled(checked)
def on_languageTxt_textEdited(self, text: str): def on_languageTxt_textEdited(self, text: str):
tweaks["AIEligibility"].set_language_code(text) tweaks["AIEligibility"].set_language_code(text)
def on_spoofedModelDrp_activated(self, index: int): def on_spoofedModelDrp_activated(self, index: int):

View File

@@ -790,6 +790,11 @@ QSlider::tick:horizontal {
<number>0</number> <number>0</number>
</property> </property>
<widget class="QWidget" name="homePage"> <widget class="QWidget" name="homePage">
<property name="font">
<font>
<family>.AppleSystemUIFont</family>
</font>
</property>
<layout class="QVBoxLayout" name="verticalLayout_2"> <layout class="QVBoxLayout" name="verticalLayout_2">
<property name="leftMargin"> <property name="leftMargin">
<number>0</number> <number>0</number>
@@ -1566,7 +1571,7 @@ QToolButton:pressed {
<item> <item>
<widget class="QLabel" name="label"> <widget class="QLabel" name="label">
<property name="text"> <property name="text">
<string>Nugget GUI - Version 4.0.1 (beta 1)</string> <string>Nugget GUI - Version 4.0.1 (beta 2)</string>
</property> </property>
<property name="alignment"> <property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
@@ -2694,6 +2699,20 @@ QComboBox QAbstractItemView::item:hover {
<property name="bottomMargin"> <property name="bottomMargin">
<number>5</number> <number>5</number>
</property> </property>
<item>
<widget class="QCheckBox" name="writingToolsChk">
<property name="text">
<string>Enable Writing Tool Support (test)</string>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="experimentalChk">
<property name="text">
<string>Experimental Toggle</string>
</property>
</widget>
</item>
<item> <item>
<widget class="QLabel" name="languageLbl"> <widget class="QLabel" name="languageLbl">
<property name="text"> <property name="text">
@@ -2805,7 +2824,7 @@ QComboBox QAbstractItemView::item:hover {
</item> </item>
<item> <item>
<property name="text"> <property name="text">
<string>iPhone16,2 (iPhone 15 Pro)</string> <string>iPhone16,2 (iPhone 15 Pro Max)</string>
</property> </property>
</item> </item>
<item> <item>
@@ -2815,12 +2834,12 @@ QComboBox QAbstractItemView::item:hover {
</item> </item>
<item> <item>
<property name="text"> <property name="text">
<string>iPhone17,3 (iPhone 16 Pro)</string> <string>iPhone17,3 (iPhone 16)</string>
</property> </property>
</item> </item>
<item> <item>
<property name="text"> <property name="text">
<string>iPhone17,2 (iPhone 16 Pro Max)</string> <string>iPhone17,2 (iPhone 16 Pro)</string>
</property> </property>
</item> </item>
<item> <item>

View File

@@ -469,6 +469,7 @@ class Ui_Nugget(object):
self.pages.setObjectName(u"pages") self.pages.setObjectName(u"pages")
self.homePage = QWidget() self.homePage = QWidget()
self.homePage.setObjectName(u"homePage") self.homePage.setObjectName(u"homePage")
self.homePage.setFont(font)
self.verticalLayout_2 = QVBoxLayout(self.homePage) self.verticalLayout_2 = QVBoxLayout(self.homePage)
self.verticalLayout_2.setObjectName(u"verticalLayout_2") self.verticalLayout_2.setObjectName(u"verticalLayout_2")
self.verticalLayout_2.setContentsMargins(0, 0, 0, 0) self.verticalLayout_2.setContentsMargins(0, 0, 0, 0)
@@ -1481,6 +1482,16 @@ class Ui_Nugget(object):
self.verticalLayout_34 = QVBoxLayout(self.aiEnablerContent) self.verticalLayout_34 = QVBoxLayout(self.aiEnablerContent)
self.verticalLayout_34.setObjectName(u"verticalLayout_34") self.verticalLayout_34.setObjectName(u"verticalLayout_34")
self.verticalLayout_34.setContentsMargins(0, 5, 0, 5) self.verticalLayout_34.setContentsMargins(0, 5, 0, 5)
self.writingToolsChk = QCheckBox(self.aiEnablerContent)
self.writingToolsChk.setObjectName(u"writingToolsChk")
self.verticalLayout_34.addWidget(self.writingToolsChk)
self.experimentalChk = QCheckBox(self.aiEnablerContent)
self.experimentalChk.setObjectName(u"experimentalChk")
self.verticalLayout_34.addWidget(self.experimentalChk)
self.languageLbl = QLabel(self.aiEnablerContent) self.languageLbl = QLabel(self.aiEnablerContent)
self.languageLbl.setObjectName(u"languageLbl") self.languageLbl.setObjectName(u"languageLbl")
@@ -2730,7 +2741,7 @@ class Ui_Nugget(object):
self.toolButton_15.setText(QCoreApplication.translate("Nugget", u"Additional Thanks", None)) self.toolButton_15.setText(QCoreApplication.translate("Nugget", u"Additional Thanks", None))
self.libiBtn.setText(QCoreApplication.translate("Nugget", u"pymobiledevice3", None)) self.libiBtn.setText(QCoreApplication.translate("Nugget", u"pymobiledevice3", None))
self.qtBtn.setText(QCoreApplication.translate("Nugget", u"Qt Creator", None)) self.qtBtn.setText(QCoreApplication.translate("Nugget", u"Qt Creator", None))
self.label.setText(QCoreApplication.translate("Nugget", u"Nugget GUI - Version 4.0.1 (beta 1)", None)) self.label.setText(QCoreApplication.translate("Nugget", u"Nugget GUI - Version 4.0.1 (beta 2)", None))
self.statusBarLbl.setText(QCoreApplication.translate("Nugget", u"Mobile Gestalt", None)) self.statusBarLbl.setText(QCoreApplication.translate("Nugget", u"Mobile Gestalt", None))
self.mgaWarningLbl.setText(QCoreApplication.translate("Nugget", u"! Your device's mobilegestalt file is required for this feature. Select it on the apply page.", None)) self.mgaWarningLbl.setText(QCoreApplication.translate("Nugget", u"! Your device's mobilegestalt file is required for this feature. Select it on the apply page.", None))
self.label_9.setText(QCoreApplication.translate("Nugget", u"Device Subtype Preset", None)) self.label_9.setText(QCoreApplication.translate("Nugget", u"Device Subtype Preset", None))
@@ -2781,6 +2792,8 @@ class Ui_Nugget(object):
self.regionCodeTxt.setPlaceholderText(QCoreApplication.translate("Nugget", u"Region Code (Default: US)", None)) self.regionCodeTxt.setPlaceholderText(QCoreApplication.translate("Nugget", u"Region Code (Default: US)", None))
self.mgaWarningLbl2.setText(QCoreApplication.translate("Nugget", u"! Your device's mobilegestalt file is required for this feature. Select it on the apply page.", None)) self.mgaWarningLbl2.setText(QCoreApplication.translate("Nugget", u"! Your device's mobilegestalt file is required for this feature. Select it on the apply page.", None))
self.enableAIChk.setText(QCoreApplication.translate("Nugget", u"Enable Apple Intelligence (for Unsupported Devices)", None)) self.enableAIChk.setText(QCoreApplication.translate("Nugget", u"Enable Apple Intelligence (for Unsupported Devices)", None))
self.writingToolsChk.setText(QCoreApplication.translate("Nugget", u"Enable Writing Tool Support (test)", None))
self.experimentalChk.setText(QCoreApplication.translate("Nugget", u"Experimental Toggle", None))
self.languageLbl.setText(QCoreApplication.translate("Nugget", u"Language Code (not needed for English)", None)) self.languageLbl.setText(QCoreApplication.translate("Nugget", u"Language Code (not needed for English)", None))
self.languageTxt.setPlaceholderText(QCoreApplication.translate("Nugget", u"Language Code (i.e. en)", None)) self.languageTxt.setPlaceholderText(QCoreApplication.translate("Nugget", u"Language Code (i.e. en)", None))
self.aiInfoLabel.setText(QCoreApplication.translate("Nugget", u"In order to download the AI model, you must spoof the device model. This will break Face ID until\n" self.aiInfoLabel.setText(QCoreApplication.translate("Nugget", u"In order to download the AI model, you must spoof the device model. This will break Face ID until\n"
@@ -2790,10 +2803,10 @@ class Ui_Nugget(object):
"button on the \"Apply\" page again to fix Face ID.", None)) "button on the \"Apply\" page again to fix Face ID.", None))
self.label_8.setText(QCoreApplication.translate("Nugget", u"Spoofed Device Model", None)) self.label_8.setText(QCoreApplication.translate("Nugget", u"Spoofed Device Model", None))
self.spoofedModelDrp.setItemText(0, QCoreApplication.translate("Nugget", u"None", None)) self.spoofedModelDrp.setItemText(0, QCoreApplication.translate("Nugget", u"None", None))
self.spoofedModelDrp.setItemText(1, QCoreApplication.translate("Nugget", u"iPhone16,2 (iPhone 15 Pro)", None)) self.spoofedModelDrp.setItemText(1, QCoreApplication.translate("Nugget", u"iPhone16,2 (iPhone 15 Pro Max)", None))
self.spoofedModelDrp.setItemText(2, QCoreApplication.translate("Nugget", u"iPhone17,4 (iPhone 16 Plus)", None)) self.spoofedModelDrp.setItemText(2, QCoreApplication.translate("Nugget", u"iPhone17,4 (iPhone 16 Plus)", None))
self.spoofedModelDrp.setItemText(3, QCoreApplication.translate("Nugget", u"iPhone17,3 (iPhone 16 Pro)", None)) self.spoofedModelDrp.setItemText(3, QCoreApplication.translate("Nugget", u"iPhone17,3 (iPhone 16)", None))
self.spoofedModelDrp.setItemText(4, QCoreApplication.translate("Nugget", u"iPhone17,2 (iPhone 16 Pro Max)", None)) self.spoofedModelDrp.setItemText(4, QCoreApplication.translate("Nugget", u"iPhone17,2 (iPhone 16 Pro)", None))
self.spoofedModelDrp.setItemText(5, QCoreApplication.translate("Nugget", u"iPad16,3 (iPad Pro M4)", None)) self.spoofedModelDrp.setItemText(5, QCoreApplication.translate("Nugget", u"iPad16,3 (iPad Pro M4)", None))
self.spoofedModelDrp.setCurrentText(QCoreApplication.translate("Nugget", u"None", None)) self.spoofedModelDrp.setCurrentText(QCoreApplication.translate("Nugget", u"None", None))

View File

@@ -469,6 +469,7 @@ class Ui_Nugget(object):
self.pages.setObjectName(u"pages") self.pages.setObjectName(u"pages")
self.homePage = QWidget() self.homePage = QWidget()
self.homePage.setObjectName(u"homePage") self.homePage.setObjectName(u"homePage")
self.homePage.setFont(font)
self.verticalLayout_2 = QVBoxLayout(self.homePage) self.verticalLayout_2 = QVBoxLayout(self.homePage)
self.verticalLayout_2.setObjectName(u"verticalLayout_2") self.verticalLayout_2.setObjectName(u"verticalLayout_2")
self.verticalLayout_2.setContentsMargins(0, 0, 0, 0) self.verticalLayout_2.setContentsMargins(0, 0, 0, 0)
@@ -1481,6 +1482,16 @@ class Ui_Nugget(object):
self.verticalLayout_34 = QVBoxLayout(self.aiEnablerContent) self.verticalLayout_34 = QVBoxLayout(self.aiEnablerContent)
self.verticalLayout_34.setObjectName(u"verticalLayout_34") self.verticalLayout_34.setObjectName(u"verticalLayout_34")
self.verticalLayout_34.setContentsMargins(0, 5, 0, 5) self.verticalLayout_34.setContentsMargins(0, 5, 0, 5)
self.writingToolsChk = QCheckBox(self.aiEnablerContent)
self.writingToolsChk.setObjectName(u"writingToolsChk")
self.verticalLayout_34.addWidget(self.writingToolsChk)
self.experimentalChk = QCheckBox(self.aiEnablerContent)
self.experimentalChk.setObjectName(u"experimentalChk")
self.verticalLayout_34.addWidget(self.experimentalChk)
self.languageLbl = QLabel(self.aiEnablerContent) self.languageLbl = QLabel(self.aiEnablerContent)
self.languageLbl.setObjectName(u"languageLbl") self.languageLbl.setObjectName(u"languageLbl")
@@ -2730,7 +2741,7 @@ class Ui_Nugget(object):
self.toolButton_15.setText(QCoreApplication.translate("Nugget", u"Additional Thanks", None)) self.toolButton_15.setText(QCoreApplication.translate("Nugget", u"Additional Thanks", None))
self.libiBtn.setText(QCoreApplication.translate("Nugget", u"pymobiledevice3", None)) self.libiBtn.setText(QCoreApplication.translate("Nugget", u"pymobiledevice3", None))
self.qtBtn.setText(QCoreApplication.translate("Nugget", u"Qt Creator", None)) self.qtBtn.setText(QCoreApplication.translate("Nugget", u"Qt Creator", None))
self.label.setText(QCoreApplication.translate("Nugget", u"Nugget GUI - Version 4.0.1 (beta 1)", None)) self.label.setText(QCoreApplication.translate("Nugget", u"Nugget GUI - Version 4.0.1 (beta 2)", None))
self.statusBarLbl.setText(QCoreApplication.translate("Nugget", u"Mobile Gestalt", None)) self.statusBarLbl.setText(QCoreApplication.translate("Nugget", u"Mobile Gestalt", None))
self.mgaWarningLbl.setText(QCoreApplication.translate("Nugget", u"! Your device's mobilegestalt file is required for this feature. Select it on the apply page.", None)) self.mgaWarningLbl.setText(QCoreApplication.translate("Nugget", u"! Your device's mobilegestalt file is required for this feature. Select it on the apply page.", None))
self.label_9.setText(QCoreApplication.translate("Nugget", u"Device Subtype Preset", None)) self.label_9.setText(QCoreApplication.translate("Nugget", u"Device Subtype Preset", None))
@@ -2781,6 +2792,8 @@ class Ui_Nugget(object):
self.regionCodeTxt.setPlaceholderText(QCoreApplication.translate("Nugget", u"Region Code (Default: US)", None)) self.regionCodeTxt.setPlaceholderText(QCoreApplication.translate("Nugget", u"Region Code (Default: US)", None))
self.mgaWarningLbl2.setText(QCoreApplication.translate("Nugget", u"! Your device's mobilegestalt file is required for this feature. Select it on the apply page.", None)) self.mgaWarningLbl2.setText(QCoreApplication.translate("Nugget", u"! Your device's mobilegestalt file is required for this feature. Select it on the apply page.", None))
self.enableAIChk.setText(QCoreApplication.translate("Nugget", u"Enable Apple Intelligence (for Unsupported Devices)", None)) self.enableAIChk.setText(QCoreApplication.translate("Nugget", u"Enable Apple Intelligence (for Unsupported Devices)", None))
self.writingToolsChk.setText(QCoreApplication.translate("Nugget", u"Enable Writing Tool Support (test)", None))
self.experimentalChk.setText(QCoreApplication.translate("Nugget", u"Experimental Toggle", None))
self.languageLbl.setText(QCoreApplication.translate("Nugget", u"Language Code (not needed for English)", None)) self.languageLbl.setText(QCoreApplication.translate("Nugget", u"Language Code (not needed for English)", None))
self.languageTxt.setPlaceholderText(QCoreApplication.translate("Nugget", u"Language Code (i.e. en)", None)) self.languageTxt.setPlaceholderText(QCoreApplication.translate("Nugget", u"Language Code (i.e. en)", None))
self.aiInfoLabel.setText(QCoreApplication.translate("Nugget", u"In order to download the AI model, you must spoof the device model. This will break Face ID until\n" self.aiInfoLabel.setText(QCoreApplication.translate("Nugget", u"In order to download the AI model, you must spoof the device model. This will break Face ID until\n"
@@ -2790,10 +2803,10 @@ class Ui_Nugget(object):
"button on the \"Apply\" page again to fix Face ID.", None)) "button on the \"Apply\" page again to fix Face ID.", None))
self.label_8.setText(QCoreApplication.translate("Nugget", u"Spoofed Device Model", None)) self.label_8.setText(QCoreApplication.translate("Nugget", u"Spoofed Device Model", None))
self.spoofedModelDrp.setItemText(0, QCoreApplication.translate("Nugget", u"None", None)) self.spoofedModelDrp.setItemText(0, QCoreApplication.translate("Nugget", u"None", None))
self.spoofedModelDrp.setItemText(1, QCoreApplication.translate("Nugget", u"iPhone16,2 (iPhone 15 Pro)", None)) self.spoofedModelDrp.setItemText(1, QCoreApplication.translate("Nugget", u"iPhone16,2 (iPhone 15 Pro Max)", None))
self.spoofedModelDrp.setItemText(2, QCoreApplication.translate("Nugget", u"iPhone17,4 (iPhone 16 Plus)", None)) self.spoofedModelDrp.setItemText(2, QCoreApplication.translate("Nugget", u"iPhone17,4 (iPhone 16 Plus)", None))
self.spoofedModelDrp.setItemText(3, QCoreApplication.translate("Nugget", u"iPhone17,3 (iPhone 16 Pro)", None)) self.spoofedModelDrp.setItemText(3, QCoreApplication.translate("Nugget", u"iPhone17,3 (iPhone 16)", None))
self.spoofedModelDrp.setItemText(4, QCoreApplication.translate("Nugget", u"iPhone17,2 (iPhone 16 Pro Max)", None)) self.spoofedModelDrp.setItemText(4, QCoreApplication.translate("Nugget", u"iPhone17,2 (iPhone 16 Pro)", None))
self.spoofedModelDrp.setItemText(5, QCoreApplication.translate("Nugget", u"iPad16,3 (iPad Pro M4)", None)) self.spoofedModelDrp.setItemText(5, QCoreApplication.translate("Nugget", u"iPad16,3 (iPad Pro M4)", None))
self.spoofedModelDrp.setCurrentText(QCoreApplication.translate("Nugget", u"None", None)) self.spoofedModelDrp.setCurrentText(QCoreApplication.translate("Nugget", u"None", None))

View File

@@ -41,7 +41,9 @@ tweaks = {
## AI Enabler ## AI Enabler
"AIEligibility": AITweak(), "AIEligibility": AITweak(),
"AIGestalt": MobileGestaltMultiTweak("Enable Apple Intelligence (for Unsupported Devices) (Gestalt)", {"A62OafQ85EJAiiqKn4agtg": 1, "6J0wLdcDgChLVU8l8pz8CA": 1}, min_version=Version("18.1")), "AIGestalt": MobileGestaltTweak("Enable Apple Intelligence (for Unsupported Devices) (Gestalt)", "A62OafQ85EJAiiqKn4agtg", min_version=Version("18.1")),
"AIWritingTools": MobileGestaltTweak("Enable AI Writing Tools", "6J0wLdcDgChLVU8l8pz8CA", min_version=Version("18.1")),
"AIExperiment": MobileGestaltTweak("Enable AI Experiment", "I3lidq+FVH2CeOi/ARa0tg", min_version=Version("18.1")),
"SpoofModel": MobileGestaltPickerTweak("Spoofed Device Model", "h9jDsbgj7xIVeIQ8S3/X3Q", values=["Placeholder", "iPhone16,2", "iPhone17,4", "iPhone17,3", "iPhone17,2", "iPad16,3"], min_version=Version("18.1")), "SpoofModel": MobileGestaltPickerTweak("Spoofed Device Model", "h9jDsbgj7xIVeIQ8S3/X3Q", values=["Placeholder", "iPhone16,2", "iPhone17,4", "iPhone17,3", "iPhone17,2", "iPad16,3"], min_version=Version("18.1")),
"SpoofHardware": MobileGestaltPickerTweak("Spoof Hardware Model", "oYicEKzVTz4/CxxE05pEgQ", values=["Placeholder", "D93AP"], min_version=Version("18.1")), "SpoofHardware": MobileGestaltPickerTweak("Spoof Hardware Model", "oYicEKzVTz4/CxxE05pEgQ", values=["Placeholder", "D93AP"], min_version=Version("18.1")),
"SpoofCPU": MobileGestaltPickerTweak("Spoof CPU Model", "5pYKlGnYYBzGvAlIU8RjEQ", values=["Placeholder", "t8130"], min_version=Version("18.1"), divider_below=True), "SpoofCPU": MobileGestaltPickerTweak("Spoof CPU Model", "5pYKlGnYYBzGvAlIU8RjEQ", values=["Placeholder", "t8130"], min_version=Version("18.1"), divider_below=True),