FORUMS
Remove All Ads from XDA

SOLVED: Stuck in fastboot with low battery. Use this BATCH file!

1,966 posts
Thanks Meter: 449
 
By floepie, Senior Member on 17th May 2012, 01:01 AM
Post Reply Email Thread
You have a problem when you have ALL of the following conditions met:

1. Your battery level is below 3.68 V (3680 mV) (about 10% charged).
2. You have a custom recovery on the recovery partition AND a custom ROM on the system partition.
3. You have just re-locked your bootloader and you can't re-unlock it because your battery is too low (less than 10%).

Here's the problem: If you want to use a RUU, you need about 30% battery. But, if you have less than that, you need to charge it. But the problem is, you can't charge it because you can't boot your phone into either recovery or the ROM itself in order to accept a charge. A re-locked bootloader will NOT allow you to boot either into the custom recovery or the custom ROM. And, you cannot charge your phone in fastboot. Additionally, you cannot re-unlock your bootloader because your phone has even less than 10% charge (3.68 V). If you have between 10% and 30%, then simply re-unlock your bootloader and boot into recovery and charge as normal to a level somewhere above 30% if you want to flash an RUU. But, if your battery is below 10%, then you will need to bring it back above 10% with the script below.

So you need the following script which power cycles your phone repeatedly in order to turn off your screen long enough to accept a charge. Once you reach 3.68 V, which is 10% charge, you're through the woods, so to speak, as you can then, re-unlock your bootloader.

Run the following script as a batch file while your phone is in USB fastboot mode.

Here is the script:
Code:
" @echo off
:start
fastboot getvar battery-voltage

fastboot reboot-bootloader

ping /n 6 localhost >nul

goto start
"
The Following 122 Users Say Thank You to floepie For This Useful Post: [ View ] Gift floepie Ad-Free
 
 
lmftmf
17th May 2012, 01:49 AM |#2  
Guest
Thanks Meter: 0
 
More
Quote:
Originally Posted by floepie

My battery is low and is in bootloader/flashboot mode. I've relocked the bootloader in preparation to flash the newest RUU. The bootloader won't allow the phone to boot with its custom ROM.

I have the phone plugged in and I can't turn the screen off. The LED is showing red, but is the phone actually charging in order to either flash the RUU or re-unlock the bootloader?

Is there a way to see the battery status? I hope I'm not screwed here.

You need to reunlock and flash this recovery http://forum.xda-developers.com/show....php?t=1594819 to charge the device then re lock and run ruu. Just give it about a half an hour or so on charge.
17th May 2012, 01:54 AM |#3  
floepie's Avatar
OP Senior Member
Flag Amsterdam
Thanks Meter: 449
 
More
Quote:
Originally Posted by lmftmf

You need to reunlock and flash this recovery http://forum.xda-developers.com/show....php?t=1594819 to charge the device then re lock and run ruu. Just give it about a half an hour or so on charge.

Thanks but I can't reunlock with the *.bin. It fails with the report that battery is too low!

Any other ideas?
The Following User Says Thank You to floepie For This Useful Post: [ View ] Gift floepie Ad-Free
lmftmf
17th May 2012, 02:00 AM |#4  
Guest
Thanks Meter: 0
 
More
Quote:
Originally Posted by floepie

Thanks but I can't reunlock with the *.bin. It fails with the report that battery is too low!

Any other ideas?

Uhh ohh. Tat not goood. Refer to this thread http://forum.xda-developers.com/show....php?t=1609190
Quote:
Originally Posted by Setsuna666

IMPORTANT: You must flash the new version of ClockWorkMod in order to be able to recharge the phone while off and from recovery. So, flash the new recovery and this problem will NOT happen.

The Following User Says Thank You to For This Useful Post: [ View ] Gift Ad-Free
17th May 2012, 09:14 AM |#5  
floepie's Avatar
OP Senior Member
Flag Amsterdam
Thanks Meter: 449
 
More
I can't get into CWM (even the latest) with a locked bootloader.
The Following User Says Thank You to floepie For This Useful Post: [ View ] Gift floepie Ad-Free
17th May 2012, 02:52 PM |#6  
floepie's Avatar
OP Senior Member
Flag Amsterdam
Thanks Meter: 449
 
More
SOLVED!
This little bad boy of a batch file saved my life. I was in a situation where my phone had a custom ROM with a re-locked bootloader and a low battery. The battery cannot be charged while in fastboot, and there was too little charge to re-unlock the bootloader. If you have a custom ROM with a custom recovery (CWM) and a locked bootloader, you cannot get into recovery.

In any case, if you create a batch file with the following contents, you can make your phone continually boot indefinitely, which allows the screen to be off sufficiently long enough between boots that the battery begins to charge. And, when voltage apparently approaches 3.68V, you have enough charge to re-unlock the bootloader and charge normally without the phone's screen in fastboot continually on.

" @echo off
:start
fastboot getvar battery-voltage

fastboot reboot-bootloader

ping /n 6 localhost >nul

goto start
"

