mirror of
https://github.com/leminlimez/Nugget.git
synced 2025-04-08 04:23:05 +08:00
add more daemons
- ATWAKEUP - VPN - Chinese WLAN service - HealthKit
This commit is contained in:
@@ -136,7 +136,11 @@ class MainWindow(QtWidgets.QMainWindow):
|
||||
self.ui.gameCenterChk.toggled.connect(self.on_gameCenterChk_clicked)
|
||||
self.ui.screenTimeChk.toggled.connect(self.on_screenTimeChk_clicked)
|
||||
self.ui.crashReportsChk.toggled.connect(self.on_crashReportsChk_clicked)
|
||||
self.ui.atwakeupChk.toggled.connect(self.on_atwakeupChk_clicked)
|
||||
self.ui.tipsChk.toggled.connect(self.on_tipsChk_clicked)
|
||||
self.ui.vpndChk.toggled.connect(self.on_vpndChk_clicked)
|
||||
self.ui.wapicChk.toggled.connect(self.on_wapicChk_clicked)
|
||||
self.ui.healthdChk.toggled.connect(self.on_healthdChk_clicked)
|
||||
|
||||
## RISKY OPTIONS PAGE ACTIONS
|
||||
self.ui.disableOTAChk.toggled.connect(self.on_disableOTAChk_clicked)
|
||||
@@ -773,8 +777,16 @@ class MainWindow(QtWidgets.QMainWindow):
|
||||
"com.apple.system.logger",
|
||||
"com.apple.syslogd"
|
||||
], value=checked)
|
||||
def on_atwakeupChk_clicked(self, checked: bool):
|
||||
tweaks["Daemons"].value["com.apple.atc.atwakeup"] = checked
|
||||
def on_tipsChk_clicked(self, checked: bool):
|
||||
tweaks["Daemons"].value["com.apple.tipsd"] = checked
|
||||
def on_vpndChk_clicked(self, checked: bool):
|
||||
tweaks["Daemons"].value["com.apple.racoon"] = checked
|
||||
def on_wapicChk_clicked(self, checked: bool):
|
||||
tweaks["Daemons"].value["com.apple.wapic"] = checked
|
||||
def on_healthdChk_clicked(self, checked: bool):
|
||||
tweaks["Daemons"].value["com.apple.healthd"] = checked
|
||||
|
||||
## Risky Options Page
|
||||
def on_disableOTAChk_clicked(self, checked: bool):
|
||||
|
||||
@@ -3787,16 +3787,6 @@ QComboBox QAbstractItemView::item:hover {
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QCheckBox" name="gameCenterChk">
|
||||
<property name="toolTip">
|
||||
<string>Turns off Game Center background services.</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Disable Game Center</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QCheckBox" name="screenTimeChk">
|
||||
<property name="toolTip">
|
||||
@@ -3817,6 +3807,41 @@ QComboBox QAbstractItemView::item:hover {
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QCheckBox" name="atwakeupChk">
|
||||
<property name="toolTip">
|
||||
<string>Disables pinging to sleeping bluetooth devices for improved battery life.</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Disable ATWAKEUP</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="Line" name="line_25">
|
||||
<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="gameCenterChk">
|
||||
<property name="toolTip">
|
||||
<string>Turns off Game Center background services.</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Disable Game Center</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QCheckBox" name="tipsChk">
|
||||
<property name="toolTip">
|
||||
@@ -3827,6 +3852,36 @@ QComboBox QAbstractItemView::item:hover {
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QCheckBox" name="vpndChk">
|
||||
<property name="toolTip">
|
||||
<string>Disables the Virtual Private Network service.</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Disable VPN Service</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QCheckBox" name="wapicChk">
|
||||
<property name="toolTip">
|
||||
<string>Disables the service that deals with errors with WiFi networks with Chinese characters in the name.</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Disable Chinese WLAN Service</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QCheckBox" name="healthdChk">
|
||||
<property name="toolTip">
|
||||
<string>Disables HealthKit services used by the health app.</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Disable HealthKit</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<spacer name="verticalSpacer_6">
|
||||
<property name="orientation">
|
||||
|
||||
@@ -1988,11 +1988,6 @@ class Ui_Nugget(object):
|
||||
|
||||
self.verticalLayout_132.addWidget(self.usageTrackingAgentChk)
|
||||
|
||||
self.gameCenterChk = QCheckBox(self.daemonsPageContent)
|
||||
self.gameCenterChk.setObjectName(u"gameCenterChk")
|
||||
|
||||
self.verticalLayout_132.addWidget(self.gameCenterChk)
|
||||
|
||||
self.screenTimeChk = QCheckBox(self.daemonsPageContent)
|
||||
self.screenTimeChk.setObjectName(u"screenTimeChk")
|
||||
|
||||
@@ -2003,11 +1998,46 @@ class Ui_Nugget(object):
|
||||
|
||||
self.verticalLayout_132.addWidget(self.crashReportsChk)
|
||||
|
||||
self.atwakeupChk = QCheckBox(self.daemonsPageContent)
|
||||
self.atwakeupChk.setObjectName(u"atwakeupChk")
|
||||
|
||||
self.verticalLayout_132.addWidget(self.atwakeupChk)
|
||||
|
||||
self.line_25 = QFrame(self.daemonsPageContent)
|
||||
self.line_25.setObjectName(u"line_25")
|
||||
self.line_25.setStyleSheet(u"QFrame {\n"
|
||||
" color: #414141;\n"
|
||||
"}")
|
||||
self.line_25.setFrameShadow(QFrame.Plain)
|
||||
self.line_25.setFrameShape(QFrame.HLine)
|
||||
|
||||
self.verticalLayout_132.addWidget(self.line_25)
|
||||
|
||||
self.gameCenterChk = QCheckBox(self.daemonsPageContent)
|
||||
self.gameCenterChk.setObjectName(u"gameCenterChk")
|
||||
|
||||
self.verticalLayout_132.addWidget(self.gameCenterChk)
|
||||
|
||||
self.tipsChk = QCheckBox(self.daemonsPageContent)
|
||||
self.tipsChk.setObjectName(u"tipsChk")
|
||||
|
||||
self.verticalLayout_132.addWidget(self.tipsChk)
|
||||
|
||||
self.vpndChk = QCheckBox(self.daemonsPageContent)
|
||||
self.vpndChk.setObjectName(u"vpndChk")
|
||||
|
||||
self.verticalLayout_132.addWidget(self.vpndChk)
|
||||
|
||||
self.wapicChk = QCheckBox(self.daemonsPageContent)
|
||||
self.wapicChk.setObjectName(u"wapicChk")
|
||||
|
||||
self.verticalLayout_132.addWidget(self.wapicChk)
|
||||
|
||||
self.healthdChk = QCheckBox(self.daemonsPageContent)
|
||||
self.healthdChk.setObjectName(u"healthdChk")
|
||||
|
||||
self.verticalLayout_132.addWidget(self.healthdChk)
|
||||
|
||||
self.verticalSpacer_62 = QSpacerItem(20, 40, QSizePolicy.Policy.Minimum, QSizePolicy.Policy.Expanding)
|
||||
|
||||
self.verticalLayout_132.addItem(self.verticalSpacer_62)
|
||||
@@ -3280,10 +3310,6 @@ class Ui_Nugget(object):
|
||||
self.usageTrackingAgentChk.setToolTip(QCoreApplication.translate("Nugget", u"Disables usage tracking for improved privacy.", None))
|
||||
#endif // QT_CONFIG(tooltip)
|
||||
self.usageTrackingAgentChk.setText(QCoreApplication.translate("Nugget", u"Disable UsageTrackingAgent", None))
|
||||
#if QT_CONFIG(tooltip)
|
||||
self.gameCenterChk.setToolTip(QCoreApplication.translate("Nugget", u"Turns off Game Center background services.", None))
|
||||
#endif // QT_CONFIG(tooltip)
|
||||
self.gameCenterChk.setText(QCoreApplication.translate("Nugget", u"Disable Game Center", None))
|
||||
#if QT_CONFIG(tooltip)
|
||||
self.screenTimeChk.setToolTip(QCoreApplication.translate("Nugget", u"Disables Screen Time monitoring features.", None))
|
||||
#endif // QT_CONFIG(tooltip)
|
||||
@@ -3292,10 +3318,30 @@ class Ui_Nugget(object):
|
||||
self.crashReportsChk.setToolTip(QCoreApplication.translate("Nugget", u"Stops logs, dumps, and crash reports collection.", None))
|
||||
#endif // QT_CONFIG(tooltip)
|
||||
self.crashReportsChk.setText(QCoreApplication.translate("Nugget", u"Disable Logs, Dumps, and Crash Reports", None))
|
||||
#if QT_CONFIG(tooltip)
|
||||
self.atwakeupChk.setToolTip(QCoreApplication.translate("Nugget", u"Disables pinging to sleeping bluetooth devices for improved battery life.", None))
|
||||
#endif // QT_CONFIG(tooltip)
|
||||
self.atwakeupChk.setText(QCoreApplication.translate("Nugget", u"Disable ATWAKEUP", None))
|
||||
#if QT_CONFIG(tooltip)
|
||||
self.gameCenterChk.setToolTip(QCoreApplication.translate("Nugget", u"Turns off Game Center background services.", None))
|
||||
#endif // QT_CONFIG(tooltip)
|
||||
self.gameCenterChk.setText(QCoreApplication.translate("Nugget", u"Disable Game Center", None))
|
||||
#if QT_CONFIG(tooltip)
|
||||
self.tipsChk.setToolTip(QCoreApplication.translate("Nugget", u"Disables the Tips service and notifications.", None))
|
||||
#endif // QT_CONFIG(tooltip)
|
||||
self.tipsChk.setText(QCoreApplication.translate("Nugget", u"Disable Tips Services", None))
|
||||
#if QT_CONFIG(tooltip)
|
||||
self.vpndChk.setToolTip(QCoreApplication.translate("Nugget", u"Disables the Virtual Private Network service.", None))
|
||||
#endif // QT_CONFIG(tooltip)
|
||||
self.vpndChk.setText(QCoreApplication.translate("Nugget", u"Disable VPN Service", None))
|
||||
#if QT_CONFIG(tooltip)
|
||||
self.wapicChk.setToolTip(QCoreApplication.translate("Nugget", u"Disables the service that deals with errors with WiFi networks with Chinese characters in the name.", None))
|
||||
#endif // QT_CONFIG(tooltip)
|
||||
self.wapicChk.setText(QCoreApplication.translate("Nugget", u"Disable Chinese WLAN Service", None))
|
||||
#if QT_CONFIG(tooltip)
|
||||
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.advancedOptionsLbl.setText(QCoreApplication.translate("Nugget", u"Risky Options", None))
|
||||
self.label_17.setText(QCoreApplication.translate("Nugget", u"Disclaimer:\n"
|
||||
"\n"
|
||||
|
||||
@@ -1988,11 +1988,6 @@ class Ui_Nugget(object):
|
||||
|
||||
self.verticalLayout_132.addWidget(self.usageTrackingAgentChk)
|
||||
|
||||
self.gameCenterChk = QCheckBox(self.daemonsPageContent)
|
||||
self.gameCenterChk.setObjectName(u"gameCenterChk")
|
||||
|
||||
self.verticalLayout_132.addWidget(self.gameCenterChk)
|
||||
|
||||
self.screenTimeChk = QCheckBox(self.daemonsPageContent)
|
||||
self.screenTimeChk.setObjectName(u"screenTimeChk")
|
||||
|
||||
@@ -2003,11 +1998,46 @@ class Ui_Nugget(object):
|
||||
|
||||
self.verticalLayout_132.addWidget(self.crashReportsChk)
|
||||
|
||||
self.atwakeupChk = QCheckBox(self.daemonsPageContent)
|
||||
self.atwakeupChk.setObjectName(u"atwakeupChk")
|
||||
|
||||
self.verticalLayout_132.addWidget(self.atwakeupChk)
|
||||
|
||||
self.line_25 = QFrame(self.daemonsPageContent)
|
||||
self.line_25.setObjectName(u"line_25")
|
||||
self.line_25.setStyleSheet(u"QFrame {\n"
|
||||
" color: #414141;\n"
|
||||
"}")
|
||||
self.line_25.setFrameShadow(QFrame.Plain)
|
||||
self.line_25.setFrameShape(QFrame.Shape.HLine)
|
||||
|
||||
self.verticalLayout_132.addWidget(self.line_25)
|
||||
|
||||
self.gameCenterChk = QCheckBox(self.daemonsPageContent)
|
||||
self.gameCenterChk.setObjectName(u"gameCenterChk")
|
||||
|
||||
self.verticalLayout_132.addWidget(self.gameCenterChk)
|
||||
|
||||
self.tipsChk = QCheckBox(self.daemonsPageContent)
|
||||
self.tipsChk.setObjectName(u"tipsChk")
|
||||
|
||||
self.verticalLayout_132.addWidget(self.tipsChk)
|
||||
|
||||
self.vpndChk = QCheckBox(self.daemonsPageContent)
|
||||
self.vpndChk.setObjectName(u"vpndChk")
|
||||
|
||||
self.verticalLayout_132.addWidget(self.vpndChk)
|
||||
|
||||
self.wapicChk = QCheckBox(self.daemonsPageContent)
|
||||
self.wapicChk.setObjectName(u"wapicChk")
|
||||
|
||||
self.verticalLayout_132.addWidget(self.wapicChk)
|
||||
|
||||
self.healthdChk = QCheckBox(self.daemonsPageContent)
|
||||
self.healthdChk.setObjectName(u"healthdChk")
|
||||
|
||||
self.verticalLayout_132.addWidget(self.healthdChk)
|
||||
|
||||
self.verticalSpacer_62 = QSpacerItem(20, 40, QSizePolicy.Policy.Minimum, QSizePolicy.Policy.Expanding)
|
||||
|
||||
self.verticalLayout_132.addItem(self.verticalSpacer_62)
|
||||
@@ -3280,10 +3310,6 @@ class Ui_Nugget(object):
|
||||
self.usageTrackingAgentChk.setToolTip(QCoreApplication.translate("Nugget", u"Disables usage tracking for improved privacy.", None))
|
||||
#endif // QT_CONFIG(tooltip)
|
||||
self.usageTrackingAgentChk.setText(QCoreApplication.translate("Nugget", u"Disable UsageTrackingAgent", None))
|
||||
#if QT_CONFIG(tooltip)
|
||||
self.gameCenterChk.setToolTip(QCoreApplication.translate("Nugget", u"Turns off Game Center background services.", None))
|
||||
#endif // QT_CONFIG(tooltip)
|
||||
self.gameCenterChk.setText(QCoreApplication.translate("Nugget", u"Disable Game Center", None))
|
||||
#if QT_CONFIG(tooltip)
|
||||
self.screenTimeChk.setToolTip(QCoreApplication.translate("Nugget", u"Disables Screen Time monitoring features.", None))
|
||||
#endif // QT_CONFIG(tooltip)
|
||||
@@ -3292,10 +3318,30 @@ class Ui_Nugget(object):
|
||||
self.crashReportsChk.setToolTip(QCoreApplication.translate("Nugget", u"Stops logs, dumps, and crash reports collection.", None))
|
||||
#endif // QT_CONFIG(tooltip)
|
||||
self.crashReportsChk.setText(QCoreApplication.translate("Nugget", u"Disable Logs, Dumps, and Crash Reports", None))
|
||||
#if QT_CONFIG(tooltip)
|
||||
self.atwakeupChk.setToolTip(QCoreApplication.translate("Nugget", u"Disables pinging to sleeping bluetooth devices for improved battery life.", None))
|
||||
#endif // QT_CONFIG(tooltip)
|
||||
self.atwakeupChk.setText(QCoreApplication.translate("Nugget", u"Disable ATWAKEUP", None))
|
||||
#if QT_CONFIG(tooltip)
|
||||
self.gameCenterChk.setToolTip(QCoreApplication.translate("Nugget", u"Turns off Game Center background services.", None))
|
||||
#endif // QT_CONFIG(tooltip)
|
||||
self.gameCenterChk.setText(QCoreApplication.translate("Nugget", u"Disable Game Center", None))
|
||||
#if QT_CONFIG(tooltip)
|
||||
self.tipsChk.setToolTip(QCoreApplication.translate("Nugget", u"Disables the Tips service and notifications.", None))
|
||||
#endif // QT_CONFIG(tooltip)
|
||||
self.tipsChk.setText(QCoreApplication.translate("Nugget", u"Disable Tips Services", None))
|
||||
#if QT_CONFIG(tooltip)
|
||||
self.vpndChk.setToolTip(QCoreApplication.translate("Nugget", u"Disables the Virtual Private Network service.", None))
|
||||
#endif // QT_CONFIG(tooltip)
|
||||
self.vpndChk.setText(QCoreApplication.translate("Nugget", u"Disable VPN Service", None))
|
||||
#if QT_CONFIG(tooltip)
|
||||
self.wapicChk.setToolTip(QCoreApplication.translate("Nugget", u"Disables the service that deals with errors with WiFi networks with Chinese characters in the name.", None))
|
||||
#endif // QT_CONFIG(tooltip)
|
||||
self.wapicChk.setText(QCoreApplication.translate("Nugget", u"Disable Chinese WLAN Service", None))
|
||||
#if QT_CONFIG(tooltip)
|
||||
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.advancedOptionsLbl.setText(QCoreApplication.translate("Nugget", u"Risky Options", None))
|
||||
self.label_17.setText(QCoreApplication.translate("Nugget", u"Disclaimer:\n"
|
||||
"\n"
|
||||
|
||||
Reference in New Issue
Block a user