depricate old FileToRestore

This commit is contained in:
leminlimez
2024-09-27 23:21:08 -04:00
parent 69169b9512
commit 6c1f9a566d
4 changed files with 13 additions and 31 deletions

View File

@@ -135,13 +135,11 @@ while running:
files_to_restore = [
FileToRestore(
contents=plistlib.dumps(gestalt_plist),
restore_path="/var/containers/Shared/SystemGroup/systemgroup.com.apple.mobilegestaltcache/Library/Caches/",
restore_name="com.apple.MobileGestalt.plist"
restore_path="/var/containers/Shared/SystemGroup/systemgroup.com.apple.mobilegestaltcache/Library/Caches/com.apple.MobileGestalt.plist",
),
FileToRestore(
contents=plistlib.dumps(flag_plist),
restore_path="/var/preferences/FeatureFlags/",
restore_name="Global.plist"
restore_path="/var/preferences/FeatureFlags/Global.plist",
)
]
if eligibility_files != None:
@@ -175,8 +173,7 @@ while running:
try:
restore_files(files=[FileToRestore(
contents=b"",
restore_path="/var/containers/Shared/SystemGroup/systemgroup.com.apple.mobilegestaltcache/Library/Caches/",
restore_name="com.apple.MobileGestalt.plist"
restore_path="/var/containers/Shared/SystemGroup/systemgroup.com.apple.mobilegestaltcache/Library/Caches/com.apple.MobileGestalt.plist",
)], reboot=True, lockdown_client=device.ld)
except Exception as e:
print(traceback.format_exc())