Unlock iPhone 4, iOS 5.1.1 with Fedora 17

Preface:
This was my attempt, turns out that as of July 15th, 2012 you can't unlock an iPhone 4, iOS 5.1.1 with Baseband 4.12.01 I wish I had found this wiki before I got started, but you live and you learn. Lesson Learned: Check to see if your model works before you get started.

Since the camera is arguably as good as any cheap-o camera you can buy and I need a phone here in Rwanda, it seemed like now was the best time to break free of the control AT&T has had on my iPhone. A few years ago I jailbroke an iPhone 2G for dev purposes in a mobile app dev class I took [1], but that was using iTunes and some dead-simple GUI pwnage tool on Mac. I can only assume its harder to do on linux. Unable to find a comprehensive guide, thought I would put everything here.

Goal: Unlock AT&T GSM iPhone so that I can make calls on Rwanda's MTN Network. This time do it using Linux.

To unlock an iPhone in Linux the consensus seems to be to use the package absinthe-linux.

One of the first things you need to do is to backup your phone so that you can restore it later. Since this is normally done in iTunes, I had to find a workaround. I figured I would start with Rhythmbox but ran into a hiccup where my iPhone wasn't being recognized

I used idevicebackup2 to create backups on my system (idevicebackup2 is for iOS 4+, learned that the hard way)

jhull@~/Documents $ idevicebackup2 --debug backup iphone
Backup directory is "iphone"
Started "com.apple.mobilebackup2" service on port 54244.
Negotiated Protocol Version 2.1
Starting backup...
0 Requesting backup from device...
Full backup mode.
Receiving files
[==================================================] 100% (5.4 MB/5.4 MB)
Receiving files
[==================================================] 100% (11.7 MB/11.7 MB)
Receiving files
[==================================================] 100% (58.0 MB/58.0 MB)
...
mas mas mas
...
[==================================================] 100% Finished
- Received 3960 files from device.
- Backup Successful.

To Unlock you are supposed to be able to just run absinthe. Of course I ran into a few errors along the way.

Make sure to install openssl

$ sudo yum install openssl openssl-devel

Even still I was getting errors

jhull@~/Downloads/absinthe-linux-2.0.4 $ ./absinthe
./absinthe.x86_64: error while loading shared libraries: libssl.so.1.0.0: cannot open shared object file: No such file or directory

Which was odd considering:

jhull@~/Downloads/absinthe-linux-2.0.4 $ locate libssl
/usr/lib64/.libssl.so.1.0.0j.hmac
/usr/lib64/.libssl.so.10.hmac
/usr/lib64/libssl.so
/usr/lib64/libssl.so.1.0.0j
/usr/lib64/libssl.so.10
/usr/lib64/libssl3.so
/usr/lib64/pkgconfig/libssl.pc

Apparently it didn't like the 'j' at the end. Creating a symlink fixed that (had the same problem with libcrypto)

jhull@~/Downloads/absinthe-linux-2.0.4 $ sudo ln -s /usr/lib64/libssl.so.10 /usr/lib64/libssl.so.1.0.0
jhull@~/Downloads/absinthe-linux-2.0.4 $ sudo ln -s /usr/lib64/libcrypto.so.10 /usr/lib64/libcrypto.so.1.0.0

After that a window popped right up with a "Jailbreak" button. Click on it and we are good to go. After about 10 minutes your iPhone will restart automagically and you should see that the Cydia app store has been installed.

Now within Cydia you need to add a Repo to download the UltraSn0w package to unlock your phone. Go to Manage > Sources and add http://repo.iparelhos.com as a source. Afterward go to Search and find and download the UltraSn0w package. Since I am running iOs 5.1.1 I also need to download UltraSn0w fixer for iOs 5.1.1

images/cydia/sources.PNG images/cydia/repo.PNG images/cydia/dl.PNG

After install your iPhone reboots and it should be officially unlocked. But wait! I still get a No Service indicator.

After trying a million things and googling around, turns out you can't unlock an iPhone 4, iOS 5.1.1 with Baseband 4.12.01 I wish I had found this wiki before I got started, but you live and you learn. Check to see if your model works before you get started. Not that I know the first thing about reverse engineering or iPhone mods but looks like I I have a new side project to tackle.

[1]Here's the final project - mPOS A Mobile Point of Sale app with OCR Its too bad we never finished it/made it less crappy. Funny how you can get lost in the bubble of your own first designs, and then once you are done, realize how crappy it is. Which is of cource the reason behind the whole lean startup, customer epiphany, minimum viable, church of steve blank and eric ries theology. Yet I can't think of once school project that wasn't exactly that - usually there are never any users involved at all. Funny that the youtube comments on here say it all. Nail all the problems right on the head. Should have posted the designs before we built it. Although 18K views, not too shabby.

Comments !

About

Started writing one year ago, the day after heading out to travel around the world for a year without a cause.
Current Location: New York, New York

Previously:
Mexico City, Mexico
Tokyo, Japan
Hanoi, Vietnam
Vientiane, Laos
Phuket, Thailand
Kathmandu, Nepal
Rajastan, India
Kerala, India
Mumbai, India
Freetown, Sierra Leone
Koidu, Sierra Leone
Mombasa, Kenya
Nairobi, Kenya
Kigali, Rwanda
Rwinkwavu, Rwanda
Boston, MA

Latest Posts

Port Forward an old Airport Express

If Developers Took Steroids

We Need Elon Musk

Crossword Scraper

Git Conflicts in your Binary Files

Japanese Sidewalk Interfaces

Introducing Kickbacker

Real Life: Google Glass Done Wrong

Tux Trashcans

How Angry are your Developers?

A 500 Startups Model for the Art World

Unsubscribe from Black Friday/Cyber Monday

Copyrighting Art into Obscurity

Crack WiFi Passwords with aircrack

Using Sandy as an Excuse to Email Spam Customers