How To Unlock Jailbroken iPhone 4S,4,3Gs On iOS 5.1 & 5.0.1 With SAM

This tutorial will walk you through the steps required to Unlock any iPhone model, running any firmware, with any Baseband (as long as it can properly install the utility). This method has been tested an confirmed by MuscleNerd from the iPhone Dev Team and it’s even the first software-based Unlock to support the iPhone 4S!


1. If your iPhone isn’t Jailbroken, you need to Jailbreak it prior to this tutorial – follow one of the tutorials listed below to accomplish that:

2. Open Cydia, navigate to Manage -> Sources, tap the “Edit” button (top right), tap the “Add” button (top left) and input the following source:

3. After the source has been added, go back to Cydia and install “SAM” (or Subscriber Artificial Module) from the newly added source

4. Once SAM has been successfully installed and you’ve restarted your Springboard, insert the SIM card that you intend to use into your iPhone’s SIM tray

5. Go to the options portion of SAM by either navigating to it via the Settings app, or by launching the SAMPrefs app on your springboard

6. Open Utilities and select “De-Activate iPhone” – if “De-Activate iPhone isn’t an option, skip to the next step

7. Verify that your ActivationState reads “Unactivated” in the “More Information” portion of SAMPrefs

8. Ensure that SAM is enabled, open the “Method” portion of SAMSPrefs and select “By Country and Carrier”

9. Go to “More Information”, copy the IMSI number in the “SAM Details” field and tap “Spoof Real SIM to SAM”

10. Tap “SAM” (top left) and confirm that the “Method” reads “Manual”; if it doesn’t, simply change it

11. Paste the IMSI string, obtained from step 9, in the IMSI field on the main SAM screen

12. Open iTunes, connect your iPhone to your computer via and navigate to the main screen for your device

  • As a precautionary measure, double click the “Phone Number” field on the iPhone screen and ensure that the ICCID number matches that of your SIM card. If the numbers don’t match up, you’ll need to start over

13. Close iTunes, unplug your iPhone and disable SAM on the main screen inside of SAMPrefs

14. Open iTunes, connect your iPhone to your computer via USB again, ignore any activation errors and restart iTunes (close out and reopen it)

15. At this step, you should start to see signal bars appear

Congratulations, you’ve successfully unlocked your iPhone!

UPDATE: There’s now a new and easier Unlock method (click here)

NOTE: If Push notifications stop working properly, just use the “clear push” utility built into SAMPrefs, plug your iPhone into your computer via USB and launch iTunes.

Click here to be taken to my video tutorial on YouTube

Stay tuned for future unlock tutorials!

Owner and webmaster of Jailbreak Tech Info. Tanner is also a professional Jailbreak tutorial writer, the main reporter for Jailbreak Tech Info and owner of the YouTube channel iCrackUriDevice. Feel free to shoot him an email at with any questions or comments.

  • Romeo Connell

    There is a free iPhone unlocker you can do straight from your phone….
    Just go to -> myunlocker .org right from your iPhones internet

    Follow the instructions and boom… iPhone unlocked.

  • Nathan Hart

    i am off shore with no service only wifi i have a sprint phone and this is not working itunes is not reading my sim please help!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

  • austin

    i cant put a vz sim in a att 3gs right?

  • Kuangjiahao

    do the unlock work for 5.1.1?

  • R3d_d3vil33

    i almost finish to do it but found out at SAM -> More Information -> SIM details = IMSI and ICCID didn’t have any numbers? how come? while in SAM details IMSI and ICCID got the numbers!? anyone can help me pls?

  • Leelylee44

    I’m in Canada. I have contract with Fido. But i didn’t find FIDO in the method by country and carrier!  I’ve try so many time ,  and failed.    Trying to unlock it to use rogers! How to properly do it?? 

  • Ryan Lynch

    need for t-mobile… this work????

  • johnri84

    Has anyone SUCCESSFULLY preformed this unlock for t-mobile? if so, how did you do it?

  • Nadia

    i finally managed to get unlock my iphone 4 ios 5.1 latest baseband! i’m on Base (belgium)
    thank you sooooo much loktar_sun!

  • Dipendra

    SAM has successfully unlocked my iphone 4 locked with atnt but it is not able to unlock the iphone 4 locked with softbank japan. the message is the same- unsupported sim.. any solutions??

  • guardiandevil

    it doesn’t work for me. itunes always says “sim card not supported” though i follow the step by step instruction. pls help

    • Meljohnson37

      i am having the same problem

    • Imran7100

      is ur problem solved???bcoz i also same problem

  • Abuazzalaf

    anybody could help me here please when i open more info. there is no numbers in IMSI field neither in SIM Details nor in SAM Details ??? why ?? where could i found it ?

  • Jiwon2011

    at step #12 when i plug my phone to itune, it says sim not supported…

  • Jose Balarezo

    hey guys… does somebody know how to fix this? i’ve finally unlocked my iPhone 4, but the notifications are not working well, if an app like “eBuddy” has a message it wont show it until i open the actual app… i’ve checked the notification centre settings but everything seems to be all right… please!! give some clues to what could be happenin

  • Blenz69

    after doing this, will any sim work in the phone or just the one used during the procedure?  if not any sim, is there an easy way to swap in different sims or do you have to go through the whole process each time for each sim?

    • Jose Balarezo

      you’ll have to do the same procedure for every sim you want to use

      • Blenz69

         ok, thanks

  • Vijay

    Unlocked successfully. For guys in India,Karnataka –  it works only with Vodafone, BSNL and Reliance sims as inside the SAM module the SIM IDS for other service providers are incorrect.a

    • Momtee

      Did u follow this method step by step or did u do any changes 
      THanx in advance!!
      I’m frm INDIA

    • Nikhil

       can you tell me how do you know its wrong for others because one fella with tata docomo has unlock it with this method.

      • Auro Dutta

        Nikhil…the fella with tata docomo…did he follow the same steps or did anything different?

  • geMok

    hi.. i’m in egypt.. the iphone is from us.. i got stuck here.. i failed.. =(((   step 12 not succeeded aldo.. i’ve been doing the correct things!! please help mee!!!!

  • Snypher03

    is this work with any carrier like simple mobile

  • Andresmarso

    Is this unlock permanent? ??

    • leo duque

      want to know that too

      • Tanner Marsh

        @google-fbe85f15f7d8275c41f489f1d2e8a2d0:disqus @40322547bb1339f1ae1ff9e54c20a92b:disqus No, unfortunately, it’s not! If you restore or pop out the SIM, you’ll have to redo the process! 

        • Lans

           what if you just turned it off your iphone ios 5.0 jailbreak does it wotk the unlock or you have to redo again to unlock? TY

        • leo duque

          thanks for clarifying 

  • Omar H Abdi

    When I go into SAM, my activation status says “Factory Activated”. How do I get out of this?

    • geMok

      i tried to revert lockdown to stock.. currently.. it works!

  • Brentmroberts

    i have an iphone 3gs  did everything as per instructions it says wildcard activated   when i connected to itunes   phone says searching    no bars    does this not work on 3gs   what do i do

  • Tjhaulinglv

    I’m sorry it says failed to activate please try again later I’ve already went through all the steps in the tutorial and went back over the written instructions everything seems to be right but I get the error

  • Tjhaulinglv

    I’m using simple mobile it is gsm but when I connect to itunes I get an error that says unable to activate Iphone at this time please try again later need your help on this one please thank you

  • guest

    does it matter if i have a tmobile sim card? because it says invalid sim card

  • Temo Dumnadze

    heyy do I need gevey and that shit or I can go through it simply only with simple sim?

  • Jolly_Crossfire

    The simcard inserted does no appear to be supported…

  • VoBoohere

    Thank you very much! My iphone4  ios5.0.1 bb04.11.08 is now unlocked!

    • Tanner Marsh

      You’re welcome, I’m glad I could help! 

      • nathan hart

        does this work for sprint?

    • Lans

       lucky you!

  • Bfoust1994

    how would you Jailbreak an iPhone 4s on iOS 5.1 

  • Hanodi

    Hey, I followed ur tutorial, I came to the end that I should open Itunes plugin via a USB and then close Itunes and unplug, and do it again.. the thing is I get 1 signal bar and in the itunes it says that this kind of sim-card is not supported on your iphone … please help

    • Hanodi

       Accually now I have 3 signal bar, but I can’t call or anything and it doesn’t say which kind of carrier im using … still no progress :( please help :(

  • Yuriy

    when i connect my iphone to itunes after i did everything in the tutorial.. when i click on the devices and my iphone it just and blank window and it saids iphone in the middle.. iphone wont open in itunes.. :/

    • nikhil

       i have same problem…. did u find any solution??

  • Mcalanv

    it says invalid sim on the corner 


    Don’t work on iPhone 3GS 

  • Imran7100

     thanks dude.i have unlocked my iphone 4g ios 5.1 bb04.12.01.

  • Joserubio68

    Well i just wanted to Point out that as soon after I unlocked my phone
    with this metod. My contacts where not shown in recent calls or sms. Or
    when some one called me their Caller ID or Name wasnt showing. I am from
    the US and i am running on t-mobile to fix this issue this is what i
    did: Go to
    and edit it. In the first line it is going to say the number “202″
    change this number to “001″, below this two letters that are going to be
    “gr” are going to be shown change this to any of your two letter
    country code in my case the United States or , “US”. For example: Mexico
    , “MX”   , Italy “IT” . Etc Hope it helps.

    • johnri84

      so you were able to unlock your phone on to t-mobile? how were you able to get this to work? i tried for a few hours and got nothing…. 

  • Saiad1968

    I did every thing, but I did not find cydia on my IPhone 4,
    some one help please

    • Tanner Marsh

      You need to Jailbreak… 

  • Jose Balarezo

    can’ seem to make my phone to go to “unactivated” on “more information” on SAM’s… can anybody help me? i keep on pressing the “De-Activate iPhone” and still is not working…. :(

    • Tanner Marsh

      Eject your SIM, turn off your phone, put your SIM back in with the phone off and then turn it back on. 

      • Jose Balarezo

        thanx… did that didnt work… try with “auto-detect” and started playing arround with the settings… dont realy remember witch one tried but IT FINALY OWRKED!! THANX!! :D soooo happy

  • Blenz69

    i’ve followed the instruction specifically, 3 times and i still get “no service” in the upper left of my iphone and “sim not supported” error in itunes.  any ideas, please and thanks?  everything else worked matched up as instructed

    • Tanner Marsh

      You could be trying to use a CDMA (or other non-supported) SIM with a GSM iPhone, in which case, you won’t be able to get service with that SIM.

      • Blenz69

         i am using a tmobile sim with an at&t ipjhone 4…..please advise, thanks

      • Prazzowl

        i tried using GSM sim on GSM iPhone, and yet itune says unsupported SIM.

  • Marlonito

    I bought my iphone 4 in the USA but i live in germany, can I unlock my iphone, which its working with a gevey on BB 04.10.01 – ios5.0.1 without an AT&T sim card??

  • Chaoarturo


  • Benzchino

    this shit aint working tried like 5 times and don’t work

  • Raja_shayan

    my phone is not being activated by itunes at step 12..what to do?

    • Marcoh07

      same problem, if someone could help us,, it’d be great

    • geMok

      same here too… there’s nothing activated in here.. please somebody help!

  • Chaoarturo

    I did every step and itunes keeps coming with “the sim card inserted bla bla bla …not supported” insert supported carrier sim card…

    • Chaoarturo

      Im using iphone 4, 04.11.08, ios5.0.1

  • Shawqi Saeed

     Thanks a lot ^_^

  • Chefo

    can’t jailbreak my iphone 4(( did like on the video, but after used redsnow, my phone gets stuck on apple’s logo! what can I do?! thanks! 

  • Marcoh07

    I’ll do it all over again, I dont know what went wrong, I did everything as posted, any chance I could to talk to Tanner for further information? haha thanks anyway very helpful

  • Kevin

    it said mismatch ICCD what should i do ??

  • Ashishemmanuel

    does it work on iphone 4 bb4.11 5.0.1

    • james

      yes every baseband!!!!!! as long as you are jailbroken on 5.0 or higher…!!!!!!!!!!

  • Mitch

    This doesn’t seem to be working right… My phone is seriously fucked up now.

  • Tannermashsuckfku

    u suck

  • Tannermashsuckfku

    u suck

  • ncc

    I did EVERYTHING right and it still comes as no service :(

  • Rocky718

    Thanks a lot dude …

    • Tanner Marsh

      You’re welcome! Thanks for reading and watching!