Skip to content

Commit

Permalink
1.1.2 RCF
Browse files Browse the repository at this point in the history
  • Loading branch information
Constantin Clerc committed Feb 22, 2024
1 parent a8cff2a commit 3aa7193
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions Geranium/ByeTime/ByeTimeHelper.swift
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,13 @@ func doStuff() {
let entriesToRemove = ["com.apple.familycircled", "com.apple.UsageTrackingAgent", "com.apple.ScreenTimeAgent", "com.apple.homed"]
RootHelper.removeItem(at: URL(fileURLWithPath: "/var/mobile/Documents/disabled.plist"))
RootHelper.copy(from: URL(fileURLWithPath: "/var/db/com.apple.xpc.launchd/disabled.plist"), to: URL(fileURLWithPath: "/var/mobile/Documents/disabled.plist"))
var plist = try? readPlist(atPath: "/var/mobile/Documents/disabled.plist")
removeEntriesFromPlistArray(plist!, entriesToRemove: entriesToRemove, arrayKey: "")
try? writePlist(plist!, toPath: "/var/mobile/Documents/disabled.plist")
RootHelper.setPermission(url: URL(fileURLWithPath: "/var/mobile/Documents/disabled.plist"))
if var plist = try? readPlist(atPath: "/var/mobile/Documents/disabled.plist") {
removeEntriesFromPlistArray(plist, entriesToRemove: entriesToRemove, arrayKey: "")
try? writePlist(plist, toPath: "/var/mobile/Documents/disabled.plist")
} else {
sendLog("ST_REENABLE_ERR_PLIST")
}
RootHelper.removeItem(at: URL(fileURLWithPath: "/var/db/com.apple.xpc.launchd/disabled.plist"))
RootHelper.move(from: URL(fileURLWithPath :"/var/mobile/Documents/disabled.plist"), to: URL(fileURLWithPath: "/var/db/com.apple.xpc.launchd/disabled.plist"))
RootHelper.removeItem(at: URL(fileURLWithPath: "/var/mobile/Documents/disabled.plist"))
Expand Down

1 comment on commit 3aa7193

@c22dev
Copy link
Owner

@c22dev c22dev commented on 3aa7193 Feb 22, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixes #16

Please sign in to comment.