Home User CP Donate Chat Register Today!  
  Get New posts Faq / Help?
   


Go Back   Hackint0sh > Projects and Hacks > iPhone > General > Hardware

Reply
 
LinkBack Thread Tools Display Modes
  #151 (permalink)  
Old 10-26-2008, 07:48 AM
iSchmave
Status: Offline
Member
 
Join Date: Jun 2008
Posts: 31
Rep Power: 0
iSchmave is on a distinguished road
Default

cool - just remeber to donate

Last edited by iSchmave; 10-26-2008 at 12:46 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #152 (permalink)  
Old 10-26-2008, 09:29 PM
nosferat
Status: Offline
Junior Member
 
Join Date: Oct 2008
Posts: 6
Rep Power: 0
nosferat is on a distinguished road
Default

I use Debian 7.0 with bsdiff

bspatch iapd iapd_patched iapd.bspatch

Size of iapd: 1.1 Mb
Size of iapd_patched: 609.4 Kb

New file is not work. When I restart touch screen doesn't work.
I can't enter unlock code....

iSchmave can you post patched iapd?

Sorry for my English
Thank you!

Last edited by nosferat; 10-27-2008 at 06:25 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #153 (permalink)  
Old 10-26-2008, 10:41 PM
iSchmave
Status: Offline
Member
 
Join Date: Jun 2008
Posts: 31
Rep Power: 0
iSchmave is on a distinguished road
Default

even if i did you would have the same problem.

you have to chmod 777 the new binary... over wifi and restart
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Sponsored links Remove advertisements
Advertisement
Advertisement

  #154 (permalink)  
Old 10-27-2008, 08:16 AM
nosferat
Status: Offline
Junior Member
 
Join Date: Oct 2008
Posts: 6
Rep Power: 0
nosferat is on a distinguished road
Default

mmm... I don't know why but...

The end of file:

Original IAPD
3C2F706C6973743E0AFADE0B01000000080000000000000000 00000000000000

Patched IAPD
001A2A9000EB000090E5110050E300F18F9635F5FFEA2A00F8 EA110000EA1200

I tried chmod... nothing 8(
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #155 (permalink)  
Old 10-27-2008, 01:24 PM
nosferat
Status: Offline
Junior Member
 
Join Date: Oct 2008
Posts: 6
Rep Power: 0
nosferat is on a distinguished road
Default

Quote:
Originally Posted by iSchmave View Post
even if i did you would have the same problem.

you have to chmod 777 the new binary... over wifi and restart
Can you share your patched IAPD file?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #156 (permalink)  
Old 10-31-2008, 08:59 AM
SamMan
Status: Offline
Junior Member
 
Join Date: Oct 2008
Posts: 3
Rep Power: 0
SamMan is on a distinguished road
Default

Hmm... How I can apply this "bspatch" if I have only Windows on my desktop? Does any Win-analog for bspatch exist? For me, it's much easy do work in hex-editor, but then I need the table like:

Offset|Original byte|New byte
-----------------------------
AA05 | 4E| 4F
........and so on.............

Please, help!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Sponsored links Remove advertisements
Advertisement
Advertisement

  #157 (permalink)  
Old 10-31-2008, 09:52 PM
comcute
Status: Offline
Junior Member
 
Join Date: Feb 2008
Posts: 8
Rep Power: 0
comcute is on a distinguished road
Default

This patch is for 2.0 only. In 2.1 iapd is much larger.
SamMan: iapd(2.1) change 0x124A4, 0x8DE8 to 00 00 A0 E1
Also you have to resign iapd with "ldid -S" after modifying it.

Last edited by comcute; 10-31-2008 at 09:57 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #158 (permalink)  
Old 11-01-2008, 02:14 PM
SamMan
Status: Offline
Junior Member
 
Join Date: Oct 2008
Posts: 3
Rep Power: 0
SamMan is on a distinguished road
Default

2comcute:

Thanks to trying help! What I did:

1. Get the original iapd from OS 2.1 and open it in HEX-editor(in Windows).
2. Find hex-offset 8DE8 and change four bytes starting from this point to 0000A0E1.
3. All the same for hex-offset 124A4.
4. Save new version of iapd.
5. Put edited version of iapd to /System/Library/PrivateFrameworks/IAP.framework/Support replacing the original one.
6. In terminal execute command:
ldid -S /System/Library/PrivateFrameworks/IAP.framework/Support/iapd
(by the way, in this point I didn't get any error message, but I also didn't get any confirmation message. Just one string on terminal. Is it normal?).
7. Change permission for edited, re-signed(I hope!) iapd to 0755.
8. And - reboot iPhone.

It's all vain. (( After ~90 sec. of normal work with non-Appple AV-cable TV-screen just go to black and iPhone return to the list of video files on it. The only "achievement" - nag screen "This accessory is..." doesn't appear anymore. That's all!
HELP!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #159 (permalink)  
Old 11-02-2008, 01:44 AM
iSchmave
Status: Offline
Member
 
Join Date: Jun 2008
Posts: 31
Rep Power: 0
iSchmave is on a distinguished road
Default

this is what you have to do:

find SecKeyRawVerify after it, it will compare a register with some constant (i forgot) and you must change the proceeding

beq 0xwhatever

to

b 0xwhatever

that will kill nag msg forever.

the 90 sec thing is harder to kill.

go into gdb and type

info func CFRunLoopAddTimer

and note down on paper EVERY offset for CFRunLoopTimerAdd.

set a break at the first one, plug in cable and see if it goes more than 90 sec. if it dosent cross that one off and repeate if you do find one that is it, there could be more so check ALL of them

what CFRunLoopAddTimer does is adds the check timer, which fires every 90 secs or so and throws you back to te video screen.

you only have to nop them out, and if i remeber correctly an arm littel endian nop is 00 00 a0 e1


so, armed with that knowledge someone go forth and patch fw 2.1! or send me an autralian iphone so ican upgrade to 2.1 and patch it myself!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Sponsored links Remove advertisements
Advertisement
Advertisement

  #160 (permalink)  
Old 11-02-2008, 07:57 PM
SamMan
Status: Offline
Junior Member
 
Join Date: Oct 2008
Posts: 3
Rep Power: 0
SamMan is on a distinguished road
Default

2iSchmave:

Thanks for reply! Debug on iPhone is - that's a new one on me, but I will try. Couple questions:

>>find SecKeyRawVerify after it
Sorry - after WHAT??

>>you only have to nop them out
What I should nop-out: THE CALL to the func CFRunLoopAddTimer OR the CFRunLoopAddTimer itself(i.e. the whole body of the function)? Think I must do first(the call), but just in case...

And again, Thank you for your help!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +2. The time now is 10:57 PM.



Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.2 Ad Management by RedTyger
follow us on Twitter!

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105