Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Updated hack' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Updated hack
Authored by: bhines on Dec 22, '01 07:26:04PM

Here is the updated hack for 10.1.2. It changes a different branch but it works just as well.

At offset 000224C,

Change

41 82 00 74
to
60 00 00 00

In HexEdit this will appear at the end of the line 0002250:

What you are doing is changing the beq (branch if equal) in beepRequest:

0000224c beq- 0x22c0
To a noop (no operation)
0000224c nop

The "beq" is branching to 22c0 if the previous operation was equal. In the hex, 41 82 is the branch and 00 74 is how far you are going forward. You could change the number or routine to branch to any call in the system.

You can take a look at the dissasembly yourself using otool:

otool -tv BezelServices

The offsets in otool match those in hexedit, so match them up and patch away. This looked like a good branch to edit out because right after it there is a branch to near the end of the function.

-Ben



[ Reply to This | # ]
Updated hack
Authored by: bhines on Dec 22, '01 07:28:47PM

Woops, the offset is at the end of the line 0002240:, not 2250.



[ Reply to This | # ]
Updated hack
Authored by: el bid on Dec 23, '01 03:47:52AM

I'm grateful, of course, to Ammon Skidmore for the original posting on ResExcellence. But I really think that kind of "shut your eyes and swallow this" prescription isn't in general very useful. And, as we've seen, it breaks easily.

So many thanks to bhines, who's taken this a step beyond a dumb poke and paid MacOSXHints readers the compliment of assuming rather more intelligence and curiosity about what's going on. And turned a stab in the dark into a real hack.

--
el bid



[ Reply to This | # ]
Updated hack
Authored by: usermilk on Dec 23, '01 12:01:02AM

Worked perfectly!



[ Reply to This | # ]