[boot.img] obsolete please lock

Status
Not open for further replies.

Harry GT-S5830

Senior Member
Apr 9, 2012
888
234
0
Hi all. Quick notice:

Usual disclaimers apply.

This is an Unsecure boot.img I made for Android 4.2 on the Nexus 4.

Okay cool... but what is an insecure boot.img?

An insecure boot.img allows the device to be booted with permissions to be mounted as root. This is a way of being able to push SuperSU/Superuser.apk to /system/app and the Su Binaries to /bin

adb shell
su
mount -o remount,rw /system
exit​

See more here: External Link
_____________________________________________________________________________________________________________

To use this you must be unlocked, not familar with unlocking a Nexus device? Easy. In fastboot mode type "fastboot oem unlock" this wipes all data on the device (virtual sd included).

A nice article regarding this thread was published here: http://www.addictivetips.com/android/root-google-nexus-4-install-clockworkmod-recovery/

To boot this boot.img:
must be in the platform-tools folder in the android-sdk
must be in fastboot mode (power+vol-)

First use: fastboot boot "boot.img" (no ")
Why boot? I have not tested this image as I don't have a Nexus 4 as of yet.**

**Some users report flashing the image makes the phone in need of a fastboot stock flashing session, stick to booting for now.


Thank you for helping!
-fkrone
-Ranguvar
-USSENTERNCC1701E


This is mainly for development purposes to obtain root on this device, it will be an easier process when a recovery is published and you can flash a su.zip. (see attached)

DOWNLOAD HERE: http://www.androidfilehost.com/?fid=9390169635556426389
Note, this is in Nexus 7 folder as Nexus 4 does not have its own atm.
Please Lock!
 
Last edited:

Harry GT-S5830

Senior Member
Apr 9, 2012
888
234
0
I've got the recovery.img, can I get the .fstab out without loop mounting? I don't have a linux machine set up right now.
Old fashioned HxD :D

See here: http://forum.xda-developers.com/showthread.php?t=443994

I could probably do it without this, but it probably wouldn't mount data/media (what emulates the SD) so it would be relatively useless as that's where zips are

Also this might prove useful: http://forum.xda-developers.com/showthread.php?t=1494036 (requires Cygwin or Linux environment)
 
Last edited:

Harry GT-S5830

Senior Member
Apr 9, 2012
888
234
0
Hell, I wouldn't trust myself to rip it out with a hex editor. I'm setting up a VM right now, but I could just upload the recovery.img for you. I pulled it out of the stock image that google uploaded today.
Cheers, that's where I had mine :p but I corrupted it :/ ill try pull it apart on the 600MHz wonder pico :p

Or perhaps not... 3.2" is too small for hex
 
Last edited:
  • Like
Reactions: smenes

pikachukaki

Senior Member
Jan 27, 2012
5,041
2,746
0
Thessaloníki, Greece
Can i ask something as a future buyer of nexus 4 and older user of another phone...the fastboot is the "bootloader" (pink screen on my older phone) the state of the phone where i can connect it to my computer and see the folder containing the recovery.img boot.img...etc???
 

USSENTERNCC1701E

Senior Member
Sep 21, 2010
1,259
289
0
Logan
Can i ask something as a future buyer of nexus 4 and older user of another phone...the fastboot is the "bootloader" (pink screen on my older phone) the state of the phone where i can connect it to my computer and see the folder containing the recovery.img boot.img...etc???
That's not quite how it works. These .img files we are talking about are pictures of the stock version of those paritions. Try reading this article for an explanation of Android partitioning.

There is also a great graphic here. The site is in Spanish, I haven't used Google to translate it, but the picture there is in English. Take your time with it, there's a lot of info there.
 

Stryder5

Senior Member
Mar 2, 2009
3,353
1,145
0
Texas
To get into Fastboot mode, do you just hold the volume down button while powering on? Never used a Nexus device before. Have been strictly on HTC up until now. I'm picking up my Nexus 4 in the morning and don't mind trying, as long as there's a way to undo anything in case something goes wrong.
 

USSENTERNCC1701E

Senior Member
Sep 21, 2010
1,259
289
0
Logan
To get into Fastboot mode, do you just hold the volume down button while powering on? Never used a Nexus device before. Have been strictly on HTC up until now. I'm picking up my Nexus 4 in the morning and don't mind trying, as long as there's a way to undo anything in case something goes wrong.
Or you can enable adb and
Code:
adb reboot bootloader
The command
Code:
fastboot boot boot.img
is temporary. All it does is boot, one time only, the image you specify. Once you've mounted system as rw however, everything you do in /system before rebooting is permanent.
 
  • Like
Reactions: Stryder5

Stryder5

Senior Member
Mar 2, 2009
3,353
1,145
0
Texas
Or you can enable adb and
Code:
adb reboot bootloader
The command
Code:
fastboot boot boot.img
is temporary. All it does is boot, one time only, the image you specify. Once you've mounted system as rw however, everything you do in /system before rebooting is permanent.
So does adding the su binaries and the superuser apk give you permanent root after this then?

And exactly what binaries are needed to gain root? I've never gained root using that method before so am a little unfamiliar in this territory.
 

USSENTERNCC1701E

Senior Member
Sep 21, 2010
1,259
289
0
Logan
So does adding the su binaries and the superuser apk give you permanent root after this then?

And exactly what binaries are needed to gain root? I've never gained root using that method before so am a little unfamiliar in this territory.
Woops, wrong thread.

Yes, if you push the su binary from a superuser flashable zip to /system/bin/ and chmod 0655, plus the superuser apk, you will have permanent root after.


Also, there is a recovery.img now, so you can test that out, if it works, flash it from fastboot, then flash a superuser zip from that recovery.
 
Last edited:
  • Like
Reactions: Stryder5

Harry GT-S5830

Senior Member
Apr 9, 2012
888
234
0
Thank you for getting it (recovery.fstab), looks like someone beat me to it though!

Sorry for late response I have to sleep as I'm in last school year :p

Ill cook up a recovery just to make your efforts worthwhile ;)

It's in OP, its probably 99.9% the same as the other guys so i'm not going to make duplicate thread, use who evers recovery you wish.
____________________________________________________________________________________________________________________________________

Reason I say fastboot boot first is because it allows you to boot the image without permanently (well, unless you flash another over) flashing a partition without knowing it works.
 
Last edited:

Stryder5

Senior Member
Mar 2, 2009
3,353
1,145
0
Texas
Booted fine when I ran fastboot boot boot.img, but when I actually flashed it, it's giving me a boot loop now :( Booting back into fastboot shows secure boot still enabled. Any suggestions? Or do you have the original bootloader image?
 

USSENTERNCC1701E

Senior Member
Sep 21, 2010
1,259
289
0
Logan
Booted fine when I ran fastboot boot boot.img, but when I actually flashed it, it's giving me a boot loop now :( Booting back into fastboot shows secure boot still enabled. Any suggestions? Or do you have the original bootloader image?
Not at my comp now or I'd upload it, bit of you rip open the fa Tory image from the Google servers you should find it

---------- Post added at 02:44 PM ---------- Previous post was at 02:43 PM ----------

On a side note, what possessed you to do that?
 
Status
Not open for further replies.