Skip to content

Added hashmismatch to revpatch in order to disable APFS Volume Hash Mismatch notification in macOS 12+#20

Open
leon9078 wants to merge 4 commits intoacidanthera:masterfrom
leon9078:master
Open

Added hashmismatch to revpatch in order to disable APFS Volume Hash Mismatch notification in macOS 12+#20
leon9078 wants to merge 4 commits intoacidanthera:masterfrom
leon9078:master

Conversation

@leon9078
Copy link

Since early builds of macOS 12 Monterey, some users are facing the APFS "Volume Hash Mismatch" notification.
@khronokernel already mentioned here, that

is an APFS bug on Apple's end with regards to hash integrity validation. Nothing we can do on our end, wait for Apple to resolve

Another mention of the bug in the official dortania's OpenCore Legacy Patcher repo

By adding hashmismatch value to revpatch we can disable this spurious notification!

Patched macOS binaries:

  • apfs.kext (/System/Library/Extensions/apfs.kext/Contents/MacOS/apfs)
    • Force "_apfs_announce_hash_mismatch" to return 0
    • Force "_apfs_notify_hash_mismatch" to return 0
  • APFSUserAgent (/System/Library/CoreServices/APFSUserAgent)
    • Replace call to IOServiceAddInterestNotification with nop. The 3rd parameter is a callback function that point to "Volume Mash Mismatch" ref

Discovered using Hopper Disassembler.
Also, patching code is updated for macOS 14 Sonoma and later

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant