Howto: iOS 4 Tethering without Commcenter Patch

Discussion in 'Jailbreaks and iOS Hacks' started by thelatinist, Aug 4, 2010.

  1. thelatinist macrumors 603

    thelatinist

    Joined:
    Aug 15, 2009
    Location:
    Connecticut, USA
    #1
    Cirdan on the Dev-Team's irc channel has developed instructions for enabling tethering in iOS 4.0.x without any commcenter patch. It requires editing some files manually, but it works perfectly on my 3GS. I've simplified and clarified them.

    Notes:
    • These instructions assume you are on AT&T. They would need to be modified for other carriers. In particular, you would need to use a mobileconfig file for your carrier, and take the type-mask values from that mobileconfig file rather than using the ones I give here.
    • As always, back up all files before editing them.
    • We're still trying to figure out if this can be made to work on the iPhone 4.
    1) Install Ultrasn0w 1.0-1.

    2) On your computer (NOT your iPhone) download the Peaceful Insanity tethering mobileconfig.

    3) Email the file Tether.mobileconfig you downloaded in step two to yourself.

    4) On your phone:Install this tethering profile from Mail. (Please note: MobileSafari will no longer allow you to install a mobileconfig file. It must be done from Mail.)

    5) On your phone, in the file /private/var/mobile/Library/Preferences/com.apple.MobileInternetSharing.plist, locate the following text:
    Code:
    <key>State</key>
    <integer>1020</integer>
    and change it to read:
    Code:
    <key>State</key>
    <integer>1023</integer>
    6) In the file /private/var/Managed Preferences/mobile/com.apple.managedCarrier.plist, locate the following text:
    Code:
    <key>apn></key>
    <string>wap.cingular</string>
    and add the following text immediately after it:
    Code:
    <key>type-mask</key>
    <integer>53</integer>
    7) In that same file, locate the following text:
    Code:
    <key>apn</key>
    <string>acds.voicemail</string>
    and add the following text immediately after it:
    Code:
    <key>type-mask</key>
    <integer>2</integer>
    8) In the file /private/var/preferences/SystemConfiguration/preferences.plist, locate the following text (be careful!):
    Code:
    <dict>
    <key>AllowNoDNS</key>
    <integer>1</integer>
    <key>apn</key>
    <string>wap.cingular</string>
    and add the following text immediately after it:
    Code:
    <key>type-mask</key>
    <integer>53</integer>
    9) Reboot your phone and tethering will be on!
     
  2. -aggie- macrumors P6

    -aggie-

    Joined:
    Jun 19, 2009
    Location:
    Where bunnies are welcome.
    #2
    I'll try it on the 4 if you think it won't mess with my MyWi install.
     
  3. nebo1ss macrumors 68030

    Joined:
    Jun 2, 2010
    #3
    Do you need the new Ultrasn0w or will the old .93 work? Also if you need the new ultrasn0w can you just run it on top of the old one?
     
  4. ryanvsrobots macrumors member

    Joined:
    Jul 22, 2008
    #4
    so this will make it seem like you have the official tethering? [to you, not to att]
     
  5. thelatinist thread starter macrumors 603

    thelatinist

    Joined:
    Aug 15, 2009
    Location:
    Connecticut, USA
    #5
    Shouldn't. And if you back everything up you can always revert the changes.

    No, 0.93 works. The instructions were developed using 0.93, but work with 1.0-1.

    Yep, 100% native tethering via USB and Bluetooth.
     
  6. -aggie- macrumors P6

    -aggie-

    Joined:
    Jun 19, 2009
    Location:
    Where bunnies are welcome.
    #6
    So, not only do you have tethering, but you're unlocked.
     
  7. calvy macrumors 65816

    Joined:
    Sep 17, 2007
    #7
    I'm not sure I understand the need for this method. The commcenter patching was quick and easy for me, once I got updated to 4.0.1 firmware anyway.

    And I saved myself all the manual editing of the carrier.plist file by downloading one linked in the thread.
     
  8. thelatinist thread starter macrumors 603

    thelatinist

    Joined:
    Aug 15, 2009
    Location:
    Connecticut, USA
    #8
    Personally, I would rather not patch system files; ultrasn0w hooks into commcenter without patching it. Also, this works on iOS 4.0, which is the highest version those of us on the jailbreak train can use.
     
  9. xxtra macrumors member

    Joined:
    Jun 24, 2010
    #9
    Looks great. Does it work on iphone 4? anyone confirm?
     
  10. thelatinist thread starter macrumors 603

    thelatinist

    Joined:
    Aug 15, 2009
    Location:
    Connecticut, USA
    #10
    -aggie- was going to try it and get back to me, but I haven't heard from him yet. I'll let you know as soon as I do!
     
  11. The General macrumors 601

    Joined:
    Jul 7, 2006
    #11
    I am doing it on my iPhone 4 right now, I'll post back in a bit.

    EDIT: Nope. The setting showed up in Settings -> Network. When I plugged it into my iMac, the setting immediately disappeared.
     
  12. ulbador macrumors 68000

    ulbador

    Joined:
    Feb 11, 2010
    #12
    I thought this worked initially. Was wrong.. Doesn't work on iPhone 4
     
  13. ToroidalZeus macrumors 68020

    ToroidalZeus

    Joined:
    Dec 8, 2009
    #13
    See that's what I would expect to happen. I thought the whole point of the commcenter patch was to allow the mobileconfig file to work properly.
     
  14. thelatinist thread starter macrumors 603

    thelatinist

    Joined:
    Aug 15, 2009
    Location:
    Connecticut, USA
    #14
    Did you try iFile? It can open and edit plist files right on the iPhone. Glad we now have confirmation that it works on iPhone 4. Thanks!
     
  15. The General macrumors 601

    Joined:
    Jul 7, 2006
    #15
    It does not work. :(
     
  16. ulbador macrumors 68000

    ulbador

    Joined:
    Feb 11, 2010
    #16
    I did notice on iPhone 4 that the first edit, the 1020 to 1023, is reverted somehow. Could the permissions on that file be locked to make this work?
     
  17. thelatinist thread starter macrumors 603

    thelatinist

    Joined:
    Aug 15, 2009
    Location:
    Connecticut, USA
    #17
    Strange. Could you upload the ManagedCarrier.plist file somewhere and send me a link? I'd like to check it out.
     
  18. ulbador macrumors 68000

    ulbador

    Joined:
    Feb 11, 2010
    #18
    I was mistaken. I thought it was working but my Wifi on the desktop was just on.
     
  19. The General macrumors 601

    Joined:
    Jul 7, 2006
    #19
    Followed these instructions, no go.

    Installed the patch from the other thread (ccp401_1.1-3_wortel.deb), rebooted and now it works.

    Attached.
     

    Attached Files:

  20. thelatinist thread starter macrumors 603

    thelatinist

    Joined:
    Aug 15, 2009
    Location:
    Connecticut, USA
    #20
    No, ultrasn0w takes care of that. The various Commcenter patches remove signature check from ipcc files (that's why we have to edit them manually if we want to avoid the patch).

    The General: I just uploaded that file to my iPhone 3GS, opened it, and edited it with iFile without problems.
     
  21. ulbador macrumors 68000

    ulbador

    Joined:
    Feb 11, 2010
    #21
    What does that first edit actually do. The change from 1020 to 1023.

    When I connected to USB it was automatically reverted.
     
  22. thelatinist thread starter macrumors 603

    thelatinist

    Joined:
    Aug 15, 2009
    Location:
    Connecticut, USA
    #22
    I believe that's what actually turns on the tethering instead of giving you the button to set up internet tethering with AT&T. I don't know how that file's reverting. If you don't plug it into the computer after making the change, can you enable tethering? Have you tried BlueTooth tethering just to see if it works? What about if you turn off automatic syncing in iTunes?
     
  23. ulbador macrumors 68000

    ulbador

    Joined:
    Feb 11, 2010
    #23

    Alrighty. Redid this all. Tethering option is there and the switch is "flippable". Flips on and off without the Tethering option disappearing.

    Bluetooth paired up just fine. "Use as PAN" option is there

    Still can't connect to the network. Attempting gives a "network isn't available" error on the Mac and makes the tethering option disappear on the phone.

    Checking the plist, the file is reverted back to 1020
     
  24. Dr Kevorkian94 macrumors 68020

    Joined:
    Jun 9, 2009
    Location:
    SI, NY
    #24
    Hurry back I want too see if this works then I'll jailbreak
     
  25. thelatinist thread starter macrumors 603

    thelatinist

    Joined:
    Aug 15, 2009
    Location:
    Connecticut, USA
    #25
    If you edit the file, close it out, and then immediately open it again does it still say 1023? I'm wondering if your changes aren't being saved at all.
     

Share This Page