Floris497 / mac-pixel-clock-patch-V2

994 stars 221 forks source link

CoreDisplay: Add hash for macOS 10.12 GM support #69

Open grigorovich opened 8 years ago

grigorovich commented 8 years ago

I checked on intel HD4600 2560x1080 (21:9). Works fine. macOS 10.12 GM, 16A320 Just add hash in CoreDisplay-patcher at oToolCoreDisplayPatched:

oToolCoreDisplayUnpatched=(
...
  aa7607dd72a2a4ca70ce094a2fc39cce '10.12 16A320' 1  # 10.12 GM
)
JohnPetrucci commented 8 years ago

Hello, This add don't work fo me, macOS 10.12 GM, 16A320

My Error:

Re-singing /System/Library/Frameworks/CoreDisplay.framework/Versions/A/CoreDisplay /System/Library/Frameworks/CoreDisplay.framework/Versions/A/CoreDisplay: replacing existing signature xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun /System/Library/Frameworks/CoreDisplay.framework/Versions/A/CoreDisplay: the codesign_allocate helper tool cannot be found or used Closing.. logout Saving session... ...copying shared history... ...saving history...truncating history files... ...completed.

Please I can Wait version for macOS 10.12 GM

Thanks

grigorovich commented 8 years ago

you need install xcode command line tool first: xcode-select --install

JohnPetrucci commented 8 years ago

Thanks, its ok, but add hash is wrong, oToolCoreDisplayUnpatched and oToolCoreDisplayPatched:

`# md5 checksum of '(DATA,data)' section exported by otool from unpatched CoreDisplays

for future use of detecting a false patch, where the executible's checksum is changed by codesigning but not the actual code.

oToolCoreDisplayUnpatched=( 49cd8062ed1c8f610b71e9a3231cf804 '10.12 16A254g' 1 8e1030235b90d6ab0644bd7a1b6f9cdb '10.12 16A284a' 1 f4c6e84ffa97e06624e5504edd87bf7d '10.12 16A284a' 1 # I don't know why these two are different 4cba52b41ceee7bc658020c9e58780a3 '10.12 16A294a' 1 d41d8cd98f00b204e9800998ecf8427e '10.12 16A313a' 1 )

md5 checksum of '(DATA,data)' section exported by otool from patched CoreDisplays

oToolCoreDisplayPatched=( 4e469fbf1c36d96fc25fb931c6670649 '10.12 16A254g' b6ee4943c2fce505faceb568e1c8f4b1 '10.12 16A284a' 82f97933a3ae90d47054316fa8259f6c '10.12 16A284a' 1371f71ca7949cfbe01ede8e8b52e61d '10.12 16A294a' f9c185d9e4c4ba12d5ecf41483055e39 '10.12 16A313a' aa7607dd72a2a4ca70ce094a2fc39cce '10.12 16A320' 1 # 10.12 GM )`

grigorovich commented 8 years ago

Sorry ... Need insert to: oToolCoreDisplayUnpatched=( i fix it above.

grigorovich commented 8 years ago

And use only once! Bcoz after second run script you probably will lost a backup of original CoreDisplays. Actually need insert hash of patched to oToolCoreDisplayPatched for perfectly work of script.

svickory commented 8 years ago

I can't get this to work with build 16A320 which was released today.. Please help

grigorovich commented 8 years ago

today released 323 not 320