[HOW-TO] ADB Push a ROM to your phone

Search This thread

brwetz

Senior Member
Jul 31, 2010
143
215
Used this method again today to make sure I got a ROM file over as I wiped everything before transferring the new ROM over like an idiot. Even the best of us make mistakes.
 

wallendiaz

Senior Member
Feb 9, 2011
297
61
Santo Domingo
i can use this method with my Galaxy Nexus???? my phone dont want boot just i can opne fastboot and cwm recovery and i want install a custom rom for fix this..
 

unk2009

Senior Member
Jul 22, 2009
986
278
New York(Hudson Valley)
Hello all,

I've seen multiple people who recently, by one way or another, have a phone that have the bootloader unlocked, device rooted, and a recovery flashed...but for some reason you don't have a ROM flashed and your phone won't boot up past the bootanimation. If you're in that situation, this will hopefully help solve that issue.

What this thread is designed to do is inform you how to flash a ROM.zip file onto your seemingly bricked HTC One S device that you can't boot up. As you know, usually if your phone boots up, you just plug it into your computer, mount it, and just drag and drop the file. Well, for those of you that have no way to do that, I hopefully have a fix for you!

Requirements:
Unlocked Bootloader/Rooted Device
CWM Recovery flashed from fastboot.
Basic knowledge of adb/fastboot commands

Steps:
- Download your ROM of choice (referred to as ROM.zip) and place it wherever your ADB is on computer's harddrive (referred to as c:\AndroidSDK\tools)


- Boot your phone into Recovery and select the "Mounts & Storage" screen

- Plug your phone into your computer using USB Data Transfer Cable

- Ensure in Recovery that your phone shows "Unmount /sdcard/" and "Unmount /system/" (If they do not show this automatically, just press each one once respectively as pressing just toggles Mount and Unmount)

- Open Command Prompt on your computer by doing Start -> Run -> cmd

- In Command Prompt, type "cd c:\AndroidSDK\tools" replacing AndroidSDK\tools with wherever your adb and ROM are located.

- This is probably the most important part - Still in Command Prompt, type "adb push ROM.zip /sdcard/ROM.zip" replacing ROM with the EXACT name of the ROM file and including the .zip piece on both ends. This may take a minute or two...or four, but you will see a message in Command Prompt saying something like <12345678kb to 1234567kb>. That is just telling you that the file was pushed properly. (I did not include that message in the picture below)


- Once this has completed, unplug your phone from your computer and close the Command Prompt window

- Back in Recovery, go to Recovery's main screen and Do a "Factory Reset", "Wipe Cache Partition", and "Wipe Dalvik Cache [which is in the Advanced menu of Recovery]"

- When these are all done, from Recovery's main screen, select "Install ZIP from SD Card" and then "Choose file from SD Card" and select the ROM.zip file you just pushed from your computer to the SD Card. If you do not see the file, go back to Mounts and Storage and toggle them to say "Mount /sdcard/" and "Mount /system/" and then go back and try to fine the ROM.zip file. If you still do not see it, it was not pushed correctly...go back and ensure you were letter for letter with the name and the file path.

- Once the screen in Recovery says "Install from SD Card Complete.", go back to Recovery's main screen yet again and select "Reboot system now" - If your device fails to Install the ROM.zip, I had this happen to me. You must push the CWM SuperSU ZIP (the .zip file is found at the end of this thread)file as outlined before and Install THAT .zip file in Recovery, then reboot Recovery and Install the ROM.zip from SD Card.

- Let your phone have some time to boot up...initial boot from installing a new ROM have histories of taking a couple minutes.

- You should now be on a working HTC One S running whatever ROM you decided to flash.

Conclusion:
I hope you got your phone working again and I hope this helped. Please feel free to critique this guide as I am quite new to the HTC One S, but not new to rooting phones at all. If you have questions, please comment and ask or don't hesitate to shoot me a PM...I'm more than willing to help.

I hope this helped all of you who may be in the situation I was in and the situation I've seen a couple of people in.

Thanks for this information goes out to doktortaru, strker45, and torxx.

