|
|
#26 | |
|
Quote:
|
||
|
|
1
|
|
|
#27 |
|
Still not working for me:
Code:
$ sudo ./patch_dock Password: Backing up original Dock contents Dumping memory from Dock (7038) [0x10a45b000-0x10a6b6000] Copying Dock binary to working directory Replacing encrypted contents with decrypted dump 2469888+0 records in 2469888+0 records out 2469888 bytes transferred in 4.562045 secs (541399 bytes/sec) Patching __TEXT segment flags 1+0 records in 1+0 records out 1 bytes transferred in 0.001120 secs (893 bytes/sec) Patching offset 0xDC0AD 3+0 records in 3+0 records out 3 bytes transferred in 0.000019 secs (157286 bytes/sec) Patching offset 0xDC0C8 8+0 records in 8+0 records out 8 bytes transferred in 0.000028 secs (284360 bytes/sec) Patching offset 0xDC0ED 8+0 records in 8+0 records out 8 bytes transferred in 0.000028 secs (286790 bytes/sec) Patching offset 0xDC19F 8+0 records in 8+0 records out 8 bytes transferred in 0.000026 secs (307839 bytes/sec) Patching offset 0xDC1C7 8+0 records in 8+0 records out 8 bytes transferred in 0.000027 secs (296942 bytes/sec) Patching offset 0xDC26D 3+0 records in 3+0 records out 3 bytes transferred in 0.000019 secs (157286 bytes/sec) Patching offset 0xDC31D 8+0 records in 8+0 records out 8 bytes transferred in 0.000028 secs (284360 bytes/sec) Importing code signing certificates security: SecKeychainItemImport: The specified item already exists in the keychain. security: SecKeychainItemImport: The specified item already exists in the keychain. Replacing with patched Dock Code signing the patched Dock /System/Library/CoreServices/Dock.app/Contents/MacOS/Dock: replacing existing signature /System/Library/CoreServices/Dock.app/Contents/MacOS/Dock: object file format unrecognized, invalid, or unsuitable Restarting the Dock process |
|
|
|
0
|
|
|
#28 |
|
The script worked perfectly for me, thanks! Dock restarted and is black now.
jW
__________________
The Bearded Nerd 13" MacBook Pro; 64GB iPod touch "It's a real burn, being right so often." NoiseTrade.com/Walker |
|
|
|
0
|
|
|
#29 | |
|
Quote:
xxd -l 4096 -g 1 /System/Library/CoreServices/Dock.app/Contents/MacOS/Dock >> ~/Desktop/Dock_xxd.txt xxd -l 4096 -g 1 /tmp/dump >> ~/Desktop/dump_xxd.txt Then proceed to revert, zip the two files on your Desktop (Dock_xxd and dump_xxd) and post them here. ---------- Glad to hear it!! |
||
|
|
0
|
|
|
#30 | |
|
Quote:
|
||
|
|
0
|
|
|
#31 |
|
Updated patcher in first thread. This one contains sanity checks to insure that things are how the program expects them to be. It must be run as root (i.e. with sudo) though the program checks for it anyway.
Run it like this to patch: sudo ./patch_dock patch And like this to revert: sudo ./patch_dock revert And like this to revert to the original sudo ./patch_dock revert_to_original |
|
|
|
0
|
|
|
#32 | |
|
Quote:
Code:
$ sudo ./patch_dock patch Password: Checking for file locations... success Importing code signing certificates security: SecKeychainItemImport: The specified item already exists in the keychain. security: SecKeychainItemImport: The specified item already exists in the keychain. Backing up original Dock contents Dumping memory from Dock (10239) [0x10e321000-0x10e57c000] Replacing encrypted contents with decrypted dump 2469888+0 records in 2469888+0 records out 2469888 bytes transferred in 9.228851 secs (267627 bytes/sec) Patching __TEXT segment flags 1+0 records in 1+0 records out 1 bytes transferred in 0.000023 secs (43240 bytes/sec) Patching offset 0xDC0AD 3+0 records in 3+0 records out 3 bytes transferred in 0.000027 secs (111353 bytes/sec) Patching offset 0xDC0C8 8+0 records in 8+0 records out 8 bytes transferred in 0.000042 secs (190650 bytes/sec) Patching offset 0xDC0ED 8+0 records in 8+0 records out 8 bytes transferred in 0.000042 secs (190650 bytes/sec) Patching offset 0xDC19F 8+0 records in 8+0 records out 8 bytes transferred in 0.000047 secs (170327 bytes/sec) Patching offset 0xDC1C7 8+0 records in 8+0 records out 8 bytes transferred in 0.000048 secs (166937 bytes/sec) Patching offset 0xDC26D 3+0 records in 3+0 records out 3 bytes transferred in 0.000032 secs (93902 bytes/sec) Patching offset 0xDC31D 8+0 records in 8+0 records out 8 bytes transferred in 0.000045 secs (177537 bytes/sec) Code signing the patched Dock /System/Library/CoreServices/Dock.app/Contents/MacOS/Dock: replacing existing signature /System/Library/CoreServices/Dock.app/Contents/MacOS/Dock: object file format unrecognized, invalid, or unsuitable Restarting the Dock process $ xxd -l 4096 -g 1 /System/Library/CoreServices/Dock.app/Contents/MacOS/Dock >> ~/Desktop/Dock_xxd.txt $ xxd -l 4096 -g 1 /tmp/dump >> ~/Desktop/dump_xxd.txt $ sudo ./patch_dock revert_to_original Reverting to original copy of 10.8.2 Dock No matching processes were found $ sudo ./patch_dock revert Reverting to backed up copy of Dock No matching processes were found |
||
|
|
0
|
|
|
#33 | |
|
Quote:
You can download them without having to D/L Xcode, I believe. Just go here: https://developer.apple.com/ Then go to Mac Dev Center link. Then, near where it says download Xcode 4.5.2, you'll see Additional Downloads. Click on the link that says "View all downloads" https://developer.apple.com/downloads/ Then download the tools for "Command Line Tools (OS X Mountain Lion) for Xcode Nov. 1st" |
||
|
|
0
|
|
|
#34 | |
|
Quote:
|
||
|
|
0
|
|
|
#35 |
|
Too big to include. But see my previous post (just above yours) about just installing the tools you need rather than all of Xcode. Perhaps that will work.
|
|
|
|
0
|
|
|
#36 |
|
That was it. I'm not sure if other general users will want to go through all the trouble of registering for Apple Developer access just so they can install the CLI tools, which is why I was hoping that you'd be able to figure out what was specifically required from the toolkit to tie it all together. At any rate, really nice work! I appreciate what you've done with this. Of course, we'll all need to do it once again as soon as 10.8.3 RTMs.
|
|
|
|
1
|
|
|
#37 |
|
Ugh, I'm installing 10.8.3 now and completely forgot. Sometimes .x beta's don't impact the Dock.app, hoping this won't.
|
|
|
|
0
|
|
|
#38 | |
|
Quote:
|
||
|
|
0
|
|
|
#39 |
|
Alright, the all-in-one solution is there in the first post, and it's all of 29kb large
Last edited by unsanity77; Nov 29, 2012 at 05:15 PM. |
|
|
|
0
|
|
|
#40 |
|
Argh. It looks like there's no quick and easy way to remove the command line tools. I'd love to help test out the new script from the perspective of a non-developer, but unfortunately, I'm going to have wait until I come across a definitive way to remove the tools properly, or until my next OS nuke and pave.
|
|
|
|
0
|
|
|
#41 |
|
Yeah, I tried to find a way to definitively remove them and couldn't figure it out either. Essentially, though, I've just taken the code-signing code directly from the codesign command-line tool (its source code is on opensource.apple.com) and it does what it's supposed to do so it *shouldn't* require anything else. Also, I've linked to some of Apple's private frameworks and that makes me a little iffy of whether it'll work on every machine, so I guess my biggest question for you is: does it do what it's supposed to as is?
|
|
|
|
0
|
|
|
#42 | |
|
Quote:
UPDATE: Fresh install of ML and all updates... Code:
$ sudo ./dpatch patch Checking Dock version... 1168.6, ready to patch Checking privileges... we are root. Importing CS_DockPatch codesign certificate... done. Importing CS_DockPatch codesign private key... done. Requesting task for Dock (132)... aquired - taskid: 6327 Searching memory for __TEXT segment... found @ 0x108CB9000-0x108F14000 Reading out decrypted segment (size: 0x25B000)... done. Patching memory... Offset 0x000000AC: 08 -> 00 Offset 0x000DC0AD: 0F 28 C1 -> 0F 57 C0 Offset 0x000DC0C8: F2 0F 10 05 20 03 0F 00 -> 0F 57 C0 90 90 90 90 90 Offset 0x000DC0ED: F2 0F 10 05 03 03 0F 00 -> 0F 57 C0 90 90 90 90 90 Offset 0x000DC19F: F2 0F 10 05 89 FC 0E 00 -> 0F 57 C0 90 90 90 90 90 Offset 0x000DC1C7: F2 0F 10 05 31 02 0F 00 -> 0F 57 C0 90 90 90 90 90 Offset 0x000DC26D: 0F 28 C1 -> 0F 57 C0 Offset 0x000DC31D: F2 0F 10 05 63 FF 0E 00 -> 0F 57 C0 90 90 90 90 90 Patches have been written to disk. Code signing... replacing existing signature... signed. Sent SIGKILL to Dock process. Last edited by TheAngryPenguin; Nov 29, 2012 at 08:47 PM. |
||
|
|
1
|
|
|
#43 | |
|
Quote:
This weekend I will code a GUI app, and in the app I can include the codesign_allocate tool (in the bundle's resources) because the Security.framework respects an environment variable that points to the location of the tool. Thank you for helping me on this. |
||
|
|
1
|
|
|
#44 | |
|
Quote:
Code:
$ sudo ./dpatch patch Checking Dock version... 1168.6, ready to patch Checking privileges... we are root. Importing CS_DockPatch codesign certificate... done. Importing CS_DockPatch codesign private key... done. Requesting task for Dock (143)... aquired - taskid: 6347 Searching memory for __TEXT segment... found @ 0x10159A000-0x1017F5000 Reading out decrypted segment (size: 0x25B000)... done. Patching memory... Offset 0x000000AC: 08 -> 00 Offset 0x000DC0AD: 0F 28 C1 -> 0F 57 C0 Offset 0x000DC0C8: F2 0F 10 05 20 03 0F 00 -> 0F 57 C0 90 90 90 90 90 Offset 0x000DC0ED: F2 0F 10 05 03 03 0F 00 -> 0F 57 C0 90 90 90 90 90 Offset 0x000DC19F: F2 0F 10 05 89 FC 0E 00 -> 0F 57 C0 90 90 90 90 90 Offset 0x000DC1C7: F2 0F 10 05 31 02 0F 00 -> 0F 57 C0 90 90 90 90 90 Offset 0x000DC26D: 0F 28 C1 -> 0F 57 C0 Offset 0x000DC31D: F2 0F 10 05 63 FF 0E 00 -> 0F 57 C0 90 90 90 90 90 Patches have been written to disk. Code signing... replacing existing signature... signed. Sent SIGKILL to Dock process. |
||
|
|
0
|
|
|
#45 |
|
nice
|
|
|
|
1
|
|
|
#46 |
|
I agree that looks kinda cool but what I've always wanted since upgrading to ML is the old style 3d dock back. The one used since Leopard. That, to me, was one of the most attractive things about OSX and the new dock just feels like a dull regression to me.
Has anyone figured out a way of patching the binary like this to bring back the old style dock? I don't want anyone telling me to downgrade either as that what mean the money spent on upgrading down the drain. |
|
|
|
0
|
|
|
#47 | |
|
Quote:
|
||
|
|
0
|
|
|
#48 |
|
*hug*
as the title says: I could hug you right now. Thanks. I *REALLY* wanted my black dock back!
![]() If I can help out in any way, let me know. Need an icon for it?
Last edited by fruityth1ng; Dec 3, 2012 at 04:10 PM. Reason: want to include image |
|
|
|
0
|
|
|
#49 | |
|
Quote:
__________________
Work: MP 4,1 2x2.26 Quad, 16GB, 2x1TB, 2x3TB 2011 MBP 15", 2.2 i7, 16GB, 256GB SSD Home: 2010 MBP 15", 2.66 i7, 8GB, 120GB SSD + 1TB 16GB iPhone 4S, iPod 120GB, iPad 3 32GB 4G |
||
|
|
0
|
|
|
#50 | |
|
Quote:
I'm glad you like it! |
||
|
|
1
|
![]() |
|
«
Previous Thread
|
Next Thread
»
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
All times are GMT -5. The time now is 07:44 AM.










Linear Mode
