Well i'm trying to update my Nexus 7 2012 to Android 5.0.2, after receiving the OTA update but keep getting an error.
I rooted my Nexus 7, and been thinking that's the problem, since it restarts to install the OTA update but goes to Recovery mode, and when i try to manually install the file get the following error :
https://www.dropbox.com/s/dqjc2ztzfbkvnuy/IMAG0897.jpg?dl=0
Any tips or solution for the problem?
Thanks in advance
Go here and flash the full image: https://developers.google.com/android/nexus/images
Skeetch79 said:
Go here and flash the full image: https://developers.google.com/android/nexus/images
Click to expand...
Click to collapse
Didn't want to do that, because means i'm going to loose everything
lmcmil said:
Didn't want to do that, because means i'm going to loose everything
Click to expand...
Click to collapse
Thought you would say that! .
You can always:
- download the image for your device from the google nexus website I gave you
- unzip the tgz file
- Find the resulting tar file and unzip it
- you will now have a folder
- inside the folder will be a bootloader-grouper-4.23.img file, image-nakasi-lrx22g.zip file, flash-all.bat file and two .sh files
- unzip the zip file to the same directory as the bootloader-grouper-4.23.img file
- reboot your nexus into bootloader mode
- plug the nexus into your PC
- open a command prompt in the same directory as the image, sh and bat files (on windows 7 hold the shift key and right click on an empty space within the folder and choose open command window here)
- in the command window type fastboot devices, make sure device is recognized
- if not, set up your pc for adb and fastboot, if so, continue
- type in the command prompt:
fastboot erase boot <hit enter>
fastboot erase cache <hit enter>
fastboot erase recovery <hit enter>
fastboot erase system <hit enter>
fastboot flash bootloader bootloader-grouper-4.23.img <hit enter>
fastboot reboot-bootloader <hit enter>
fastboot flash boot boot.img <hit enter>
fastboot flash recovery recovery.img <hit enter>
fastboot flash system system.img <hit enter>
fastboot reboot <hit enter>
This will preserve your app and data settings.
If you had custom recovery installed just reboot into fastboot and flash the recovery of your choice. example: fastboot flash recovery ,recovery image name>
If you want to reroot, download a superuser zip file to your device, reboot back into your custom recovery and then install the SuperUser zip of your choice (i.e. chainfire's SuperSu)
Hopefully this is straightforward and self explanatory
Thanks for the tip and explanation Skeetch79, will try to do like you wrote.
lmcmil said:
Thanks for the tip and explanation Skeetch79, will try to do like you wrote.
Click to expand...
Click to collapse
Np. Keep me posted
Sent from my XT1096 using Tapatalk
Skeetch79 said:
Thought you would say that! .
You can always:
- download the image for your device from the google nexus website I gave you
- unzip the tgz file
- Find the resulting tar file and unzip it
- you will now have a folder
- inside the folder will be a bootloader-grouper-4.23.img file, image-nakasi-lrx22g.zip file, flash-all.bat file and two .sh files
- unzip the zip file to the same directory as the bootloader-grouper-4.23.img file
- reboot your nexus into bootloader mode
- plug the nexus into your PC
- open a command prompt in the same directory as the image, sh and bat files (on windows 7 hold the shift key and right click on an empty space within the folder and choose open command window here)
- in the command window type fastboot devices, make sure device is recognized
- if not, set up your pc for adb and fastboot, if so, continue
- type in the command prompt:
fastboot erase boot <hit enter>
fastboot erase cache <hit enter>
fastboot erase recovery <hit enter>
fastboot erase system <hit enter>
fastboot flash bootloader bootloader-grouper-4.23.img <hit enter>
fastboot reboot-bootloader <hit enter>
fastboot flash boot boot.img <hit enter>
fastboot flash recovery recovery.img <hit enter>
fastboot flash system system.img <hit enter>
fastboot reboot <hit enter>
This will preserve your app and data settings.
If you had custom recovery installed just reboot into fastboot and flash the recovery of your choice. example: fastboot flash recovery ,recovery image name>
If you want to reroot, download a superuser zip file to your device, reboot back into your custom recovery and then install the SuperUser zip of your choice (i.e. chainfire's SuperSu)
Hopefully this is straightforward and self explanatory
Click to expand...
Click to collapse
This method works great! I was in the same boat. I analyzed the updater script and then analyzed the ro.build.fingerprint from my system, and it doesn't contain the weird one that it errors out on. I debated just removing the build prop check and repackaging it as an update, but decided against it.
@lmcmil - per chance, did you flash a different kernel and/or switch to F2FS before this happened? If so, that might correlate to mine, since I did do that....
Either way, I'm gonna run stock again for a while and see how it feels.
EDIT:
I think these lines:
Code:
mount("ext4", "EMMC", "/dev/block/platform/sdhci-tegra.3/by-name/APP", "/system", "max_batch_time=0,commit=1,data=ordered,barrier=1,errors=panic,nodelalloc");
getprop("ro.build.fingerprint") == "google/nakasi/grouper:5.0/LRX21P/1570855:user/release-keys" ||
getprop("ro.build.fingerprint") == "google/nakasi/grouper:5.0.2/LRX22G/1649326:user/release-keys" ||
abort("Package expects build fingerprint of google/nakasi/grouper:5.0/LRX21P/1570855:user/release-keys or google/nakasi/grouper:5.0.2/LRX22G/1649326:user/release-keys; this device has " + getprop("ro.build.fingerprint") + ".");
are what causes it to explode. First, it tries to mount ext4 instead of F2FS, which makes sense, but would cause the system partition to be unreadable if you converted it to F2FS. That COULD explain the odd "deestroy" build prop it thinks it got when it pulled ro.build.fingerprint, since when my system was fully booted mine matched the stock LRX21P using getprop from adb.
toastido i tryied to load the OTA using the Nexus Root Toolkit and the error i got was regarding missing calculator, wich i removed after installing "Calculator ++" app
Still haven't had time to try this method, i'm working this weekend so only next week i can give it a try and post the result.
Skeetch79 said:
Thought you would say that! .
You can always:
- download the image for your device from the google nexus website I gave you
- unzip the tgz file
- Find the resulting tar file and unzip it
- you will now have a folder
- inside the folder will be a bootloader-grouper-4.23.img file, image-nakasi-lrx22g.zip file, flash-all.bat file and two .sh files
- unzip the zip file to the same directory as the bootloader-grouper-4.23.img file
- reboot your nexus into bootloader mode
- plug the nexus into your PC
- open a command prompt in the same directory as the image, sh and bat files (on windows 7 hold the shift key and right click on an empty space within the folder and choose open command window here)
- in the command window type fastboot devices, make sure device is recognized
- if not, set up your pc for adb and fastboot, if so, continue
- type in the command prompt:
fastboot erase boot <hit enter>
fastboot erase cache <hit enter>
fastboot erase recovery <hit enter>
fastboot erase system <hit enter>
fastboot flash bootloader bootloader-grouper-4.23.img <hit enter>
fastboot reboot-bootloader <hit enter>
fastboot flash boot boot.img <hit enter>
fastboot flash recovery recovery.img <hit enter>
fastboot flash system system.img <hit enter>
fastboot reboot <hit enter>
This will preserve your app and data settings.
If you had custom recovery installed just reboot into fastboot and flash the recovery of your choice. example: fastboot flash recovery ,recovery image name>
If you want to reroot, download a superuser zip file to your device, reboot back into your custom recovery and then install the SuperUser zip of your choice (i.e. chainfire's SuperSu)
Hopefully this is straightforward and self explanatory
Click to expand...
Click to collapse
Good Man !!!
Thanks Very Much for that one,
I got stuck on the boot after performing the advised but a quick Cache Wipe sorted that out.
Once again Much Obliged !!!
Yeah forgot to mention the above. if you are stuck in a boot loop: shut down. reboot to recovery. wipe cache and dalvic. Reboot. Profit.
Sent from my XT1096 using Tapatalk
Skeetch79 said:
Thought you would say that! .
You can always:
- download the image for your device from the google nexus website I gave you
- unzip the tgz file
- Find the resulting tar file and unzip it
- you will now have a folder
- inside the folder will be a bootloader-grouper-4.23.img file, image-nakasi-lrx22g.zip file, flash-all.bat file and two .sh files
- unzip the zip file to the same directory as the bootloader-grouper-4.23.img file
- reboot your nexus into bootloader mode
- plug the nexus into your PC
- open a command prompt in the same directory as the image, sh and bat files (on windows 7 hold the shift key and right click on an empty space within the folder and choose open command window here)
- in the command window type fastboot devices, make sure device is recognized
- if not, set up your pc for adb and fastboot, if so, continue
- type in the command prompt:
fastboot erase boot <hit enter>
fastboot erase cache <hit enter>
fastboot erase recovery <hit enter>
fastboot erase system <hit enter>
fastboot flash bootloader bootloader-grouper-4.23.img <hit enter>
fastboot reboot-bootloader <hit enter>
fastboot flash boot boot.img <hit enter>
fastboot flash recovery recovery.img <hit enter>
fastboot flash system system.img <hit enter>
fastboot reboot <hit enter>
This will preserve your app and data settings.
If you had custom recovery installed just reboot into fastboot and flash the recovery of your choice. example: fastboot flash recovery ,recovery image name>
If you want to reroot, download a superuser zip file to your device, reboot back into your custom recovery and then install the SuperUser zip of your choice (i.e. chainfire's SuperSu)
Hopefully this is straightforward and self explanatory
Click to expand...
Click to collapse
Does this also work if I want to go back to Kitkat? I am asking, because I've tried the following:
Code:
@echo off
echo. listing devices:
fastboot devices
echo. To continue press Enter
pause
fastboot erase boot
fastboot erase cache
fastboot erase recovery
fastboot erase system
REM adopt the following line according to the bootloader image filename
fastboot flash bootloader bootloader-flo-flo-04.02.img
fastboot reboot-bootloader
fastboot flash boot boot.img
fastboot flash cache cache.img
fastboot flash recovery recovery.img
fastboot flash system system.img
fastboot reboot
And no matter, if I do a wipe cache afterwards or not, I end up in a boot-loop.
Do you know a way to keep apps and settings while going back to Kitkat?
nieroster
lmcmil said:
toastido i tryied to load the OTA using the Nexus Root Toolkit and the error i got was regarding missing calculator, wich i removed after installing "Calculator ++" app
Still haven't had time to try this method, i'm working this weekend so only next week i can give it a try and post the result.
Click to expand...
Click to collapse
lmcmil said:
Well i'm trying to update my Nexus 7 2012 to Android 5.0.2, after receiving the OTA update but keep getting an error.
I rooted my Nexus 7, and been thinking that's the problem, since it restarts to install the OTA update but goes to Recovery mode, and when i try to manually install the file get the following error :
https://www.dropbox.com/s/dqjc2ztzfbkvnuy/IMAG0897.jpg?dl=0
Any tips or solution for the problem?
Thanks in advance
Click to expand...
Click to collapse
TWRP is incompatible with 5.x OTA: it uses its own moronic default.prop instead of importing the device build.prop (or something like that) . It needs to be fixed.
You have to bother flashing the full image (minus the wiping eventually) and reinstall root & TWRP with every update, just like the rest of us
Got an Failed error at fastboot flash bootloader bootloader-grouper-4.23.img <hit enter>.
So now i don't have a valid bootloader and also can't enter recovery because it was erased at fastboot erase recovery <hit enter> step
And also typing fastboot devices my Nexus 7 isn't detected, what can i do now?
lmcmil said:
Got an Failed error at fastboot flash bootloader bootloader-grouper-4.23.img <hit enter>.
So now i don't have a valid bootloader and also can't enter recovery because it was erased at fastboot erase recovery <hit enter> step
And also typing fastboot devices my Nexus 7 isn't detected, what can i do now?
Click to expand...
Click to collapse
Well decided to use the Nexus Root Kit and flash the full image LRX22G, doing it now.
Will post how it went.
lmcmil said:
Got an Failed error at fastboot flash bootloader bootloader-grouper-4.23.img <hit enter>.
So now i don't have a valid bootloader and also can't enter recovery because it was erased at fastboot erase recovery <hit enter> step
And also typing fastboot devices my Nexus 7 isn't detected, what can i do now?
Click to expand...
Click to collapse
I had the 2012 Nexus 7 WiFi before I picked up the 2013 model. I had the same issue with that bootloader. Seems to be a common issue. Here are articles discussing the issue and fixes.
http://android.stackexchange.com/qu...t-flash-bootloader-failed-remote-invalidstate
https://code.google.com/p/android/issues/detail?id=62198&
http://forum.xda-developers.com/showthread.php?t=2573015
I remember flashing a modified bootloader to resolve the issue, since as you can see the bootloader packaged with the images is borked.
EDIT: try flashing the appropriate bootloader from this thread: http://forum.xda-developers.com/showthread.php?t=2417097
lmcmil said:
Well decided to use the Nexus Root Kit and flash the full image LRX22G, doing it now.
Will post how it went.
Click to expand...
Click to collapse
So my Nexus 7 is now running with 5.0.2, and did not loose any apps since i chose the "No wipe mode"
Going to root it again, and install latest TWRP Recovery
lmcmil said:
So my Nexus 7 is now running with 5.0.2, and did not loose any apps since i chose the "No wipe mode"
Going to root it again, and install latest TWRP Recovery
Click to expand...
Click to collapse
So i have now a Nexus 7 running 5.0.2, already rooted again and with TWRP 2.8.4.1.
Thanks a lot!
Skeetch79 said:
Thought you would say that! .
You can always:
- download the image for your device from the google nexus website I gave you
- unzip the tgz file
- ...
This will preserve your app and data settings.
If you had custom recovery installed just reboot into fastboot and flash the recovery of your choice. example: fastboot flash recovery ,recovery image name>
If you want to reroot, download a superuser zip file to your device, reboot back into your custom recovery and then install the SuperUser zip of your choice (i.e. chainfire's SuperSu)
Hopefully this is straightforward and self explanatory
Click to expand...
Click to collapse
Thanks for the great tutorial! Used it yesterday on my rooted Nexus 7 to upgrade to 5.0.2, worked like a breeze! :good:
Afterwards I used WugFresh's Nexus Root Toolkit to regain root.
Skeetch79 said:
Thought you would say that! .
You can always:
- download the image for your device from the google nexus website I gave you
- unzip the tgz file
- Find the resulting tar file and unzip it
- you will now have a folder
- inside the folder will be a bootloader-grouper-4.23.img file, image-nakasi-lrx22g.zip file, flash-all.bat file and two .sh files
- unzip the zip file to the same directory as the bootloader-grouper-4.23.img file
- reboot your nexus into bootloader mode
- plug the nexus into your PC
- open a command prompt in the same directory as the image, sh and bat files (on windows 7 hold the shift key and right click on an empty space within the folder and choose open command window here)
- in the command window type fastboot devices, make sure device is recognized
- if not, set up your pc for adb and fastboot, if so, continue
- type in the command prompt:
fastboot erase boot <hit enter>
fastboot erase cache <hit enter>
fastboot erase recovery <hit enter>
fastboot erase system <hit enter>
fastboot flash bootloader bootloader-grouper-4.23.img <hit enter>
fastboot reboot-bootloader <hit enter>
fastboot flash boot boot.img <hit enter>
fastboot flash recovery recovery.img <hit enter>
fastboot flash system system.img <hit enter>
fastboot reboot <hit enter>
This will preserve your app and data settings.
If you had custom recovery installed just reboot into fastboot and flash the recovery of your choice. example: fastboot flash recovery ,recovery image name>
If you want to reroot, download a superuser zip file to your device, reboot back into your custom recovery and then install the SuperUser zip of your choice (i.e. chainfire's SuperSu)
Hopefully this is straightforward and self explanatory
Click to expand...
Click to collapse
I followed this tutorial yesterday and everything went great I now have 5.0.2 working on my Nexus 7 2013, with no problems I can detect at the moment. Thank you, because I was just frustrated I saw the OTA notification without being able to do anything.
Cheers.
I try it too 5.0.2 ota update and nothing still on 4.4.4 I guess on Lollypops for me
Related
Hi!
I'm trying to go back to stock+locked rom.
I have seen instructions with a lot of steps, but when I downloaded the rom from googe developers page, i noticed there is a flash-all.sh file that seems to do all the process...
Is this safe?
Code:
fastboot flash bootloader bootloader-mako-makoz10o.img
fastboot reboot-bootloader
sleep 5
fastboot flash radio radio-mako-m9615a-cefwmazm-2.0.1700.48.img
fastboot reboot-bootloader
sleep 5
fastboot -w update image-occam-jdq39.zip
I don't want to brick the phone
Guide by efrant:
D. Type in the commands into the command prompt
1) Make sure your computer recognizes your device by typing: fastboot devices
2) Unlock your bootloader (if you have not already done so): fastboot oem unlock
3) You will see a prompt on your device. This will wipe your entire device (including the /sdcard folder). Accept. Note: you use the volume keys to change the option and the power button to accept. You cannot use the touch screen.
4) Reboot by typing: fastboot reboot-bootloader
5) Flash the bootloader: fastboot flash bootloader bootloader-mako-makoz10l.img (or whatever the name of the bootloader image that you downloaded).
6) Reboot: fastboot reboot-bootloader
7) Flash the radio: fastboot flash radio radio-mako-m9615a-cefwmazm-2.0.1700.33.img (or whatever the name is of the radio image that you downloaded).
8) Reboot: fastboot reboot-bootloader
9) Flash the system partition: fastboot flash system system.img
10) Optional (NOT optional for n00bs) -- Flash the data partition: fastboot flash userdata userdata.img Note: this command will wipe your device (including /sdcard), EVEN if your bootloader is already unlocked. See note 2 below.
11) Flash the kernel/ramdisk: fastboot flash boot boot.img
12) Optional (NOT optional for n00bs) -- Flash the recovery partition: fastboot flash recovery recovery.img
13) Erase the cache partition: fastboot erase cache
14) Reboot: fastboot reboot
15) Done! The first boot will likely take quite a bit longer than you are used to, as Android builds the Dalvik cache.
Now you have a fully stock image on your device. The only thing that is different from out-of-the-box condition is that your bootloader is unlocked. See the notes section at the end of this post for information on re-locking the bootloader.
You have to unpack the system.image file as you can only flash .img files in fastboot. What`s with the sleep 5?
Good luck.
I've seen some youtube tutos that use that .sh file and it does flash the .zip with fastboot......
That's why I ask, I mean: The previous thread, which i already read before, is like a step-by-step process, when this .sh file would do it all for you!!
The sleep command gives 5 seconds of grace time for the device to reboot.....
GFXi0N said:
I've seen some youtube tutos that use that .sh file and it does flash the .zip with fastboot......
That's why I ask, I mean: The previous thread, which i already read before, is like a step-by-step process, when this .sh file would do it all for you!!
The sleep command gives 5 seconds of grace time for the device to reboot.....
Click to expand...
Click to collapse
Haven`t used that method myself, but if you think it will work go ahead
WOrst case scenario, the console woud throw me out to the command prompt and I would have to do it by hand......
Nexus 7 was rooted,unlocked bootloader and was running paranoid anroid 3.90+ i think . i plugged it into the computer to get a new rom using nexus root toolkit v1.7.2. i was asked to update a few things, so i clicked yes. i then tried to flash stock + unroot and chose 4.3 cause i wanted to try the new OS. but i guess something happened because when i turned my nexus 7 back on i was stuck on the load screen (GOOGLE image with a unlocked lock) i could cycle thru a few options using volume keys (start,recovery,power off) .all of them seemed useless as they would just bring me back to where i was.when clicking start "booting failed" come up on the upper left side. when trying to flash stock +unroot using NRT i get up to the sending "bootloader" part and my nexus 7 just freezes, how do i fix this. please and thanks
download the factory image from the google factory image and extract the archive.
try flashing the bootloader manualy with fastboot.
locate your fastboot binary and copy the bootloader image to that directory.
open a commandline in that directory and type
fastboot flash bootloader name-of-bootloader.img
after that you can try to flash the whole factory image with the flash-all.sh script.
Simple
dieselmonkeyy said:
i could cycle thru a few options using volume keys (start,recovery,power off) .all of them seemed useless as they would just bring me back to where i was.when clicking start "booting failed" come up on the upper left side.
Click to expand...
Click to collapse
Boot failed??? That's a bad flash of the stock ROM. I had the same problem at my first attempt trying to flash Stock ROM, but don't worry! Let's do this:
WARNING: Before you continue you are accepting that I'm not responsible of anything can happen to your Nexus and your battery is fully charged.
When you download the stock ROM you have to uncompress the zip file. You will find the bootloader and another zip.
Uncompress that zip file, put fastboot program, the bootloader and the files together.
Then start your Nexus into bootloader mode, connect it to your PC, open a console (cmd for Windows, Terminal for Linux and Mac OS X) and type this:
fastboot erase boot
fastboot erase cache
fastboot erase recovery
fastboot erase system
fastboot erase userdata
WARNING: Your Nexus is FULLY EMPTY!!! Don't reboot it because it can get a full brick (It will not turn on any more).
Now type this:
fastboot flash bootloader bootloader-grouper-X.XX.img
NOTE: Replace X.XX with your version.
Now type:
fastboot reboot-bootloader
Your Nexus will reboot.
Type this:
fastboot flash boot boot.img
fastboot flash cache cache.img
fastboot flash recovery recovery.img
fastboot flash system system.img #Will take a very long time. DON'T INTERRUPT THE PROCESS!!!!!
fastboot flash userdata userdata.img
Now reboot again with:
fastboot reboot-bootloader
Re-unlock bootloader to get a full wipe:
fastboot oem lock
Reboot again:
fastboot reboot-bootloader
And then unlock the bootloader:
fastboot oem unlock
Press "Yes" to the petition screen and reboot:
fastboot reboot
Ready the Nexus!
I had the same problem and I did this.
I hope I can help you.
Sorry for my bad English. I'm from Argentina and I'm learning.
Well,
Good luck!
MlucianoEze said:
Boot failed??? That's a bad flash of the stock ROM. I had the same problem at my first attempt trying to flash Stock ROM, but don't worry! Let's do this:
WARNING: Before you continue you are accepting that I'm not responsible of anything can happen to your Nexus and your battery is fully charged.
When you download the stock ROM you have to uncompress the zip file. You will find the bootloader and another zip.
Uncompress that zip file, put fastboot program, the bootloader and the files together.
Then start your Nexus into bootloader mode, connect it to your PC, open a console (cmd for Windows, Terminal for Linux and Mac OS X) and type this:
fastboot erase boot
fastboot erase cache
fastboot erase recovery
fastboot erase system
fastboot erase userdata
WARNING: Your Nexus is FULLY EMPTY!!! Don't reboot it because it can get a full brick (It will not turn on any more).
Now type this:
fastboot flash bootloader bootloader-grouper-X.XX.img
NOTE: Replace X.XX with your version.
Now type:
fastboot reboot-bootloader
Your Nexus will reboot.
Type this:
fastboot flash boot boot.img
fastboot flash cache cache.img
fastboot flash recovery recovery.img
fastboot flash system system.img #Will take a very long time. DON'T INTERRUPT THE PROCESS!!!!!
fastboot flash userdata userdata.img
Now reboot again with:
fastboot reboot-bootloader
Re-unlock bootloader to get a full wipe:
fastboot oem lock
Reboot again:
fastboot reboot-bootloader
And then unlock the bootloader:
fastboot oem unlock
Press "Yes" to the petition screen and reboot:
fastboot reboot
Ready the Nexus!
I had the same problem and I did this.
I hope I can help you.
Sorry for my bad English. I'm from Argentina and I'm learning.
Well,
Good luck!
Click to expand...
Click to collapse
what do i type into cmd inorder to be able to type
fastboot erase boot
fastboot erase cache
fastboot erase recovery
fastboot erase system
fastboot erase userdata
and get it to work. im a noob . thanks in advance
You have to be in the folder with fastboot inside else those commands will not work.
It will be easier if you put the images extracted from the zip into the zip together with the fastboot program.
If you don't understand yet I'll try to be more specific.
Sent from my Nexus 7 using xda app-developers app
dieselmonkeyy said:
what do i type into cmd inorder to be able to type
fastboot erase boot
fastboot erase cache
fastboot erase recovery
fastboot erase system
fastboot erase userdata
and get it to work. im a noob . thanks in advance
Click to expand...
Click to collapse
It can be intimidating... and the so-called tool-kits don't help you learn
I assume you are using Windows.
follow the unzip instructions from the previous poster. (not quoted here). note the directory.
find the directory containing your android tools... ADB.exe and FASTBOOT.exe.
transfer your unzipped files to this directory. Open your CMD prompt window and change to this directory if necessary.
plug in your Nexus.
type fastboot device at the prompt. MAKE SURE YOUR NEXUS 7 is listed (serial number)
proceed with the complete instructions from the previous poster.
that should do it.
YES!!!
thanks alot for the instructions, it worked!!! i hope people use ur instructions as reference if they have the same problem. THANKS ALOT!!!
dieselmonkeyy said:
thanks alot for the instructions, it worked!!! i hope people use ur instructions as reference if they have the same problem. THANKS ALOT!!!
Click to expand...
Click to collapse
I'm glad the problem is solved. Do not forget to click the THANKS button.
Sent from my Nexus 7 using xda app-developers app
Hello. My brother's Nex 7 is also has this issue. I cannot follow any of the steps as it gets stuck on erasing any of the partitions. I tried erasing those partitions in any order and they still get stuck. His device was stock and bootloader locked too. When I try to unlock the bootloader, it gets stuck as well at the erasing userdata part. I suspect a bad memory chip. Anyone else experience this?
Yes, mine is sticking on the (bootloader) erasing userdata on bootloader unlock as well.
It also sticks on any fastboot ERASE command.
Factory reset had a bunch of errors and no longer comes up. none of the FLASH commands work because the BOOTLOADER is locked.
And since it freezes on the unlocking bootloader commands I believe I am screwed.
This was a factory installed, never flashed, unlocked or rooted Nexus 7 wifi 2nd gen. After installing the 4.4.2 that popped up it loaded once then crashed and never loaded again
I have tried every tool I can find. They all stick on the erase part.
jophisdrazin said:
Yes, mine is sticking on the (bootloader) erasing userdata on bootloader unlock as well.
It also sticks on any fastboot ERASE command.
Factory reset had a bunch of errors and no longer comes up. none of the FLASH commands work because the BOOTLOADER is locked.
And since it freezes on the unlocking bootloader commands I believe I am screwed.
This was a factory installed, never flashed, unlocked or rooted Nexus 7 wifi 2nd gen. After installing the 4.4.2 that popped up it loaded once then crashed and never loaded again
I have tried every tool I can find. They all stick on the erase part.
Click to expand...
Click to collapse
Send your device for repair. My brother did so. My suspicions were correct. A faulty chip. They replaced the whole board, according to my brother.
Sent from my Nexus 7 using Tapatalk
Hello Community.
I have searched and searched and searched. Can some one link me to a full ODEX of JWR66Y ROM? I am trying to restore my N4 back to stock. Thanks will be given...
jgentry151 said:
Hello Community.
I have searched and searched and searched. Can some one link me to a full ODEX of JWR66Y ROM? I am trying to restore my N4 back to stock. Thanks will be given...
Click to expand...
Click to collapse
Here you are. Flash it using fastboot commands
DOWNLOAD
luiseteyo said:
Here you are. Flash it using fastboot commands
DOWNLOAD
Click to expand...
Click to collapse
Thanks!!! Do you happen to know the fastboot command? Or an instructional for this? Will I have to use stock boot loader and so on?
jgentry151 said:
Thanks!!! Do you happen to know the fastboot command? Or an instructional for this? Will I have to use stock boot loader and so on?
Click to expand...
Click to collapse
http://forum.xda-developers.com/showthread.php?t=2010312
Sent from my Nexus 4 using xda app-developers app
jgentry151 said:
Thanks!!! Do you happen to know the fastboot command? Or an instructional for this? Will I have to use stock boot loader and so on?
Click to expand...
Click to collapse
this is my favourite guide.
Follow this steps:
1. Fastboot mode.
2. Type:
Code:
> fastboot erase boot
> fastboot erase cache
> fastboot erase recovery
> fastboot erase system
> fastboot erase userdata
> fastboot flash bootloader bootloader-tilapia-4.23.img
> fastboot reboot-bootloader
> fastboot flash radio radio-tilapia-1231_0.18.0_0409.img
> fastboot reboot-bootloader
> fastboot -w update image-nakasig-jwr66y.zip
done!
Why download from random place when you get it officially from Google: https://developers.google.com/android/nexus/images#occam
And if you open the package it has the bat script file that will run all the commands to flash the phone automatically, you just have to put it in fastboot mode and unlock the bootloader first, or you can read the script file and manually type in the commands.
luiseteyo said:
this is my favourite guide.
Follow this steps:
1. Fastboot mode.
2. Type:
Code:
> fastboot erase boot
> fastboot erase cache
> fastboot erase recovery
> fastboot erase system
> fastboot erase userdata
> fastboot flash bootloader bootloader-tilapia-4.23.img
> fastboot reboot-bootloader
> fastboot flash radio radio-tilapia-1231_0.18.0_0409.img
> fastboot reboot-bootloader
> fastboot -w update image-nakasig-jwr66y.zip
done!
Click to expand...
Click to collapse
Muchisimas Gracias!!!
eksasol said:
Why download from random place when you get it officially from Google: https://developers.google.com/android/nexus/images#occam
And if you open the package it has the bat script file that will run all the commands to flash the phone automatically, you just have to put it in fastboot mode and unlock the bootloader first, or you can read the script file and manually type in the commands.
Click to expand...
Click to collapse
Mine was the link from google. And I prefer to do it manually.
luiseteyo said:
Mine was the link from google. And I prefer to do it manually.
Click to expand...
Click to collapse
How do I flash stock Android without deleting any of my apps/data/settings?
Do I need to skip or remove any of those lines from the script??
The process will wipe your entire device. You have to back up your stuff and move it out of your phone. You can use the Helium app to back up apps data, if you don't have root you also need to install this http://www.clockworkmod.com/carbon for it to work.
You could leave your data alone and only flash certain partitions though. Don't run the scripts, do it all manually. Skip "fastboot erase userdata" which will wipe your apps data. Also skip "fastboot -w update image-nakasig-jwr66y.zip".
Extract the *.img files from "image-occam-jwr66y.zip" and flash them manually, skipping userdata.img of course, the other three files you want to flash would be:
fastboot flash boot boot.img
fastboot flash recovery recovery.img
fastboot flash system system.img
However, depending on the Android version and configuration, you might run into issues by doing this.
I'm trying to flash stock android from pure nexus, im in bootloader and have opened command prompt from the folder my images are in, I'm trying to use these commands i found on xda forum's guide to flash to stock
fastboot flash bootloader C:\angler\images\bootloader-angler-angler-xx.xx.img
fastboot reboot-bootloader
fastboot flash radio C:\angler\images\radio-angler-angler-xx.xx.img
fastboot reboot-bootloader
fastboot flash boot C:\angler\images\boot.img
fastboot erase cache
fastboot flash cache C:\angler\images\cache.img
fastboot flash recovery C:\angler\images\recovery.img
fastboot flash system C:\angler\images\system.img
fastboot flash vendor C:\angler\images\vendor.img
but im getting the error - 'fastboot' is not recognized as an internal or external command, operable program or batch file.
please help, how do i get through this :/
kalendaan said:
I'm trying to flash stock android from pure nexus, im in bootloader and have opened command prompt from the folder my images are in, I'm trying to use these commands i found on xda forum's guide to flash to stock
fastboot flash bootloader C:\angler\images\bootloader-angler-angler-xx.xx.img
fastboot reboot-bootloader
fastboot flash radio C:\angler\images\radio-angler-angler-xx.xx.img
fastboot reboot-bootloader
fastboot flash boot C:\angler\images\boot.img
fastboot erase cache
fastboot flash cache C:\angler\images\cache.img
fastboot flash recovery C:\angler\images\recovery.img
fastboot flash system C:\angler\images\system.img
fastboot flash vendor C:\angler\images\vendor.img
but im getting the error - 'fastboot' is not recognized as an internal or external command, operable program or batch file.
please help, how do i get through this :/
Click to expand...
Click to collapse
1) Is this on Windows, Linux, or Mac?
2) Were you able to unlock the bootloader on this same computer with no issues?
3) Are you getting this error after each fastboot command or just for "fastboot flash vendor"? If this is an error for any command, you should first update your platform-tools and fastboot.
kalendaan said:
I'm trying to flash stock android from pure nexus, im in bootloader and have opened command prompt from the folder my images are in, I'm trying to use these commands i found on xda forum's guide to flash to stock
fastboot flash bootloader C:\angler\images\bootloader-angler-angler-xx.xx.img
fastboot reboot-bootloader
fastboot flash radio C:\angler\images\radio-angler-angler-xx.xx.img
fastboot reboot-bootloader
fastboot flash boot C:\angler\images\boot.img
fastboot erase cache
fastboot flash cache C:\angler\images\cache.img
fastboot flash recovery C:\angler\images\recovery.img
fastboot flash system C:\angler\images\system.img
fastboot flash vendor C:\angler\images\vendor.img
but im getting the error - 'fastboot' is not recognized as an internal or external command, operable program or batch file.
please help, how do i get through this :/
Click to expand...
Click to collapse
Do you have the correct drivers and sdk files installed on your pc listed here? http://developer.android.com/sdk/index.html#download
kalendaan said:
I'm trying to flash stock android from pure nexus, im in bootloader and have opened command prompt from the folder my images are in, I'm trying to use these commands i found on xda forum's guide to flash to stock
fastboot flash bootloader C:\angler\images\bootloader-angler-angler-xx.xx.img
fastboot reboot-bootloader
fastboot flash radio C:\angler\images\radio-angler-angler-xx.xx.img
fastboot reboot-bootloader
fastboot flash boot C:\angler\images\boot.img
fastboot erase cache
fastboot flash cache C:\angler\images\cache.img
fastboot flash recovery C:\angler\images\recovery.img
fastboot flash system C:\angler\images\system.img
fastboot flash vendor C:\angler\images\vendor.img
but im getting the error - 'fastboot' is not recognized as an internal or external command, operable program or batch file.
please help, how do i get through this :/
Click to expand...
Click to collapse
You need to setup Android SDK tools on your PC. The generic process is by downloading, installing, and setting up the Android SDK. Once that is done, you should be good to go.
I have been trying to root my phone. I have been have problems with twrp. I have installed twrp through both the moto g5 plus toolkit and manually(command prompt and adb/adb fastboobt). I have had several problems with twrp. Firstly I can't seem to install it without wiping everything off my phone. Secondly twrp won't install stock rom, flash zip files and sometimes img files. Thirdly It keeps failing to mount data.
Every time I install TWRP I have to use the moto g5 plus toolkit flash stock rom so I can use my phone.
After flashing twrp I reboot to recovery mode, go to wipe, then "swipe to factory reset." I the go to reboot or reboot to recovery. Most of the installation instruction regarding twrp say to do this. The problem is I have to install/re-install stock rom in my phone via the toolkit because there is nothing on my phone but a twrp after I swipe factory reset an I can't get twrp to install stock rom.
Since I can't get twrp to install stock rom from a zip file I have to use the moto g5 plus toolkit which wipes twrp and flashes the stock rom.
After flashing stock rom I tried again and was prompted for a password. I don't have password and there was something about decryption on the screen. I hit cancel went to Wipe then Format Data and typed yes at the prompt. I went to reboot hit recovery(reboot to recovery). My phone was wiped clean and I had nothing but twrp on it again. I tried install stock rom off my sd but I got allot of errors( can't mount data, ect...) I tried to fix this by using twrp to flash an install img of the latest version of twrp. This did not fix the problem.
I can't use twrp to install stock rom, or zips nor can I install twrp without having to flash stock rom and erase twrp from my phone because installing twrp removes everything and renders my phone useless. Every time I install twrp I'm left with nothing but twrp on my phone. Everything is wiped there is nothing there but twrp.
Could someone please tell me how to install twrp without wiping my phone completely and how to get around the problems I have been having. I have tried several different things but I can't fix the mount error nor can I get twrp to install stock rom. I just can't figure this out.
I have attached several screenshot below. If you are willing to help please take a look at them.
first of all stop using that toolkit. if you were flashing stock rom the right way you wouldnt be replacing recovery.
follow these steps PRECICELY
1. download the actual stock xml.zip and extract it
2. inside the folder make a txtfile called flash rom and rename it to flashrom.bat
2a. right click and select edit, paste this into notepad ans save it (as a .bat --important)
Code:
@echo off
mfastboot oem fb_mode_set
mfastboot flash partition gpt.bin
mfastboot flash bootloader bootloader.img
mfastboot flash boot boot.img
mfastboot flash recovery twrp.img
mfastboot flash dsp adspso.bin
mfastboot flash oem oem.img
mfastboot flash system system.img_sparsechunk.0
mfastboot flash system system.img_sparsechunk.1
mfastboot flash system system.img_sparsechunk.2
mfastboot flash system system.img_sparsechunk.3
mfastboot flash system system.img_sparsechunk.4
mfastboot flash system system.img_sparsechunk.5
mfastboot flash modem NON-HLOS.bin
mfastboot erase modemst1
mfastboot erase modemst2
mfastboot flash fsg fsg.mbn
mfastboot flash recovery twrp.img
mfastboot oem fb_mode_clear
pause
mfastboot reboot
3. https://forum.xda-developers.com/attachment.php?attachmentid=2427667&d=1385958280 download this and extract all files into where the stock xml.zip is extracted
4. place the twrp youre trying to use (should be the 64bit one from the 64bit thread) in the place you extracted the xml.zip named twrp.img
5. double click the batch file (flash rom.bat) and let it finish (ignore any errors about signature verification and/or corrupt image). when the flash is done it will say "press any key to continue" once you press a key it will reboot your phone, MAKE SURE YOU ARE HOLDING VOLUME DOWN WHILE YOUR PHONE REBOOTS FOR THE FIRST TIME AFTER THE FLASH
6. at this point you WILL have twrp, AND STOCK ROM. THIS IS A PROBLEM. stock rom will replace twrp at first boot, heres how to solve that, first by decrypting data:
6A. wipe cahce SPECIFICALLY by going to wipe, selecting advanced wipe, check cache, and then tap repair or change file system. then tap change file system then ext4 and swipe to apply
6B go back to twrp's main menu and tap reboot>recovery
6C. once back in recovery wipe data SPECIFICALLY by going to wipe, selecting advanced wipe, check data, and then tap repair or change file system. then tap change file system then f2fs and swipe to apply; reboot to recovery again
7. at this point you are running stock rom, decrypted, and have twrp BUT STOCK ROM WILL STILL REPLACE TWRP IF YOU BOOT, the easiest way to do this is by flashing magisk.
thats it, you should be at stock rooted decrypted with magisk and twrp.
8. come back if that doesnt work. but it should, i literally did the whole process while writing this to make sure i didnt steer you in the wrong direction
Ae3NerdGod said:
2. make a txtfile inside the folder called flash rom and rename it to flashrom.bat
Click to expand...
Click to collapse
The stock rom I downloaded doesn't have a folder call flash rom in it. Is the folder you extracted the Stock Rom called flash rom or should there be a folder called flash rom be in my extracted stock rom folder.
place the twrp youre trying to use (should be the 64bit one from the 64bit thread) in the place you extracted the xml.zip named twrp.img
Click to expand...
Click to collapse
I don't have an xml.zip name twrp.img. I have an image file.(img) not a zip name twrp.img. Did you mean place the twrp image file into the extracted xml.zip.
Would it be easier to place the replace the recovery.img in the extracted xml.zip with the twrp.img and then rename the twrp.img recovery(basicaly replace the recovery.img in the zip with twrp).
no, name the txtfile flash rom, i see the ambiguity though. ill reword it:
inside the folder make a txtfile called flash rom and rename it to flashrom.bat
Click to expand...
Click to collapse
also i meant to name the twrp image file you are using to "twrp.img" and drop it in the folder that contains all the files youve extracted from the xml.zip
and no, it wouldnt be easier because the batch file i wrote flashes "twrp.img" to recovery
attached is roughly what your xml.zip directory should look like (ive deleted a couple unneeded files you do not have to also)
I did everything correctly however when I run the batch file(flashrom.bat) the command prompt displays <waiting for device> and nothing happens.
I have developer setting enabled and usb debugging and my boot loader is unlocked(oem unlocking enabled). I have all the correct drivers for my phone and adb installed on my computer. I do not know why it cannot detect my phone.
:|
Why make it difficult and act like a ****. There no reason to make a .bat file or removing anything. Keep it simple FFS.
This >>> "mirrors . lolinet.com /firmware /moto /potter /official /RETAIL /POTTER_RETAIL_ 7.0_NPN25.137-92 _cid50_subsidy- DEFAULT_regulatory-DEFAULT_CFC .xml .zip" is the Nov 1st firmware for retus, assuming you have that. Extract "mega . nz / #!dqwE1ZJT!OA9N1pxNnDAs9UVkeiVKoVIkvSrZQNWUyKvtORB3" to your desktop for easy access, they are standalone adb/fastboot files. Now take the firmware and extract that into the folder with the adb/fastboot files. Press Shift+Right-click in the folder and choose "open command window here." Make sure you're phone is connected to your PC in bootloader mode. Run "adb shell" and let adb load. Then run "fastboot devices" to assure your device is being discovered. Now you can start manually entering or copy+pastaing the commands to install the firmware one line at a time after the previous command finishes. If you get an error after the "fastboot reboot" reboot, turn your phone off and on again. It should boot up just fine.
EXTREMELY sorry for breaking up the links. I'm not a huge poster and XDA only allows links after 10 posts. so just rebuild the links with h t t p s : / / ahead of them. Stupid rules.
I literally just did this myself because I'm unlocked with a custom kernal, so I do OEM updates manually. It's a slightly tedious task but you can see that everything is installs properly.
If you're not on retus, my time isn't in vein, we can find get the firmware for your device. Here's the commands: Some might say parts are unnecessary, but when you're not sure what's what, it's best to stick with the normal commands.
fastboot oem fb_mode_set
fastboot flash partition gpt.bin
fastboot flash bootloader bootloader.img
fastboot flash logo logo.bin
fastboot flash boot boot.img
fastboot flash recovery recovery.img
fastboot flash dsp adspso.bin
fastboot flash oem oem.img
fastboot flash system system.img_sparsechunk.0
fastboot flash system system.img_sparsechunk.1
fastboot flash system system.img_sparsechunk.2
fastboot flash system system.img_sparsechunk.3
fastboot flash system system.img_sparsechunk.4
fastboot flash modem NON-HLOS.bin
fastboot erase modemst1
fastboot erase modemst2
fastboot flash fsg fsg.mbn
fastboot erase cache
fastboot erase userdata
fastboot erase customize
fastboot erase clogo
fastboot oem fb_mode_clear
fastboot reboot
ALSO: Install twrp after you've booted up once, not with the firmware. To make it simple drop the twrp.img into its own folder with the adb/fastboot files, run command prompt with the folder the same way you did before and enter these commands:
adb shell
fastboot devices
fastboot flash recovery twrp.img
fastboot reboot recovery
If theres's s password when twrp loads, cancel writing and wipe your data only. Then reboot back into TWRP again before rebooting the system.
Hope this helps and goes smooth for you.
User0666 said:
Extract "mega. nz/#!dqwE1ZJT!OA9N1pxNnDAs9UVkeiVKoVIkvSrZQNWUyKvtORB3"
Click to expand...
Click to collapse
When I go to the above site I get a message asking for a Decryption Key. I don't know what the decryption key is. You a said that the download was a standalone add/fastboot package. Is the stand alone files you were referring to the same as the googles standalone platform-tools for Android.
Also my moto g5 plus is on retus but it is currently running on Potter NPN 25.137-35. I am going to assume that firmware you said to use(Potter NPN 25.137-92) will work.
Ae3NerdGod said:
first of all stop using that toolkit. if you were flashing stock rom the right way you wouldnt be replacing recovery.
follow these steps PRECICELY
1. download the actual stock xml.zip and extract it
2. inside the folder make a txtfile called flash rom and rename it to flashrom.bat
2a. right click and select edit, paste this into notepad ans save it (as a .bat --important)
Code:
@echo off
mfastboot oem fb_mode_set
mfastboot flash partition gpt.bin
mfastboot flash bootloader bootloader.img
mfastboot flash boot boot.img
mfastboot flash recovery twrp.img
mfastboot flash dsp adspso.bin
mfastboot flash oem oem.img
mfastboot flash system system.img_sparsechunk.0
mfastboot flash system system.img_sparsechunk.1
mfastboot flash system system.img_sparsechunk.2
mfastboot flash system system.img_sparsechunk.3
mfastboot flash system system.img_sparsechunk.4
mfastboot flash system system.img_sparsechunk.5
mfastboot flash modem NON-HLOS.bin
mfastboot erase modemst1
mfastboot erase modemst2
mfastboot flash fsg fsg.mbn
mfastboot flash recovery twrp.img
mfastboot oem fb_mode_clear
pause
mfastboot reboot
3. https://forum.xda-developers.com/attachment.php?attachmentid=2427667&d=1385958280 download this and extract all files into where the stock xml.zip is extracted
4. place the twrp youre trying to use (should be the 64bit one from the 64bit thread) in the place you extracted the xml.zip named twrp.img
5. double click the batch file (flash rom.bat) and let it finish (ignore any errors about signature verification and/or corrupt image). when the flash is done it will say "press any key to continue" once you press a key it will reboot your phone, MAKE SURE YOU ARE HOLDING VOLUME DOWN WHILE YOUR PHONE REBOOTS FOR THE FIRST TIME AFTER THE FLASH
6. at this point you WILL have twrp, AND STOCK ROM. THIS IS A PROBLEM. stock rom will replace twrp at first boot, heres how to solve that, first by decrypting data:
6A. wipe cahce SPECIFICALLY by going to wipe, selecting advanced wipe, check cache, and then tap repair or change file system. then tap change file system then ext4 and swipe to apply
6B go back to twrp's main menu and tap reboot>recovery
6C. once back in recovery wipe data SPECIFICALLY by going to wipe, selecting advanced wipe, check data, and then tap repair or change file system. then tap change file system then f2fs and swipe to apply; reboot to recovery again
7. at this point you are running stock rom, decrypted, and have twrp BUT STOCK ROM WILL STILL REPLACE TWRP IF YOU BOOT, the easiest way to do this is by flashing magisk.
thats it, you should be at stock rooted decrypted with magisk and twrp.
8. come back if that doesnt work. but it should, i literally did the whole process while writing this to make sure i didnt steer you in the wrong direction
Click to expand...
Click to collapse
I'm in a similar position... how ever I have no issue mounting my phone. I follow your steps to the T and I end up with my phone failing to load the operating system....Can you please let me know what I can do? I'm on the XT1687. If I try to flash other roms I get a TWRP error 255...
---------- Post added at 12:02 PM ---------- Previous post was at 11:49 AM ----------
bboygmoney said:
I'm in a similar position... how ever I have no issue mounting my phone. I follow your steps to the T and I end up with my phone failing to load the operating system....Can you please let me know what I can do? I'm on the XT1687. If I try to flash other roms I get a TWRP error 255...
Click to expand...
Click to collapse
OMG If you were here I'd kiss you!!!! Fixed. Had to wipe system then I believe i had the wrong firmware....Thank you soo!!!!!!!!
I followed the instructions, but I can't boot to anything except TWRP. No matter what I select in the reboot menu, the phone reboots to TWRP.
salsolomon said:
I followed the instructions, but I can't boot to anything except TWRP. No matter what I select in the reboot menu, the phone reboots to TWRP.
Click to expand...
Click to collapse
Open up adb command window and type these three commands,
Code:
adb devices
adb shell
dd if=/dev/zero of=/dev/block/platform/soc/7824900.sdhci/by-name/misc
Then reboot.