Jump to content


Photo

Superboot - Nexus 4 root solution

- - - - -

  • Please log in to reply
35 replies to this topic

#1
PaulOBrien

PaulOBrien

    It's My Party

  • Founder
  • PipPipPipPipPipPip
  • 36,368 posts
  • Gender:Male
  • Location:Norwich, UK
  • Devices:All the Nexus!
  • Twitter:@paulobrien
Introducing.... Superboot! :)

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!

APPLY THIS AT YOUR OWN RISK!
  • Superboot r1 - DOWNLOAD (ROMraid) - MD5: 824ec82dfa9ecd0c411dad9121f1f32d
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 up' and 'volume down' buttons both pressed to enter the bootloader (as pictured below)
- WINDOWS - double click 'superboot-windows.bat'
- MAC - Open a terminal window to the directory containing the files, and type 'chmod +x superboot-mac.sh' followed by './superboot-mac.sh'
- LINUX - Open a terminal window to the directory containing the files, and type 'chmod +x superboot-linux.sh' followed by './superboot-linux.sh'

Note: If you are using a retail device, you may need to unlock the bootloader first, using './fastboot-windows oem unlock' (or the appropriate version for your machine, included in this zip). Note that the OEM unlock sequence wipes your device, so consider doing an 'adb backup' beforehand if required!

Enjoy! :)

P

PS If you find this useful, please consider supporting MoDaCo by signing up for a MoDaCo subscription! Visit this topic for further details!

  • 2

You can follow me on Twitter - http://twitter.com/paulobrien / Follow MoDaCo on Twitter - http://twitter.com/modaco

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

Posted Image


#2
cmberry20

cmberry20

    Diehard

  • Members
  • PipPipPipPip
  • 352 posts
  • Gender:Male
  • Devices:San Franciso
Thanks Paul!

I'm guessing that when you mean 'Retail' version, you mean N4s that are sold by O2 or T-Mobile.

So the ones sold directly by Google come with the bootloader unlocked - is this right?

Cheers.

  • 0

#3
PaulOBrien

PaulOBrien

    It's My Party

  • Founder
  • PipPipPipPipPipPip
  • 36,368 posts
  • Gender:Male
  • Location:Norwich, UK
  • Devices:All the Nexus!
  • Twitter:@paulobrien
It's locked even on those. ;)

P

  • 1

You can follow me on Twitter - http://twitter.com/paulobrien / Follow MoDaCo on Twitter - http://twitter.com/modaco

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

Posted Image


#4
xzyk

xzyk

    Enthusiast

  • Members
  • PipPipPip
  • 249 posts
  • Gender:Male
  • Location:U.K.
  • Interests:mobiles, Winmo, Android
  • Devices:various
Hi Paul, I've just got my google N4 (at last) and saw your thread on xda. I've left a question on the thread there which I shall repeat here since it may also interest users on this site.
1. How to unroot after using this method ?
Is it simply a matter of fastbooting the stock boot.img ? Could we possibly see a 'superunroot' utility from you that will reverse the changes ?

  • 0
May your jouney be uneventful !
Nexus 4......SlimMako-4.3
ZTE Blade Blade Mix V2.2.
Advent VEGA VegaComb 3.2 9n.
SGS2 -Insanity JB 0.83
Asus FonePad...stock
Huawei Y300 Stock (B186) with CWM recovery.
Arnova 7G3 -stock.
Alcatel OT-983....stock

#5
PaulOBrien

PaulOBrien

    It's My Party

  • Founder
  • PipPipPipPipPipPip
  • 36,368 posts
  • Gender:Male
  • Location:Norwich, UK
  • Devices:All the Nexus!
  • Twitter:@paulobrien
To unroot, just delete Superuser.apk from /system/app and su from /system/xbin :)

P

  • 0

You can follow me on Twitter - http://twitter.com/paulobrien / Follow MoDaCo on Twitter - http://twitter.com/modaco

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

Posted Image


#6
xzyk

xzyk

    Enthusiast

  • Members
  • PipPipPip
  • 249 posts
  • Gender:Male
  • Location:U.K.
  • Interests:mobiles, Winmo, Android
  • Devices:various

To unroot, just delete Superuser.apk from /system/app and su from /system/xbin :)

P


thanks for the reply Paul. I understand that deleting those files will stop root acess but does that still leave me with an insecure boot or am i totally back to factory ? thanks again..

  • 0
