toggle cpu and hardware spoofing

This commit is contained in:
leminlimez
2024-12-06 15:03:51 -05:00
parent 0a97e66756
commit c899ab091f
5 changed files with 519 additions and 391 deletions

View File

@@ -18,7 +18,7 @@ from tweaks.tweaks import tweaks
from tweaks.custom_gestalt_tweaks import CustomGestaltTweaks, ValueTypeStrings
App_Version = "4.2"
App_Build = 5
App_Build = 6
class Page(Enum):
Home = 0
@@ -97,6 +97,8 @@ class MainWindow(QtWidgets.QMainWindow):
self.ui.languageLbl.hide() # to be removed later
self.ui.languageTxt.textEdited.connect(self.on_languageTxt_textEdited)
self.ui.spoofedModelDrp.activated.connect(self.on_spoofedModelDrp_activated)
self.ui.spoofHardwareChk.toggled.connect(self.on_spoofHardwareChk_toggled)
self.ui.spoofCPUChk.toggled.connect(self.on_spoofCPUChk_toggled)
## FEATURE FLAGS PAGE
self.ui.clockAnimChk.toggled.connect(self.on_clockAnimChk_toggled)
@@ -681,13 +683,13 @@ class MainWindow(QtWidgets.QMainWindow):
if not self.device_manager.show_all_spoofable_models and not self.device_manager.get_current_device_model().startswith("iPhone"):
# offset the index for ipads
idx_to_apply += 6
tweaks["SpoofModel"].set_selected_option(idx_to_apply)
tweaks["SpoofHardware"].set_selected_option(idx_to_apply)
tweaks["SpoofCPU"].set_selected_option(idx_to_apply)
if index == 0:
tweaks["SpoofModel"].set_enabled(False)
tweaks["SpoofHardware"].set_enabled(False)
tweaks["SpoofCPU"].set_enabled(False)
tweaks["SpoofModel"].set_selected_option(idx_to_apply, is_enabled=(index != 0))
tweaks["SpoofHardware"].set_selected_option(idx_to_apply, is_enabled=(index != 0 and self.ui.spoofHardwareChk.isChecked()))
tweaks["SpoofCPU"].set_selected_option(idx_to_apply, is_enabled=(index != 0 and self.ui.spoofCPUChk.isChecked()))
def on_spoofHardwareChk_toggled(self, checked: bool):
tweaks["SpoofHardware"].set_enabled(checked and tweaks["SpoofHardware"].selected_option != 0)
def on_spoofCPUChk_toggled(self, checked: bool):
tweaks["SpoofCPU"].set_enabled(checked and tweaks["SpoofCPU"].selected_option != 0)
## SPRINGBOARD OPTIONS PAGE

View File

