FORUMS
Remove All Ads from XDA

TUT SDK and Fastboot commands

2,176 posts
Thanks Meter: 458
 
By putti71, Senior Member on 18th April 2012, 08:37 AM
Post Reply Email Thread
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/show....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
The Following 69 Users Say Thank You to putti71 For This Useful Post: [ View ] Gift putti71 Ad-Free
 
 
18th April 2012, 10:03 AM |#2  
kemmo123's Avatar
Senior Member
Flag Sydney
Thanks Meter: 111
 
More
thanks! this will stop us noob's, spamming up dev's thread's.
18th April 2012, 04:03 PM |#3  
verynuclear's Avatar
Senior Member
Flag UAE
Thanks Meter: 284
 
More
Thumbs up
Thanks for you efforts
21st April 2012, 06:50 PM |#4  
vua777's Avatar
Senior Member
Thanks Meter: 94
 
More
First time with real android phone, this is good!
Thanks mate

Sent from my HTC One X using xda premium
The Following User Says Thank You to vua777 For This Useful Post: [ View ] Gift vua777 Ad-Free
21st April 2012, 07:09 PM |#5  
Senior Member
Thanks Meter: 8
 
More
Can you add the command to push the custom rom to sdcard without mout USB via CWM ?
22nd April 2012, 12:06 AM |#6  
Neo XL's Avatar
Senior Member
Flag Kassel
Thanks Meter: 134
 
More
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.
22nd April 2012, 07:19 AM |#7  
putti71's Avatar
OP Senior Member
Thanks Meter: 458
 
More
Quote:
Originally Posted by incident

Can you add the command to push the custom rom to sdcard without mout USB via CWM ?

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
The Following User Says Thank You to putti71 For This Useful Post: [ View ] Gift putti71 Ad-Free
22nd April 2012, 09:31 AM |#8  
domberone's Avatar
Junior Member
Thanks Meter: 3
 
More
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...android-phone/
22nd April 2012, 12:17 PM |#9  
putti71's Avatar
OP Senior Member
Thanks Meter: 458
 
More
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
The Following User Says Thank You to putti71 For This Useful Post: [ View ] Gift putti71 Ad-Free
22nd April 2012, 05:12 PM |#10  
domberone's Avatar
Junior Member
Thanks Meter: 3
 
More
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
25th April 2012, 01:19 PM |#11  
Rycon33's Avatar
Senior Member
Thanks Meter: 2,118
 
Donate to Me
More
@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
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