FORUMS
Remove All Ads from XDA
Post Reply Email Thread
RECOVERY FROM BOOT LOOP/BRICK


Most people use the term "bricked" improperly. A bricked phone means one thing: your phone won't turn on in any way, shape or form, and there's Probably nothing you can do to fix it. It is, for all intents and purposes, as useful as a brick. A phone stuck in a boot loop is not bricked, nor is a phone that boots straight into recovery mode. These are things you can usually fix, and they're a lot more common than a truly bricked phone. If your phone is actually bricked, you Probably won't be able to fix it yourself.
BOOTLOOP GUIDE
(#:1)
Start by removing the device's battery and wait for a few minute's before putting it back in your phone.
OR Switch off for non-removable battery phones for five to ten minutes so it can remove any charge that is left in the phone and to initiate a complete power-cycle once you insert the battery.
Now Boot the device into Recovery Mode by pressing and holding the relevant shortcut keys for your device. For instance, most Samsung devices can boot into Recovery Mode while pressing the key combination Volume Up, Home and Power (for tablets it is Volume Up and Power). If using a HTC phone, boot into HBOOT first by tapping Volume Down and Power button together and then browse to Recovery using Volume Up/ Down buttons. If you cant get it to boot in Recovery you can always use (ADB) and type in the command] > adb reboot recovery <--- Hit Enter now your Device will reboot into recovery mode. If your not familar with adb or even know what adb is there is a link on the bottom of this page for the sdk download and a gude on the adb.

(#:2)
Now browse and select the option Wipe Data/Factory Reset in Recovery Mode.Check if the device can now boot into the newly installed ROM or firmware. If not, then perform Wipe Cache Partition And Return to the main Recovery menu and reboot the device by choosing Reboot System Now option.After Flashing or Installing a New ROM and If the device is already rooted with ClockworkMod Recovery (CWM) installed, then do the following steps (1) Remove you'r battery and reinsert it after 30 seconds. (2) Boot the device into CWM Recovery by pressing and holding Volume Up, Home and Power buttons together. NOTE: The key combination may vary depending on your device model.So, CONFIRM BEFORE YOU PROCEED. (3) Now Go to Advanced option in Recovery menu and choose Wipe Dalvik Cache. Then perform Wipe/cache under Mounts & Storage. Reboot the device and check if the boot loop issue is resolved. If not repeat the above three steps, but perform both Wipe/data and Wipe/cache under Mounts & Storage before rebooting.

(#:3)
After Setting an Incorrect File Permission.The Android operating system (OS) works on file permissions and hence incorrectly set file permissions may permanently damage or soft brick your device. Here are some of the commonly used file permissions:- 644 (RW-R-R) - (this is most common system permission, it exists in /system/app, /system/framework, /system/etc, /system/lib and allot of separate files) - 755 (RWX-RX-RX) - (mainly used for /system/bin) - 777 (RWX-RWX-RWX) - (used for scripts inside /system/etc/init.d and busybox files)
To fix or reset any of these file permissions, do the following:Boot the device into CWM or TWRP recovery Go to Advanced option.Click Fix Permission and confirm the action. After Restoring a Backup.If the bootloop error occurs immediately after restoring a Nandroid Backup, follow the steps on -(#:2)- to fix it. If everything else fails, just try re installing the original ROM or flash the first official firmware.

Using ADB BY Samantha
DB can be used to access the phone while booting, be aware that some bootloops make it unable to use ADB since they do not go further then the manufacturer logo. (In new CWM versions it’s possible to use adb)
The only tricky part about using ADB with bootloops is that you have to do it on the right time, this is different from every device, but normally it’s after the manufacturer logo that the partitions get mounted. The easiest way to enter your phone in this part is using a batch script that monitors the state of your device and connects directly when possible.

I use this script for example, called ondemand.bat (requires adb.exe and the 2 dlls)


1 @ECHO off
2 cd /d %~dp0
3 echo.
4 echo Waiting for device…
5 adb wait-for-device
6 echo.
7 adb -d shell stop
8 adb push mycwmfix.zip /sdcard/mycwmfix.zip
9 adb reboot recovery


Linux Version (ondemand.sh):


1 #!/system/bin/sh
2 echo " "
3 echo "Wating for device..."
4 ./adb wait-for-device
5 echo " "
6 ./adb -d shell stop
7 ./adb push mycwmfix.zip /sdcard/mycwmfix.zip
8 ./adb reboot recovery

This script will wait for the device to become ready, when it’s ready it freeze the device, so the script has more time to push the file (instead of keep rebooting). Then it will push the specified cwmfix zip to your sdcard, and after that it will reboot in recovery so you can install the cwm fix you made. You can also make an batch script that pushes the files automatically to your phone, here is an example:


(1 @ECHO off
(2)cd /d %~dp0
(3)echo.
(4)echo Waiting for device...adb wait-for-device
(5)echo.
(6)adb -d shell stop
(7)adb -d shell su -c "mount -o remount rw /system"
(8)adb push framework-res.apk /system/framework/framework-res.apk
(9)adb -d shell chmod 644 /system/framework/framework-res.apk
(10)adb push SystemUI.apk /system/app/SystemUI.apk
(11)adb -d shell chmod 644 /system/app/SystemUI.apk
(12)adb reboot

(13)Linux version:

1#!/system/bin/sh
2echo " "
3echo "Waiting for device..."
4./adb wait-for-device
5echo " "
6./adb -d shell stop
7./adb -d shell su -c "mount -o remount rw /system"
8./adb push framework-res.apk /system/framework/framework-res.apk
9./adb -d shell chmod 644 /system/framework/framework-res.apk
10./adb push SystemUI.apk /system/app/SystemUI.apk
11./adb -d shell chmod 644 /system/app/SystemUI.apk
12./adb reboot
This script will wait for the device to become ready, when it’s ready it freeze the device, so the script has more time to push the file (instead of keep rebooting). Then it will push framework-res.apk and SystemUI.apk to the directory it belongs to, after that it changes the permissions of the files to RW-R-R (644) and then it will reboot.

Please note that on some devices the command “su -c” cannot be used after using the “stop” command, it gives an error then (Segmentation Fault).
What you can do to prevent this is adding “adb remount” just under the “adb wait-for-device” line, and remove the “adb -d shell su -c “mount -o remount rw /system” line.
Save the script and run it again.



For HTC Phones: HTC phones can flash stock ROMs, known as RUUs, right from the phone's bootloader. You'll need to Google around for your device's specific RUU file, but once you download it, save the ZIP file to your SD card, and rename it (to something like PG05IMG.zip—the download page for the RUU file should specify which filename is required), booting up your phone should automatically flash the stock ROM from HBOOT, HTC's bootloader. Video http://www.youtube.com/watch?feature...&v=tE8BiIFUOpk

For Samsung Phones If you're using a Samsung Galaxy phone, you can use a tool called Odin to reflash an OPS file, which is a stock ROM that will return your phone to factory settings. You'll need a Windows machine and a copy of Odin, which you can find by Googling around the net (as its not an official tool) check out The Unlockr's guide to using Odin to familiarize yourself. You may need to Google around for your specific device's OPS file and instructions.
Video http://www.youtube.com/watch?feature...&v=5s70dwNgdD8

Verizon Galaxy S3 Bootloop fix using Odin

The Verizon Galaxy S3 has to be the most problematic variant of the Galaxy S3. If the locked bootloader on it wasn’t enough, many users have seen their Verizon Galaxy S3 get bricked and stop booting after trying to flash a custom ROM.


To start off there will be a little bit of downloading

Samsung USB Driver V1.5.14.0 For Android Mobile Devices

ODIN

VRALEC.bootchain.tar.md5

BOOTLOADER-I535VRALF2-618049-REV09-user-low-ship.tar-2-.md5

stock.vzw_root66.

Now lets Start
Make sure phone is off. Boot into download mode. To do so, hold down the Volume Down, Home and then the Power buttons together until a Warning!! message is displayed on the screen. Here, press Volume Up to enter download mode. A green Android and the text Downloading will be displayed on the screen.
Now, open Odin by clicking on the Odin3 v3.07.exe file in the Odin307 folder which you obtained after extracting Odin307.zip
In Odin, click on the PDA button, then select the VRALEC.bootchain.tar.md5 file that you downloaded.
Important Untick every option under the “Option” section (on the top left of Odin), except F. Reset Time. Check the screenshot below for reference.


Then, connect the phone to the computer with the USB cable and wait for Windows to finish installing drivers. Odin will say Added!! in the message box on the bottom left if the phone is detected successfully. If not, make sure the drivers are installed and also try using a different USB port – preferably a USB port on the back if using a desktop computer.
Click on Start to start flashing the VRALEC.bootchain.tar.md5 file on the phone.
Wait till flashing is complete and you get a PASS message in Odin. When that happens, disconnect the phone from the computer, but DON’T turn it off and let it stay in download mode. Also close Odin.
Reconnect your phone to the computer (while it is in download mode). Open Odin again.
This time, click the PDA button and select the BOOTLOADER_I535VRALF2_618049_REV09_user_low_ship.t ar.md5 file that you download
Also, again untick every option except F. Reset Time in Odin. Then, click on the Start button to start flashing the BOOTLOADER_I535VRALF2_618049_REV09_user_low_ship.t ar.md5 file on the phone.
When flashing is complete and you get a PASS message, disconnect the phone and close Odin. But keep the phone in download mode, don’t turn it off.
Open Odin again and also reconnect the phone to the computer.
Click the PDA file and select the stock.vzw_root66.tar file that you Downloaded
[Important] Select the following three options in Odin on the top left: Auto Reboot, F. Reset Time, Nand Erase All. Check the screenshot below for reference.


Click Start to start the flashing process. Once the flashing is complete and you get a PASS message, the phone will automatically reboot. Disconnect the phone from the computer.
The phone will still not boot up completely. Now, remove the battery on the phone, then re-insert it. Don’t turn it on.
Now, boot into recovery. To do so, press and hold the Volume Up + Home + Power buttons together till the screen turns on, then let the buttons go. The phone will boot into recovery in a few seconds. You will see a few error messages in recovery, which is normal.
In recovery, use the volume buttons to scroll up/down and the home button to select options.
Select wipe data/factory reset, then select Yes on next screen to confirm. Wait a while till the data wipe is complete (this will NOT delete your personal files on the SD cards).
Select wipe cache, confirm, then wait for cache wipe to be completed.
Then, select reboot system now to reboot the phone.
The phone will now boot up properly into Android and is fixed, and you will be able to use it now.

Your Verizon Galaxy S3 is now fixed, and saved you from sending it in for repair to Verizon. Do let me know how the procedure works!


HOW TO UNBRICK YOUR DEVICE


REQUIREMENTS TO UNBRICK YOUR PHONE

First install java on your pc if you haven’t java go to Java site and install it.
download one-click Unbrick tool
window users will need .rar/.zip extractor software , you can download free all in one 7zip extractor form here.

FOLLOW THESE INSTRUCTIONS CAREFULLY

1. Right-click on the One-Click.jar file, move down to option “7-zip” and then select “Extract to OneClick”.

2. Now you will get a ‘OneClick’ folder.

3. Now copy ‘OneClick.jar’ file and paste it into the ‘OneClickheimdalloneclickresourcesHeimdallPackage’ folder.

4. Right-click on ‘oneclickloader.exe’ file and choose ‘Run as Administrator’.
5. Proceed with the installation of Heimdall.

6. After the installation is complete, you will see the the One-Click UnBrick interface.

Connect the phone to computer via USB and click on “unsoft brick” button to recover your bricked android phone.







Factory Rom's


Factory Images for Nexus Devices
https://developers.google.com

SAMMOBILE
http://www.sammobile.com/

ROM DOWNLOADS FOR HTC
http://www.htc.com/us/support/rom-downloads.html

HTC UNLOCK BOOTLOADER
https://www.htcdev.com/

Motorola
https://motorola-global-portal.custh...-a/action/auth

UNLOCK YOUR Motorola BOOTLOADER
https://motorola-global-portal.custh...-a/action/auth

RE-LOCK YOUR Motorola BOOTLOADER AND FACTORY IMAGES FOR DEVELOPER EDITION DEVICES
https://motorola-global-portal.custh...ecovery-images

Moto Support
https://motorola-global-portal.custhelp.com/app/home/

LG Software & tools Download
http://www.mylgphones.com/lg-software-tools-download

CLOCKWORKMOD RECOVERY & ROMS Phone Selection
http://www.clockworkmod.com/rommanager

TeamWin - TWRP
https://twrp.me/

ANDROID SDK
http://developer.android.com/sdk/index.html

ADB GUIDE
http://developer.android.com/tools/help/adb.html
The Following 44 Users Say Thank You to keifus.rahn For This Useful Post: [ View ] Gift keifus.rahn Ad-Free
30th August 2013, 07:35 PM |#2  
immortalneo's Avatar
Senior Member
Flag Malappuram, Kerala
Thanks Meter: 1,930
 
More
Good job mate! I will be adding this to my help thread soon!
The Following User Says Thank You to immortalneo For This Useful Post: [ View ] Gift immortalneo Ad-Free
31st August 2013, 12:42 AM |#3  
keifus.rahn's Avatar
OP Senior Member
Flag Midland Tx
Thanks Meter: 151
 
Donate to Me
More
Quote:
Originally Posted by immortalneo

Good job mate! I will be adding this to my help thread soon!

Thank You Just updated
The Following 3 Users Say Thank You to keifus.rahn For This Useful Post: [ View ] Gift keifus.rahn Ad-Free
23rd April 2016, 02:26 PM |#4  
waheem's Avatar
Senior Member
Thanks Meter: 86
 
More
Quote:
Originally Posted by keifus.rahn

Thank You Just updated

@ keifus.rahn will you please help me
I have a really big problem I think you can help me
My full story
I have a mtk phone micromax canvas 4 model a210 it work like a charm 6 month ago suddenly got a problem unfortunately system ul has stoped so I do a hard reset but problem remains then I download stock Rom for my device and try to flash with sp flash tool his factory tool but failed i try anything download another version Rom another version tool but no luck I'm not new on android world I flashed many similar device with sp flash tool but problem with this phone I think in motherbord but my phone fully connected via pc and fastboot mood
So I try to flash system.img with fastboot command
Fastboot flash system system. Img
but stuck on erasing system leave it 4 And 5 hour I realize I do a wrong step because my stock recovery has gone
I download a custom recovey and flash via fastboot done flashed success but when I boot it to recovery nothing stuck on manufacturing logo and I lost my stock recovery too because I stuck on flashing system.img something wrong in my system will you point me what wrong in system that I unable to boot on recovery
I have a custom recovery will you please guide me to create a recovery fix batch file and any other way to fix my recovery my fastboot mood still working and connected via pc @Droidriven please help me and any others that can point me this is first time for me troubling thanks
23rd April 2016, 04:05 PM |#5  
Droidriven's Avatar
Senior Member
Flag NC
Thanks Meter: 4,532
 
More
Quote:
Originally Posted by waheem

@ keifus.rahn will you please help me
I have a really big problem I think you can help me
My full story
I have a mtk phone micromax canvas 4 model a210 it work like a charm 6 month ago suddenly got a problem unfortunately system ul has stoped so I do a hard reset but problem remains then I download stock Rom for my device and try to flash with sp flash tool his factory tool but failed i try anything download another version Rom another version tool but no luck I'm not new on android world I flashed many similar device with sp flash tool but problem with this phone I think in motherbord but my phone fully connected via pc and fastboot mood
So I try to flash system.img with fastboot command
Fastboot flash system system. Img
but stuck on erasing system leave it 4 And 5 hour I realize I do a wrong step because my stock recovery has gone
I download a custom recovey and flash via fastboot done flashed success but when I boot it to recovery nothing stuck on manufacturing logo and I lost my stock recovery too because I stuck on flashing system.img something wrong in my system will you point me what wrong in system that I unable to boot on recovery
I have a custom recovery will you please guide me to create a recovery fix batch file and any other way to fix my recovery my fastboot mood still working and connected via pc @Droidriven please help me and any others that can point me this is first time for me troubling thanks

You said fastboot is still working but does the device respond to adb?

If so and you know the mmcblk0 that system.img goes in, you may can use a dd command to dd the system.img back to where it goes, the dd command has to be exactly correct though.

Or you can try a dd command to dd your recovery if you know its mmcblk0, again, the dd command has to be exactly correct. Then try booting to recovery if the dd command works.
The Following User Says Thank You to Droidriven For This Useful Post: [ View ] Gift Droidriven Ad-Free
23rd April 2016, 04:21 PM |#6  
waheem's Avatar
Senior Member
Thanks Meter: 86
 
More
Quote:
Originally Posted by Droidriven

You said fastboot is still working but does the device respond to adb?

If so and you know the mmcblk0 that system.img goes in, you may can use a dd command to dd the system.img back to where it goes, the dd command has to be exactly correct though.

Or you can try a dd command to dd your recovery if you know its mmcblk0, again, the dd command has to be exactly correct. Then try booting to recovery if the dd command works.

Thank to reply my phone is getting bootloops I can't expect to work adb
I have a stock recovery and custom recovery when I flashed it on Fastboot mood successfully flashed when I boot stuck on manufacturing logo I think something is missing in system what you think?
Before flashing system.img my recovery was working
GuestD0710
15th September 2018, 05:22 PM |#7  
Guest
Thanks Meter: 0
 
More
stuck at boot mtk device
Hey guys I have a mt6735 device which is stuck in boot with orange state your devices has been unlocked and cant be trusted Your device will boot in 5 seconds but keeps on rebooting every 5 sec to same state
Have been googling every possible solution and haven't come up with any
All i did was unlock the bootloader and without rebooting installed twrp since its all been trouble trouble trouble

your help would be greatly appreciated
15th September 2018, 06:14 PM |#8  
Droidriven's Avatar
Senior Member
Flag NC
Thanks Meter: 4,532
 
More
Quote:
Originally Posted by Niraj.njk57

Hey guys I have a mt6735 device which is stuck in boot with orange state your devices has been unlocked and cant be trusted Your device will boot in 5 seconds but keeps on rebooting every 5 sec to same state
Have been googling every possible solution and haven't come up with any
All i did was unlock the bootloader and without rebooting installed twrp since its all been trouble trouble trouble

your help would be greatly appreciated

Can you get the device to boot into fastboot?

If so, flash your stock firmware.

Sent from my LGL84VL using Tapatalk
GuestD0710
16th September 2018, 07:52 AM |#9  
Guest
Thanks Meter: 0
 
More
Quote:
Originally Posted by Droidriven

Can you get the device to boot into fastboot?

If so, flash your stock firmware.

Sent from my LGL84VL using Tapatalk

nah no fastboot no twrp no sp sp flash tool
21st June 2015, 05:21 PM |#10  
Junior Member
Thanks Meter: 0
 
More
installed two kernels continuously booting
I completed flashing custom rom cm12.1 . i installed a custom kernel and after sometime i installed another custom kernel revmod. After flashing the mobile continously booting. now the battery is completely drained and somehow iam getting into boot mode but i was unable to select recovery. When iam selecting recover again the mobile is restarting. It is also not detecting my usb cable but it is charging. My mobile is moto g 2014 (xt1068). Please help me. iam tensed. PLEASE
Post Reply Subscribe to Thread

Tags
bootloop, flash, noob, recovery

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

Advanced Search
Display Modes