May your jouney be uneventful !
Nexus 4......SlimMako-4.3
ZTE Blade Blade Mix V2.2.
Advent VEGA VegaComb 3.2 9n.
SGS2 -Insanity JB 0.83
Asus FonePad...stock
Huawei Y300 Stock (B186) with CWM recovery.
Arnova 7G3 -stock.
Alcatel OT-983....stock

#7
PaulOBrien

PaulOBrien

    It's My Party

  • Founder
  • PipPipPipPipPipPip
  • 36,368 posts
  • Gender:Male
  • Location:Norwich, UK
  • Devices:All the Nexus!
  • Twitter:@paulobrien
Superboot doesn't install an insecure boot. By doing that you'll be back to factory!

P

  • 0

You can follow me on Twitter - http://twitter.com/paulobrien / Follow MoDaCo on Twitter - http://twitter.com/modaco

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

Posted Image


#8
xzyk

xzyk

    Enthusiast

  • Members
  • PipPipPip
  • 249 posts
  • Gender:Male
  • Location:U.K.
  • Interests:mobiles, Winmo, Android
  • Devices:various

Superboot doesn't install an insecure boot. By doing that you'll be back to factory!

P


sorry about this, but i'm just trying to learn and understand...someone asked you a question on xda of how this works and your reply was .."The boot image itself remounts system, copies superuser files then reboots back into the stock boot image. Job done"....so if i simply delete the files you mention above but still have superboot r1 on there wouldn't it just re-copy the files back in on the next boot. Your superboot-windows.bat simply does a 'fastboot-windows.exe boot boot.superboot.img', deleting the files you mention has left the superboot.img on there, correct ? or am i missing something here ?

  • 0
May your jouney be uneventful !
Nexus 4......SlimMako-4.3
ZTE Blade Blade Mix V2.2.
Advent VEGA VegaComb 3.2 9n.
SGS2 -Insanity JB 0.83
Asus FonePad...stock
Huawei Y300 Stock (B186) with CWM recovery.
Arnova 7G3 -stock.
Alcatel OT-983....stock

#9
PaulOBrien

PaulOBrien

    It's My Party

  • Founder
  • PipPipPipPipPipPip
  • 36,368 posts
  • Gender:Male
  • Location:Norwich, UK
  • Devices:All the Nexus!
  • Twitter:@paulobrien

sorry about this, but i'm just trying to learn and understand...someone asked you a question on xda of how this works and your reply was .."The boot image itself remounts system, copies superuser files then reboots back into the stock boot image. Job done"....so if i simply delete the files you mention above but still have superboot r1 on there wouldn't it just re-copy the files back in on the next boot. Your superboot-windows.bat simply does a 'fastboot-windows.exe boot boot.superboot.img', deleting the files you mention has left the superboot.img on there, correct ? or am i missing something here ?


My boot image only ever gets booted, not flashed.

P

  • 0

You can follow me on Twitter - http://twitter.com/paulobrien / Follow MoDaCo on Twitter - http://twitter.com/modaco

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

Posted Image


#10
timbo347

timbo347

    Newbie

  • Members
  • Pip
  • 5 posts
  • Devices:ZTE Blade (San Francisco)
I'm not far off being a newbie at rooting phones, having done only a couple of ZTE Blades successfully. So now I'm thinking of rooting my shiny new LG Nexus 4, using Paul's instructions above, and wondering what or how anything might go wrong. Is this a fairly safe project, or should I think again? Any advice would be appreciated.

Thanks - Tim

  • 0

#11
andysalmon

andysalmon

    Enthusiast

  • MoDaCo Silver
  • PipPipPip
  • 247 posts
  • Gender:Male
  • Location:Brighton 7
  • Devices:Nexus 4 & 7
I've just rooted my N4. The bootloader was locked and I just could not get the drivers installed to unlock it...we are talking about 6/7 computer reboots and umpteen attempts on the handset, but once that was done it rooted using this program in less than a second. Thanks Paul.

  • 0
Foneography: LG Nexus 4, Samsung Galaxy S II, Huawei G300, Motorola Defy, HTC Desire, HTC Touch HD2, HTC Touch HD, MDA Vario III, HTC V1615, MDA Vario, MDA Compact, SE P905, Sendo X (CRAP!), Motorola V525, SE P900, Samsung S300, Motorola Mpx 200, Orange SPV, Motorola V50, Nokia 5210, Motorola P7389, Nokia 6210, Nokia 6100, Nokia 5110, Motorola D520, Motorola 8700, Nokia Orange

#12
Mr.Clark

