Answers to random questions

Where can I find some devteam videos?

How do I re-enable internet tethering on 3.1.2 firmware?

A bsdiff patch to apply to CommCenter in 3.1.2 to re-enable tethering is available here for the 3GS and here for the 3G. It's just a 2-byte patch as shown below (and an appropriate readjusting of the mach-o's codesign hash):

USE THIS AT YOUR OWN RISK! Your carrier may end up charging you for unauthorized tethering access.

Update #1 It looks like a lot of people have been looking at CommCenter lately because IRC user CleanAir had a similar tethering patch. Meanwhile over in the 2G CommCenter, WhiteRat and geniusan have patched in native MMS support for that platform. Kudos to CleanAir, WhiteRat, and geniusan for digging into CommCenter and coming up with patches!

Update #2 A few tutorials have started to pop up. Eventually this will be made a part of the normal PwnageTool flow but for now this is best left for the adventurous users out there!

sub_17538+74   4B F0 58 F8                 BL      validate_signature
sub_17538+74
sub_17538+78   30 B1                       CBZ     R0, FAIL        ; <--- PATCH THIS TO 00 20 (MOV R0,#0)
sub_17538+78
sub_17538+7A   05 20                       MOVS    R0, #5          ; int
sub_17538+7C   1C 49                       LDR     R1, =aValidatedWirel ; "Validated wireless modem connection wit"...
sub_17538+7E   02 9A                       LDR     R2, [SP,#0x24+var_1C]
sub_17538+80   7E F0 00 ED                 BLX     _syslog
sub_17538+80
sub_17538+84
sub_17538+84               loc_175BC                               ; CODE XREF: sub_17538+70j
sub_17538+84   02 9C                       LDR     R4, [SP,#0x24+var_1C]
sub_17538+86   05 E0                       B       loc_175CC
sub_17538+86
sub_17538+88               ; ---------------------------------------------------------------------------
sub_17538+88
sub_17538+88               FAIL                                    ; CODE XREF: sub_17538+78j
sub_17538+88   05 20                       MOVS    R0, #5          ; int
sub_17538+8A   1A 49                       LDR     R1, =aCouldNotValida ; "Could not validate wireless modem conne"...
sub_17538+8C   7E F0 FA EC                 BLX     _syslog
sub_17538+8C

bsdiff patches are the normal way that PwnageTool modifies Apple software. To apply one manually, you must first get the “bspatch” program. Then do:

bspatch CommCenter CommCenter-hacked CommCenter.patch

If you don't have bsdiff but know how to use a hex editor, the differences are available here in text format.

The correct SHA1 of the hacked file will be:

1b19712035f33654cf72838ebe1a2033931b56b2   # 3GS
063165c3fa3e21d30eb4b486fab924ba3ef0ea5e   # 3G

You would then remove the original program and replace it. Don't forget to ensure it has execute permission!

chmod +x /System/Library/PrivateFrameworks/CoreTelephony.framework/Support/CommCenter

After you've started using the hacked CommCenter, visit http://www.benm.at/help/help.php from your iPhone and install a new mobileconfig.

After using PwnageTool I don't see my AT&T signal. What happened?

If you've restored to a custom IPSW created by PwnageTool and you no longer see your AT&T signal even though you're a legit subscriber, you most likely answered the “activation” question incorrectly.

iPhone users who would normally activate through iTunes should not enable the “Activate the phone” setting in Expert mode (General Settings). You don't want or need PwnageTool to activate your iPhone, since you're a legitimate subscriber. (In Simple mode, you would just tell PwnageTool that yes, you do have a contract that would activate normally through iTunes.)

If you answered the question wrong, just go back and create another custom IPSW. Restore to that new IPSW with iTunes using Option-Restore (or Shift-Restore in Windows) and you'll be good to go!

Where did my previous IPSWs go?

iTunes 9 is a little more aggressive about firmware downgrades. People have noticed that the moment you connect a device, iTunes 9 will remove all but the most recent firmware IPSWs from its cache of firmwares. It will do this even if you aren't planning to update or restore. Previously, it had let them remain and you could Option-Restore (Mac) or Shift-Restore (Windows) to them.

This is currently only a minor inconvenience though because iTunes won't go outside of its Library to hunt down and remove these IPSWs (it could easily do this using Apple's Spotlight technology). But now is a good time to copy all your previous IPSWs out of the iTunes Library over to somewhere a bit more permanent. On a Mac, the caches are at ~/Library/iTunes/iPhone Software Updates and ~/Library/iTunes/iPod Software Updates. You'll still be able to Option- and Shift-Restore to them in their new locations.

If you've already connected a device to iTunes 9, your older IPSWs may still be in your Trash, so copy them from there.

Updates:

  • Right now this is looking like a Mac-only behavior
  • The auto-removal may also depend on whether you've downloaded (even if you haven't installed) the 3.1 update

Accessory not supported

If you get popups like this every time you plug in your accessory or charger, try issuing this command from a login shell:

 /bin/launchctl unload -w /System/Library/LaunchDaemons/com.apple.accessoryd.plist

If you ever want to put that daemon back in place – it's probably there for a reason :-) – do this:

 /bin/launchctl load -w /System/Library/LaunchDaemons/com.apple.accessoryd.plist
 
howto/random.txt · Last modified: 2009/11/16 03:19 by musclenerd
 
Recent changes RSS feed