5,594,653 Members 32,774 Now Online
XDA Developers Android and Mobile Development Forum

[TUTORIAL]Unlock your bootloader and install a custom recovery with a Mac

Tip us?
 
gunnyman
Old
(Last edited by gunnyman; 18th July 2013 at 01:06 AM.)
#1  
gunnyman's Avatar
Senior Member - OP
Thanks Meter 2647
Posts: 7,873
Join Date: Apr 2010
Location: Greenville SC

 
DONATE TO ME
Default [TUTORIAL]Unlock your bootloader and install a custom recovery with a Mac

Want to unlock your bootloader to install a custom recovery and root your One but have no idea how because you have a Mac?
Never fear, Gunnyman is here.
The procedure is actually pretty painless and only takes a few minutes
Some prerequisites:
ADB and Fastboot binaries for OS X, I've attached them to this post.
Your recovery of choice, I'm using Clockwork Mod Recovery, because TWRP seems to have problems with some Aroma installer based ROMS. Get CWM for the One from here
SuperUser.zip
a Unix friendly text editor. I really like Text Wrangler and it's free.
Android File Transfer for Mac macs don't work with MTP mode without this.
In developer Options on the phone, turn on USB Debugging


EDIT:
Thanks to user Shivasmith I now know you can skip textwrangler and

If you hold down the "Alt" (i.e. Option) key on the Mac keyboard in terminal you can do a "column select."

So when you generate the codes for the HTCdev unlock website, you can just do a straight copy-paste without going into TextWrangler. It made it that much quicker

So thanks for the tip!
I've been using macs for 10 years and never knew that.


1. Unzip the adb and fastboot binaries and put them where you can find them. I have a directory on my Mac called /Android and that's where my phone stuff lives, but you can put it anywhere.

2. Put the cwm recovery (or twrp if you prefer) in the same folder as adb and fastboot.

3. Got to htcdev.com and create an account there if you don't already have one.

4. Log in to htcdev.com and choose unlock bootloader.

5. pick the last option for Unlisted device.

6. Open a terminal window and navigate to where you installed fastboot,adb, and your recovery eg: cd /Users/Gunnyman/Android

7. In Terminal execute the following commands ./adb reboot bootloader once in bootloader mode In terminal execute the following command: ./fastboot oem get_identifier_token

8. Open Text Wrangler

9. Copy the output from the terminal window into Text Wrangler make sure you include every line AFTER "please cut the following message"

10. Use Text Wrangler to DELETE (bootloader) from every line and make sure the columns line up exactly.

11. Copy and Paste this output into the box you are provided on HTC Dev. This part is quite annoying, getting the lines to line up.

12. Submit your token. When successful you will be sent a key via email.

13. Put the Unlock.bin file you got via email in the same directory as adb and fastboot on your mac.

14. execute the following command in terminal with the phone in fastboot mode ./fastboot flash unlocktoken Unlock_code.bin

15. Say yes to the prompts on the phone. Bootloader will unlock and the phone will be factory reset (there is NO way to avoid this)

16. OK Now the bootloader is unlocked. Time to install a recovery. In Terminal ./adb reboot bootloader

17. In terminal ./fastboot flash recovery name_of_the_recovery.img

18. After recovery has flashed POWER DOWN PHONE COMPLETELY Then restart it

19. connect phone to the Mac Android File Transfer should fire up

20. Put the Superuser.zip file on your phone

21. in Terminal ./adb reboot recovery

22. Flash the SuperUser.zip in recovery.

23. Pat yourself on the back your phone is now rooted.
Attached Files
File Type: zip Archive.zip - [Click for QR Code] (572.0 KB, 2194 views)
Uncle Gunny says, "MAKE A NANDROID"
LG G2 Uncarriered
LG Gpad 8.3 GPE
Rooted and Xposed
Don't be a d*ck -Wil Wheaton
Unlocking and rooting your HTC One with a Mac
Oh BTW I'm fat.
The Following 40 Users Say Thank You to gunnyman For This Useful Post: [ Click to Expand ]
 
treoreloaded
Old
#2  
Senior Member
Thanks Meter 10
Posts: 133
Join Date: Sep 2007
great tutorial...thanks. quick question since i have the dev edition (unlock bootlader) can i just follow all these steps but go straight to # 16 to root my One?

thanks again.
The Following 2 Users Say Thank You to treoreloaded For This Useful Post: [ Click to Expand ]
 
gunnyman
Old
#3  
gunnyman's Avatar
Senior Member - OP
Thanks Meter 2647
Posts: 7,873
Join Date: Apr 2010
Location: Greenville SC

 
DONATE TO ME
Absolutely
Uncle Gunny says, "MAKE A NANDROID"
LG G2 Uncarriered
LG Gpad 8.3 GPE
Rooted and Xposed
Don't be a d*ck -Wil Wheaton
Unlocking and rooting your HTC One with a Mac
Oh BTW I'm fat.
The Following User Says Thank You to gunnyman For This Useful Post: [ Click to Expand ]
 
pedromartinez1983
Old
#4  
Member
Thanks Meter 0
Posts: 38
Join Date: Jan 2010
WHEN I enter the "fastboot flash unlocktoken Unlock_code.bin i get a "denied " message in the terminal can anyone figure this out for me
 
cremains
Old
#5  
Member
Thanks Meter 0
Posts: 38
Join Date: Jan 2008
What are the cons of rooting the phone and installing a custom recovery?
I know that it voids the warranty. Is there anything else besides that?
Some people reported some functions not working.
Or is that just when you install a custom ROM?
HTC One (AT&T 32GB Silver)
ROM: 4/29 - CleanROM 1.5
-----------------------------------------------
HTC Inspire 4G
ROM: Android Revolution HD 6.3.1
 
gunnyman
Old
#6  
gunnyman's Avatar
Senior Member - OP
Thanks Meter 2647
Posts: 7,873
Join Date: Apr 2010
Location: Greenville SC

 
DONATE TO ME
Quote:
Originally Posted by pedromartinez1983 View Post
WHEN I enter the "fastboot flash unlocktoken Unlock_code.bin i get a "denied " message in the terminal can anyone figure this out for me
I've seen it once before. It was solved by creating a new account on HTC.dev. And getting a new key.
Uncle Gunny says, "MAKE A NANDROID"
LG G2 Uncarriered
LG Gpad 8.3 GPE
Rooted and Xposed
Don't be a d*ck -Wil Wheaton
Unlocking and rooting your HTC One with a Mac
Oh BTW I'm fat.
The Following User Says Thank You to gunnyman For This Useful Post: [ Click to Expand ]
 
gunnyman
Old
#7  
gunnyman's Avatar
Senior Member - OP
Thanks Meter 2647
Posts: 7,873
Join Date: Apr 2010
Location: Greenville SC

 
DONATE TO ME
No cons. Rooting doesn't do anything except add access to the super user account built into the device.
Uncle Gunny says, "MAKE A NANDROID"
LG G2 Uncarriered
LG Gpad 8.3 GPE
Rooted and Xposed
Don't be a d*ck -Wil Wheaton
Unlocking and rooting your HTC One with a Mac
Oh BTW I'm fat.
The Following User Says Thank You to gunnyman For This Useful Post: [ Click to Expand ]
 
cremains
Old
#8  
Member
Thanks Meter 0
Posts: 38
Join Date: Jan 2008
Quote:
Originally Posted by gunnyman View Post
No cons. Rooting doesn't do anything except add access to the super user account built into the device.
Thanks man

Sent from my HTC One using xda app-developers app
HTC One (AT&T 32GB Silver)
ROM: 4/29 - CleanROM 1.5
-----------------------------------------------
HTC Inspire 4G
ROM: Android Revolution HD 6.3.1
 
MrPlNK
Old
#9  
MrPlNK's Avatar
Senior Member
Thanks Meter 173
Posts: 764
Join Date: Aug 2012
Location: Gaithersburg
Quote:
Originally Posted by gunnyman View Post
No cons. Rooting doesn't do anything except add access to the super user account built into the device.
Gunny! Good to see you made the right moves for this phone too!

Im reading stuff about att updating that wont allow to unlock bootloader? Is this true?

Sent from my HTC One using Tapatalk 2
 
gunnyman
Old
#10  
gunnyman's Avatar
Senior Member - OP
Thanks Meter 2647
Posts: 7,873
Join Date: Apr 2010
Location: Greenville SC

 
DONATE TO ME
Quote:
Originally Posted by MrPlNK View Post
Gunny! Good to see you made the right moves for this phone too!

Im reading stuff about att updating that wont allow to unlock bootloader? Is this true?

Sent from my HTC One using Tapatalk 2
Not so far.
Uncle Gunny says, "MAKE A NANDROID"
LG G2 Uncarriered
LG Gpad 8.3 GPE
Rooted and Xposed
Don't be a d*ck -Wil Wheaton
Unlocking and rooting your HTC One with a Mac
Oh BTW I'm fat.

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes