Hi together!
Since this is a topic where people ask regularly, I try to make a little TUT.
I hope it is helpful.
I am a noob myself, so please don't go on me
Please feel free to correct me if I am wrong or if I missed some important stuff.
What you need:
1.
SDK Tool (type in your browser: developer.android.com/sdk/index.html)
Once you are on that page, download the package and install it.
2.
after the install process has finished, you have to install some packages.
Important is the platform-tools package (there you find the most important commands)
3.
Locate the folder on the harddisk of your PC
4.a)
Push the Windows(Start) Buttom and type: cmd
This opens the command prompt
Now get into the root of the android folder (e.g. cd.. until you get into root of your harddisk)
(on my PC, it looks like this:
cd android
cd platform-tools)
4.b)
Just one thing to make it a little easier to come into the right folder:
Open the folder with the fastbootfiles in a window.
Go to command line and type cmd and the cmd.exe will be shown in the menu.
Drag & Drop the cmd.exe into the opened fastboot folder.
When you now open this cmd, it shows the right folder at the start and you can easily type the commands without navigation through folders.
credits go to Neo XL
5.
Your phone has to be in fastboot-USB mode and connected to PC in order to understand the commands
6.
Once you are in platform-tools folder, you can type commands
Most common commands are:
fastboot erase cache (sometimes helps if phone is in HTC bootloop)
fastboot flash boot (name of boot image / e.g. boot_1.2.3.img) (this is, like the name says, to flash a boot image)
fastboot flash recovery (name of recovery.img
fastboot oem lock ( to relock your phone, in case you have or want to flash a RUU)
fastboot flash unlocktoken Unlock_code.bin (to unlock again, if you already got the unlock key from HTCDev)
Flash firmware.zip using following terminal commands:
Please rename first downloaded .zip package to firmware.zip
fastboot oem rebootRUU
fastboot flash zip firmware.zip
This is almost obsolete, since we have the new Recovery 5.8.3.1 with Mount USB, but it is still good to know
to push ROM to SD card, if you were running superwipe without copying the rom file onto sd
1. You need recovery.img in your fastboot directory
2. Go into bootloader and connect phone
3. Then use: "fastboot boot recovery.img" (thus booting your image from pc and not the installed recovery).
4. When in recovery, you can use the adb commands.
5. You can try with "adb devices" which should show you serial of phone.
6. command: adb push rom_rom.zip /sdcard
credits to broncogr for finding that adb works if you use fastboot boot command and to Jotha for helping me out!
Or try following:
Copy rom to your adb-directory on PC
Switch OFF phone
Connect phone to PC
Wait until you hear the "USB-Connect"-sound on PC
Go into command window in adb-directory
Type "adb push rom.zip /sdcard/"
(where rom.zip is name of rom-file)
pushing is rather slow so it will take a while. Eventually you get an "OK". Then you can go into recovery and flash it.
Credits go to Jotha
Updated link
[TOOL][27/04] Automated Fastboot Commands For HTC One X continued
http://forum.xda-developers.com/showthread.php?t=1634786
credits go to TeAm Hex
For now, this is what I can think of, for sure there are many more commands, but hopefully we don't need them, but like I said, feel free and put them in here
I hope this will help some noobs, like myself!
If this helped you, please push THANKS
thanks! this will stop us noob's, spamming up dev's thread's.
Thanks for you efforts
First time with real android phone, this is good!
Thanks mate
Sent from my HTC One X using xda premium
Can you add the command to push the custom rom to sdcard without mout USB via CWM ?
Just one thing to make it a little easyer to come into the right folder:
Open the folder with the fastbootfiles in a window.
Go to command line and type cmd and the cmd.exe will be shown in the menu. Drag & Drop the cmd.exe into the opened fastboot folder.
When you now open this cmd, it shows the right folder at the start and you can easyly type the commands without navigation through folders.
incident said:
Can you add the command to push the custom rom to sdcard without mout USB via CWM ?
Click to expand...
Click to collapse
Would be great, if this is possible! But as far as I know, it not possible.
Edit:
It is possible now! Updated post!
Sent from my HTC One X using XDA
hello I have problem with loading boot.img in fastboot
sdk is open, phone is conncted to comp on fastboot usb mode , image is on disc c in folder fastboot and still recive this info
c:\fastboot>fastboot flash boot boot.img
'fastboot' is not recognized as an internal or external command,
operable program or batch file.
c:\fastboot>
pls help me with that
ok I fix this, that was problem with missing fastboot.exe and was no connection betwen phone and computer
this link helps fix that
http://dottech.org/tipsntricks/21534/how-to-install-adb-and-fastboot-on-your-windows-computer-for-use-with-your-android-phone/
You have to copy the Boot.img into the folder, where fastboot-, adb commands are situated (c:/andoid/platform-tools)
Then Open cmd. Go to platform-tools folder and from there it should work.
Sent from my HTC One X using XDA
Thanx man, but is fixed now, I did this by follow the instr. in page from my last post, and goes perfect. I just flashed new rom with 1.8 base and iam now on the bright side of life.
PS sorry for my english
@OP, last time I tried fastboot boot command it gave me device not found message(no problem when fastboot flash). What's the correct approach to make it work? I recently updated to 1.28 and I want to stay in stock for the mean time.
Sent either from my Arc or One X using xda premium
You can add the adb and fastboot directory path to the environment path in windows settings. You can then use adb and fastboot outside of the platform tools directory, but still in command prompt of course
Sent from my HTC One X using Tapatalk 2
I'm following your tutorial to the letter but whenever i use fastboot boot recovery.img it refuses to go into recovery. But i can boot into recovery manually and when i do there still isnt any adb devices connected.
Stuart.upton666 said:
I'm following your tutorial to the letter but whenever i use fastboot boot recovery.img it refuses to go into recovery. But i can boot into recovery manually and when i do there still isnt any adb devices connected.
Click to expand...
Click to collapse
3. Then use: "fastboot boot recovery.img" (thus booting your image from pc and not the installed recovery).
4. When in recovery, you can use the adb commands.
5. You can try with "adb devices" which should show you serial of phone.
6. command: adb push rom_rom.zip /sdcard
In point 3, it is not supposed to boot into recovery. Its for booting your recovery.img (e.g. recovery-clockwork-touch-5.8.3.1-endeavoru.img ) from PC. After this step you will automatically boot into Recovery. From there you can use adb commands.
Did you try "adb devices"?
I tried it myself and it works!
This guide is great... Thanks!
Sent from my HTC One X using xda premium
tonyhagger said:
This guide is great... Thanks!
Sent from my HTC One X using xda premium
Click to expand...
Click to collapse
Thank you, Sir! Some kind of feedback is always appreciated !
Hi about Push to SDCARD command
My questions in Blue
to push ROM to SD card, if you were running superwipe without copying the rom file onto sd
1. You need recovery.img in your fastboot directory - Should i use signed recovery ?
2. Go into bootloader and connect phone
3. Then use: "fastboot boot recovery.img" (thus booting your image from pc and not the installed recovery).
4. When in recovery, you can use the adb commands.
5. You can try with "adb devices" which should show you serial of phone.
6. command: adb push rom_rom.zip /sdcard
incident said:
My questions in Blue
to push ROM to SD card, if you were running superwipe without copying the rom file onto sd
1. You need recovery.img in your fastboot directory - Should i use signed recovery ?
2. Go into bootloader and connect phone
3. Then use: "fastboot boot recovery.img" (thus booting your image from pc and not the installed recovery).
4. When in recovery, you can use the adb commands.
5. You can try with "adb devices" which should show you serial of phone.
6. command: adb push rom_rom.zip /sdcard
Click to expand...
Click to collapse
Take the newest CWM recovery.
Sent from my Desire HD using XDA
incident said:
My questions in Blue
to push ROM to SD card, if you were running superwipe without copying the rom file onto sd
1. You need recovery.img in your fastboot directory - Should i use signed recovery ?
2. Go into bootloader and connect phone
3. Then use: "fastboot boot recovery.img" (thus booting your image from pc and not the installed recovery).
4. When in recovery, you can use the adb commands.
5. You can try with "adb devices" which should show you serial of phone.
6. command: adb push rom_rom.zip /sdcard
Click to expand...
Click to collapse
Asking about number 6,since after push rom into sd card using adb command. How long will it takes rom to place in sd card? My adb command just stuck after push rom without inform is it done or not.
And where did the push file goes? Seems I can't find it in CWM. I'm using latest cwm, but no zip file found in my sd card.
TEKONG84 said:
[/COLOR]
Asking about number 6,since after push rom into sd card using adb command. How long will it takes rom to place in sd card? My adb command just stuck after push rom without inform is it done or not.
And where did the push file goes? Seems I can't find it in CWM. I'm using latest cwm, but no zip file found in my sd card.
Click to expand...
Click to collapse
Rom should be on root of Sd.
If this is not working, you can try to use the command while phone is powered off. I am not a dev, but I read something like that:
"Switch off your phone, connect to pc, wait until it is detected by windows and use: adb push nameofrom.zip /sdcard/" thats what Jotha told someone on ARHD Thread.
Try that and tell us if it worked.
Sent from my Desire HD using XDA
I isntalled Super Wipe to my htc one x before load rom.zip to sd card :S now cant open phone or recovery mod :S so how can i load stock rom again help please
rover_x said:
I isntalled Super Wipe to my htc one x before load rom.zip to sd card :S now cant open phone or recovery mod :S so how can i load stock rom again help please
Click to expand...
Click to collapse
First you will need to reflash your recovery while your phone is in fastboot mode, you can do this by opening a cmd and using the command 'fastboot flash recovery recoveryfilehere.img' and changing recoveryfilehere for your recovery file's name.
I am a bit unsure on these next steps but I believe you will then need to boot into the recovery you just installed and then use the following commands.
'adb devices'
'adb shell'
'mount sdcard'
and then in another cmd you will use the command 'adb push ROMNAME.zip /sdcard
then reboot into recovery and look for your ROM in the root of your sd card and install it as usual. Don't forget to flash the kernal too.
I tried these steps but didnt get result
See http://forum.xda-developers.com/showpost.php?p=26119526&postcount=17 and adapt to yours.
i tired many times , but each time get message " error:device not found" :S
Do you have HTC USB driver installed ?
yes i did
So it means that you're successfully boot into recovery by fastboot boot recovery.img and adb not working for you ?
Please note, adb will not work when you do fastboot flash recovery recovery.img
ckpv5 said:
So it means that you're successfully boot into recovery by fastboot boot recovery.img and adb not working for you ?
Please note, adb will not work when you do fastboot flash recovery recovery.img
Click to expand...
Click to collapse
Ah right, my bad
Sent from my HTC One X using xda premium
Hello Yu Yureka fans!!!
This for the Yu Yureka fans who want to root the phone but don't want to miss OTA update by flashing custom recovery
In this thread i will tell you how to ROOT your Yu Yureka without flashing custom recovery.
This method will not flash custom recovery over stock recovery, this will just boot the custom recovery once just to flash the superuser.zip. so you will be back to stock recovery after flashing superuser.zip.
So lets get started...
Your Bootloader should be UNLOCKED
Files you need:
1. adb and fastboot drivers
2. A CWM recovery link (don't worry we wont flash it, it is just needed to install superuser.zip)
3. Superuser.zip link (save this in your sd card or internal memory)
Note: Keep recovery.img file in the same folder where adb and Fastboot drivers are placed and always open command window from that folder.
Connect your phone to pc via data cable
Steps:
1. Open command window (cntl+shift+right click)
2. Type
Code:
adb devices
if your device is connected you will get it in connected devices
3. Type
Code:
adb reboot-bootloader
4. Type
Code:
fastboot -i 0x1ebf boot recovery-yu.img
now your device will boot into recovery mode
5. Select install zip from sd and navigate where you have downloaded the superuser.zip and select install.
6. Done!!! Your device is rooted and you are still in stock recovery :good: you wont miss the OTA
To check if you are in stock recovery just reboot into recovery :good:
Hit thanks if this helped :good:
This isn't yours, You copied it from YuPlayGodForums, from DoomLord's post...
N'ayam Amarsh'e said:
This isn't yours, You copied it from YuPlayGodForums, from DoomLord's post...
Click to expand...
Click to collapse
First i am not a user of yuplaygod forums,
Second its not copied
Third you have no right to point at someone without any valid reason
Lastly stop spamming my post (read xda forum rules first you visit it here --> http://forum.xda-developers.com/announcement.php?f=3861)
@aashking
You can't boot the recovery image on locked bootloader; we have covered this fact already.
http://forum.xda-developers.com/showpost.php?p=58628082&postcount=12
Titokhan said:
@aashking
You can't boot the recovery image on locked bootloader; we have covered this fact already.
http://forum.xda-developers.com/showpost.php?p=58628082&postcount=12
Click to expand...
Click to collapse
@Titokhan yeah dude thanks for reminding i will update the OP :good:
Unable to get the 3rd command working. It keeps waiting for the device and the device reboots in normal mode. What am I doing wrong?
jitendragarg said:
Unable to get the 3rd command working. It keeps waiting for the device and the device reboots in normal mode. What am I doing wrong?
Click to expand...
Click to collapse
Reinstall ADB Drivers
adbdriver.com
N'ayam Amarsh'e said:
Reinstall ADB Drivers
adbdriver.com
Click to expand...
Click to collapse
Thanks, will check. Although I downloaded the drivers just today, so not sure, how it is not up to date. Anyway, will check it once I am home in 3 hours.
tried resintalling the drivers. didn't help. command prompt still keeps on waiting for device forever, while phone is in fastboot mode.
Edit:
If I cancel the third command, and check the list again, phone is not listed. Somehow, after rebooting into bootloader, phone stops the adb connection.
i am on twrp recovery can i flash this recovery on that and update the new ota?
please help
on reference to this thread
http://forum.xda-developers.com/nexus-5x/general/guides-how-to-guides-beginners-t3206930
I was able to unlock the bootloader, after that im already setting up my custom recovery
1.) downloaded twrp-2.8.7.2-bullhead.img and put it on C:\SDK\platform-tools
2.) navigated to C:\SDK\platform-tools and opened "open command window here"
3.) issue the command C:\SDK\platform-tools>fastboot flash recovery twrp-2.8.7.2-bullhead.img
4.) restarted the boot loader
5.) i try to select recovery mode, but its going to the dead android bootscreen
what did I do wrong?
do i need to get rooted first in order to create a TWRP recovery?
its already working
Hi everyone, after getting bootloader ublocked and minimal adb and fastboot tools installed on my pc I’ve started to follow step by a step what this web says to get my phone rooted.
magisk.me/root-mi-a2-a2-lite-magisk-install-twrp-recovery/
But while trying to install TWRP recovery I can’t finish step 8 because when I introduce the command “ adb sideload twrp-installer-daisy-3.2.3-0.zip” it puts me that device is not found so I cannot finish to install TWRP recovery.
Any suggestions?
ivvan14 said:
Hi everyone, after getting bootloader ublocked and minimal adb and fastboot tools installed on my pc I’ve started to follow step by a step what this web says to get my phone rooted.
magisk.me/root-mi-a2-a2-lite-magisk-install-twrp-recovery/
But while trying to install TWRP recovery I can’t finish step 8 because when I introduce the command “ adb sideload twrp-installer-daisy-3.2.3-0.zip” it puts me that device is not found so I cannot finish to install TWRP recovery.
Any suggestions?
Click to expand...
Click to collapse
Try this instead
adb push twrp-installer.zip /sdcard
But what I need to do before that? Should I move the twrp installer zip file to SD card? More things to do? I’m confused
ivvan14 said:
But what I need to do before that? Should I move the twrp installer zip file to SD card? More things to do? I’m confused
Click to expand...
Click to collapse
Get to fastboot. eg.
adb reboot bootloader
Boot TWRP
fastboot boot twrp.img
Copy the installer
adb push installer.zip /sdcard
Install using TWRP
Note that installing twrp removes Magisk so if you want root, reinstall Magisk.