@@ -2598,62 +2598,86 @@ Only works on iOS 18.0 beta 1-2.</string>
</widget>
</item>
<item>
<widget class="QWidget" name="euEnablerPageContent" native="true">
<property name="enabled">
<bool>false</bool>
<widget class="QScrollArea" name="scrollArea_2">
<property name="verticalScrollBarPolicy">
<enum>Qt::ScrollBarAsNeeded</enum>
</property>
<layout class="QVBoxLayout" name="verticalLayout_16">
<property name="leftMargin">
<number>0</number>
<property name="horizontalScrollBarPolicy">
<enum>Qt::ScrollBarAlwaysOff</enum>
</property>
<property name="sizeAdjustPolicy">
<enum>QAbstractScrollArea::AdjustIgnored</enum>
</property>
<property name="widgetResizable">
<bool>true</bool>
</property>
<widget class="QWidget" name="scrollAreaWidgetContents_2">
<property name="geometry">
<rect>
<x>0</x>
<y>-129</y>
<width>660</width>
<height>573</height>
</rect>
</property>
<property name="topMargin">
<number>0</number>
</property>
<property name="rightMargin">
<number>0</number>
</property>
<property name="bottomMargin">
<number>0</number>
</property>
<item>
<widget class="QWidget" name="euEnablerContent" native="true">
<layout class="QVBoxLayout" name="verticalLayout_36">
<property name="leftMargin">
<number>0</number>
<layout class="QVBoxLayout" name="verticalLayout_37">
<item>
<widget class="QWidget" name="euEnablerPageContent" native="true">
<property name="enabled">
<bool>false</bool>
</property>
<property name="topMargin">
<number>0</number>
</property>
<property name="rightMargin">
<number>0</number>
</property>
<property name="bottomMargin">
<number>0</number>
</property>
<item>
<widget class="QCheckBox" name="euEnablerEnabledChk">
<property name="text">
<string>Enable EU Enabler</string>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="label_5">
<property name="text">
<string>Method Type</string>
</property>
</widget>
</item>
<item>
<widget class="QComboBox" name="methodChoiceDrp">
<property name="maximumSize">
<size>
<width>150</width>
<height>16777215</height>
</size>
</property>
<property name="styleSheet">
<string notr="true">QComboBox {
<layout class="QVBoxLayout" name="verticalLayout_16">
<property name="leftMargin">
<number>0</number>
</property>
<property name="topMargin">
<number>0</number>
</property>
<property name="rightMargin">
<number>0</number>
</property>
<property name="bottomMargin">
<number>0</number>
</property>
<item>
<widget class="QWidget" name="euEnablerContent" native="true">
<layout class="QVBoxLayout" name="verticalLayout_36">
<property name="leftMargin">
<number>0</number>
</property>
<property name="topMargin">
<number>0</number>
</property>
<property name="rightMargin">
<number>0</number>
</property>
<property name="bottomMargin">
<number>0</number>
</property>
<item>
<widget class="QCheckBox" name="euEnablerEnabledChk">
<property name="text">
<string>Enable EU Enabler</string>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="label_5">
<property name="text">
<string>Method Type</string>
</property>
</widget>
</item>
<item>
<widget class="QComboBox" name="methodChoiceDrp">
<property name="maximumSize">
<size>
<width>150</width>
<height>16777215</height>
</size>
</property>
<property name="styleSheet">
<string notr="true">QComboBox {
background-color: #3b3b3b;
border: none;
color: #e8e8e8;
@@ -2685,141 +2709,141 @@ QComboBox QAbstractItemView::item:hover {
background-color: #535353;
color: #ffffff;
}</string>
</property>
<item>
<property name="text">
<string>Method 1</string>
</property>
</item>
<item>
<property name="text">
<string>Method 2</string>
</property>
</item>
</widget>
</item>
<item>
<widget class="QLabel" name="label_6">
<property name="text">
<string>Region Code (Should be 2 letters)</string>
</property>
</widget>
</item>
<item>
<widget class="QLineEdit" name="regionCodeTxt">
<property name="placeholderText">
<string>Region Code (Default: US)</string>
</property>
</widget>
</item>
<item>
<widget class="Line" name="line_16">
<property name="enabled">
<bool>false</bool>
</property>
<property name="styleSheet">
<string notr="true">QFrame {
</property>
<item>
<property name="text">
<string>Method 1</string>
</property>
</item>
<item>
<property name="text">
<string>Method 2</string>
</property>
</item>
</widget>
</item>
<item>
<widget class="QLabel" name="label_6">
<property name="text">
<string>Region Code (Should be 2 letters)</string>
</property>
</widget>
</item>
<item>
<widget class="QLineEdit" name="regionCodeTxt">
<property name="placeholderText">
<string>Region Code (Default: US)</string>
</property>
</widget>
</item>
<item>
<widget class="Line" name="line_16">
<property name="enabled">
<bool>false</bool>
</property>
<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>
</layout>
</widget>
</item>
<item>
<widget class="QLabel" name="mgaWarningLbl2">
<property name="font">
<font>
<pointsize>-1</pointsize>
<bold>true</bold>
</font>
</property>
<property name="text">
<string>! You will need a MobileGestalt file for this feature. Please select it in the Apply page !</string>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="enableAIChk">
<property name="text">
<string>Enable Apple Intelligence (for Unsupported Devices)</string>
</property>
</widget>
</item>
<item>
<widget class="QWidget" name="aiEnablerContent" native="true">
<layout class="QVBoxLayout" name="verticalLayout_34">
<property name="leftMargin">
<number>0</number>
</property>
<property name="topMargin">
<number>5</number>
</property>
<property name="rightMargin">
<number>0</number>
</property>
<property name="bottomMargin">
<number>5</number>
</property>
<item>
<widget class="QCheckBox" name="eligFileChk">
<property name="text">
<string>Enable Eligibility File</string>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="languageLbl">
<property name="text">
<string>Language Code (not needed for English)</string>
</property>
</widget>
</item>
<item>
<widget class="QLineEdit" name="languageTxt">
<property name="placeholderText">
<string>Language Code (i.e. en)</string>
</property>
</widget>
</item>
<item>
<widget class="Line" name="line_21">
<property name="styleSheet">
<string notr="true">QFrame {
</property>
<property name="frameShadow">
<enum>QFrame::Plain</enum>
</property>
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item>
<widget class="QLabel" name="mgaWarningLbl2">
<property name="font">
<font>
<pointsize>-1</pointsize>
<bold>true</bold>
</font>
</property>
<property name="text">
<string>! You will need a MobileGestalt file for this feature. Please select it in the Apply page !</string>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="enableAIChk">
<property name="text">
<string>Enable Apple Intelligence (for Unsupported Devices)</string>
</property>
</widget>
</item>
<item>
<widget class="QWidget" name="aiEnablerContent" native="true">
<layout class="QVBoxLayout" name="verticalLayout_34">
<property name="leftMargin">
<number>0</number>
</property>
<property name="topMargin">
<number>5</number>
</property>
<property name="rightMargin">
<number>0</number>
</property>
<property name="bottomMargin">
<number>5</number>
</property>
<item>
<widget class="QCheckBox" name="eligFileChk">
<property name="text">
<string>Enable Eligibility File</string>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="languageLbl">
<property name="text">
<string>Language Code (not needed for English)</string>
</property>
</widget>
</item>
<item>
<widget class="QLineEdit" name="languageTxt">
<property name="placeholderText">
<string>Language Code (i.e. en)</string>
</property>
</widget>
</item>
<item>
<widget class="Line" name="line_21">
<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="QLabel" name="aiInfoLabel">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>16777215</height>
</size>
</property>
<property name="text">
<string>In order to download the AI models, you must spoof your device model. However, this may break
</property>
<property name="frameShadow">
<enum>QFrame::Plain</enum>
</property>
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="aiInfoLabel">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>16777215</height>
</size>
</property>
<property name="text">
<string>In order to download the AI models, you must spoof your device model. However, this may break
Face ID until you revert back.
WARNING: Do not go to the Apple Intelligence menu in the Settings app after unspoofing.
@@ -2828,32 +2852,32 @@ Entering the menu on your original device model will cause a re-download and may
restore to fix. Furthermore, if you switch between model groups, like spoofing from the iPhone 16s
to the iPhone 15 Pro series, a re-download may also occur.
Please be careful!</string>
</property>
<property name="textFormat">
<enum>Qt::AutoText</enum>
</property>
<property name="scaledContents">
<bool>false</bool>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="label_8">
<property name="text">
<string>Spoofed Device Model</string>
</property>
</widget>
</item>
<item>
<widget class="QComboBox" name="spoofedModelDrp">
<property name="maximumSize">
<size>
<width>325</width>
<height>16777215</height>
</size>
</property>
<property name="styleSheet">
<string notr="true">QComboBox {
</property>
<property name="textFormat">
<enum>Qt::AutoText</enum>
</property>
<property name="scaledContents">
<bool>false</bool>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="label_8">
<property name="text">
<string>Spoofed Device Model</string>
</property>
</widget>
</item>
<item>
<widget class="QComboBox" name="spoofedModelDrp">
<property name="maximumSize">
<size>
<width>325</width>
<height>16777215</height>
</size>
</property>
<property name="styleSheet">
<string notr="true">QComboBox {
background-color: #3b3b3b;
border: none;
color: #e8e8e8;
@@ -2885,167 +2909,197 @@ QComboBox QAbstractItemView::item:hover {
background-color: #535353;
color: #ffffff;
}</string>
</property>
<property name="currentText">
<string>Original</string>
</property>
<property name="currentIndex">
<number>0</number>
</property>
<item>
<property name="text">
<string>Original</string>
</property>
<property name="currentText">
<string>Original</string>
</property>
<property name="currentIndex">
<number>0</number>
</property>
<item>
<property name="text">
<string>Original</string>
</property>
</item>
<item>
<property name="text">
<string>iPhone 15 Pro (iPhone16,1)</string>
</property>
</item>
<item>
<property name="text">
<string>iPhone 15 Pro Max (iPhone16,2)</string>
</property>
</item>
<item>
<property name="text">
<string>iPhone 16 (iPhone17,3)</string>
</property>
</item>
<item>
<property name="text">
<string>iPhone 16 Plus (iPhone17,4)</string>
</property>
</item>
<item>
<property name="text">
<string>iPhone 16 Pro (iPhone17,1)</string>
</property>
</item>
<item>
<property name="text">
<string>iPhone 16 Pro Max (iPhone17,2)</string>
</property>
</item>
<item>
<property name="text">
<string>iPad Mini (A17 Pro) (W) (iPad16,1)</string>
</property>
</item>
<item>
<property name="text">
<string>iPad Mini (A17 Pro) (C) (iPad16,2)</string>
</property>
</item>
<item>
<property name="text">
<string>iPad Pro (13-inch) (M4) (W) (iPad16,5)</string>
</property>
</item>
<item>
<property name="text">
<string>iPad Pro (13-inch) (M4) (C) (iPad16,6)</string>
</property>
</item>
<item>
<property name="text">
<string>iPad Pro (11-inch) (M4) (W) (iPad16,3)</string>
</property>
</item>
<item>
<property name="text">
<string>iPad Pro (11-inch) (M4) (C) (iPad16,4)</string>
</property>
</item>
<item>
<property name="text">
<string>iPad Pro (12.9-inch) (M2) (W) (iPad14,5)</string>
</property>
</item>
<item>
<property name="text">
<string>iPad Pro (12.9-inch) (M2) (C) (iPad14,6)</string>
</property>
</item>
<item>
<property name="text">
<string>iPad Pro (11-inch) (M2) (W) (iPad14,3)</string>
</property>
</item>
<item>
<property name="text">
<string>iPad Pro (11-inch) (M2) (C) (iPad14,4)</string>
</property>
</item>
<item>
<property name="text">
<string>iPad Air (13-inch) (M2) (W) (iPad14,10)</string>
</property>
</item>
<item>
<property name="text">
<string>iPad Air (13-inch) (M2) (C) (iPad14,11)</string>
</property>
</item>
<item>
<property name="text">
<string>iPad Air (11-inch) (M2) (W) (iPad14,8)</string>
</property>
</item>
<item>
<property name="text">
<string>iPad Air (11-inch) (M2) (C) (iPad14,9)</string>
</property>
</item>
<item>
<property name="text">
<string>iPad Pro (11-inch) (M1) (W) (iPad13,4)</string>
</property>
</item>
<item>
<property name="text">
<string>iPad Pro (11-inch) (M1) (C) (iPad13,5)</string>
</property>
</item>
<item>
<property name="text">
<string>iPad Pro (12.9-inch) (M1) (W) (iPad13,8)</string>
</property>
</item>
<item>
<property name="text">
<string>iPad Pro (12.9-inch) (M1) (C) (iPad13,9)</string>
</property>
</item>
<item>
<property name="text">
<string>iPad Air (M1) (W) (iPad13,16)</string>
</property>
</item>
<item>
<property name="text">
<string>iPad Air (M1) (C) (iPad13,17)</string>
</property>
</item>
</widget>
</item>
<item>
<widget class="QCheckBox" name="spoofHardwareChk">
<property name="toolTip">
<string>Spoofs the device hardware model (ie D83AP)</string>
</property>
<property name="text">
<string>Spoof Hardware Model</string>
</property>
<property name="checked">
<bool>true</bool>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="spoofCPUChk">
<property name="toolTip">
<string>Spoofs the device CPU model (ie t8130)</string>
</property>
<property name="text">
<string>Spoof CPU Model</string>
</property>
<property name="checked">
<bool>true</bool>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item>
<spacer name="verticalSpacer_7">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
</item>
<item>
<property name="text">
<string>iPhone 15 Pro (iPhone16,1)</string>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>40</height>
</size>
</property>
</item>
<item>
<property name="text">
<string>iPhone 15 Pro Max (iPhone16,2)</string>
</property>
</item>
<item>
<property name="text">
<string>iPhone 16 (iPhone17,3)</string>
</property>
</item>
<item>
<property name="text">
<string>iPhone 16 Plus (iPhone17,4)</string>
</property>
</item>
<item>
<property name="text">
<string>iPhone 16 Pro (iPhone17,1)</string>
</property>
</item>
<item>
<property name="text">
<string>iPhone 16 Pro Max (iPhone17,2)</string>
</property>
</item>
<item>
<property name="text">
<string>iPad Mini (A17 Pro) (W) (iPad16,1)</string>
</property>
</item>
<item>
<property name="text">
<string>iPad Mini (A17 Pro) (C) (iPad16,2)</string>
</property>
</item>
<item>
<property name="text">
<string>iPad Pro (13-inch) (M4) (W) (iPad16,5)</string>
</property>
</item>
<item>
<property name="text">
<string>iPad Pro (13-inch) (M4) (C) (iPad16,6)</string>
</property>
</item>
<item>
<property name="text">
<string>iPad Pro (11-inch) (M4) (W) (iPad16,3)</string>
</property>
</item>
<item>
<property name="text">
<string>iPad Pro (11-inch) (M4) (C) (iPad16,4)</string>
</property>
</item>
<item>
<property name="text">
<string>iPad Pro (12.9-inch) (M2) (W) (iPad14,5)</string>
</property>
</item>
<item>
<property name="text">
<string>iPad Pro (12.9-inch) (M2) (C) (iPad14,6)</string>
</property>
</item>
<item>
<property name="text">
<string>iPad Pro (11-inch) (M2) (W) (iPad14,3)</string>
</property>
</item>
<item>
<property name="text">
<string>iPad Pro (11-inch) (M2) (C) (iPad14,4)</string>
</property>
</item>
<item>
<property name="text">
<string>iPad Air (13-inch) (M2) (W) (iPad14,10)</string>
</property>
</item>
<item>
<property name="text">
<string>iPad Air (13-inch) (M2) (C) (iPad14,11)</string>
</property>
</item>
<item>
<property name="text">
<string>iPad Air (11-inch) (M2) (W) (iPad14,8)</string>
</property>
</item>
<item>
<property name="text">
<string>iPad Air (11-inch) (M2) (C) (iPad14,9)</string>
</property>
</item>
<item>
<property name="text">
<string>iPad Pro (11-inch) (M1) (W) (iPad13,4)</string>
</property>
</item>
<item>
<property name="text">
<string>iPad Pro (11-inch) (M1) (C) (iPad13,5)</string>
</property>
</item>
<item>
<property name="text">
<string>iPad Pro (12.9-inch) (M1) (W) (iPad13,8)</string>
</property>
</item>
<item>
<property name="text">
<string>iPad Pro (12.9-inch) (M1) (C) (iPad13,9)</string>
</property>
</item>
<item>
<property name="text">
<string>iPad Air (M1) (W) (iPad13,16)</string>
</property>
</item>
<item>
<property name="text">
<string>iPad Air (M1) (C) (iPad13,17)</string>
</property>
</item>
</widget>
</item>
</layout>
</widget>
</item>
<item>
<spacer name="verticalSpacer_7">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>40</height>
</size>
</property>
</spacer>
</item>
</layout>
</spacer>
</item>
</layout>
</widget>
</item>
</layout>
</widget>
</widget>
</item>
</layout>

View File

@@ -15,10 +15,11 @@ from PySide6.QtGui import (QBrush, QColor, QConicalGradient, QCursor,
QFont, QFontDatabase, QGradient, QIcon,
QImage, QKeySequence, QLinearGradient, QPainter,
QPalette, QPixmap, QRadialGradient, QTransform)
from PySide6.QtWidgets import (QApplication, QCheckBox, QComboBox, QFrame,
QHBoxLayout, QLabel, QLineEdit, QMainWindow,
QProgressBar, QScrollArea, QSizePolicy, QSpacerItem,
QStackedWidget, QToolButton, QVBoxLayout, QWidget)
from PySide6.QtWidgets import (QAbstractScrollArea, QApplication, QCheckBox, QComboBox,
QFrame, QHBoxLayout, QLabel, QLineEdit,
QMainWindow, QProgressBar, QScrollArea, QSizePolicy,
QSpacerItem, QStackedWidget, QToolButton, QVBoxLayout,
QWidget)
import resources_rc
class Ui_Nugget(object):
@@ -1386,7 +1387,18 @@ class Ui_Nugget(object):
self.verticalLayout_17.addWidget(self.line_13)
self.euEnablerPageContent = QWidget(self.euEnablerPage)
self.scrollArea_2 = QScrollArea(self.euEnablerPage)
self.scrollArea_2.setObjectName(u"scrollArea_2")
self.scrollArea_2.setVerticalScrollBarPolicy(Qt.ScrollBarAsNeeded)
self.scrollArea_2.setHorizontalScrollBarPolicy(Qt.ScrollBarAlwaysOff)
self.scrollArea_2.setSizeAdjustPolicy(QAbstractScrollArea.AdjustIgnored)
self.scrollArea_2.setWidgetResizable(True)
self.scrollAreaWidgetContents_2 = QWidget()
self.scrollAreaWidgetContents_2.setObjectName(u"scrollAreaWidgetContents_2")
self.scrollAreaWidgetContents_2.setGeometry(QRect(0, -129, 660, 573))
self.verticalLayout_37 = QVBoxLayout(self.scrollAreaWidgetContents_2)
self.verticalLayout_37.setObjectName(u"verticalLayout_37")
self.euEnablerPageContent = QWidget(self.scrollAreaWidgetContents_2)
self.euEnablerPageContent.setObjectName(u"euEnablerPageContent")
self.euEnablerPageContent.setEnabled(False)
self.verticalLayout_16 = QVBoxLayout(self.euEnablerPageContent)
@@ -1592,6 +1604,18 @@ class Ui_Nugget(object):
self.verticalLayout_34.addWidget(self.spoofedModelDrp)
self.spoofHardwareChk = QCheckBox(self.aiEnablerContent)
self.spoofHardwareChk.setObjectName(u"spoofHardwareChk")
self.spoofHardwareChk.setChecked(True)
self.verticalLayout_34.addWidget(self.spoofHardwareChk)
self.spoofCPUChk = QCheckBox(self.aiEnablerContent)
self.spoofCPUChk.setObjectName(u"spoofCPUChk")
self.spoofCPUChk.setChecked(True)
self.verticalLayout_34.addWidget(self.spoofCPUChk)
self.verticalLayout_16.addWidget(self.aiEnablerContent)
@@ -1600,7 +1624,11 @@ class Ui_Nugget(object):
self.verticalLayout_16.addItem(self.verticalSpacer_7)
self.verticalLayout_17.addWidget(self.euEnablerPageContent)
self.verticalLayout_37.addWidget(self.euEnablerPageContent)
self.scrollArea_2.setWidget(self.scrollAreaWidgetContents_2)
self.verticalLayout_17.addWidget(self.scrollArea_2)
self.pages.addWidget(self.euEnablerPage)
self.springboardOptionsPage = QWidget()
@@ -3281,6 +3309,14 @@ class Ui_Nugget(object):
self.spoofedModelDrp.setItemText(26, QCoreApplication.translate("Nugget", u"iPad Air (M1) (C) (iPad13,17)", None))
self.spoofedModelDrp.setCurrentText(QCoreApplication.translate("Nugget", u"Original", None))
#if QT_CONFIG(tooltip)
self.spoofHardwareChk.setToolTip(QCoreApplication.translate("Nugget", u"Spoofs the device hardware model (ie D83AP)", None))
#endif // QT_CONFIG(tooltip)
self.spoofHardwareChk.setText(QCoreApplication.translate("Nugget", u"Spoof Hardware Model", None))
#if QT_CONFIG(tooltip)
self.spoofCPUChk.setToolTip(QCoreApplication.translate("Nugget", u"Spoofs the device CPU model (ie t8130)", None))
#endif // QT_CONFIG(tooltip)
self.spoofCPUChk.setText(QCoreApplication.translate("Nugget", u"Spoof CPU Model", None))
self.springboardOptionsLbl.setText(QCoreApplication.translate("Nugget", u"Springboard Options", None))
self.label_13.setText(QCoreApplication.translate("Nugget", u"Lock Screen Footnote Text", None))
self.footnoteTxt.setPlaceholderText(QCoreApplication.translate("Nugget", u"Footnote Text", None))

View File

@@ -15,10 +15,11 @@ from PySide6.QtGui import (QBrush, QColor, QConicalGradient, QCursor,
QFont, QFontDatabase, QGradient, QIcon,
QImage, QKeySequence, QLinearGradient, QPainter,
QPalette, QPixmap, QRadialGradient, QTransform)
from PySide6.QtWidgets import (QApplication, QCheckBox, QComboBox, QFrame,
QHBoxLayout, QLabel, QLineEdit, QMainWindow,
QProgressBar, QScrollArea, QSizePolicy, QSpacerItem,
QStackedWidget, QToolButton, QVBoxLayout, QWidget)
from PySide6.QtWidgets import (QAbstractScrollArea, QApplication, QCheckBox, QComboBox,
QFrame, QHBoxLayout, QLabel, QLineEdit,
QMainWindow, QProgressBar, QScrollArea, QSizePolicy,
QSpacerItem, QStackedWidget, QToolButton, QVBoxLayout,
QWidget)
import resources_rc
class Ui_Nugget(object):
@@ -1386,7 +1387,18 @@ class Ui_Nugget(object):
self.verticalLayout_17.addWidget(self.line_13)
self.euEnablerPageContent = QWidget(self.euEnablerPage)
self.scrollArea_2 = QScrollArea(self.euEnablerPage)
self.scrollArea_2.setObjectName(u"scrollArea_2")
self.scrollArea_2.setVerticalScrollBarPolicy(Qt.ScrollBarAsNeeded)
self.scrollArea_2.setHorizontalScrollBarPolicy(Qt.ScrollBarAlwaysOff)
self.scrollArea_2.setSizeAdjustPolicy(QAbstractScrollArea.AdjustIgnored)
self.scrollArea_2.setWidgetResizable(True)
self.scrollAreaWidgetContents_2 = QWidget()
self.scrollAreaWidgetContents_2.setObjectName(u"scrollAreaWidgetContents_2")
self.scrollAreaWidgetContents_2.setGeometry(QRect(0, -129, 660, 573))
self.verticalLayout_37 = QVBoxLayout(self.scrollAreaWidgetContents_2)
self.verticalLayout_37.setObjectName(u"verticalLayout_37")
self.euEnablerPageContent = QWidget(self.scrollAreaWidgetContents_2)
self.euEnablerPageContent.setObjectName(u"euEnablerPageContent")
self.euEnablerPageContent.setEnabled(False)
self.verticalLayout_16 = QVBoxLayout(self.euEnablerPageContent)
@@ -1592,6 +1604,18 @@ class Ui_Nugget(object):
self.verticalLayout_34.addWidget(self.spoofedModelDrp)
self.spoofHardwareChk = QCheckBox(self.aiEnablerContent)
self.spoofHardwareChk.setObjectName(u"spoofHardwareChk")
self.spoofHardwareChk.setChecked(True)
self.verticalLayout_34.addWidget(self.spoofHardwareChk)
self.spoofCPUChk = QCheckBox(self.aiEnablerContent)
self.spoofCPUChk.setObjectName(u"spoofCPUChk")
self.spoofCPUChk.setChecked(True)
self.verticalLayout_34.addWidget(self.spoofCPUChk)
self.verticalLayout_16.addWidget(self.aiEnablerContent)
@@ -1600,7 +1624,11 @@ class Ui_Nugget(object):
self.verticalLayout_16.addItem(self.verticalSpacer_7)
self.verticalLayout_17.addWidget(self.euEnablerPageContent)
self.verticalLayout_37.addWidget(self.euEnablerPageContent)
self.scrollArea_2.setWidget(self.scrollAreaWidgetContents_2)
self.verticalLayout_17.addWidget(self.scrollArea_2)
self.pages.addWidget(self.euEnablerPage)
self.springboardOptionsPage = QWidget()
@@ -3281,6 +3309,14 @@ class Ui_Nugget(object):
self.spoofedModelDrp.setItemText(26, QCoreApplication.translate("Nugget", u"iPad Air (M1) (C) (iPad13,17)", None))
self.spoofedModelDrp.setCurrentText(QCoreApplication.translate("Nugget", u"Original", None))
#if QT_CONFIG(tooltip)
self.spoofHardwareChk.setToolTip(QCoreApplication.translate("Nugget", u"Spoofs the device hardware model (ie D83AP)", None))
#endif // QT_CONFIG(tooltip)
self.spoofHardwareChk.setText(QCoreApplication.translate("Nugget", u"Spoof Hardware Model", None))
#if QT_CONFIG(tooltip)
self.spoofCPUChk.setToolTip(QCoreApplication.translate("Nugget", u"Spoofs the device CPU model (ie t8130)", None))
#endif // QT_CONFIG(tooltip)
self.spoofCPUChk.setText(QCoreApplication.translate("Nugget", u"Spoof CPU Model", None))
self.springboardOptionsLbl.setText(QCoreApplication.translate("Nugget", u"Springboard Options", None))
self.label_13.setText(QCoreApplication.translate("Nugget", u"Lock Screen Footnote Text", None))
self.footnoteTxt.setPlaceholderText(QCoreApplication.translate("Nugget", u"Footnote Text", None))

View File

@@ -220,9 +220,9 @@ class MobileGestaltPickerTweak(Tweak):
plist["CacheExtra"][self.key][self.subkey] = new_value
return plist
def set_selected_option(self, new_option: int):
def set_selected_option(self, new_option: int, is_enabled: bool = True):
self.selected_option = new_option
self.enabled = True
self.enabled = is_enabled
def get_selected_option(self) -> int:
return self.selected_option