5,815,133 Members 39,080 Now Online
XDA Developers Android and Mobile Development Forum

How to root your HTC One X (for Windows, Mac and Linux)

Tip us?
 
paulobrien
Old
(Last edited by paulobrien; 1st May 2012 at 03:15 PM.)
#1  
paulobrien's Avatar
Senior Member - OP
Thanks Meter 5,683
Posts: 4,437
Join Date: Nov 2003
Location: Norwich
Default How to root your HTC One X (for Windows, Mac and Linux)

In order to root devices with unlocked bootloaders, I normally post a 'superboot' image. However, at the time of writing, the HTC One X (Tegra3) has an issue with it's bootloader whereby it is unable to 'fastboot boot' images, so this is not possible. The superboot is posted below for when this is resolved, however for now I have also included an alternate method.

I am currently working directly with HTCDev to solve the 'fastboot boot' issue.

Your bootloader must be unlocked via htcdev.com to use these solutions.

EASIEST ROOT METHOD - 'RECOVERY + SUPERSU'

The easiest way to get root is now to install the official ClockworkMod release and then flash the latest SuperSU zip file. This approach is highly recommended (I also recommend running a backup as soon as you've flashed clockworkmod!)

ALTERNATE ROOT METHOD - 'INSECURE BOOT AND ROOT'

This zip file contains an insecure boot image to flash to your device and a script which will then push the root (SuperSU) files to your device. This is only tested on 1.27.401.2 / 1.27.401.7. USE AT YOUR OWN RISK!

Download
How to use InsecureBootAndRoot - Windows, Linux and OSX

- Download the InsecureBootAndRoot zip file above and extract to a directory
- Put your device in bootloader mode - Turn off the phone then turn on with the 'volume down' button pressed to enter the bootloader, then press the power button again to enter fastboot.
- WINDOWS - double click 'install-insecure-windows.bat'
- MAC - Open a terminal window to the directory containing the files, and type 'chmod +x install-insecure-mac.sh' followed by './install-insecure-mac.sh'
- LINUX - Open a terminal window to the directory containing the files, and type 'chmod +x install-insecure-linux.sh' followed by './install-insecure-linux.sh'

The device will now flash the new boot image and reboot. Keep the device attached to USB and when it has rebooted, ensure USB debugging is enabled - the SuperSU files will then be installed.

CONVENTIONAL ROOT METHOD - 'SUPERBOOT' (currently not functioning on shippping devices).

Superboot is a boot.img that when booted, will root your device the first time you boot (installing su and the superuser APK). No need to flash any partitions, no need to mess around with ADB, no messing with the contents of your data partition, no overwriting the shipped ROM on your device, just boot the boot image using the instructions below and you're done!

Download
The superboot image is also 'insecure', allowing you to use 'adb remount' as well as having full ADB root access to your device until such time as you reboot after running this process (it's a non permanent ADB root as it's a 'fastboot boot' and not a 'fastboot flash' but it IS a permanent root in all other regards!).

How to use Superboot - Windows, Linux and OSX

- Download the Superboot zip file above and extract to a directory
- Put your device in bootloader mode - Turn off the phone then turn on with the 'volume down' button pressed to enter the bootloader, then press the power button again to enter fastboot.
- WINDOWS - double click 'install-superboot-windows.bat'
- MAC - Open a terminal window to the directory containing the files, and type 'chmod +x install-superboot-mac.sh' followed by './install-superboot-mac.sh'
- LINUX - Open a terminal window to the directory containing the files, and type 'chmod +x install-superboot-linux.sh' followed by './install-superboot-linux.sh'

P


PS If you find this useful, details on how to donate if you wish to do so are in the topic at MoDaCo.
Follow me on Twitter - http://twitter.com/paulobrien

Follow MoDaCo Android on Twitter - http://twitter.com/modaco

Want to donate? MoDaCo is raising money for the Multiple Sclerosis society.

The Following 146 Users Say Thank You to paulobrien For This Useful Post: [ Click to Expand ]
 
mike1986.
Old
#2  
mike1986.'s Avatar
Senior Member
Thanks Meter 70,027
Posts: 37,014
Join Date: Mar 2009
Location: XDA-Developers

 
DONATE TO ME
Hey Paul, as far as I know, it's possible to flash boot.img via fastboot with htcdev.com unlocked One X http://forum.xda-developers.com/show...&postcount=204


Archived devices and my other threads:

Join Android Revolution HD community

Facebook | Twitter | IRC chat | Visit my blog | Google+

If you appreciate my work, you can buy me a beer
Every donation is greatly appreciated and it helps the development!


The Following 4 Users Say Thank You to mike1986. For This Useful Post: [ Click to Expand ]
 
blubbers
Old
#3  
Senior Member
Thanks Meter 257
Posts: 278
Join Date: Jan 2011
Quote:
Originally Posted by mike1986. View Post
Hey Paul, as far as I know, it's possible to flash boot.img via fastboot with htcdev.com unlocked One X http://forum.xda-developers.com/show...&postcount=204
yes, flashing works (fastboot flash boot.img), but booting (fastboot boot boot.img) does not
The Following 2 Users Say Thank You to blubbers For This Useful Post: [ Click to Expand ]
 
mike1986.
Old
#4  
mike1986.'s Avatar
Senior Member
Thanks Meter 70,027
Posts: 37,014
Join Date: Mar 2009
Location: XDA-Developers

 
DONATE TO ME
Quote:
Originally Posted by blubbers View Post
yes, flashing works (fastboot flash boot.img), but booting (fastboot boot boot.img) does not
Ah sorry, haven't spotted Paul mentioned "boot" command only!


Archived devices and my other threads:

Join Android Revolution HD community

Facebook | Twitter | IRC chat | Visit my blog | Google+

If you appreciate my work, you can buy me a beer
Every donation is greatly appreciated and it helps the development!


The Following 2 Users Say Thank You to mike1986. For This Useful Post: [ Click to Expand ]
 
paulobrien
Old
#5  
paulobrien's Avatar
Senior Member - OP
Thanks Meter 5,683
Posts: 4,437
Join Date: Nov 2003
Location: Norwich
Correct.

I am working with HTCDev to solve the 'fastboot boot' issue.

P
Follow me on Twitter - http://twitter.com/paulobrien

Follow MoDaCo Android on Twitter - http://twitter.com/modaco

Want to donate? MoDaCo is raising money for the Multiple Sclerosis society.

The Following 8 Users Say Thank You to paulobrien For This Useful Post: [ Click to Expand ]
 
stanny2k
Old
#6  
Senior Member
Thanks Meter 32
Posts: 568
Join Date: Jun 2011
Location: Cardiff
Do you know if this will 'unlock' the phone as well? I mean open it too all network carriers...
Phone: HTC One [HTCDev Unlocked]
ROM: Android Revolution HD™ 6.0 (Google Play Edition)
Kernel: Stock
 
paulobrien
Old
#7  
paulobrien's Avatar
Senior Member - OP
Thanks Meter 5,683
Posts: 4,437
Join Date: Nov 2003
Location: Norwich
It will not.

P
Follow me on Twitter - http://twitter.com/paulobrien

Follow MoDaCo Android on Twitter - http://twitter.com/modaco

Want to donate? MoDaCo is raising money for the Multiple Sclerosis society.

The Following 3 Users Say Thank You to paulobrien For This Useful Post: [ Click to Expand ]
 
stanny2k
Old
#8  
Senior Member
Thanks Meter 32
Posts: 568
Join Date: Jun 2011
Location: Cardiff
Thanks for your quick response. Do you know if there is a way to unlock them?
Phone: HTC One [HTCDev Unlocked]
ROM: Android Revolution HD™ 6.0 (Google Play Edition)
Kernel: Stock
 
torxx
Old
#9  
torxx's Avatar
Senior Member
Thanks Meter 21,647
Posts: 8,033
Join Date: Mar 2011

 
DONATE TO ME
Hey Paul,

is there any chance to root the phone without unlocking the bootloader/S-OFF.
I know that the .img can be only flashed with S-OFF but it would be cool if you would be able to root the phone without using this way.
 
Audioboxer
Old
#10  
Audioboxer's Avatar
Senior Member
Thanks Meter 406
Posts: 2,308
Join Date: Aug 2010
Any downsides to using the 'insecure' method? Hoping by the time I get my phone there may be a fix for the usual method anyway.

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes