How do I create a stock image of my Galaxy Nexus?
Verizon shipped me a new phone with IMM7Q instead of IMM7K
I think it could be a small incremental change but I'd still like a backup of the image so I can restore if needed.
Do I need a recovery image to Root?
wirelessrevolution said:
How do I create a stock image of my Galaxy Nexus?
Verizon shipped me a new phone with IMM7Q instead of IMM7K
I think it could be a small incremental change but I'd still like a backup of the image so I can restore if needed.
Do I need a recovery image to Root?
Click to expand...
Click to collapse
Unlock the bootloader, flash a custom recovery, backup rom.
I did unlock the bootloader. Thats the easy part. How do you "flash a custom recovery" mean and how to backup the ROM?
wirelessrevolution said:
How do I create a stock image of my Galaxy Nexus?
Verizon shipped me a new phone with IMM7Q instead of IMM7K
I think it could be a small incremental change but I'd still like a backup of the image so I can restore if needed.
Do I need a recovery image to Root?
Click to expand...
Click to collapse
Posted in the wrong section. This is meant for development releases only.
If I were you I'd follow the rooting instructions up to the point of flashing a new recovery. Once the recovery is flashed you can the make a backup of your stock settings (I think). Once you have the custom recovery you can just flash a ROM to your phone & you can skip all the "rooting" steps because the ROM you flash will have it included. If you want a stock experience w/ root then continue w/ the instructions for rooting.
---------- Post added at 01:57 PM ---------- Previous post was at 01:55 PM ----------
wirelessrevolution said:
I did unlock the bootloader. Thats the easy part. How do you "flash a custom recovery" mean and how to backup the ROM?
Click to expand...
Click to collapse
Reboot your phone to the bootloader. Then do the following command:
fastboot flash recovery /path/to/<recovery>.img
fastboot reboot
EvilDobe said:
Reboot your phone to the bootloader. Then do the following command:
fastboot flash recovery /path/to/<recovery>.img
fastboot reboot
Click to expand...
Click to collapse
How would you do this if the usb port is fried? Gotta send back my vzw gnex (warranty swap) , but it's on jelly bean and I'm concerned about voiding the warranty.
amessina said:
How would you do this if the usb port is fried? Gotta send back my vzw gnex (warranty swap) , but it's on jelly bean and I'm concerned about voiding the warranty.
Click to expand...
Click to collapse
Place recovery on internal storage, then...
From a terminal emulator:
su
cd /sdcard/
dd if=recovery-name.img of=/dev/block/mmcblk0p8
then reboot
I thought of you did a reboot after without deleting or renaming the recovery from reboot file you would lose your recovery. The easiest way is to place recovery image in the same folder as fastboot then
cd to folder with recovery and fastboot
fastboot flash recovery nameofrecovery.img
fastboot reboot-bootloader
Once in bootloader use volume buttons to select recovery hit the power button once selected one in recovery select back up one done reboot after that reboot though I believe you will lose the recovery you just flashed unless you either delete or rename that file or before you do any of that download a ROM you want to flash and after making the back up in recovery follow instructions for flashing that ROM once in recovery.
Sent from my Galaxy Nexus using xda premium
Beamer9408 said:
I thought of you did a reboot after without deleting or renaming the recovery from reboot file you would lose your recovery. The easiest way is to place recovery image in the same folder as fastboot then
cd to folder with recovery and fastboot
fastboot flash recovery nameofrecovery.img
fastboot reboot-bootloader
Once in bootloader use volume buttons to select recovery hit the power button once selected one in recovery select back up one done reboot after that reboot though I believe you will lose the recovery you just flashed unless you either delete or rename that file or before you do any of that download a ROM you want to flash and after making the back up in recovery follow instructions for flashing that ROM once in recovery.
Sent from my Galaxy Nexus using xda premium
Click to expand...
Click to collapse
His USB port is no good so that's out. The "dd" method is flawless, I do it all the time to dump files.
~~~~There is no spoon~~~~
Related
guys, I am have stock 4.0.2 rooted with CWM, is there a way to update stock rom (when stock 4.0.3 comes out) without wiping data?
I know I could do all kinds of MyBackupPro or Titanium Backup, but still it's quite a bit of hassle especially I can't keep anything in Internal Storage, anyone got an idea on this?
Easiest way would be to go ahead and flash the factory recovery back rather than clockworkmod. If you are on stock now and are wanting to get the 4.0.3 OTA when its pushed than you really don't need clockwork. If you flash the factory recovery back that we will be able to get the OTA and not worry about a data wipe. Flashing the factory recovery will not effect your current root at all so you stay rooted.
badassirocz said:
Easiest way would be to go ahead and flash the factory recovery back rather than clockworkmod. If you are on stock now and are wanting to get the 4.0.3 OTA when its pushed than you really don't need clockwork. If you flash the factory recovery back that we will be able to get the OTA and not worry about a data wipe. Flashing the factory recovery will not effect your current root at all so you stay rooted.
Click to expand...
Click to collapse
wow, thanks, so, I'm assuming I could use the same tool (GNex Toolkit) to flash back my factory recovery, right? besides, what if I did flash a custom kernel (like Jame Bond), do I need to flash back that too? or I could just leave it and the OTA would overwrite the kernel with stock kernel?
thanks!
You should be able to use that tool kit or you can just use fastboot and do the following after downloading the proper factory image from google and extracting the recover.img as for the kernel I don't believe it will effect the OTA at all.
- copy the recovery.img file to the directory that contains your fastboot utility
- start-up a terminal/command session
- put your phone into fastboot / bootloader mode
- type the following fastboot command to flash the stock recovery:
Code:
fastboot flash recovery recovery.img
OP, your internal storage doesn't get wiped when flashing a new ROM.. The virtual SD card is left untouched.
Also I'm pretty sure you lose root if you accept an OTA update.. but you can easily reroot.
badassirocz said:
You should be able to use that tool kit or you can just use fastboot and do the following after downloading the proper factory image from google and extracting the recover.img as for the kernel I don't believe it will effect the OTA at all.
- copy the recovery.img file to the directory that contains your fastboot utility
- start-up a terminal/command session
- put your phone into fastboot / bootloader mode
- type the following fastboot command to flash the stock recovery:
Code:
fastboot flash recovery recovery.img
Click to expand...
Click to collapse
thanks! would give it a try!
joshnichols189 said:
OP, your internal storage doesn't get wiped when flashing a new ROM.. The virtual SD card is left untouched.
Also I'm pretty sure you lose root if you accept an OTA update.. but you can easily reroot.
Click to expand...
Click to collapse
um. I am not so sure it would be the case for Galaxy Nexus, data wipe before (like my GS2) just means user data, but for Galaxy Nexus, last time i tried it wipe my internal storage as well. when I'm using the GN toolkit to flash 4.0.2 image downloaded from Google, it wiped my data and storage, do you mean there is a way to flash Google image without wiping for GN ?
Found answer.....
speedin said:
Found answer.....
Click to expand...
Click to collapse
answer of....?
hongkongtom said:
answer of....?
Click to expand...
Click to collapse
I asked if it was possible to update OTA when your phone is unlocked, and with CWM.. The answer is "yes" if you have stock recovery instead of CWM....
speedin said:
I asked if it was possible to update OTA when your phone is unlocked, and with CWM.. The answer is "yes" if you have stock recovery instead of CWM....
Click to expand...
Click to collapse
great, while knowledge never have enough, my next question is "How could I manually flash (instead of OTA) stock Google image (in case 4.0.x got out) without wiping my GN?" (assuming I am coming from earlier stock rom)
I am trying to get my gnex back to full locked stock and cannot get into stock recovery. I have done fastboot installs of it all, the gnex toolkit and even odin restore to a factory image.
Not sure why but when I go to boot into recovery I get the red triangle coming from the and the gut of the android guy. I have googled and tried every method I can find to no avail. Can anyone offer something new?
I have the VZW Gnex
motcher41 said:
I am trying to get my gnex back to full locked stock and cannot get into stock recovery. I have done fastboot installs of it all, the gnex toolkit and even odin restore to a factory image.
Not sure why but when I go to boot into recovery I get the red triangle coming from the and the gut of the android guy. I have googled and tried every method I can find to no avail. Can anyone offer something new?
Click to expand...
Click to collapse
when u mean "fastboot installs" did you mean u tried installing stock recovery ?
afma_afma said:
when u mean "fastboot installs" did you mean u tried installing stock recovery ?
Click to expand...
Click to collapse
I first used the toolkit to restore the 4.0.4 factory image and of course there is not a recovery in the so it didnt go to stock recovery. I then downloaded the stock recovery image and fastboot installed that. no luck. tried the 4.02 image with the stock recovery in it and it says it flashed fine then try to go into recovery the same red triangle. Tried the odin to full stock with recovery and same result.
motcher41 said:
I first used the toolkit to restore the 4.0.4 factory image and of course there is not a recovery in the so it didnt go to stock recovery. I then downloaded the stock recovery image and fastboot installed that. no luck. tried the 4.02 image with the stock recovery in it and it says it flashed fine then try to go into recovery the same red triangle. Tried the odin to full stock with recovery and same result.
Click to expand...
Click to collapse
I had the same problem just like you. (red triangle on recovery)
This is what I did:
(You need to have a rooted device)
1. rename this file:
/system/recovery-from-boot.p to /system/recovery-from-boot.p.bak
2. boot into fastboot
execute these commands via fastboot
fastboot erase recovery
fastboot flash recovery <recovery file>
fastboot reboot-bootloader
3. Go into recovery.
As I said, This solution worked for me.
kaukassus said:
I had the same problem just like you. (red triangle on recovery)
This is what I did:
(You need to have a rooted device)
1. rename this file:
/system/recovery-from-boot.p to /system/recovery-from-boot.p.bak
2. boot into fastboot
execute these commands via fastboot
fastboot erase recovery
fastboot flash recovery <recovery file>
fastboot reboot-bootloader
3. Go into recovery.
As I said, This solution worked for me.
Click to expand...
Click to collapse
I just stumbled across that and was reading it. Thanks I will give it a go.
Ok i didnt even have that recovery-from-boot.p file in my system.
motcher41 said:
Ok i didnt even have that recovery-from-boot.p file in my system.
Click to expand...
Click to collapse
In my case it was, because The stock recovery overwrote my CWM.
so I had to remove it first.
same damn triangle
:'(
OMG I feel like a total jackass http://androidforums.com/verizon-ga...-recovery-mode-exclamation-point-android.html
I havent used stock recovery in so long I didnt know hold power and press up brought the menu up. Big old glass of durp juice.
Hi everyone, I'm new here and I have a GNex on my hands.
While I received it to fix; I could not get it past a bootloop from the nexus 4.0.4 Boot.
Problem is I cannot seem to get past the boot animation screen nor upgrade it.
Tried flashing another bootloader via fastboot, and the bootloader does not change, stays in same version.
HW Version : 9
Bootloader version : PRIMEKK15
Baseband version : I9250XXKK6
I proceed doing a fastboot erase bootloader and trying another bootloader, rebooting into another bootloader but no luck
Tried also ODIN flash but no luck; stays into the same
Booting into recovery mode goes into stock recovery and tries to flash a file from /cache
By trying to flash CWM via fastboot flash recovery <cwm image> flashes image but no luck on booting into CWM.
Anbody can lend a hand please?
Thanks!
jhonnyx said:
Hi everyone, I'm new here and I have a GNex on my hands.
While I received it to fix; I could not get it past a bootloop from the nexus 4.0.4 Boot.
Problem is I cannot seem to get past the boot animation screen nor upgrade it.
Tried flashing another bootloader via fastboot, and the bootloader does not change, stays in same version.
HW Version : 9
Bootloader version : PRIMEKK15
Baseband version : I9250XXKK6
I proceed doing a fastboot erase bootloader and trying another bootloader, rebooting into another bootloader but no luck
Tried also ODIN flash but no luck; stays into the same
Booting into recovery mode goes into stock recovery and tries to flash a file from /cache
By trying to flash CWM via fastboot flash recovery <cwm image> flashes image but no luck on booting into CWM.
Anbody can lend a hand please?
Thanks!
Click to expand...
Click to collapse
You can flash a custom recovery like cwm or twrp. Then you can acces the custom recovery and adb push your ROM and gapps. Then you do the wipes and flash the ROM and gapps. If you dont understand anything you just have to tell me
Sent from my Galaxy Nexus using XDA Premium HD app
Thanks mrgnex. I've tried flashing TWRP, but the only thing it does is boot into stock recovery and tries to flash a file from /cache/, which file is: 5a81769b6d01.signed-yakju-IMM76I-from-ICL53F.5a81769b.zip; pretty weird. Issue is the same as this thread: http://forum.xda-developers.com/showthread.php?t=1909331&page=4
use: fastboot boot recovery.img
and "recovery.img" which recovery do you suggest? twrp or a CWM in particular?
doesnt matter. whichever.
jhonnyx said:
and "recovery.img" which recovery do you suggest? twrp or a CWM in particular?
Click to expand...
Click to collapse
I suggest the latest TWRP.
http://www.teamw.in/project/twrp2
Edit: Have you read this?
TheMysteriousOne said:
I suggest the latest TWRP.
http://www.teamw.in/project/twrp2
Edit: Have you read this?
Click to expand...
Click to collapse
While now I'm trying to install latest TWRP (already did and no luck) I'm downloading the pack from the "Have you read this?".
The things that I'm seeing right now that seem to be wrong are:
1 - everytime I reboot the phone, the "fastboot oem unlock" seems to be gone and phone re-locks again (weird!)
2 - every change I make to the filesystem, seems to be non-persistent I/E: push something via adb push and on reboot it's gone! :/
Any help would be greatly appreciated.
jhonnyx said:
While now I'm trying to install latest TWRP (already did and no luck) I'm downloading the pack from the "Have you read this?".
The things that I'm seeing right now that seem to be wrong are:
1 - everytime I reboot the phone, the "fastboot oem unlock" seems to be gone and phone re-locks again (weird!)
2 - every change I make to the filesystem, seems to be non-persistent I/E: push something via adb push and on reboot it's gone! :/
Any help would be greatly appreciated.
Click to expand...
Click to collapse
Can you elaborate on why exactly you were not able to install TWRP?
TheMysteriousOne said:
Can you elaborate on why exactly you were not able to install TWRP?
Click to expand...
Click to collapse
Surely:
1 - Unlock via fastboot oem unlock
2 - fastboot erase recovery (exits with ok)
3 - fastboot flash recovery twrp_versiondoesnotmatter.img (exits with ok)
4 - reboot w/power+vlup+voldown and select reboot recovery
5 - stock recovery appears
an alternate method that i've tried:
1 - Unlock via fastboot oem unlock
2 - fastboot boot twrp_versiondoesnotmatter.img (exits with ok)
3 - TWRP boots and flashes a zipfile from /cache/ then reboots automatically
That's what happens. A mistery, huh?
Also I've tried OMAP Flash, and; the same issue happens over and over again
Have you tried doing a factory reset using the stock recovery?
TheMysteriousOne said:
Have you tried doing a factory reset using the stock recovery?
Click to expand...
Click to collapse
AFAIK, Yes
What happens once I start the stock recovery; as I've already stated; starts flashing a zip file located into /cache/ (5a81769b6d01.signed-yakju-IMM76I-from-ICL53F.5a81769b.zip); then bleh, starts the bootloop again.
I've tried the power+volup then selected wipe cache and wipe system and it's the same.
Did you try flash google's stock images (all of them) ?
Also try flashing TWRP in the boot (kennel) partition by :-
Code:
fastboot flash boot <path to twrp>.img
This will force the phone into Recovery (But you will have recovery bootloop , can be solved by flashing a kernel) .
when you boot into recovery install a Kernel and ROM . also you will lose the recovery after that .
You can flash the TWRP from the TWRP itself (to put it in the right partition) by (in the build in terminal) :-
Code:
dd if=/<path to twrp in SD>.img of=/dev/block/mmcblk0p8
Good Luck .
Sent from my Galaxy Nexus using xda app-developers app
$Parker said:
Did you try flash google's stock images (all of them) ?
Also try flashing TWRP in the boot (kennel) partition by :-
Code:
fastboot flash boot <path to twrp>.img
This will force the phone into Recovery (But you will have recovery bootloop , can be solved by flashing a kernel) .
when you boot into recovery install a Kernel and ROM . also you will lose the recovery after that .
You can flash the TWRP from the TWRP itself (to put it in the right partition) by (in the build in terminal) :-
Code:
dd if=/<path to twrp in SD>.img of=/dev/block/mmcblk0p8
Good Luck .
Sent from my Galaxy Nexus using xda app-developers app
Click to expand...
Click to collapse
fastboot flash boot <path to twrp>.img does not boot the recovery . I mean; still boots the normal Kernel.
Actually I'm trying what TheMysteriousOne told me by downloading the stock Gnex zip (250Mb) to flash via Odin.
Ohh, bad luck strikes again:
<ID:0/011> system.img
<ID:0/011> Complete(Write) operation failed.
cannot write system.img :/
Any ideas?
Unlock your bootloader with omapflash. Although even if it does unlock, Your emmc/board probably has died.
a manta wrote this.
beekay201 said:
Unlock your bootloader with omapflash. Although even if it does unlock, Your emmc/board probably has died.
a manta wrote this.
Click to expand...
Click to collapse
can you please me guide how to do the omapflash?
I've downloaded a file called OMAPFlash_tuna.zip.
- Set battery of the device aside
- Plug device into USB, let it detect the device and flash the SBF I think.
That'd be all?
beekay201 said:
Unlock your bootloader with omapflash. Although even if it does unlock, Your emmc/board probably has died.
a manta wrote this.
Click to expand...
Click to collapse
Pardon me, if EMMC/Board is dead; why does it boot or get into bootloop? There is something that reflashes itself; it even overrides odin or heimdall...
Have you tried going back to completely stock using the method outlined here? http://forum.xda-developers.com/showthread.php?t=1626895
jhonnyx said:
can you please me guide how to do the omapflash?
I've downloaded a file called OMAPFlash_tuna.zip.
- Set battery of the device aside
- Plug device into USB, let it detect the device and flash the SBF I think.
That'd be all?
Click to expand...
Click to collapse
Read this thread
http://forum.xda-developers.com/showthread.php?t=2016628
a manta wrote this.
This is my first HTC device so I apologize if this is a dumb question. I unlocked my One last night via the HTC Dev site last night. Everything went ok. So my question is am I also rooted or do I need to do another step?
Thanks in advance!
Not until you flash custom recovery and su app
Sent from my Nexus 7 using Tapatalk 4
The recovery the other poster mentioned is here - http://forum.xda-developers.com/showthread.php?t=2416431 for TWRP and http://forum.xda-developers.com/showthread.php?t=2416273 for CWM
You need to flash one of them
Wozzie said:
The recovery the other poster mentioned is here - http://forum.xda-developers.com/showthread.php?t=2416431 for TWRP and http://forum.xda-developers.com/showthread.php?t=2416273 for CWM
You need to flash one of them
Click to expand...
Click to collapse
Thanks! Downloaded the img and su zip file. I'm not that good with the cmd commands. How do I push the recovery img to the phone when I'm in fastboot??
mpetruzz said:
Thanks! Downloaded the img and su zip file. I'm not that good with the cmd commands. How do I push the recovery img to the phone when I'm in fastboot??
Click to expand...
Click to collapse
make sure it says fastboot usb
fastboot flash recovery xxx.img
fastboot reboot-bootloader
go into recovery
123421342 said:
make sure it says fastboot usb
fastboot flash recovery xxx.img
fastboot reboot-bootloader
go into recovery
Click to expand...
Click to collapse
OK, I did that am am pretty sure it worked. How do I reboot into recovery so I can flash the su zip??
I think its fastboot reboot recovery
overlord727 said:
I think its fastboot reboot recovery
Click to expand...
Click to collapse
Got it. I got into recovery through the bootloader menu. Is there an app like Rom Toolbox that will allow me to boot into recovery vs. having to do the power down, etc method??
Download Rom manager. Don't use it to flash anything, but just use it to boot to recovery.
overlord727 said:
Download Rom manager. Don't use it to flash anything, but just use it to boot to recovery.
Click to expand...
Click to collapse
Thanks, that's what i've done in the past just wasn't sure if it'd work for this phone.
Hi,
I'm looking to try some 4.4 custom ROMs on my GF's GSM Galaxy Nexus for the first time coming from stock.
Am I right that, I need to: 1) Unlock the bootloader and 2) Install a custom recovery before I can flash a ROM, right?
What would we be the easiest way to achieve both? I've read some stickied posts and I think using the Nexus toolkit is the easiest way. Someone please let me know if it isnt.
Also, I shouldn't worry about rooting the device for now, right?
One last question, I plan to factory reset the phone before installing the custom ROM. A NANDROID backup should allow me to easily revert back to the pristine stock if ever my GF doesnt like the custom ROM, right?
Hope someone can help clarify these things before I actually go on and try the whole thing.
Thanks.
@torchwood0829
You can use the toolkit but I would use command prompt / terminal for unlocking bootloader and flashing recovery.
1. When you unlock the bootloader all data from Nexus will be gone.
2. You need Nexus USB / Fastboot / ADB drivers:
http://www.samsung.com/us/support/owners/product/SCH-I515MSAVZW
3. You need fastboot files:
http://galaxynexusroot.com/galaxy-n...iversal-guidegsmverizonsprintwindowslinuxmac/
4. Command to unlock the boot loader:
fastboot oem unlock
5. Command to flash recovery:
fastboot flash recovery file-name.img
CWM recovery .img file: http://www.clockworkmod.com/rommanager
To root: Don't worry about it...
Carlos_Manuel said:
@torchwood0829
You can use the toolkit but I would use command prompt / terminal for unlocking bootloader and flashing recovery.
1. When you unlock the bootloader all data from Nexus will be gone.
2. You need Nexus USB / Fastboot / ADB drivers:
http://www.samsung.com/us/support/owners/product/SCH-I515MSAVZW
3. You need fastboot files:
http://galaxynexusroot.com/galaxy-n...iversal-guidegsmverizonsprintwindowslinuxmac/
4. Command to unlock the boot loader:
fastboot oem unlock
5. Command to flash recovery:
fastboot flash recovery file-name.img
CWM recovery .img file: http://www.clockworkmod.com/rommanager
To root: Don't worry about it...
Click to expand...
Click to collapse
Thanks for the reply.
Will try the command prompt method.
After I unlock bootloader and flash CWM, i'm basically left with factory reset phone, right? Would be a great time to do a NANDROID backup then so I can revert to it in case I want to, right?
torchwood0829 said:
Thanks for the reply.
Will try the command prompt method.
After I unlock bootloader and flash CWM, i'm basically left with factory reset phone, right? Would be a great time to do a NANDROID backup then so I can revert to it in case I want to, right?
Click to expand...
Click to collapse
When you unlock your phone, it'' be automatically wiped... so you don't have to do any factory reset.
I don't know how do you make a nandroid backup when boot loader is locked and recovery is the stock one..
It is just one time wipe when unlocking bootloader. If you decide to revert to stock, you can flash factory image and start over.
Unlocked bootlader gives you ability to flash custom recovery which gives you nandroid backup.