TUT SDK and Fastboot commands

Search This thread

TEKONG84

Senior Member
Aug 31, 2011
88
5
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 try push rom into cwm with abd push,seems like I need to rename rom into update.zip and it success. Then install like custom rom. Now my HOX running smooth again. :D

Sent from my HTC One X using XDA
 

dekylee

Senior Member
Apr 2, 2012
72
16
New York
Love it thank you especially:....

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!
 

putti71

Senior Member
Love it thank you especially:....

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!

You are wellcome!
 

mikey0105

Senior Member
May 5, 2012
368
47
can't push the rom :( everytime i type the command it says, no such file directory, even if i have the rom.zip inside my fastboot folder
 

paulyd9420

Member
Mar 14, 2016
28
3
indianapolis
Saved me

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://xdaforums.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
Appreciate it bro this helped me out alot
 

Top Liked Posts

  • There are no posts matching your filters.
  • 69
    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://xdaforums.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
    1
    First time with real android phone, this is good!
    Thanks mate

    Sent from my HTC One X using xda premium
    1
    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
    1
    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
    1
    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