Thanks for the tut...This is very helpful(fortunately I don't need to use this right now) will keep this in my favs :cool:

Sent from my HTC VLE_U using xda premium
 

jdizzle316

Senior Member
Mar 11, 2008
163
30
Hi guys, IM trying to help my friend "UN brick" his tmo one s. He tried flashing a ROM not made for his phone, and to make a long story short, there is no backup and his as is completely wiped.

So I figured I would try to push a ROM thru adb as mentioned on this thread. Here lies the problem...I can't mount usb in recovery (twrp), but I can mount everything else such a cache, data & system. If I could have mounted USB I would have just placed a ROM on his sd and flashed.

So basically his phone is completely wiped. It gets such on bootloader when trying to turn on the device, and the only other thing I can access is twrp recovery with no ability to mount.

I posted this question for help in the Q&A section but have not received a reply.

Please help me help my friend, I don't think he has the money to get another phone. Any suggestions would be great because I'm stuck.

And yes, he learned his lesson...always make a backup.

Regardless if there is a resolution or not, thank you for looking and your help!

Sent from my EVO using xda app-developers app
 

Metaleckz

Member
Sep 21, 2011
21
0
hey im having an error. it says
C:\Android\fastboot>adb push ROM.zip /sdcard
cannot stat 'ROM.zip': No such file or directory
 

BL4zD

Senior Member
Oct 19, 2010
358
49
i can use this method with my Galaxy Nexus???? my phone dont want boot just i can opne fastboot and cwm recovery and i want install a custom rom for fix this..
Yes, this method will work with any device via adb


hey im having an error. it says
C:\Android\fastboot>adb push ROM.zip /sdcard
cannot stat 'ROM.zip': No such file or directory
You must use the exact name of the ROM as it exists on your hard drive that you are trying to push...not "ROM.zip"
Copy the file name of the ROM you want to put on your device and then paste it into the terminal command prompt and it should work.
 

carlos16119

Member
Oct 31, 2011
40
3
Federal Way
whenever i try to push it this happens . idk what to do.
Yes, this method will work with any device via adb



You must use the exact name of the ROM as it exists on your hard drive that you are trying to push...not "ROM.zip"
Copy the file name of the ROM you want to put on your device and then paste it into the terminal command prompt and it should work.
 

Attachments

  • Untitled.jpg
    Untitled.jpg
    9.3 KB · Views: 1,134
  • Untitled1.jpg
    Untitled1.jpg
    25.9 KB · Views: 1,757
  • Like
Reactions: gago_89

havikx

Senior Member
Feb 4, 2009
494
61
can you do one for mac?? please

It's the same thing except everything has ./ before it.

Example... ./adb push

No ./ needed for cd commands. Just the adb commands.


Also.... You can type cd (space bar) then drag the folder you want seen into your command window and it will type out for you. Works with mac atleast.

Sent from my HTC VLE_U using xda app-developers app

---------- Post added at 12:46 PM ---------- Previous post was at 12:41 PM ----------

Hi guys, IM trying to help my friend "UN brick" his tmo one s. He tried flashing a ROM not made for his phone, and to make a long story short, there is no backup and his as is completely wiped.

So I figured I would try to push a ROM thru adb as mentioned on this thread. Here lies the problem...I can't mount usb in recovery (twrp), but I can mount everything else such a cache, data & system. If I could have mounted USB I would have just placed a ROM on his sd and flashed.

So basically his phone is completely wiped. It gets such on bootloader when trying to turn on the device, and the only other thing I can access is twrp recovery with no ability to mount.

I posted this question for help in the Q&A section but have not received a reply.

Please help me help my friend, I don't think he has the money to get another phone. Any suggestions would be great because I'm stuck.

And yes, he learned his lesson...always make a backup.

Regardless if there is a resolution or not, thank you for looking and your help!

Sent from my EVO using xda app-developers app

He can try fastboot flash. Bootloader still works.

Sent from my HTC VLE_U using xda app-developers app
 
Last edited:

brwetz

Senior Member
Jul 31, 2010
143
215
Make sure device is mounted in CWM. If that's the case, re-start the device into CWM and re-mount. I've had that issue before.
 

CallumMarks77

Senior Member
Sep 16, 2011
1,282
216
Bristol
sorry about my langauage BUT...

I ****ING LOVE YOU!!!!!!! thought i ****ed my phone right up then i came across this and you saved it!!!! I LOVE YOU!!!!(no homo)
 

slef2003

Senior Member
Aug 6, 2010
159
49
Norwich
thanks for this guide on adb pushing as it has got me out of a two day bootloop!! have now installed first custom rom and learnt so much about the process as well

Thanks given
 

Top Liked Posts

  • There are no posts matching your filters.
  • 192
    Hello all,

    I've seen multiple people who recently, by one way or another, have a phone that have the bootloader unlocked, device rooted, and a recovery flashed...but for some reason you don't have a ROM flashed and your phone won't boot up past the bootanimation. If you're in that situation, this will hopefully help solve that issue.

    What this thread is designed to do is inform you how to flash a ROM.zip file onto your seemingly bricked HTC One S device that you can't boot up. As you know, usually if your phone boots up, you just plug it into your computer, mount it, and just drag and drop the file. Well, for those of you that have no way to do that, I hopefully have a fix for you!

    Requirements:
    Unlocked Bootloader/Rooted Device
    CWM Recovery flashed from fastboot.
    Basic knowledge of adb/fastboot commands

    Steps:
    - Download your ROM of choice (referred to as ROM.zip) and place it wherever your ADB is on computer's harddrive (referred to as c:\AndroidSDK\tools)


    - Boot your phone into Recovery and select the "Mounts & Storage" screen

    - Plug your phone into your computer using USB Data Transfer Cable

    - Ensure in Recovery that your phone shows "Unmount /sdcard/" and "Unmount /system/" (If they do not show this automatically, just press each one once respectively as pressing just toggles Mount and Unmount)

    - Open Command Prompt on your computer by doing Start -> Run -> cmd

    - In Command Prompt, type "cd c:\AndroidSDK\tools" replacing AndroidSDK\tools with wherever your adb and ROM are located.

    - This is probably the most important part - Still in Command Prompt, type "adb push ROM.zip /sdcard/ROM.zip" replacing ROM with the EXACT name of the ROM file and including the .zip piece on both ends. This may take a minute or two...or four, but you will see a message in Command Prompt saying something like <12345678kb to 1234567kb>. That is just telling you that the file was pushed properly. (I did not include that message in the picture below)


    - Once this has completed, unplug your phone from your computer and close the Command Prompt window

    - Back in Recovery, go to Recovery's main screen and Do a "Factory Reset", "Wipe Cache Partition", and "Wipe Dalvik Cache [which is in the Advanced menu of Recovery]"

    - When these are all done, from Recovery's main screen, select "Install ZIP from SD Card" and then "Choose file from SD Card" and select the ROM.zip file you just pushed from your computer to the SD Card. If you do not see the file, go back to Mounts and Storage and toggle them to say "Mount /sdcard/" and "Mount /system/" and then go back and try to fine the ROM.zip file. If you still do not see it, it was not pushed correctly...go back and ensure you were letter for letter with the name and the file path.

    - Once the screen in Recovery says "Install from SD Card Complete.", go back to Recovery's main screen yet again and select "Reboot system now" - If your device fails to Install the ROM.zip, I had this happen to me. You must push the CWM SuperSU ZIP (the .zip file is found at the end of this thread)file as outlined before and Install THAT .zip file in Recovery, then reboot Recovery and Install the ROM.zip from SD Card.

    - Let your phone have some time to boot up...initial boot from installing a new ROM have histories of taking a couple minutes.

    - You should now be on a working HTC One S running whatever ROM you decided to flash.

    Conclusion:
    I hope you got your phone working again and I hope this helped. Please feel free to critique this guide as I am quite new to the HTC One S, but not new to rooting phones at all. If you have questions, please comment and ask or don't hesitate to shoot me a PM...I'm more than willing to help.

    I hope this helped all of you who may be in the situation I was in and the situation I've seen a couple of people in.

    Thanks for this information goes out to doktortaru, strker45, and torxx.
    4
    you don't need to finish the command with rom.zip:

    adb push ROM.zip /sdcard

    is enough.. Also you should so the ROM.zip in the same folder as ADB, with the your picture.
    3
    Don't need this tutorial as im not having this issue but wanted to say thanks for posting it. This should definitely help some people in the future! Great write up!
    2
    Hello all,

    I've seen multiple people who recently, by one way or another, have a phone that have the bootloader unlocked, device rooted, and a recovery flashed...but for some reason you don't have a ROM flashed and your phone won't boot up past the bootanimation. If you're in that situation, this will hopefully help solve that issue.

    What this thread is designed to do is inform you how to flash a ROM.zip file onto your seemingly bricked HTC One S device that you can't boot up. As you know, usually if your phone boots up, you just plug it into your computer, mount it, and just drag and drop the file. Well, for those of you that have no way to do that, I hopefully have a fix for you!

    Requirements:
    Unlocked Bootloader/Rooted Device
    CWM Recovery flashed from fastboot.
    Basic knowledge of adb/fastboot commands

    Steps:
    - Download your ROM of choice (referred to as ROM.zip) and place it wherever your ADB is on computer's harddrive (referred to as c:\AndroidSDK\tools)


    - Boot your phone into Recovery and select the "Mounts & Storage" screen

    - Plug your phone into your computer using USB Data Transfer Cable

    - Ensure in Recovery that your phone shows "Unmount /sdcard/" and "Unmount /system/" (If they do not show this automatically, just press each one once respectively as pressing just toggles Mount and Unmount)

    - Open Command Prompt on your computer by doing Start -> Run -> cmd

    - In Command Prompt, type "cd c:\AndroidSDK\tools" replacing AndroidSDK\tools with wherever your adb and ROM are located.

    - This is probably the most important part - Still in Command Prompt, type "adb push ROM.zip /sdcard/ROM.zip" replacing ROM with the EXACT name of the ROM file and including the .zip piece on both ends. This may take a minute or two...or four, but you will see a message in Command Prompt saying something like <12345678kb to 1234567kb>. That is just telling you that the file was pushed properly. (I did not include that message in the picture below)


    - Once this has completed, unplug your phone from your computer and close the Command Prompt window

    - Back in Recovery, go to Recovery's main screen and Do a "Factory Reset", "Wipe Cache Partition", and "Wipe Dalvik Cache [which is in the Advanced menu of Recovery]"

    - When these are all done, from Recovery's main screen, select "Install ZIP from SD Card" and then "Choose file from SD Card" and select the ROM.zip file you just pushed from your computer to the SD Card. If you do not see the file, go back to Mounts and Storage and toggle them to say "Mount /sdcard/" and "Mount /system/" and then go back and try to fine the ROM.zip file. If you still do not see it, it was not pushed correctly...go back and ensure you were letter for letter with the name and the file path.

    - Once the screen in Recovery says "Install from SD Card Complete.", go back to Recovery's main screen yet again and select "Reboot system now" - If your device fails to Install the ROM.zip, I had this happen to me. You must push the CWM SuperSU ZIP (the .zip file is found at the end of this thread)file as outlined before and Install THAT .zip file in Recovery, then reboot Recovery and Install the ROM.zip from SD Card.

    - Let your phone have some time to boot up...initial boot from installing a new ROM have histories of taking a couple minutes.

    - You should now be on a working HTC One S running whatever ROM you decided to flash.

    Conclusion:
    I hope you got your phone working again and I hope this helped. Please feel free to critique this guide as I am quite new to the HTC One S, but not new to rooting phones at all. If you have questions, please comment and ask or don't hesitate to shoot me a PM...I'm more than willing to help.

    I hope this helped all of you who may be in the situation I was in and the situation I've seen a couple of people in.

    Thanks for this information goes out to doktortaru, strker45, and torxx.
    @brwetz
    m8! what a lovely solution! its a real life saver! thanks
    WBR
    ReyTech.
    2
    Thank you man.
    Very informative for self learning!