RehabMan
Moderator
- Joined
- May 2, 2012
- Messages
- 181,111
- Motherboard
- Intel DH67BL
- CPU
- i7-2600K
- Graphics
- HD 3000
- Mac
- Mobile Phone
People working on hotpatching may find my utilities useful. https://github.com/gfoury/clover-config-plist-tools
check-dsdt-patches.py checks how many times a patch applies (zero is bad). It also can produce the results of hot-patching DSDT.aml, so you can examine them in iASL or in a hex editor. Run this to just check the current DSDT and config.plist:
Code:$ check-dsdt-patches.py DSDT.aml
I have a similar script I use myself, although it actually applies all config.plist/DSDT/ACPI/Patches to an entire set of DSDT.aml+SSDT*.aml (intended to be used on ACPI/origin). That way you can disassemble the result (iasl -da -dl DSDT.aml SSDT*.aml) to verify the result of the hotpatch disassembles cleanly (no duplicates).
Note that zero patch matches are sometimes expected (config.plist files that are used on multiple models, such as my Probook github).
check-kext-patches.py does the same thing, except checking Clover config.plist kext patches against the current /System/Library and /Library. (This is a little tricky because of plugins.)
Does it deal with MatchOS?
Just for RehabMan, these utilities have a "short data" mode, where elements are placed on the same line:
Code:<key>Find</key> <data>QUJDAA==</data>
For Xcode users really... compatible with how Xcode writes plists.