Fastboot and recovery images - Nexus One Q&A, Help & Troubleshooting

Hi there, I am trying to figure out what the difference between fastboot and recovery images are? It seems to me that you can flash images and radios when you are in fastboot, so what is the point of running recovery images?
Also, is the recovery image something that runs ontop of fastboot?

Read the wiki.

Know-Fear said:
Read the wiki.
Click to expand...
Click to collapse
Neither the android 101 section nor the Nexus one/ Recovery images section of the wiki contain any information as to the differences between the 2 or how the recovery image loads, perhapes you can add that into the wiki?

Basically, I would say the biggest difference is functionality...
Fastboot has very limited "on board" options, but you can do a bit more when connected to a computer, and even more with an unlocked bootloader. You're pretty much limited to flashing images normally, and the unlocked bootloader allows you to also flash unofficial images. If your phone won't boot into the system or recovery, then fastboot might be your only option.
Recovery has more "on board" options, especially with the custom recoveries, where you can flash images, make and restore backups,and also create and format partitions (among other things), directly from the phone. Connected to a computer gives you a bit more flexibility, but not much (using adb to push apks direct to the phone, whereas from recovery on the phone, you need a flashable zip).
I do pretty much everything from my phone, since I'm not always near a computer. That means I rely on recovery and the terminal emulator for the most part. Once, I needed to hook up to the computer and use fastboot to flash a new recovery, because every other optiod failed...
For me, having a custom recovery is much more useful than unlocking the bootloader. Unlocking the bootloader just makes it a lot easier to install a custom recovery. I would even venture to say that most people go direct to installing a custom recovery after rooting, or after unlocking the bootloader. Even though you can install ROMs through fastboot, it's much easier to use recovery.
The other big difference is that unlocking the bootloader will wipe the memory, whereas rooting and installing a custom recovery won't erase your memory...

I see, thanks for explaining to me the differences, but does anyone know where the difference comes from??? Does the recovery image run ontop of fastboot and call functions from fastboot to achieve its backup options or what??? If not, could you simply remove fastboot to save memory and be left with just the recovery image which persumably has more functions anyways?

There's a bit of mis-information in this thread.
Fastboot is a binary that you execute on your computer. To be able to use it, your device needs to be booted into the bootloader. There is no "fastboot image". Most fastboot commands require an unlocked bootloader. The most used fastboot command is "flash" which lets you flash images to any of the partitions on your device.
A recovery image in the recovery partition is like a mini ROM which allows you to perform some tasks directly from that partition without booting into your ROM, like applying updates to your ROM and performing backups. Custom recoveries have more functionality than the stock recovery. To enter the recovery partition, you need to boot it through bootloader (generally).
adb is another binary that you execute on your computer. It is unrelated to fastboot. It allows, among other things, transfering of files to/from your device and running a shell.
flash_image is binary that you execute on your device, or on your computer using a shell (via adb). It allows you to flash images to most of the partitions on your device. This binary requires root access.

I see, thank you very much for clearing up this misunderstanding. I take it both fastboot and recovery images manipulate the bootloader to achieve flashing and backup capabilities? Since on default the USB support is disabled on the bootloader, which is why you need to unlock the bootloader first so that the fastboot can send its signals to the bootloader via USB. Since recovery images can directly manipulate the bootloader without the need of a USB, therefore you can do not need to unlock the bootloader to use recovery images.

xcmir said:
I see, thank you very much for clearing up this misunderstanding. I take it both fastboot and recovery images manipulate the bootloader to achieve flashing and backup capabilities? Since on default the USB support is disabled on the bootloader, which is why you need to unlock the bootloader first so that the fastboot can send its signals to the bootloader via USB. Since recovery images can directly manipulate the bootloader without the need of a USB, therefore you can do not need to unlock the bootloader to use recovery images.
Click to expand...
Click to collapse
I think you need to re-read my post.
1. There is no "fastboot image", so I don't know what you are talking about there.
2. A recovery image does not "manipulate" the bootloader.
3. USB support is not disabled on the bootloader.
Sent from my Nexus One using XDA App

efrant
Can you explain the bootloader a bit more?
The bootloader has two very similar screens. The only differences between the two screens are the four menu options, and one screen is labeled HBOOT, and the other FASTBOOT. I assumed these to be be two operating modes of the bootloader, since the fastboot binary will only work when the phone is at the FASTBOOT screen, and not the HBOOT?
How do you refer to, or distinguish between, these two "modes"?
Also, the screen labeled HBOOT has four menu options, the first one being FASTBOOT, which merely takes you to the second screen with the FASTBOOT label.
So, just for giggles, let's call the first screen/mode/thingy HBOOT, and the second FASTBOOT...
It's my understanding that the fastboot binary communicates with the FASTBOOT 'thingy' on the phone (both parts are known as fastboot). This is similar to the adb binary communicating with adbd on the phone...
Now, with that in mind, the OPs original question seems to be related to interfaces on the phone. Wouldn't it then be fair to assume that these two interfaces we're the recovery and the FASTBOOT 'thingy' (although I actually believe he was referring to the bootloader as a whole)?
Sent from my Nexus One using XDA App

danger-rat said:
efrant
Can you explain the bootloader a bit more?
The bootloader has two very similar screens. The only differences between the two screens are the four menu options, and one screen is labeled HBOOT, and the other FASTBOOT. I assumed these to be be two operating modes of the bootloader, since the fastboot binary will only work when the phone is at the FASTBOOT screen, and not the HBOOT?
How do you refer to, or distinguish between, these two "modes"?
Also, the screen labeled HBOOT has four menu options, the first one being FASTBOOT, which merely takes you to the second screen with the FASTBOOT label.
So, just for giggles, let's call the first screen/mode/thingy HBOOT, and the second FASTBOOT...
It's my understanding that the fastboot binary communicates with the FASTBOOT 'thingy' on the phone (both parts are known as fastboot). This is similar to the adb binary communicating with adbd on the phone...
Now, with that in mind, the OPs original question seems to be related to interfaces on the phone. Wouldn't it then be fair to assume that these two interfaces we're the recovery and the FASTBOOT 'thingy' (although I actually believe he was referring to the bootloader as a whole)?
Sent from my Nexus One using XDA App
Click to expand...
Click to collapse
As far as terminology goes, this is what I have read (and which makes sense to me): 1) the bootloader is the white screen with the three androids at the bottom. Yes, there are two screens, but so? It is just a menu in the bootloader, just like a menu in a ROM. It's the bootloader. 2) Fastboot is used to refer to the executable, not to the fastboot menu on the device.
Yes, I supposed you could consider a recovery an "interface", just like a ROM is an interface. Would I compare it to fastboot? Not really. Fastboot and adb are two interfaces to interact with your device from your computer. The ROM and recovery are two "interfaces" on your device itself...

Fastboot, or actually bootloader, is the part of the phone that loads when it's powered on. It also happens to have PC interface through USB and "fastboot" executable.
When it loads, it either allows user control or loads one of the bootable partitions. One such partition is ROM. The other is recovery. In fact, recovery is a small ROM with features for controlling the phone - flashing images etc. You might as well write a custom recovery that will allow you play Tetris. It's just another (but very small) ROM.

Related

Help! Stuck at HBOOT, need ideas/help!

Hi,
I bought a faulty Nexus one from ebay, thought I can fix it, as I did buy a faulty desire from ebay and was able to fix it. This time im not so lucky I guess.
So here it is:
The phone is stuck at X when booting normally.
I can access HBoot (But not Hboot USB Plug, because USB debugging is not enabled) and Fastboot USB. I unlocked Hboot. Fastboot in PC recognizes the phone but ADB does not as usb debugging is not enabled.
The phone is not Rooted
Here are my ideas so far:
Get somehow debugging on with some commands (No luck from reshearching in google)
Reflash stock rom with PASSIMG.ZIP in sdcard, but my phone does not recognize the file from my sdcard (I'm pretty certain im doing something wrong or my idea is somehow wrong)
Flash new images through FASTBOOT, but every time Signature check fails (Shipped-roms.com).
Root with superboot, but signature check failed here too.
Flash a recovery, signature check fails.
I will reguraly update my tries
Please suggest correction to my ideas or suggest new ones!
Help will be much appreciated!
I admit it, the phone might be briked, but I want to make sure that I have tried everything before I abandon this project.
And ofcourse I have no Warranty.
What file are you using for passimg.zip? Make sure it's not a zip inside a zip.
What images are you using via the fastboot flash command?
Sent from my Nexus One
You didn't unlock the bootloader, it seems - because if you did, it wouldn't be checking signatures, and you'd be able to flash anything.
First of thanks to both of you for helping.
I'm pretty sure that i do not have zip inside zip and I downloaded them from shipped roms.com -> android -> Passion-> PASSIMG_Google .... .ZIP, (Then renamed it ofcourse) Is there a difference what version of android i use?
The issue with this is, it checks the SD CARD and does not find anything. I have seen from google that the most common issue is that it starts to check the .zip file but then aborts. Does the SDCARD have to be a goldcard (I do have a goldcard but it might be faulty, right?)
I tried fastboot flash PASSIMG_Google.... .ZIP; Fastboot Flashall ( With having boot, recovery, system in my fastboot folder)
Maybe I should try to flash everything the .zip has in it seperately because that succeded for boot, system and recovery but I was too afraid to flash every partitation (Like Radio which seems to be the scariest and the most easiest way to brick phone)
For the third answer, I have ***UNLOCKED*** in bootloader in purple and top on the screen.
Once again thanks and keep suggesting!
Unpack the ZIP and flash each image separately.
Leave the radio as is, if it's updated enough (5.08 or 5.12). In any case, fastboot won't allow you to flash bad radio - and the risk of bricking the phone using fastboot is near 0.
For passimg.zip, you need to download the FRG33 shipped ROM from shipped-roms.com then EXTRACT the zip file that is inside the zip that you downloaded. Rename that file to passimg.zip
For fastboot, flash boot and system seperately.
When you boot the device normally, do you see the lock icon below the four colored x?
Sent from my Nexus One
Okay,
Did it one by one (PASSIMG_Passion_Google_WWE_2.16.1700.1_FRG33_release_signed.zip):
Succeeded:
Boot, Recovery, System and Userdata (that was only 3Kb)
Failed with signature check (Remote:Signature check failed):
Splash1, spcustom,
Did not do:
Radio
I'm going to post more details:
When booting up, it displays the X normally with the unlocking badge on the bottom of the screen and vibrates once. Then it goes black for a second or even less, the same images comes on and then it vibrates 6-7 times.
now that you successfully flashed the stock recovery, cam you boot into it?
Sent from my Nexus One
Nope, it does that what I described on the previous post
Oh and what's more it randomly during no activity being in fastboot vibrates as well for 5 times or so. It does this rarely but it's there
http://forum.xda-developers.com/showthread.php?t=710937
Thanks, Well thats it then for now, just have to figure out what to do now
Sounds like you need to get the PASSIMG.zip method to work, or unlock and flash a new recovery like amon ra, and flash a full rom with sig checks off.
siimplangi said:
Nope, it does that what I described on the previous post
Oh and what's more it randomly during no activity being in fastboot vibrates as well for 5 times or so. It does this rarely but it's there
Click to expand...
Click to collapse
Ok, but can you boot into recovery? In other words, boot into the bootloader and select recovery.
any solution?
efrant said:
Ok, but can you boot into recovery? In other words, boot into the bootloader and select recovery.
Click to expand...
Click to collapse
hi guys.i have exactly same situation.
does anyone have a solution fir this?
kobi_eidelman said:
hi guys.i have exactly same situation.
does anyone have a solution fir this?
Click to expand...
Click to collapse
Did you try all the solutions suggested above (passimg, fastboot flash, etc)? If yes then no I don't think so.

[Q] Missing trackball, Immersion MOTIV development platform

I just came into the possesion of an Immersion MOTIV development platform. You can see it here. http://www.engadget.com/2011/02/10/immersions-motiv-development-platform-integrates-haptics-into-a/
When I got it, it had CyanogenMod 6 RC installed along with the Immersion software. Being the tweaker I am I cracked open the case to see what it really was. Low and behold its a nexus one, but it is missing the trackball. Needless to say no trackball makes using stock Recover impossible, although I was able to use CWM v3 at one point with some weird button combos. I currently have OTA 2.3.4 installed, with the Superuser app from the 2.3.3, but SU is not working. I also have unlocked the bootloader.
So my questions are:
How can I use stock recovery with no trackball?
Is there a way to get root using Fastboot flash?
Is there a way to install custom rom's using Fastboot instead of recovery?
Is going back to 2.3.3 or below with a working root and using ROM Manager my only way of getting to 2.3.4 with root?
Thank you for your consideration.
If anyone would like to trade an official Nexus One for a very special Immersion MOTIV Development platform let me know.
If it is running CM6, maybe it embed "flash_image" binarie.
You could try fastboot flash_image ...
Maybe oem commands "fastboot update" or "fastboot push" will help, as bootloader is unlocked.
If you can get the system image in img format you will be able to flash it via fastboot. Nandroids typically create backups of each partition in img format, but that us of course a circular problem (unless you think an N1 backup will work).
The other option you may have is that you can send key press commands via adb. You can determine what key is touted to which command in recovery by using the key test option - again, a circular problem...
Finally, you may be able top smiley the key press via the sdk, though I'm not sure if it connects in recovery?
All guess work, and I've not tested any of this...

[Q] File recovery after soft-brick

I have an HTC One M7 on T-Mobile, v4.4.3, with a locked bootloader and no root access (never got around to rooting). So the phone is basically completely untouched from a developer standpoint. I had previously accessed the developer options and I'm pretty sure I left USB debugging checked although not 100% positive.
The past few days my phone has been randomly rebooting, and then today I randomly found it in a state of apparent upgrading even though there are no new OTA updates (I checked yesterday). Then it was "optimizing apps" and going through all of them. Then it rebooted and ever since that point it has been stuck on the HTC ONE logo and will not boot to the home screen. I'm able to access the bootloader (HBOOT 1.57). I'm also able to access the stock recovery, from which I wiped the partition cache and rebooted with no success.
I have a ton of pics and videos from the first year of my son's life on the phone and stupidly did not back them up. I really want to avoid doing a factory reset if possible. Is there any way to recover these files?
I installed minimal ADB and fastboot. From within fastboot on the phone, I can see my device when typing "fastboot devices" in the command prompt. However, it does not list any devices when I enter "adb devices" in the command prompt, regardless of whether my phone is in the bootloader, fastboot, recovery, or stuck on the logo screen. I reinstalled updated HTC drivers and also tried with a universal ADB driver. I've tried multiple usb cables and all USB 2.0 ports, using Windows 7. While in fastboot, when I connect my phone to PC via usb cable, the computer makes the typical sound that it does when a USB device is connected and unconnected, however no drive/mount shows up.
All I want to do is find my device somehow on the PC and extract my photos and videos. I was hoping to use "adb pull" to do this but it just won't find my device. At this point, unlocking the bootloader and installing a custom recovery will wipe all data anyway, correct? Is there any way that I can recover my data in this situation?
Any help would be greatly appreciated since I'm at a complete loss and losing this data would be terrible. Thanks so much in advance!
mac12383 said:
I have an HTC One M7 on T-Mobile, v4.4.3, with a locked bootloader and no root access (never got around to rooting). So the phone is basically completely untouched from a developer standpoint. I had previously accessed the developer options and I'm pretty sure I left USB debugging checked although not 100% positive.
The past few days my phone has been randomly rebooting, and then today I randomly found it in a state of apparent upgrading even though there are no new OTA updates (I checked yesterday). Then it was "optimizing apps" and going through all of them. Then it rebooted and ever since that point it has been stuck on the HTC ONE logo and will not boot to the home screen. I'm able to access the bootloader (HBOOT 1.57). I'm also able to access the stock recovery, from which I wiped the partition cache and rebooted with no success.
I have a ton of pics and videos from the first year of my son's life on the phone and stupidly did not back them up. I really want to avoid doing a factory reset if possible. Is there any way to recover these files?
I installed minimal ADB and fastboot. From within fastboot on the phone, I can see my device when typing "fastboot devices" in the command prompt. However, it does not list any devices when I enter "adb devices" in the command prompt, regardless of whether my phone is in the bootloader, fastboot, recovery, or stuck on the logo screen. I reinstalled updated HTC drivers and also tried with a universal ADB driver. I've tried multiple usb cables and all USB 2.0 ports, using Windows 7. While in fastboot, when I connect my phone to PC via usb cable, the computer makes the typical sound that it does when a USB device is connected and unconnected, however no drive/mount shows up.
All I want to do is find my device somehow on the PC and extract my photos and videos. I was hoping to use "adb pull" to do this but it just won't find my device. At this point, unlocking the bootloader and installing a custom recovery will wipe all data anyway, correct? Is there any way that I can recover my data in this situation?
Any help would be greatly appreciated since I'm at a complete loss and losing this data would be terrible. Thanks so much in advance!
Click to expand...
Click to collapse
unfortunately, you need a booted rom or a custom recovery to use adb commands, so you can't pull your files from the bootloader or from the stock recovery. You already wiped cache and tried to reboot... Not much you can do except maybe to try reflashing the firmware and see if your phone can boot. Can you post the output of "fastboot getvar all" except imei and serialno?
alray said:
unfortunately, you need a booted rom or a custom recovery to use adb commands, so you can't pull your files from the bootloader or from the stock recovery. You already wiped cache and tried to reboot... Not much you can do except maybe to try reflashing the firmware and see if your phone can boot. Can you post the output of "fastboot getvar all" except imei and serialno?
Click to expand...
Click to collapse
Thanks for the quick reply. Here's the info.
Would reflashing firmware require the bootloader to be unlocked? It wouldn't wipe my data?
mac12383 said:
Thanks for the quick reply. Here's the info.
Would reflashing firmware require the bootloader to be unlocked? It wouldn't wipe my data?
Click to expand...
Click to collapse
no with s-on, bootloader must be locked to flash firmware.
What you could try is to download the 6.10.531.9 RUU and extract the firmware.zip and flash it to your phone.
Firmware.zip must be in the same folder where adb and fastboot are then open a command prompt (minimal adb/fastboot):
Code:
fastboot oem rebootRUU
fastboot flash zip firmware.zip
fasboot reboot
If this doesn't work I think theres nothing we can do (to access your files) At least you can restore your phone using the complete RUU
alray said:
no with s-on, bootloader must be locked to flash firmware.
What you could try is to download the 6.10.531.9 RUU and extract the firmware.zip and flash it to your phone.
Firmware.zip must be in the same folder where adb and fastboot are then open a command prompt (minimal adb/fastboot):
Code:
fastboot oem rebootRUU
fastboot flash zip firmware.zip
fasboot reboot
If this doesn't work I think theres nothing we can do (to access your files) At least you can restore your phone using the complete RUU
Click to expand...
Click to collapse
Thanks, I'll give that a try soon, probably tomorrow, and let you know how it goes. Appreciate the help
mac12383 said:
Thanks, I'll give that a try soon, probably tomorrow, and let you know how it goes. Appreciate the help
Click to expand...
Click to collapse
I flashed it successfully, but unfortunately the phone still did not boot to the home screen. I'll hold off on wiping everything for a little longer in case anyone has any other ideas. Thanks for the help!
HTC and T-Mobile were of no help, as suspected. I guess I just find it strange that there's NO WAY to recover data from a soft bricked phone. If I was some big-time criminal who was arrested by the FBI and my phone was seized in this condition, their analysts would have no way of getting into my phone and recovering the data? Maybe I just watch too many crime shows, I don't know...but that seems a bit unbelievable. Is there no way to (carefully) take it apart and access the hard drive in some other way? I'm desperate...
mac12383 said:
HTC and T-Mobile were of no help, as suspected. I guess I just find it strange that there's NO WAY to recover data from a soft bricked phone. If I was some big-time criminal who was arrested by the FBI and my phone was seized in this condition, their analysts would have no way of getting into my phone and recovering the data?
Click to expand...
Click to collapse
Yes they would disassemble the phone, de-solder the emmc chip and extract its data which is not an easy task...
Maybe I just watch too many crime shows, I don't know...but that seems a bit unbelievable. Is there no way to (carefully) take it apart and access the hard drive in some other way? I'm desperate...
Click to expand...
Click to collapse
There is no hard drive in your phone, its a memory chip (emmc). It is soldered to the main board and can't be removed by the user.
see the chip highlighted in orange? This is where your data is stored.
If you can't boot to the OS, your bootloader is still locked, and you have already tried to erase cache and reflashed the firmware, afaik, there's nothing more you can try
alray said:
Yes they would disassemble the phone, de-solder the emmc chip and extract its data which is not an easy task...
There is no hard drive in your phone, its a memory chip (emmc). It is soldered to the main board and can't be removed by the user.
see the chip highlighted in orange? This is where your data is stored.
If you can't boot to the OS, your bootloader is still locked, and you have already tried to erase cache and reflashed the firmware, afaik, there's nothing more you can try
Click to expand...
Click to collapse
I was afraid of that. Thanks for all your help though

Stuck in Fastboot Flash mode, Developer options turned off

I've followed all of the steps from this guide: http://forum.xda-developers.com/showpost.php?p=56938530&postcount=1
I've got to the end where I am running the code snippets to flash everything, but everything fails. The error stated is FAILED: remote failure. I am not sure if this is related to my developer options being turned off, but I think it might be.
Is there a way to turn developer options on while in fastboot mode or perhaps a way around this error? The reason I am stuck in the fastboot is because the boot image can't be validated, I am not at the fastboot by choice, haha.
No. If your recovery is still stock, flash the Android N Preview 1 OTA or an Android 6.0.1 OTA image from Google. One of those will restore your Nexus to operating condition, and from there you can try again. If your recovery is TWRP, flash a custom ROM.
Strephon Alkhalikoi said:
No. If your recovery is still stock, flash the Android N Preview 1 OTA or an Android 6.0.1 OTA image from Google. One of those will restore your Nexus to operating condition, and from there you can try again. If your recovery is TWRP, flash a custom ROM.
Click to expand...
Click to collapse
I apologize for my ignorance since this is all new to me, but could you explain a few things to me.
Is this what you're referring to when you say Android N Preview 1 OTA: 'https://developer.android.com/preview/download.html'
Secondly, in order to flash these, am I still following the steps I was before, or should I be following a new set of steps?
You don't need the N Preview anymore. Download your Android 6.0.1 image from the Google page and flash using the instructions given on that page.
I went to the page and followed the directions. Still doesn't work. The flash-all script reboots after the first two commands, which lock the phone. But even then, it is still giving the error FAILED:remote failure.
me too!
I seem to be having the exact same issue! i just bought a Nexus 6 online that wasn't booting, it would only show a green led when plugged in. so here I am doing everything I can think of to fix the issue but then I get hit with the "remote failure" when i try to oem unlock the bootloader! (and since the phone wont't boot i can't check the "unlock bootloader" box in the developer options) so yeah I am going to keep researching this but if anyone has any good ideas about to get around the bootloader being locked please jump right in.
anyways I may have deeper issues, the battery will not charge. i know this because when i load up the fastboot menu, which i have to do by holding the buttons while plugging it in, it should say battery charging but all it says is battery ok
I also can't load recovery because when im in the fastboot menu and i choose recovery the phone freezes and the green led comes back on... *sigh*
They have the full ota packages posted on Google site now you can and push through the stock recovery
Here just make sure you get the shame version
https://developers.google.com/android/nexus/ota#hammerhead
Sent from my Nexus 6 using XDA-Developers mobile app
I have the OTA. I also installed Wugs toolkit.
My phone is in fastboot mode due to the boot image not being able to be validated. I didn't voluntarily open up fastboot using the shortcut.
The phone is UNLOCKED until bootloader is rebooted, then it is LOCKED. If I click start, it becomes UNLOCKED again. Wug's toolkit tries to UNLOCK the phone even while the phone says it is UNLOCKED. I don't think the phone is actually UNLOCKED, however whenever it tells me it is UNLOCKED, I try to proceed with flashing and it gives me a remote failure message on each command.
The next thing I am going try is the drivers and Wug's toolkit has a driver option, so I will try that. Besides the drivers, any other ideas?
You seem to be inexperienced in rooting Android devices. If you aren't, I apologize for the assumption. However, you should learn how to use adb and fastboot without relying on the toolkit. Toolkits tend to hide diagnostic messages that adb and fastboot generate while running. This missing information makes solving problems much more difficult.
Strephon Alkhalikoi said:
You seem to be inexperienced in rooting Android devices. If you aren't, I apologize for the assumption. However, you should learn how to use adb and fastboot without relying on the toolkit. Toolkits tend to hide diagnostic messages that adb and fastboot generate while running. This missing information makes solving problems much more difficult.
Click to expand...
Click to collapse
I am inexperienced, I stated that earlier. I have check a bunch of different forum posts and a bunch of different guides. Nothing seems to be helping and it seems like such a simple problem, a boot image that can't be validated. I am not trying to do anything special with my phone, I am just trying to get it to work. I woke up and it was stuck in this 'AP Fastboot Flash Mode (Secure)' mode. It is very bare bones, not even similar to the screens within videos I have seen. One moment the phone says it's UNLOCKED, the next it's LOCKED.
You are the expert, I am not. I am merely following your directions and they don't seem to be working. I did some outside research, came to a toolkit. Toolkits are great for beginners, especially since they are UI built, are built by someone who knows the area of interest, which makes researching easier and more efficient, but on top of that, it seems to be getting me much farther than your advice, although nothing is successful at this moment.
Here is a little more context into my situation. My phone seems to be recognized by Fastboot, but not ADB (From what I found, fastboot will find devices in fastboot, and adb will find devices functioning normally, don't know how true that is.). In addition, my phone seems to switch from UNLOCKED TO LOCKED after reboots, but can become UNLOCKED again if I push ANY button. Every command I issue (i.e flash bootloader, flash radio, flash system, flash userdata) result in the message, FAILED:remote failure, which I am not sure how to avoid (I have googled, checked these forums, checked other forums and there doesn't seem to be much, if any documentation on the error), but I think it is related to the fact my developer options are turned OFF. My next course of action is to install new drivers (I checked my drivers which are said to be up to date, I also installed google USB driver through the sdk, but now I am going to look into an adb or universal driver?) and attempt to rerun everything successfully.
If you have any other ideas, or don't think its the drivers, feel free to bring it up.
As a couple of fellows said before, try this:
https://developers.google.com/android/nexus/ota
Flash a FULL OTA from the link above, not a factory image. To flash any OTA you don't need to be unlocked. I think you might be confusing the terms (with the OTA you don't have to flash anything using fastboot)
In the link there are the instructions, it's pretty straight forward and easy if you have the correct drivers installed.
OTA requires that u can startup into recovery, I cannot I can startup fastboot through key combo but when I go to select recovery the green led comes back on and the screen displaying the fastboot options remains static
I think the phone freezes because it does not appear to be able to use the battery. though there is a firm battery connection it will not charge or power on without being plugged in. maybe when I select recovery I can quickly unplug and replug the USB and maybe hold the power button to try to simulate a successful reboot.. idk just thinking aloud and working with what I got..
I also can not start in recovery mode and the OTA requires ADB, which isn't recognizing my device. I have also stated that I have followed those instructions, and nothing resulted from them, except the same messages I have been stating these last few posts.
I will try this first chance I get later tonight..
http://forum.xda-developers.com/nexus-6/help/solution-stuck-bootloop-locked-t3053783
Listen the ota doesn't get installed through fast boot, you have to select recovery through the fast boot then install the update by pushing it as bootloader does not need to be unlocked!
Sent from my Nexus 6 using XDA-Developers mobile app
holeindalip said:
Listen the ota doesn't get installed through fast boot, you have to select recovery through the fast boot then install the update by pushing it as bootloader does not need to be unlocked!
Sent from my Nexus 6 using XDA-Developers mobile app
Click to expand...
Click to collapse
Ok, well it seems we are at an impasse. You seem to think I can do something, so I am going to show some pictures of my screen. Its going to be blurry because I had to take it with my computer, so I apologize, but I will elaborate on each picture.
Qwertyismypw said:
Ok, well it seems we are at an impasse. You seem to think I can do something, so I am going to show some pictures of my screen. Its going to be blurry because I had to take it with my computer, so I apologize, but I will elaborate on each picture.
Click to expand...
Click to collapse
The first two pictures are when the phone is 'UNLOCKED'. The second two pictures are when the phone is 'LOCKED'. The moment I press anything in 'LOCKED' mode, the little android man goes away, and it becomes the first two pictures. WHENEVER I push a button in 'UNLOCKED' mode, nothing happens, except in the bootloader logs screen says, 'FAILED TO VALIDATE BOOT IMAGE RET -1'. I have done everything on that OTA page in every way possible. It has done me no good.
Ok, I made a little progress I think. Wugs toolkit allowed me to use TWRP on my phone and ADB is recognizing my phone now. There are a lot of options within TWRP though, so I am going to look through them all for anything relevant. Anything I should keep an extra eye out for?
If you can use twrp just download a custom ROM to your phone and move it over to SD card and flash it, then you will be able to boot and unlock the bootloader in developer ootions, that is your best bet, if you keep getting force closes after flashing a custom ROM your going to have to do a factory reset from within twrp
Sent from my Nexus 6 using XDA-Developers mobile app
holeindalip said:
If you can use twrp just download a custom ROM to your phone and move it over to SD card and flash it, then you will be able to boot and unlock the bootloader in developer ootions, that is your best bet, if you keep getting force closes after flashing a custom ROM your going to have to do a factory reset from within twrp
Sent from my Nexus 6 using XDA-Developers mobile app
Click to expand...
Click to collapse
I don't have an SD card, can I move it to the internal storage? And how exactly do I do this? I can't copy/paste anything into the phone (it says the phone doesn't actually exist, even though adb is recognizing it as in recovery) or do I sideload it? When I try to sideload it though, the device disappears (and device manager sees nexus 6 under other devices, but the driver isn't up to date and no drivers seem to work. I've tried the google usb driver with no luck.) and it won't allow me to sideload it.

SOFT BRICK using tool Xiaomi Mi A2

Hi guys, i need some help pleeease!
I was with the November security patch on my cell phone, I unlock the bootloader and went to use the friend tool (https://forum.xda-developers.com/mi-a2/how-to/mi-a2-toolkit-unlock-bootloader-root-t3834585) to activate the camera2api.
But it gave problem and the cell phone did not turn on, it was locked in the screen of android one.
So I downloaded the patched_boot.img from the version I was in and put it via fastboot. did not work.
Now, my phone is in this situation: I tried to use MiFlash (three versison: 2018528, 2017720 and 20151028) and they fail in the middle of the process, accusing "FAILED (command write failed (Unknown error))".
And: when I try to connect the cell phone normally, it shows the unlocked bootloader warning and goes straight to the fastboot, even without my request. This is strange. Perhaps because the system is damaged by the miflash unfinished
Obs: bootloader are unlocked and i can access twrp
If anyone can help me I will be very grateful and happy
What exactly did the "tool" do? I mean if you don't know that, pretty difficult to diagnose what's wrong...
AsItLies said:
What exactly did the "tool" do? I mean if you don't know that, pretty difficult to diagnose what's wrong...
Click to expand...
Click to collapse
Hi.
The tool (her topic link is up there) promised to activate camera2api without root my device (allowing OTAs in the future).
I believe she did a "temporary root" with a "temporary" boot.img just to activate the camera2api, and when it rebooted, it would return to normal boot.img without root. I do not know if I could explain it well.
The current issue is that it seems that the system is currently "destroyed or corrupted". Can not I reinstall the entire system through TWRP? Or something like this
Like I said, you don't know what it actually did. What it promised is one thing, what it did... another
That's the problem with 'tools'.
Have you tried doing a factory reset? Hold Vol up and power until it gets to Recovery (hopefully), if you do a quick press of vol up, that gets past the 'no command'. Then use vol up and down for selection and press power when on 'factory reset'.
It might work
AsItLies said:
Like I said, you don't know what it actually did. What it promised is one thing, what it did... another
That's the problem with 'tools'.
Have you tried doing a factory reset? Hold Vol up and power until it gets to Recovery (hopefully), if you do a quick press of vol up, that gets past the 'no command'. Then use vol up and down for selection and press power when on 'factory reset'.
It might work
Click to expand...
Click to collapse
You are right, friend.. this is the problems with tools! I never use tools with my A1 and past phones.. just this time :crying:
I tried the factory reset now. And it did not work, unfortunately. On the first attempt (I was in fastboot mode) he showed a white circle with the writing "ERASING" and then went back to the screen of Android One, and then I tried again Vol Up + Power and he appeared "No command" , and after I rebooted and tried again, nothing appears, it just restarts to the static screen of "Android One"
Another ideas?
erickxd said:
You are right, friend.. this is the problems with tools! I never use tools with my A1 and past phones.. just this time :crying:
I tried the factory reset now. And it did not work, unfortunately. On the first attempt (I was in fastboot mode) he showed a white circle with the writing "ERASING" and then went back to the screen of Android One, and then I tried again Vol Up + Power and he appeared "No command" , and after I rebooted and tried again, nothing appears, it just restarts to the static screen of "Android One"
Another ideas?
Click to expand...
Click to collapse
The only other thing I can think of would be to change the current slot. If that works you would be booted into the prior version of the OS vs the latest update you did.
In fastboot, do fastboot getvar current-slot
Depending on what that slot is, change it to the other one (can only be a or b)
thus fastboot set_active a (or b, whichever is not the current one)
then fastboot reboot - and hope it boots.
AsItLies said:
The only other thing I can think of would be to change the current slot. If that works you would be booted into the prior version of the OS vs the latest update you did.
In fastboot, do fastboot getvar current-slot
Depending on what that slot is, change it to the other one (can only be a or b)
thus fastboot set_active a (or b, whichever is not the current one)
then fastboot reboot - and hope it boots.
Click to expand...
Click to collapse
Well... fastboot don't recognize this command, he show the list of avaible commands
And i don't know why, but for now i can't boot in twrp.img
i'm going crazy :crying::crying::crying:
erickxd said:
Well... fastboot don't recognize this command, he show the list of avaible commands
And i don't know why, but for now i can't boot in twrp.img
i'm going crazy :crying::crying::crying:
Click to expand...
Click to collapse
That's probably because you have an old version of fastboot installed. Upgrade to the newest version, which should recognize dual slots.
dual slots are quite new.
AsItLies said:
That's probably because you have an old version of fastboot installed. Upgrade to the newest version, which should recognize dual slots.
dual slots are quite new.
Click to expand...
Click to collapse
Fastboot updated now! I changed the slot from B to A.
But doesn't work, unfortunately. After reboot, the phone can't boot and appears the screen asking between Try Boot Again or Factory Reset. I tried Factory Reset, but don't work =( return to the same screen.
What seems very strange to me, is the Miflash doesn't work. With my Mi A1 miflash ever save me
erickxd said:
Fastboot updated now! I changed the slot from B to A.
But doesn't work, unfortunately. After reboot, the phone can't boot and appears the screen asking between Try Boot Again or Factory Reset. I tried Factory Reset, but don't work =( return to the same screen.
What seems very strange to me, is the Miflash doesn't work. With my Mi A1 miflash ever save me
Click to expand...
Click to collapse
I've never used miflash, so no help there.
I'd try flashing the correct boot.img (for your software version). You can find the various boot images in the following link (don't forget to thank user ckpv5 for uploading these).
https://sourceforge.net/projects/others/files/Xiaomi_MiA2/
you would do fastboot flash boot_b boot.img
I'd suggest using b slot, as that was originally active. After flashing, set it back to active, try to reboot... then cross your fingers
AsItLies said:
I've never used miflash, so no help there.
I'd try flashing the correct boot.img (for your software version). You can find the various boot images in the following link (don't forget to thank user ckpv5 for uploading these).
https://sourceforge.net/projects/others/files/Xiaomi_MiA2/
you would do fastboot flash boot_b boot.img
I'd suggest using b slot, as that was originally active. After flashing, set it back to active, try to reboot... then cross your fingers
Click to expand...
Click to collapse
Doesn't work man.. I went to twrp and checking there in the "WIPES session", I saw that the SYSTEM partition is 0kb used and 0kb free. Appears to be entirely empty
Do not have a way to install the whole system via twrp?
erickxd said:
Doesn't work man.. I went to twrp and checking there in the "WIPES session", I saw that the SYSTEM partition is 0kb used and 0kb free. Appears to be entirely empty
Do not have a way to install the whole system via twrp?
Click to expand...
Click to collapse
No, I don't. But I can tell you, twrp is a recovery app. It shouldn't be in the boot slot. And, with dual slot configurations, there is no recovery partition. The other slot is now used to do a recovery.
In other words, the way we *used* to use twrp doesn't work on dual slot phones. I think that's a big part of the confusion people are having. While the boot images do have a small recovery part to them, it's not a separate partition.
If you're flashing boot.img, and setting that slot active, I've no idea how you're getting into twrp.
Since now your fastboot is working why don't you use miflash to flash official stock ROM
1. You need unlocked bootloader which you already have.
2. Run these command to unlock critical partition
fastboot flashing unlock_critical
3 . Download the official fastboot V9.6.14.0 ROM from
https://forum.xda-developers.com/mi-a2/how-to/ota-v9-6-5-0-odimife-t3823445
Or here
http://en.miui.com/getrom.php?r=353&m=yes&app=false
4. Install with miflash (you already know the how-to)
5. Once up & running, do OTA to latest
Later .. redo what you want to do like enable camera api2 with proper guide.
E.g: https://forum.xda-developers.com/mi-a2/how-to/how-to-enable-cam2api-simply-ota-t3858861
ckpv5 said:
Since now your fastboot is working why don't you use miflash to flash official stock ROM
1. You need unlocked bootloader which you already have.
2. Run these command to unlock critical partition
fastboot flashing unlock_critical
3 . Download the official fastboot V9.6.14.0 ROM from
https://forum.xda-developers.com/mi-a2/how-to/ota-v9-6-5-0-odimife-t3823445
Or here
http://en.miui.com/getrom.php?r=353&m=yes&app=false
4. Install with miflash (you already know the how-to)
5. Once up & running, do OTA to latest
Later .. redo what you want to do like enable camera api2 with proper guide.
E.g: https://forum.xda-developers.com/mi-a2/how-to/how-to-enable-cam2api-simply-ota-t3858861
Click to expand...
Click to collapse
Hello.
I've tried using Miflash several times (3 different versions), but it never ends, it end up with an error every time that he will copy the file system.img to the mobile phone (I analyzed the log).
The miflash divides the file system.img into 5 or 6 smaller parts to be able to transfer to the mobile phone, and in some of these parts gives error, everytime :crying:
AsItLies said:
No, I don't. But I can tell you, twrp is a recovery app. It shouldn't be in the boot slot. And, with dual slot configurations, there is no recovery partition. The other slot is now used to do a recovery.
In other words, the way we *used* to use twrp doesn't work on dual slot phones. I think that's a big part of the confusion people are having. While the boot images do have a small recovery part to them, it's not a separate partition.
If you're flashing boot.img, and setting that slot active, I've no idea how you're getting into twrp.
Click to expand...
Click to collapse
I can access twrp when I flash ''fastboot boot twrp.img" in powershell, so until the next reboot I have access to twrp
erickxd said:
Hello.
I've tried using Miflash several times (3 different versions), but it never ends, it end up with an error every time that he will copy the file system.img to the mobile phone (I analyzed the log).
The miflash divides the file system.img into 5 or 6 smaller parts to be able to transfer to the mobile phone, and in some of these parts gives error, everytime :crying:
Click to expand...
Click to collapse
When I read your post here - https://forum.xda-developers.com/showpost.php?p=78085858&postcount=188
"flashing is not allowed for critical partitions" usually due to critical partitions not unlocked. So .. if you already run "fastboot flashing unlock_critical" and you still have error using miflash .. nothing much I can offer to help. Hopefully you'll be able to fix it.
ckpv5 said:
When I read your post here - https://forum.xda-developers.com/showpost.php?p=78085858&postcount=188
"flashing is not allowed for critical partitions" usually due to critical partitions not unlocked. So .. if you already run "fastboot flashing unlock_critical" and you still have error using miflash .. nothing much I can offer to help. Hopefully you'll be able to fix it.
Click to expand...
Click to collapse
Hmm thanks for the answer!
Even when the operation fails after transfer a couple of archives before the system.img??? (on the Miflash)
If my phone was locked, Miflash could transfer these couple of archives before the operation fails?? Or if bootloader is locked, zero files can be passed by Miflash, and the error is apresented at the beginning of the operation?
Have you successfully unlocked critical partitions?
If yes, try to run flash_all.bat from the official stock image you downloaded. No need to use MiFlash.
prokaryotic cell said:
Have you successfully unlocked critical partitions?
If yes, try to run flash_all.bat from the official stock image you downloaded. No need to use MiFlash.
Click to expand...
Click to collapse
well... When I just run flash_all.bat from the stock image folder, the .bat file will recognize that I am running it for the connected mobile?
how exactly should I run flash_all.bat? just double clicking it in stock image folder? or should I copy the .bat to /adb folder and open power shell prompt in adb folder and execute the .bat from there? sorry for my ignorance
Can you show me, please?
erickxd said:
well... When I just run flash_all.bat from the stock image folder, the .bat file will recognize that I am running it for the connected mobile?
how exactly should I run flash_all.bat? just double clicking it in stock image folder? or should I copy the .bat to /adb folder and open power shell prompt in adb folder and execute the .bat from there? sorry for my ignorance
Can you show me, please?
Click to expand...
Click to collapse
Before someone can explain that, why don't you answer the question asked .. in fact at least 3 people was asking/telling ...
"Have you successfully unlocked critical partitions?"
Without the proper answer from you, not easy to help.

Categories

Resources