Mr.Clark

    Ninja

  • MoDaCo Gold
  • PipPipPipPip
  • 336 posts
  • Gender:Male
  • Location:UK
  • Devices:Nexus 4, Nexus 7 2013
Nexus 4 rooted less than 5 mins after getting it out of the box... thanks!

That said, the SuperUser app doesn't appear able to update itself. I get "making sure new su works: fail"

Phone is definitely rooted, as OTA Rootkeeper and RootExplorer work fine. Very strange. Maybe I'll try a manual update of the APK and binary files.

  • 0

#13
PaulOBrien

PaulOBrien

    It's My Party

  • Founder
  • PipPipPipPipPipPip
  • 36,368 posts
  • Gender:Male
  • Location:Norwich, UK
  • Devices:All the Nexus!
  • Twitter:@paulobrien
Odd! Keep us posted! I'll probably update the superboot to the latest Superuser app anyway.

P

  • 0

You can follow me on Twitter - http://twitter.com/paulobrien / Follow MoDaCo on Twitter - http://twitter.com/modaco

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

Posted Image


#14
TouchyAndalou

TouchyAndalou

    Diehard

  • Members
  • PipPipPipPip
  • 463 posts
This doesn't work for me. When I run './fastboot-windows oem unlock' a black box flashes up and then closes on my PC too fast to see what it says, and running 'superboot-windows.bat' it just constantly says "waiting for device".

Help please?

  • 0

#15
cmberry20

cmberry20

    Diehard

  • Members
  • PipPipPipPip
  • 352 posts
  • Gender:Male
  • Devices:San Franciso
Have you loaded the drivers for Nexus 4. You will need them installed for your PC to see your Nexus 4.

btw - its 'Vol Down' + 'Power Button' to get the Nexus 4 into bootloader.

If everything is working ok you should see 'Android Bootloader Interface' in 'Devices & Printers' (Windows 7)

  • 0

#16
TouchyAndalou

TouchyAndalou

    Diehard

  • Members
  • PipPipPipPip
  • 463 posts

Have you loaded the drivers for Nexus 4. You will need them installed for your PC to see your Nexus 4.

btw - its 'Vol Down' + 'Power Button' to get the Nexus 4 into bootloader.

If everything is working ok you should see 'Android Bootloader Interface' in 'Devices & Printers' (Windows 7)


It was a driver problem, although I've got it working now. I had to use the program from this guide, which worked perfectly. I highly recommend it as an alternative method for anybody having problems.

I had the same issues trying to unlock my ZTE Skate, although thankfully this wasn't half as bad. Vista just doesn't seem to play nice when it comes to this kind of stuff.

Thanks for your response, though.

  • 0

#17
toge64

toge64

    Diehard

  • Members
  • PipPipPipPip
  • 376 posts
  • Gender:Male
  • Interests:Bargain android devices... (and high end ones too)
  • Devices:Nexus 4, Galaxy Tab 2
Does your superboot solution still work on stock 4.2.2 Paul? Many thanks

  • 0
Have: Nexus 4, Galaxy Tab 2, HP Touchpad
Sold: Orange OSF/ZTE Blade AMOLED, Huawei Ascend G300

#18
PaulOBrien

PaulOBrien

    It's My Party

  • Founder
  • PipPipPipPipPipPip
  • 36,368 posts
  • Gender:Male
  • Location:Norwich, UK
  • Devices:All the Nexus!
  • Twitter:@paulobrien
deleted

  • 0

You can follow me on Twitter - http://twitter.com/paulobrien / Follow MoDaCo on Twitter - http://twitter.com/modaco

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

Posted Image


#19
PaulOBrien

PaulOBrien

    It's My Party

  • Founder
  • PipPipPipPipPipPip
  • 36,368 posts
  • Gender:Male
  • Location:Norwich, UK
  • Devices:All the Nexus!
  • Twitter:@paulobrien
deleted

  • 0

You can follow me on Twitter - http://twitter.com/paulobrien / Follow MoDaCo on Twitter - http://twitter.com/modaco

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

Posted Image


#20
toge64

toge64

    Diehard

  • Members
  • PipPipPipPip
  • 376 posts
  • Gender:Male
  • Interests:Bargain android devices... (and high end ones too)
  • Devices:Nexus 4, Galaxy Tab 2
??? were you trying to answer my question paul?

  • 0
Have: Nexus 4, Galaxy Tab 2, HP Touchpad
Sold: Orange OSF/ZTE Blade AMOLED, Huawei Ascend G300




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users