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

Commit

Permalink
disable daemons page
Browse files Browse the repository at this point in the history
  • Loading branch information
leminlimez committed Dec 1, 2024
1 parent c85b60d commit 3374957
Show file tree
Hide file tree
Showing 8 changed files with 1,021 additions and 288 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ If you would like to read more about the inner workings of the exploit and iOS r
## Credits
- [JJTech](https://github.com/JJTech0130) for Sparserestore/[TrollRestore](https://github.com/JJTech0130/TrollRestore)
- [disfordottie](https://x.com/disfordottie) for some global flag features
- [Mikasa-san](https://github.com/Mikasa-san) for [Quiet Daemon](https://github.com/Mikasa-san/QuietDaemon)
- [sneakyf1shy](https://github.com/f1shy-dev) for [AI Eligibility](https://gist.github.com/f1shy-dev/23b4a78dc283edd30ae2b2e6429129b5) (iOS 18.1 beta 4 and below)
- [lrdsnow](https://github.com/Lrdsnow) for [EU Enabler](https://github.com/Lrdsnow/EUEnabler)
- [pymobiledevice3](https://github.com/doronz88/pymobiledevice3) for restoring and device algorithms.
Expand Down
48 changes: 39 additions & 9 deletions gui/main_window.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,10 @@ class Page(Enum):
EUEnabler = 3
Springboard = 4
InternalOptions = 5
RiskyTweaks = 6
Apply = 7
Settings = 8
Daemons = 6
RiskyTweaks = 7
Apply = 8
Settings = 9

class MainWindow(QtWidgets.QMainWindow):
def __init__(self, device_manager: DeviceManager):
Expand All @@ -48,6 +49,7 @@ def __init__(self, device_manager: DeviceManager):
self.ui.euEnablerPageBtn.clicked.connect(self.on_euEnablerPageBtn_clicked)
self.ui.springboardOptionsPageBtn.clicked.connect(self.on_springboardOptionsPageBtn_clicked)
self.ui.internalOptionsPageBtn.clicked.connect(self.on_internalOptionsPageBtn_clicked)
self.ui.daemonsPageBtn.clicked.connect(self.on_daemonsPageBtn_clicked)
self.ui.advancedPageBtn.clicked.connect(self.on_advancedPageBtn_clicked)
self.ui.applyPageBtn.clicked.connect(self.on_applyPageBtn_clicked)
self.ui.settingsPageBtn.clicked.connect(self.on_settingsPageBtn_clicked)
Expand All @@ -65,7 +67,7 @@ def __init__(self, device_manager: DeviceManager):

self.ui.jjtechBtn.clicked.connect(self.on_jjtechBtn_clicked)
self.ui.disfordottieBtn.clicked.connect(self.on_disfordottieBtn_clicked)
self.ui.lrdsnowBtn.clicked.connect(self.on_lrdsnowBtn_clicked)
self.ui.mikasaBtn.clicked.connect(self.on_mikasaBtn_clicked)

self.ui.libiBtn.clicked.connect(self.on_libiBtn_clicked)
self.ui.qtBtn.clicked.connect(self.on_qtBtn_clicked)
Expand Down Expand Up @@ -114,6 +116,15 @@ def __init__(self, device_manager: DeviceManager):
self.ui.pasteSoundChk.toggled.connect(self.on_pasteSoundChk_clicked)
self.ui.notifyPastesChk.toggled.connect(self.on_notifyPastesChk_clicked)

## DAEMONS PAGE ACTIONS
self.ui.thermalmonitordChk.toggled.connect(self.on_thermalmonitordChk_clicked)
self.ui.otadChk.toggled.connect(self.on_otadChk_clicked)
self.ui.usageTrackingAgentChk.toggled.connect(self.on_usageTrackingAgentChk_clicked)
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.tipsChk.toggled.connect(self.on_tipsChk_clicked)

## RISKY OPTIONS PAGE ACTIONS
self.ui.disableOTAChk.toggled.connect(self.on_disableOTAChk_clicked)
self.ui.enableResolutionChk.toggled.connect(self.on_enableResolutionChk_clicked)
Expand Down Expand Up @@ -188,14 +199,14 @@ def refresh_devices(self):
self.ui.homePageBtn.setChecked(True)

# hide all pages
self.ui.explorePageBtn.hide()
self.ui.sidebarDiv1.hide()

self.ui.gestaltPageBtn.hide()
self.ui.featureFlagsPageBtn.hide()
self.ui.euEnablerPageBtn.hide()
self.ui.springboardOptionsPageBtn.hide()
self.ui.internalOptionsPageBtn.hide()
self.ui.daemonsPageBtn.hide()
self.ui.advancedPageBtn.hide()

self.ui.sidebarDiv2.hide()
Expand All @@ -209,10 +220,10 @@ def refresh_devices(self):
self.ui.devicePicker.addItem(device.name)

# show all pages
self.ui.explorePageBtn.hide()
self.ui.sidebarDiv1.show()
self.ui.springboardOptionsPageBtn.show()
self.ui.internalOptionsPageBtn.show()
self.ui.daemonsPageBtn.show()

if self.device_manager.allow_risky_tweaks:
self.ui.advancedPageBtn.show()
Expand Down Expand Up @@ -374,6 +385,9 @@ def on_springboardOptionsPageBtn_clicked(self):
def on_internalOptionsPageBtn_clicked(self):
self.ui.pages.setCurrentIndex(Page.InternalOptions.value)

def on_daemonsPageBtn_clicked(self):
self.ui.pages.setCurrentIndex(Page.Daemons.value)

def on_advancedPageBtn_clicked(self):
self.ui.pages.setCurrentIndex(Page.RiskyTweaks.value)

Expand Down Expand Up @@ -440,8 +454,8 @@ def on_jjtechBtn_clicked(self):
webbrowser.open_new_tab("https://github.com/JJTech0130/TrollRestore")
def on_disfordottieBtn_clicked(self):
webbrowser.open_new_tab("https://twitter.com/disfordottie")
def on_lrdsnowBtn_clicked(self):
webbrowser.open_new_tab("https://github.com/Lrdsnow/EUEnabler")
def on_mikasaBtn_clicked(self):
webbrowser.open_new_tab("https://github.com/Mikasa-san/QuietDaemon")

def on_libiBtn_clicked(self):
webbrowser.open_new_tab("https://github.com/doronz88/pymobiledevice3")
Expand Down Expand Up @@ -688,9 +702,25 @@ def on_pasteSoundChk_clicked(self, checked: bool):
def on_notifyPastesChk_clicked(self, checked: bool):
tweaks["AnnounceAllPastes"].set_enabled(checked)

## DAEMONS PAGE
def on_thermalmonitordChk_clicked(self, checked: bool):
tweaks["DisableThermalmonitord"].set_enabled(checked)
def on_otadChk_clicked(self, checked: bool):
tweaks["DisableOTADaemon"].set_enabled(checked)
def on_usageTrackingAgentChk_clicked(self, checked: bool):
tweaks["DisableUsageTracking"].set_enabled(checked)
def on_gameCenterChk_clicked(self, checked: bool):
tweaks["DisableGameCenter"].set_enabled(checked)
def on_screenTimeChk_clicked(self, checked: bool):
tweaks["DisableScreenTime"].set_enabled(checked)
def on_crashReportsChk_clicked(self, checked: bool):
tweaks["DisableCrashReports"].set_enabled(checked)
def on_tipsChk_clicked(self, checked: bool):
tweaks["DisableTips"].set_enabled(checked)

## Risky Options Page
def on_disableOTAChk_clicked(self, checked: bool):
tweaks["DisableOTA"].set_enabled(checked)
tweaks["DisableOTAFile"].set_enabled(checked)

def on_enableResolutionChk_clicked(self, checked: bool):
tweaks["CustomResolution"].set_enabled(checked)
Expand Down
Loading

0 comments on commit 3374957

Please sign in to comment.