rebooting in into recovery or boot loader directly from ABD For beginners - Android General

Yeah so i wrote this guide back in 2012, it is probably very out of date, i did update some stuff but id probably look elsewhere if these are not working. you should get newer adb files anyhow, i post modern ones on my loggingkit package here Github , there are binaries for windows, linux and mac
Hi there guys so i will be telling you how to reboot to recovery or boot loader directly from adb commands
It is pretty easy
1-Download adb and install adb drivers for your phone
2-extract the files to your c directory in a folder named adb(make one)
3-once the files are located in c:\adb go to start menu then search for cmd
4-do cd c:\adb
5-check for connectivity
adb devices
if your device is not listed, the drivers are not there
6-Finally, to reboot
For download mode (it varies from device to device)
adb reboot download (Samsungs)
or
adb reboot-bootloader ( HTC )
For Recovery Mode (it is mostly the same for most phones)
adb reboot recovery
thanks for reading.

Actually, the commands to reboot into bootloader are:
adb reboot-bootloader
or
adb reboot bootloader
Sent from my Desire S

I know thanks for replaying
BillGoss said:
Actually, the commands to reboot into bootloader are:
adb reboot-bootloader
or
adb reboot bootloader
Sent from my Desire S
Click to expand...
Click to collapse
I actually use the command ADB reboot-boot loader
but since reboot recovery won,t work like reboot-boot loader
i removed the slash so people can remember these commands easily

most of the roms are having this inbuilt now,
but those who dont have, its really good to use.. :good:

surinder.oberoi28 said:
most of the roms are having this inbuilt now,
but those who dont have, its really good to use.. :good:
Click to expand...
Click to collapse
you are right
these codes helped me alot
and i'm thinking if i can use the terminal emulator with these.
If yes then i can simply do a quickly reboot into recovery or bootloader using my Stock rom

Booting with Adb
ananjaser1211 said:
Hi there guys so i will be telling you how to reboot to recovery or boot loader directly from adb commands!!!!:victory::victory::victory:
It is pretty easy
1-Download adb and install adb drivers for your phone (iam using htc)
2-extract the files to your c directory in a folder named adb(creat one)
3-once the files are located in c:\adb go to start menu then search for cmd
4-type in
cd c:\adb then click enter
5-type in
adb devices it will show the connected devices
it should be bunch of numbers
6-if you can,t see them it means adb drivers for your device are NOT INSTALLED
7-THEN FINALY IF YOU WANT TO REBOOT
Boot loader
type in
adb reboot boot loader
if you want recovery
type in
adb reboot recovery
thanks for reading :good:
If i actually helped you some how please kick the **** out of that thanks button :highfive:
Click to expand...
Click to collapse
Thanks for the help. This certainly worked for rebooting but unfortunately I need the menu to reset. It just stuck on the android logo again.
Thanks
Korimako

Ok so i tried installing CyanogenMod 10.1 on my HOX and i must have did something wrong coz it didnt boot the first time and i did backup it and recovery it but to no avail it still stuck on boot screen and restarts and stuck and restart and so on.. how can i access my phone when my pc cant even locate it? any help is greatly appreciated
Originally Posted by ananjaser1211
Hi there guys so i will be telling you how to reboot to recovery or boot loader directly from adb commands!!!!
It is pretty easy
1-Download adb and install adb drivers for your phone (iam using htc)
2-extract the files to your c directory in a folder named adb(creat one)
3-once the files are located in c:\adb go to start menu then search for cmd
4-type in
cd c:\adb then click enter
5-type in
adb devices it will show the connected devices
it should be bunch of numbers
6-if you can,t see them it means adb drivers for your device are NOT INSTALLED
7-THEN FINALY IF YOU WANT TO REBOOT
Click to expand...
Click to collapse
also im stuck on 6 here coz adb drivers are not installed on my device, i didnt see a bunch of numbers

this is really helpfull. I managed to screw my phone with some bad recovery so now i can hardly get to the recovery..

ananjaser1211 said:
hi there guys so i will be telling you how to reboot to recovery or boot loader directly from adb commands!!!!:victory::victory::victory:
It is pretty easy
1-download adb and install adb drivers for your phone (iam using htc)
2-extract the files to your c directory in a folder named adb(creat one)
3-once the files are located in c:\adb go to start menu then search for cmd
4-type in
cd c:\adb then click enter
5-type in
adb devices it will show the connected devices
it should be bunch of numbers
6-if you can,t see them it means adb drivers for your device are not installed
7-then finaly if you want to reboot
boot loader
type in
adb reboot boot loader
if you want recovery
type in
adb reboot recovery
thanks for reading :good:
If i actually helped you some how please kick the **** out of that thanks button :highfive:
Click to expand...
Click to collapse
how to exit recovery mode by adb commands ????

I think...
adb reboot
Should do it. Will someone confirm?

adb reboot recovery does not goes into recovery.
ananjaser1211 said:
Hi there guys so i will be telling you how to reboot to recovery or boot loader directly from adb commands!!!!:victory::victory::victory:
It is pretty easy
1-Download adb and install adb drivers for your phone (iam using htc)
2-extract the files to your c directory in a folder named adb(creat one)
3-once the files are located in c:\adb go to start menu then search for cmd
4-type in
cd c:\adb then click enter
5-type in
adb devices it will show the connected devices
it should be bunch of numbers
6-if you can,t see them it means adb drivers for your device are NOT INSTALLED
7-THEN FINALY IF YOU WANT TO REBOOT
Boot loader
type in
adb reboot boot loader
if you want recovery
type in
adb reboot recovery
thanks for reading :good:
If i actually helped you some how please kick the **** out of that thanks button :highfive:
Click to expand...
Click to collapse
Hi, I tried adb reboot recovery and the phone rebooted, shows the boot screen twice and booted into normal mode. What did I miss out?

ananjaser1211 said:
Hi there guys so i will be telling you how to reboot to recovery or boot loader directly from adb commands!!!!:victory::victory::victory:
It is pretty easy
1-Download adb and install adb drivers for your phone (iam using htc)
2-extract the files to your c directory in a folder named adb(creat one)
3-once the files are located in c:\adb go to start menu then search for cmd
4-type in
cd c:\adb then click enter
5-type in
adb devices it will show the connected devices
it should be bunch of numbers
6-if you can,t see them it means adb drivers for your device are NOT INSTALLED
7-THEN FINALY IF YOU WANT TO REBOOT
Boot loader
type in
adb reboot boot loader
if you want recovery
type in
adb reboot recovery
thanks for reading :good:
If i actually helped you some how please kick the **** out of that thanks button :highfive:
Click to expand...
Click to collapse
Sorry to let you know that "ADB" cmd have killed my samsung S5570i boot so plz "Pay Attention"

wahid2 said:
Sorry to let you know that "ADB" cmd have killed my samsung S5570i boot so plz "Pay Attention"
Click to expand...
Click to collapse
ouch!
that bad!!!
i guess this only works 100% for HTC devices
but it actually works with me on my android tablet to to reboot to recovery/bootloader

Hello i am having also problem. It shovs my device- bunch of numbers, and when i type adb boot recovery it goes only to the LG logo screen.
I would like to come to recovery mode to load new ROMon my LGoptimus 2x.
Can someone help me?

ADB worked for my S7500 !

Works !
Works perfectly on my Samsung Galaxy S4 mini (not rooted) ! Thanks !

Nice Tutorial
Thanks. Nice tutorial.

bro i tried this i was on the last step bro :'( it said "error:device not found" please somebody help

Thanks a lot, it is very useful as the combination button doesn't work anymore, thanks again !

Related

Rooting issues - ADB unable to locate phone in fastboot

Hi everyone,
I have looked everywhere on google and have been at this for over 5 hours now. I have tried rooting my phone from 3 different PCs (XP SP3, SP2 and 7). With all of them i have managed to get the drivers for adb installed (after many problems) and got all the way to the fastboot part of the rooting.
Once i get there, i have the same problem on all 3 PCs. ADB can no longer find my phone! Following the instructions, i checked for the device before i powered it off and found it by doing abd devices in cmd prompt. The moment the device is powered off and then back on, bam! No more device!
I am at my wits end at this point and just don't know what else I could possibly do! I would be immensely grateful for ANY advice.
I did check that my device allowed USB debug so that's not it either.
Also, my phone is a Rogers phone and I have just put through the upgrade they sent this morning.
adb cant find your phone in fastboot mode but fastboot can
Try writing fastboot devices instead of adb devices
All the comands in fastboot mode start with fastboot...e.g fastboot flash xxx xxx.img
I ran into this problem as well on my attempt, I forgot to re-enable (or enable) depending on where I was at "usb debugging" which is in:
settings> applications > development > check the usb debugging box.
After that, when you do abd devices in your shell, it should surely list after that. Good luck!
edit-- woops scratch that.. sorry I just read back that you made sure of that.
Thank you for that!
Now, i see it in fastboot, but when i try typing fastboot boot recovery.img i get a "cannot load recovery.img"
Sorry, apparently i need a lot more hand holding than i though!
(this is where I am getting the instructions from HowardForums. I'd post the link but I can't do that yet on this forum...
Basically, these are the instructions i am following:
If the phone you have is an HTC Magic (no hardware keyboard), the method is pretty much the same. I modified Haykuro's zip with files that were meant for the Magic. You can grab it here:
*link*
Again, open another command prompt as steps 2, and 6-8 are entered in the command prompt.
Quote:
Originally Posted by Haykuro-ish
0. Place update.zip on SD card.
1. power off the phone and boot into fastboot (hold back and power)
2. fastboot boot recovery.img
3 [optional]. make a backup with nandroid
3. apply update. (LET IT FINISH, DO NOT TOUCH ANYTHING UNTIL YOUR PHONE IS COMPLETELY IDLE. DO NOT TOUCH AFTER FIRST REBOOT (WHEN CHIP APPEARS) UNLESS YOU LIKE A BRICK. )
4. reboot out of recovery mode.
5. power off phone, hold back button and power to boot into fastboot again
6. fastboot flash boot boot.img
7. fastboot flash recovery recovery.img
8. fastboot reboot
enjoy!
These are pretty much the Haykuro instructions for the Dream, which I modified to apply to the Magic. The boot and recovery images were made by Amon_RA. Happy Rooting!
Just like with the Dream, the first part flashes a good SPL, the second flashes a rooted boot and recovery. The easiest way to test if the device is rooted is to open another command prompt in the tools dir and type
Code:
adb root
If it returns that adb is already running in root, then you're all set.
Click to expand...
Click to collapse
Am i doing something wrong?
Thanks so much!
You need to navigate to the folder where you saved your recovery.img
For example if you put it on d:/Android dev. you will need to do (inside cmd)
d: (switches to drive d
cd d:/Android dev. (changes the folder to android dev.)
and then issue the fastboot command
without the brackets of course...
eyegor said:
You need to navigate to the folder where you saved your recovery.img
For example if you put it on d:/Android dev. you will need to do (inside cmd)
d: (switches to drive d
cd d:/Android dev. (changes the folder to android dev.)
and then issue the fastboot command
without the brackets of course...
Click to expand...
Click to collapse
Again, thank you so much! It seems I am still having issues as now I'm being told that "remote not allow".... is this a rogers thing?
Again i do apologize for all the hand-holding necessary here
yes, i am getting this <remote:not allow> message too. I was able to fix my other magic (purchased in october) via fastboot boot recovery.img but not this new one i have (purchased in Dec).
Anyone have any ideas how to bypass this block of 'remote, not allowed"?

[Q] Serious problem

Hi,
please help me! I hope it is not a brick.
I wanted to make full wipe. I made factory reset in recovery and then wiped sdcard.. Now I cannot boot ROM because there is no one and I have nothing on my SD. So I even cannot copy rom or backup back to phone.
Is there any way out? (
EDIT: I think I can push files (e.g. backup) through adb, right? I installed adb for dummies but when I want to execute SDKmanager.exe. it only opens black window and immediately closes it. I cannot continue
devcager said:
Hi,
please help me! I hope it is not a brick.
I wanted to make full wipe. I made factory reset in recovery and then wiped sdcard.. Now I cannot boot ROM because there is no one and I have nothing on my SD. So I even cannot copy rom or backup back to phone.
Is there any way out? (
EDIT: I think I can push files (e.g. backup) through adb, right? I installed adb for dummies but when I want to execute SDKmanager.exe. it only opens black window and immediately closes it. I cannot continue
Click to expand...
Click to collapse
Access your commands through a terminal window, like start > run > cmd to get into the prompt.
and from there work your way to your directory where you have placed it, and execute the command from that directory directly.
..
Thanks!
In the end I used adb to push backup in recovery...
All this I did because I wanted wipe my device - today I woke up and got a call and found out that my earphone stopped working I am afraid that it is due to condensation and next oxidation... I did not do anything wrong but when you come from cold winter weather into a warm flat it can happen Now I need to send it and hope the warranty will pass..
Anyway, I was looking for complete unroot process and found several advices. I am not clever from them. Is it enough to flash stock ROM? Recovery will be removed as well??
..
Election Day said:
Flash a stock ROM (this will also flash the stock recovery) and relock the bootloader with fastboot oem lock afterwards.
Click to expand...
Click to collapse
Ok. I have everything done but the relocking. Could you tell me how shall I do this? I tried to write "adb reboot bootloader" and then " fastboot oem lock" but both case the command line responded something like that it is not internal command etc. (I dont have it in English) Cannot lock it
devcager said:
Ok. I have everything done but the relocking. Could you tell me how shall I do this? I tried to write "adb reboot bootloader" and then " fastboot oem lock" but both case the command line responded something like that it is not internal command etc. (I dont have it in English) Cannot lock it
Click to expand...
Click to collapse
1.Switch off your phone
2.Connect your phone to your PC throught the USB cable
3.Switch on phone into fastboot
4.Provided that you have the driver for windows for the phone installed open Start/run/cmd (from your PC)
5.From the Android-SDK/platform-tools run the following "fastboot oem lock".
like :
C:\Android-sdk\platform-tools\fastboot oem lock
this will lock it immediately ...
mahanddeem said:
1.Switch off your phone
2.Connect your phone to your PC throught the USB cable
3.Switch on phone into fastboot
4.Provided that you have the driver for windows for the phone installed open Start/run/cmd (from your PC)
5.From the Android-SDK/platform-tools run the following "fastboot oem lock".
like :
C:\Android-sdk\platform-tools\fastboot oem lock
this will lock it immediately ...
Click to expand...
Click to collapse
it works only in "tools" and then it just says "waiting for device" and stucks When I tried "fastboot devices" it says nothing... I tried to reinstall drivers but maybe I have some old version? When I am in Windows copying files etc. it works well.
1. Make sure you open the command prompt IN in the folder with fastboot.exe.
2. Put the phone in fastboot mode.
3. In the command prompt type fastboot devices.
It will now show your serial number. If not its either you are such a noob that you managed to screw that up or the fastboot drivers are not installed. Or both.
albundy2010 said:
1. Make sure you open the command prompt IN in the folder with fastboot.exe.
2. Put the phone in fastboot mode.
3. In the command prompt type fastboot devices.
It will now show your serial number. If not its either you are such a noob that you managed to screw that up or the fastboot drivers are not installed. Or both.
Click to expand...
Click to collapse
OK. I really dont understand what could have been screwed up. Ok. It doesnt show anything. Just nothing. Cen you please send me the link for the drivers which should work? Maybe there is the problem. Fastboot drivers are something else than drivers for adb to be working? Because I dont know whats wrong. Thanks...
devcager said:
OK. I really dont understand what could have been screwed up. Ok. It doesnt show anything. Just nothing. Cen you please send me the link for the drivers which should work? Maybe there is the problem. Because I dont know whats wrong. Thanks...
Click to expand...
Click to collapse
If you have i9023 you need to add a line into the sdk for driver. You can search the tutorial threads for it.
Sent from my Nexus S using Tapatalk
try this
just check if you have fastboot and adb on the same folder, when I've rooted mine's got this issue, if cmd report "the command is an external one" simply means there is no such program in the folder you are in
copy both adb and fastboot in tools and platform-tools too, so you can run the command in both folder
cd>desktop > cd android>cd android-sdk> cd tools (then run adb or fastboot)
cd>desktop > cd android>cd android_sdk> cd platform-tools (thr run adb or fastboot)
1. Find out exactly what phone model you have if you don't know already.
2. Do the same for your computers os . Including 32 or 64 bit.
3. Combine that info and search the forum or just Google search. How to install fastboot drivers for phone model in step 1 with the os in step 2.
..
Thank you all. I decided to unroot it and relock it using Odin software which was great and quick. So I am done.... Adb has a lot of problems with drivers, commands, paths. This way was much easier
adb has no issues. User error.
albundy2010 said:
adb has no issues. User error.
Click to expand...
Click to collapse
+1
Sent from my GT-I9100 using XDA App
albundy2010 said:
adb has no issues. User error.
Click to expand...
Click to collapse
Maybe you are right. Maybe it was driver problem which I solved and then immediately used odin. Anyway, it is user friendly and I am finally done with what I wanted
albundy2010 said:
adb has no issues. User error.
Click to expand...
Click to collapse
Agreed, but not the user friendliest.
For the OP: Good luck having it repaired!

[ADB] Trying to backup - Birck? Hope not

Hi! I was trying to backup my Orange Monte Carlo following a Portuguese tutorial but I'm stuck in the middle and I've got no help! Hope you can provide some! These are the steps I followed (translated)
1 - Install ADB Made Easy;
2 - Open cmd;
3 - Activate cellphone debug mode;
4 - Connect via usb (without mass storage) and install drivers if request [it was requested and i installed];
5 - Run adb devices, it should show your device [it did];
6 - Run adb reboot bootloader, your cellphone will boot in Fastboot, wich is an Android image without menus [correct until here];
7 - Run fastboot devices, your device yor a question mark(?) should show up (advance to next step), else you miss drivers [step not completed];
cmd says 'fastboot' is not recognized as a command. Now my phone is stuck connected to the computer with an adriod pick and I have no clue on what to do next!
Don't know where you were going with this but to reboot your phone just pull the battery ..
Not bricked
shanman-2 said:
Don't know where you were going with this but to reboot your phone just pull the battery ..
Not bricked
Click to expand...
Click to collapse
Thank you! Do you have any idea why the last command doesn't work? I believe it has something to do with file location... I'm trying to backup my Monte Carlo. Next steps were to "fastboot boot recovery.img" and then backup.
It should be in the platform-tools directory of the android-sdk. Verify that it's there...if so cd to that directory and it should work
I already fixed it for myself, thanks! Now I can't seem to be able to install clockwork!
Doing <<fastboot boot "C:\Users\R&J\Downloads\recovery.img">> reboots the device but doesn't enter recovery.
Doing <<fastboot flash recovery "C:\Users\R&J\Downloads\recovery.img">> , <<fastboot reboot>> and <<adb wait-for-device reboot recovery>> results the phone entering android's default recovery (no acess to backup feature).
Any way to help? Thank you!
The first command <<fastboot flash recovery "C:\Users\R&J\Downloads\recovery.img">> is trying to write the recovery.img you downloaded to a recovery partition on your device. It may not be overwriting the original recovery.
try changing permissions by doing
adb shell
su
chmod 777 /recovery
then try to flash again
Lol it seems like I have been luck enough to solve my own problems, I have sucessfully installed ClockworkMod Recovery 4.0.1.4 unofficial MoDaCo Edition using a bat file . Now I can't seem to find a way to flash recovery back to stock. I though this was an option inside the modded recovery. Any tips? Thanks again!
EDIT: I have the stock recovery file . God... this tutorials I'm folowing aren't that noob friendly...

Please help , Stuck on Loading Screen.

I try to hard reset but I'm still stuck on loading screen. How do I add a zip file to my sd so I can flash it, since it doesn't even detect my oneplus on my computer? Please help me and lend me your knowledge and power =].
Can you boot in bootloader and connect it through adb and fastboo with your pc? in that case it would be easy to reflash everything
I can boot into fastboot and TWRP but I'm wondering how can I add file into my internal hard drive since it doesnt detect the phone on my computer?
Any help with some instructions would be really nice =] :good:
Do you see it using "adb devices" or "fastboot devices" ?
If not, you must update your adb drivers on your computer and reboot it
right now its on MTP USB Device as my device on my Device Manager, can you link me to the proper usb driver? Because I"m pretty sure I updated it and it was working while my phone is working. Also how can I check if its using adb devices?
bud77 said:
Do you see it using "adb devices" or "fastboot devices" ?
If not, you must update your adb drivers on your computer and reboot it
Click to expand...
Click to collapse
Also it said "Windows has determined the driver software for your device is up to date" but doesnt detect my phone?
Anyone still here so they can help me?
So as asked previously, when you connect via fastboot, and boot it into TWRP, do you see it via adb ("adb devices" command in the platform-tools folder)? Did you try adb push <filename> /sdcard/ ?
yes i see adb push , but there's no file there. How can i add file there?
Dzhedaj said:
So as asked previously, when you connect via fastboot, and boot it into TWRP, do you see it via adb ("adb devices" command in the platform-tools folder)? Did you try adb push <filename> /sdcard/ ?
Click to expand...
Click to collapse
Basically i'm in TWRP and i dont see any thing in recover or etc or in my sd, all blank so how can I put an image there to flash?
Anyone still here to have any answers to help?
which jeithis
http://i.imgur.com/378HzRp.png also get this image also
Use an adb push command to send a ROM zip to your phone.
Transmitted via Bacon
@M I N E, go read the sticky posts in the general section. It will explain how to do an adb push command.
@timmaaa and others have done a great job with some write ups for this device.
timmaaa said:
Use an adb push command to send a ROM zip to your phone.
Transmitted via Bacon
Click to expand...
Click to collapse
Or do a factory wipe then go into TWRP -> Advanced -> ADB Sideload -> Swipe
adb sideload <name-of.zip>.zip (ensure the .zip is in the same folder as your fastboot/adb) and then it'll send the zip over to the phone and flash.
I prefer the adb sideload method as it pretty much pushes the file over to the phone and then flashes it afterwards.
Either method is fine though.
If OP has problems with drivers, I recommend using http://forum.xda-developers.com/showthread.php?t=2386956 they work great.
what is the push load command? How can i push something if i dont have any file on my phone to flash? can you guys type out the command?
M I N E said:
what is the push load command? How can i push something if i dont have any file on my phone to flash? can you guys type out the command?
Click to expand...
Click to collapse
Read the post above you that I posted. Use that command as well as the instructions and you can flash a file using adb sideload.
well I try factory swipe nothing there, i check the TWRP , no files is there i mean nothing. And I cant do adb push because my when i type adb devices it doesnt recognized, because how can i turn on debugging if my phone doesnt have any rom?
M I N E said:
well I try factory swipe nothing there, i check the TWRP , no files is there i mean nothing. And I cant do adb push because my when i type adb devices it doesnt recognized, because how can i turn on debugging if my phone doesnt have any rom?
Click to expand...
Click to collapse
You're not reading my message properly. I'm telling you to do adb sideload. Please read what I said carefully word-by-word.
Or do a factory wipe then go into TWRP -> Advanced -> ADB Sideload -> Swipe
adb sideload <name-of.zip>.zip (ensure the .zip is in the same folder as your fastboot/adb) and then it'll send the zip over to the phone and flash.
I prefer the adb sideload method as it pretty much pushes the file over to the phone and then flashes it afterwards.
Click to expand...
Click to collapse
The whole point of adb sideload is that you're sideloading a flashable zip that is not on your phone but on your computer and you're pushing the file onto your phone which will followup with flashing the zip.
You need to be typing adb sideload on your computer with the proper environment for adb set up with the proper drivers installed if you haven't already.

How to unroot phone without having a volume down button

Hello,
I have an acer liqduid E2 with a custom rom from Bonell and i'd like to reset my phone to the original ROM.
Unfortunately my volume down button is broken.
How can I get into the recovery startup mode without having the posibility to use the volume down button
Here
https://play.google.com/store/apps/details?id=phongit.quickreboot
Sent from my SM-G386T1 using Tapatalk
quick reboot? why
Either your rom has a option in the settings to get a detail reboot menu (with the recovery option).
Either via adb program with your phone connected to your pc
1-Download adb and install adb drivers for your phone
2-extract the files to your c directory in a folder named adb(creat one)
3-once the files are located in c:\adb go to start menu then search for cmd
4-type in
cd c:\adb then click enter
5-type in
adb devices it will show the connected devices
it should be bunch of numbers
6-if you can,t see them it means adb drivers for your device are NOT INSTALLED
7-THEN FINALY IF YOU WANT TO REBOOT
Boot loader
type in
adb reboot boot loader
if you want recovery
type in
adb reboot recovery
Click to expand...
Click to collapse
Superuser app
Go into the settings of your superuser app and select "full unroot"

Categories

Resources