Source: http://forum.xda-developers.com/show....php?t=1643483
The Following 15 Users Say Thank You to floepie For This Useful Post: [ View ] Gift floepie Ad-Free
17th May 2012, 03:20 PM |#7  
wolfraim's Avatar
Senior Member
Flag Santiago
Thanks Meter: 78
 
Donate to Me
More
Quote:
Originally Posted by floepie

This little bad boy of a batch file saved my life. I was in a situation where my phone had a custom ROM with a re-locked bootloader and a low battery. The battery cannot be charged while in fastboot, and there was too little charge to re-unlock the bootloader. If you have a custom ROM with a custom recovery (CWM) and a locked bootloader, you cannot get into recovery.

In any case, if you create a batch file with the following contents, you can make your phone continually boot indefinitely, which allows the screen to be off sufficiently long enough between boots that the battery begins to charge. And, when voltage apparently approaches 1.68V, you have enough charge to re-unlock the bootloader and charge normally without the phone's screen in fastboot continually on.

" @echo off
:start
fastboot getvar battery-voltage

fastboot reboot-bootloader

ping /n 6 localhost >nul

goto start
"

Source: http://forum.xda-developers.com/show....php?t=1643483


you can charge the battery in the "HTC QUIETLY BRILLIANT" screen, this is not necessary.
The Following User Says Thank You to wolfraim For This Useful Post: [ View ] Gift wolfraim Ad-Free
17th May 2012, 03:26 PM |#8  
floepie's Avatar
OP Senior Member
Flag Amsterdam
Thanks Meter: 449
 
More
Quote:
Originally Posted by wolfraim

you can charge the battery in the "HTC QUIETLY BRILLIANT" screen, this is not necessary.

Uh, no. Can you remove your post? You can't get to that screen when the following conditions are met: low battery, a newly re-locked bootloader, custom recovery/ROM. The locked bootloader prevents you getting beyond fastboot. Read my source, and you will see other threads where this batch file was posted and where you can't get past an immediate fastboot screen.
The Following 3 Users Say Thank You to floepie For This Useful Post: [ View ] Gift floepie Ad-Free
27th May 2012, 08:24 AM |#9  
androidjedi's Avatar
Senior Member
Thanks Meter: 5
 
More
Thumbs up
Quote:
Originally Posted by floepie

This little bad boy of a batch file saved my life. I was in a situation where my phone had a custom ROM with a re-locked bootloader and a low battery. The battery cannot be charged while in fastboot, and there was too little charge to re-unlock the bootloader. If you have a custom ROM with a custom recovery (CWM) and a locked bootloader, you cannot get into recovery.

In any case, if you create a batch file with the following contents, you can make your phone continually boot indefinitely, which allows the screen to be off sufficiently long enough between boots that the battery begins to charge. And, when voltage apparently approaches 1.68V, you have enough charge to re-unlock the bootloader and charge normally without the phone's screen in fastboot continually on.

" @echo off
:start
fastboot getvar battery-voltage

fastboot reboot-bootloader

ping /n 6 localhost >nul

goto start
"

Source: http://forum.xda-developers.com/show....php?t=1643483

thanks
27th May 2012, 03:36 PM |#10  
Junior Member
Thanks Meter: 0
 
More
Quote:
Originally Posted by floepie

This little bad boy of a batch file saved my life. I was in a situation where my phone had a custom ROM with a re-locked bootloader and a low battery. The battery cannot be charged while in fastboot, and there was too little charge to re-unlock the bootloader. If you have a custom ROM with a custom recovery (CWM) and a locked bootloader, you cannot get into recovery.

In any case, if you create a batch file with the following contents, you can make your phone continually boot indefinitely, which allows the screen to be off sufficiently long enough between boots that the battery begins to charge. And, when voltage apparently approaches 1.68V, you have enough charge to re-unlock the bootloader and charge normally without the phone's screen in fastboot continually on.

" @echo off
:start
fastboot getvar battery-voltage

fastboot reboot-bootloader

ping /n 6 localhost >nul

goto start
"

Source: http://forum.xda-developers.com/show....php?t=1643483


Hi, sorry for my english but is translated by google.

Even I have the problem of the battery, I can not do any flash (recovery, ruu etc.).
I created the batch file by copying exactly what you've written, no ", correct?
I started the file and I get continuous

<Waiting for device>
battery-voltage: 2749mV
finished. total time: 0.153s
rebooting into bootloader ...

every time the phone goes off and reads:

<Waiting for device>
battery-voltage: 2749mV
finished. total time: 0.153s
rebooting into bootloader ...
FAILED (status read failed (Too many links))
finished. total time: 0.238s
<Waiting for device>

again after 1 minute.
Is this normal? the file I do go for 1 or 2 hours continuously?

thank you
27th May 2012, 04:01 PM |#11  
floepie's Avatar
OP Senior Member
Flag Amsterdam
Thanks Meter: 449
 
More
Yes, the batch file forces the phone to continue to boot over and over again, and you will see the voltage increasing over time. But, you have enough battery to re-unlock the bootloader. Just go to htcdev.com to re-unlock it, or just flash an RUU to update your radio.

Why are you running this batch file when you have enough battery power?

This batch file is only for those whose battery is low and therefore cannot re-unlock the bootloader and have a cutom ROM with a relocked bootloader.
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes