MacOS – How to edit an info.plist file inside of a kext file

kernel-extensionsmacbook promacosplist

I wanted to know if there were alternate ways to edit an info.plist file that is inside of a kext file. From a Google search I saw, it seemed like it's not something you can easily edit.

Mid-2010 MacBook Pros have an issue related to the GPU that causes frequent GPU panic crashes. Someone on the Mac Rumors forums posted a solution which involved editing a plist inside of a kext file. This is their solution.

I specifically need to edit the info.plist file for the AppleGraphicsPowerManagement.kext file which is located in /System/Library/Extensions.

I was wondering if it would be possible to edit the plist without needing to disable SIP? Thanks in advance for the help.

Best Answer

All files under /System/Library is protected by SIP. So in El Capitan you can't do that without disabling it.

Boot into Recovery HD, open Terminal under Utilities menu, and type:

csrutil disable

Restart you computer. Navigate to the kext file, right click Show Package Content. Now go to Contents then you can find the Info.plist file. You might needs to change permission of the file before you can edit it. After you're done, boot into recovery again. Open Terminal and type:

csrutil enable

Then reboot and you're done.

But in later versions of macOS you may also have SIP enabled and only disable the kext-sign requirement, which may be a bit more secure than having it disabled entirely:

csrutil enable --without kext

Note that your changes might be reverted at a macOS update.