LinusHenze / Fugu14

Fugu14 is an untethered iOS 14.3-14.5.1 jailbreak
MIT License
1.42k stars 309 forks source link

Possible discovery that may be the reason for unsolved bugs #217

Closed dlevi309 closed 2 years ago

dlevi309 commented 2 years ago

I noticed a possible typo in Fugu's copy of the analyticsd Launch Daemon plist file in /Library/LaunchDaemons/com.apple.analyticsd.plist which may be causing the unforeseen issues Fugu14, but I'm not sure if that was purposely done. The UserName key for the launch event is _nanalyticsd which caught my attention as the original user is _analyticsd. This is the plist file printed in XPC format:

{
    "ProcessType": "Adaptive",
    "EnableTransactions": true,
    "MachServices": {
        "com.apple.analyticsd.messagetracer": true,
        "com.apple.analyticsd": true
    },
    "EnablePressuredExit": true,
    "UserName": "_nanalyticsd",
    "EnvironmentVariables": {
        "HOME": "/var/db/analyticsd"
    },
    "Label": "com.apple.analyticsd",
    "ProgramArguments": [
        "/System/Library/PrivateFrameworks/CoreAnalytics.framework/Support/analyticsd.back"
    ],
    "LaunchEvents": {
        "com.apple.iokit.matching": {
            "com.apple.analyticsd": {
                "IOProviderClass": "CoreAnalyticsMessenger"
            }
        }
    }
}
dlevi309 commented 2 years ago

It seems this was intentional, gonna close this out https://github.com/LinusHenze/Fugu14/blob/7cba721b6d62555dd0c0b47416ee103ee112576e/arm/iOS/jailbreakd/Sources/jailbreakd/untether/installUntether.swift#L113