diff --git a/.DS_Store b/.DS_Store index e4ccb7a..401ecda 100644 Binary files a/.DS_Store and b/.DS_Store differ diff --git a/.gitignore b/.gitignore index ab2d931..5368a92 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ build com.apple.MobileGestalt.plist .DS_Store +__pycache__ diff --git a/CODENAME Nugget.spec b/CODENAME Nugget.spec deleted file mode 100644 index 6a8360b..0000000 --- a/CODENAME Nugget.spec +++ /dev/null @@ -1,44 +0,0 @@ -# -*- mode: python ; coding: utf-8 -*- - - -a = Analysis( - ['main_app.py'], - pathex=[], - binaries=[], - datas=[], - hiddenimports=['zeroconf', 'zeroconf._utils.ipaddress', 'zeroconf._handlers.answers'], - hookspath=[], - hooksconfig={}, - runtime_hooks=[], - excludes=[], - noarchive=False, - optimize=0, -) -pyz = PYZ(a.pure) - -exe = EXE( - pyz, - a.scripts, - [], - exclude_binaries=True, - name='CODENAME Nugget', - debug=False, - bootloader_ignore_signals=False, - strip=False, - upx=True, - console=True, - disable_windowed_traceback=False, - argv_emulation=False, - target_arch=None, - codesign_identity=None, - entitlements_file=None, -) -coll = COLLECT( - exe, - a.binaries, - a.datas, - strip=False, - upx=True, - upx_exclude=[], - name='CODENAME Nugget', -) diff --git a/exploit/__init__.py b/Sparserestore/__init__.py similarity index 100% rename from exploit/__init__.py rename to Sparserestore/__init__.py diff --git a/exploit/backup.py b/Sparserestore/backup.py similarity index 100% rename from exploit/backup.py rename to Sparserestore/backup.py diff --git a/exploit/mbdb.py b/Sparserestore/mbdb.py similarity index 100% rename from exploit/mbdb.py rename to Sparserestore/mbdb.py diff --git a/exploit/restore.py b/Sparserestore/restore.py similarity index 100% rename from exploit/restore.py rename to Sparserestore/restore.py diff --git a/cli_app.py b/cli_app.py index 3fb6690..1695676 100644 --- a/cli_app.py +++ b/cli_app.py @@ -1,4 +1,4 @@ -from exploit.restore import restore_files, FileToRestore, restore_file +from Sparserestore.restore import restore_files, FileToRestore, restore_file from tweaks.tweaks import tweaks, TweakModifyType, FeatureFlagTweak, EligibilityTweak from devicemanagement.constants import Device @@ -164,13 +164,6 @@ while running: # exit the panel print("Goodbye!") running = False - elif page == 42: - # restore_file(fp=Path.joinpath(Path.cwd(), "telephony_test.png"), restore_path="/var/mobile/Library/Caches/TelephonyUI-9/", restore_name="en-0---white.png", reboot=True, lockdown_client=device.ld) - restore_files(files=[FileToRestore( - contents=b"", - restore_path="/var/Managed Preferences/mobile/", - restore_name="com.apple.purplebuddy.plist" - )], reboot=True, lockdown_client=device.ld) else: tweak = list(tweaks.values())[page-1] if page > 0 and page <= num_tweaks and tweak.is_compatible(device.version): diff --git a/devicemanagement/__pycache__/__init__.cpython-312.pyc b/devicemanagement/__pycache__/__init__.cpython-312.pyc deleted file mode 100644 index 94b899d..0000000 Binary files a/devicemanagement/__pycache__/__init__.cpython-312.pyc and /dev/null differ diff --git a/devicemanagement/__pycache__/constants.cpython-312.pyc b/devicemanagement/__pycache__/constants.cpython-312.pyc deleted file mode 100644 index bf2676a..0000000 Binary files a/devicemanagement/__pycache__/constants.cpython-312.pyc and /dev/null differ diff --git a/devicemanagement/__pycache__/data_singleton.cpython-312.pyc b/devicemanagement/__pycache__/data_singleton.cpython-312.pyc deleted file mode 100644 index 943e2d5..0000000 Binary files a/devicemanagement/__pycache__/data_singleton.cpython-312.pyc and /dev/null differ diff --git a/devicemanagement/__pycache__/device_manager.cpython-312.pyc b/devicemanagement/__pycache__/device_manager.cpython-312.pyc deleted file mode 100644 index c29a9e4..0000000 Binary files a/devicemanagement/__pycache__/device_manager.cpython-312.pyc and /dev/null differ diff --git a/devicemanagement/device_manager.py b/devicemanagement/device_manager.py index baaf9b7..e7afdc5 100644 --- a/devicemanagement/device_manager.py +++ b/devicemanagement/device_manager.py @@ -11,7 +11,7 @@ from devicemanagement.constants import Device, Version from devicemanagement.data_singleton import DataSingleton from tweaks.tweaks import tweaks, FeatureFlagTweak, EligibilityTweak -from exploit.restore import restore_files, FileToRestore +from Sparserestore.restore import restore_files, FileToRestore def show_error_msg(txt: str): detailsBox = QMessageBox() diff --git a/exploit/__pycache__/__init__.cpython-312.pyc b/exploit/__pycache__/__init__.cpython-312.pyc deleted file mode 100644 index e418ec0..0000000 Binary files a/exploit/__pycache__/__init__.cpython-312.pyc and /dev/null differ diff --git a/exploit/__pycache__/backup.cpython-312.pyc b/exploit/__pycache__/backup.cpython-312.pyc deleted file mode 100644 index b69d840..0000000 Binary files a/exploit/__pycache__/backup.cpython-312.pyc and /dev/null differ diff --git a/exploit/__pycache__/mbdb.cpython-312.pyc b/exploit/__pycache__/mbdb.cpython-312.pyc deleted file mode 100644 index b5275f3..0000000 Binary files a/exploit/__pycache__/mbdb.cpython-312.pyc and /dev/null differ diff --git a/exploit/__pycache__/restore.cpython-312.pyc b/exploit/__pycache__/restore.cpython-312.pyc deleted file mode 100644 index 3c27278..0000000 Binary files a/exploit/__pycache__/restore.cpython-312.pyc and /dev/null differ diff --git a/gui/__pycache__/__init__.cpython-312.pyc b/gui/__pycache__/__init__.cpython-312.pyc deleted file mode 100644 index 8b12a73..0000000 Binary files a/gui/__pycache__/__init__.cpython-312.pyc and /dev/null differ diff --git a/gui/__pycache__/gestalt_dialog.cpython-312.pyc b/gui/__pycache__/gestalt_dialog.cpython-312.pyc deleted file mode 100644 index c210875..0000000 Binary files a/gui/__pycache__/gestalt_dialog.cpython-312.pyc and /dev/null differ diff --git a/gui/__pycache__/main_window.cpython-312.pyc b/gui/__pycache__/main_window.cpython-312.pyc deleted file mode 100644 index c21eb9b..0000000 Binary files a/gui/__pycache__/main_window.cpython-312.pyc and /dev/null differ diff --git a/gui/__pycache__/ui_mainwindow.cpython-312.pyc b/gui/__pycache__/ui_mainwindow.cpython-312.pyc deleted file mode 100644 index 6030973..0000000 Binary files a/gui/__pycache__/ui_mainwindow.cpython-312.pyc and /dev/null differ diff --git a/qt/__pycache__/ui_mainwindow.cpython-312.pyc b/qt/__pycache__/ui_mainwindow.cpython-312.pyc deleted file mode 100644 index a6e0f5c..0000000 Binary files a/qt/__pycache__/ui_mainwindow.cpython-312.pyc and /dev/null differ diff --git a/tweaks/__pycache__/__init__.cpython-312.pyc b/tweaks/__pycache__/__init__.cpython-312.pyc deleted file mode 100644 index dd5a753..0000000 Binary files a/tweaks/__pycache__/__init__.cpython-312.pyc and /dev/null differ diff --git a/tweaks/__pycache__/eligibility_tweak.cpython-312.pyc b/tweaks/__pycache__/eligibility_tweak.cpython-312.pyc deleted file mode 100644 index 92228dd..0000000 Binary files a/tweaks/__pycache__/eligibility_tweak.cpython-312.pyc and /dev/null differ diff --git a/tweaks/__pycache__/tweak_classes.cpython-312.pyc b/tweaks/__pycache__/tweak_classes.cpython-312.pyc deleted file mode 100644 index b953032..0000000 Binary files a/tweaks/__pycache__/tweak_classes.cpython-312.pyc and /dev/null differ diff --git a/tweaks/__pycache__/tweaks.cpython-312.pyc b/tweaks/__pycache__/tweaks.cpython-312.pyc deleted file mode 100644 index 749d5b5..0000000 Binary files a/tweaks/__pycache__/tweaks.cpython-312.pyc and /dev/null differ diff --git a/tweaks/eligibility_tweak.py b/tweaks/eligibility_tweak.py index 6dff77e..42da131 100644 --- a/tweaks/eligibility_tweak.py +++ b/tweaks/eligibility_tweak.py @@ -1,5 +1,5 @@ from .tweak_classes import Tweak, TweakModifyType -from exploit.restore import FileToRestore +from Sparserestore.restore import FileToRestore from devicemanagement.constants import Version import plistlib