5,599,033 Members 31,445 Now Online
XDA Developers Android and Mobile Development Forum

Charge the X+ from the bootloader

Tip us?
 
Lloir
Old
(Last edited by Lloir; 19th December 2013 at 12:54 PM.)
#1  
Recognized Contributor / Recognized Developer - OP
Thanks Meter 6429
Posts: 5,033
Join Date: Mar 2009

 
DONATE TO ME
Default Charge the X+ from the bootloader

So this is a last resort on how to charge your device if you meet the following conditions:

can't reboot into recovery (for whatever reason)
can't flash a new recovery or boot.img onto the device due to battery being too low
No rom or a bootable one
And unable to flash RUU (need's 30%+ battery for RUU)

so here goes (and this is tested on my ATT X+ as i met the above conditions)

Quote:
Originally Posted by floepie;26192390

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
"[/code]
epic thanks to this thread and @floepie for posting it in the HOX section
The Following 7 Users Say Thank You to Lloir For This Useful Post: [ Click to Expand ]
 
veget83
Old
#2  
Member
Thanks Meter 1
Posts: 61
Join Date: Jan 2008
Location: marche,italy
Goood news!!

Inviato dal mio HTC One X+ utilizzando Tapatalk
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes