[Q] load ROM to phone when phone won't boot up - AT&T HTC One (M7)

is it possible to load a rom onto a phone if the phone won't boot up? i'm hoping that it is possible to either A. somehow transfer a ROM zip file to my phone or...B. install a ROM on my phone from my PC. are either of these possible?

clsifford said:
is it possible to load a rom onto a phone if the phone won't boot up? i'm hoping that it is possible to either A. somehow transfer a ROM zip file to my phone or...B. install a ROM on my phone from my PC. are either of these possible?
Click to expand...
Click to collapse
If you still have a custom recovery installed you can either
Both will be using a cmd window. Put the rom.zip in the folder you are using to open your cmd window from
Code:
adb sideload romname.zip
or
Code:
adb push romname.zip /sdcard/
Any questions PM with a link to this thread

bigdaddy619 said:
If you still have a custom recovery installed you can either
Both will be using a cmd window. Put the rom.zip in the folder you are using to open your cmd window from
Code:
adb sideload romname.zip
or
Code:
adb push romname.zip /sdcard/
Any questions PM with a link to this thread
Click to expand...
Click to collapse
i'll give it a try. thanks!

Related

[Q] ADB, Odin & SuperOne Click

Any one out there that can help me understand the last part of Adb.
lol.
I learned how to use Odin and superoneclick.
Now I am on Adb.
I read all I can on Team Whiskeys and XDA website and other googled websites. I installed everything and did the My computer/system properties/advance/Enviroment Variables/Path entries.
I start ADB and then I do in command prompt "adb devices" and whoopie I see my phone.
NOW WHAT?
No body on the instructions or website that I have read goes past that.
How do I push down a Rom to overwrite the system with the new Rom I want to try?
Hope someone out in the Forum has really done this before and will post how they do it.
Need to find someone smart enough to finish the instructions.
Thanks,
CatfishKnight
with adb you can copy files to your sd card or system without ever having to mount your sd card to your phone. that's the main thing I use it for
for instance, I have a rom named Trigger_281.zip on my desktop, to push it I would do
Code:
adb push Trigger_281.zip /sdcard/Trigger_281.zip
you can also pull files by using "adb pull <location of file on phone>"
and so on.
Furthermore if you ever need shell access you can do "adb shell" and run unix commands from console instead of on the phone
birgertime said:
with adb you can copy files to your sd card or system without ever having to mount your sd card to your phone. that's the main thing I use it for
for instance, I have a rom named Trigger_281.zip on my desktop, to push it I would do
Code:
adb push Trigger_281.zip /sdcard/Trigger_281.zip
you can also pull files by using "adb pull <location of file on phone>"
and so on.
Furthermore if you ever need shell access you can do "adb shell" and run unix commands from console instead of on the phone
Click to expand...
Click to collapse
Thanks for showing me how to push to my phone. Now do I install it. In recovery mode as a zip? I thought adv installed it and I just rebooted and it was installed.
birgertime said:
with adb you can copy files to your sd card or system without ever having to mount your sd card to your phone. that's the main thing I use it for
for instance, I have a rom named Trigger_281.zip on my desktop, to push it I would do
Code:
adb push Trigger_281.zip /sdcard/Trigger_281.zip
you can also pull files by using "adb pull <location of file on phone>"
and so on.
Furthermore if you ever need shell access you can do "adb shell" and run unix commands from console instead of on the phone
Click to expand...
Click to collapse
Thanks for showing me how to push to my phone. Now do I install it. In recovery mode as a zip? I thought adb installed it and I just rebooted and it was installed.
It just moves the file to the phone. You have to flash the file yourself if it is a flashable.
You can push a .jpg file if you want, it doesn't matter, it only moves it.
And I think you're getting confused with the 'adb install' command. You can install NON-system APKs by doing that.
Code:
adb install someprogram.apk
birgertime said:
It just moves the file to the phone. You have to flash the file yourself if it is a flashable.
You can push a .jpg file if you want, it doesn't matter, it only moves it.
And I think you're getting confused with the 'adb install' command. You can install NON-system APKs by doing that.
Code:
adb install someprogram.apk
Click to expand...
Click to collapse
I guess I was confused on what ADB could do.
I thought it could push down a Rom and install it onto the phone.
Then I would disconnect it and reboot the phone and I would have the newer rom installed.
I didn't know that it only pushed the ROM onto the sdcard and then I would install the zip from the phone itself.
Finally I got an answer to my question.
LOL.
I have tried on the team whiskey site to and no one answered it. Also all the stuff I read on it really didn't tell me that either.
I really appreciate your answer in helping me understand it.
I am also using Trigger 2.8 like you. But you said you had Trigger2.8.1 saved??
I have only seen Trigger 2.8 today.
^ birgertime is the developer of Trigger. He is already cooking something new in the kitchen.
s15274n said:
^ birgertime is the developer of Trigger. He is already cooking something new in the kitchen.
Click to expand...
Click to collapse
Duhhh... I missed that... LOL. I am brain fried!!! I have installed Odin, SuperOneClick, and ADM. I have be learning all three but was having trouble with understanding what ADB could do. Been reading lots and lots about it all day. Whew. I am tired. Ever instruction got down to connecting and seeing your phone and then it would end there. Finally I got an answer from Birgertime. Thanks.
I have 4 different roms saved to my phone to switch between if I want too. But I love Trigger 2.8 with Overclock v2. Also I am seeing 9 sats out of 11 on my gps. With Overclock v2 and using CPUBoostPro I am right at 2000 with Quadrant.

[Q] ADB, Is a directory help

Hey I'm havging a simple adb issue. I'm trying to push a file via adb to the root of my sdcard but I keep receiving "Failed to copy.......Is a directory. What does that mean, and what could I be doing wrong? Thanks
Here's what I've tried:
adb push cd C:\Users\David\Documents\Capture.JPG /sdcard
adb push C:\Users\David\Documents\Capture.JPG /sdcard
cd C:\Users\David\Documents\
adb push Capture.jpg
filmaker said:
Hey I'm havging a simple adb issue. I'm trying to push a file via adb to the root of my sdcard but I keep receiving "Failed to copy.......Is a directory. What does that mean, and what could I be doing wrong? Thanks
Here's what I've tried:
adb push cd C:\Users\David\Documents\Capture.JPG /sdcard
adb push C:\Users\David\Documents\Capture.JPG /sdcard
cd C:\Users\David\Documents\
adb push Capture.jpg
Click to expand...
Click to collapse
you're typing incorrect paths and commands.
first you need to cd into your tools, mine looks like this:
cd C:\android-sdk\platform-tools
then it'll be in your tools folder and you'd do this:
adb push Capture.jpg /sdcard/Capture.jpg
by the way, you probably coud've simply mounted the phone as a disk drive and transefered the image that way too.
it is in your best interest to learn more about adb, I made a links thread with a few links to adb guides, just click my avatar to find my threads. also if you ever have a quick question feel free to ask in the q+a thread in my sig.
filmaker said:
Hey I'm havging a simple adb issue. I'm trying to push a file via adb to the root of my sdcard but I keep receiving "Failed to copy.......Is a directory. What does that mean, and what could I be doing wrong? Thanks
Here's what I've tried:
adb push cd C:\Users\David\Documents\Capture.JPG /sdcard
adb push C:\Users\David\Documents\Capture.JPG /sdcard
cd C:\Users\David\Documents\
adb push Capture.jpg
Click to expand...
Click to collapse
First cd to the directory that the file you want to push is in. So if its in documents, do:
cd \Users\David\Documents\
Then do : adb push Capture.jpg /sdcard/
That should do the trick, assuming you have adb set up properly to execute commands from any directory (adb.exe must be set in PATH)
Sent from my PG86100 using Tapatalk
il Duce said:
you're typing incorrect paths and commands.
first you need to cd into your tools, mine looks like this:
cd C:\android-sdk\platform-tools
then it'll be in your tools folder and you'd do this:
adb push Capture.jpg /sdcard/Capture.jpg
by the way, you probably coud've simply mounted the phone as a disk drive and transefered the image that way too.
it is in your best interest to learn more about adb, I made a links thread with a few links to adb guides, just click my avatar to find my threads. also if you ever have a quick question feel free to ask in the q+a thread in my sig.
Click to expand...
Click to collapse
Thanks lol that helped a lot
Pushing via ADB - permission denied
Hello!
I accidently bricked my phone. Zenfone 2...
On trying to send file via adb push in order to flash via tethered cwm, i get notice permission denied.
Actual status, fully reset via cwm, no possibility to get rom on device, external sd not detected, otg same.
HELP ME!
Device was rooted und adb allowed before first trial flashing new rom and the actual desaster...
AlexDGF said:
Hello!
I accidently bricked my phone. Zenfone 2...
On trying to send file via adb push in order to flash via tethered cwm, i get notice permission denied.
Actual status, fully reset via cwm, no possibility to get rom on device, external sd not detected, otg same.
HELP ME!
Device was rooted und adb allowed before first trial flashing new rom and the actual desaster...
Click to expand...
Click to collapse
This is an HTC Evo 3D thread. Check this thread for Zenfone 2. If you can't figure it out feel free to send me a message to give you some information.
http://forum.xda-developers.com/showthread.php?t=3096596
Asus Zenfone 2 | Resources all in one thread
Sent from my Evo 3D.
Crashed zenfone 2
Hello!
I accidently bricked my phone. Zenfone 2...
On trying to send file via adb push in order to flash via tethered cwm, i get notice permission denied.
Actual status, fully reset via cwm, no possibility to get rom on device, external sd not detected, otg same.
HELP ME!
Device was rooted und adb allowed before first trial flashing new rom and the actual desaster...

How to adb push a zip ROM thru CWM

My prime is stuck in the splash screen and I can't get it to go further than that. I've been reading and been told I can push the ROMs zip file with the adb push command. The zip I downloaded on my computer is in my downloads folder. What would I exactly need to put in the command window to push the zip to the internal memory of my prime?
Sent from my Galaxy Nexus using xda premium
Nilsonf said:
My prime is stuck in the splash screen and I can't get it to go further than that. I've been reading and been told I can push the ROMs zip file with the adb push command. The zip I downloaded on my computer is in my downloads folder. What would I exactly need to put in the command window to push the zip to the internal memory of my prime?
Sent from my Galaxy Nexus using xda premium
Click to expand...
Click to collapse
Number 1, stick your ROM into the same folder that adb is in.
Number 2, read up about command line and terminal. (Trust me, you should do this)
Number 3, with your new found knowledge, push that file onto your internal storage. Example "adb push /ROM.zip /sdcard" !!!!!!
It's as simple as that sometimes.
The thing I don't get is what am I supposed to put on the adb push /ROM.zip /sdcard part
Sent from my Galaxy Nexus using xda premium
adb
Run adb devices, this will let you know if your drivers are working correctly, you should get
Recovery and your devices serial number, then if your zip is named virtuous.zip the command line is,
adb push virtuous.zip /sdcard/
You put the name of the zip file in there to push, /sdcard/ puts it on your root directory.
dklue said:
Run adb devices, this will let you know if your drivers are working correctly, you should get
Recovery and your devices serial number, then if your from zip is named virtuous.zip the command line is,
ad push virtuous.zip /sdcard/
You put the name of the zip file in there to push, /sdcard/ puts it on your root directory.
Click to expand...
Click to collapse
I've been doing that but it doesn't work
Sent from my Galaxy Nexus using xda premium
adb
Can you put it into cwm recovery ? When off hold volume down and the power button,
When little white letters come up, hit volume up, it should be in cwm when your adb pushing files, you can also try continuing to hold down on volume and then you get the three choices,
Android, USB, wipe data, it may push in the USB choice, read in the development section how
to unbrick your transformer prime, hopefully its a soft brick.
dklue said:
Can you put it into cwm recovery ? When off hold volume down and the power button,
When little white letters come up, hit volume up, it should be in cwm when your adb pushing files, you can also try continuing to hold down on volume and then you get the three choices,
Android, USB, wipe data, it may push in the USB choice, read in the development section how
to unbrick your transformer prime, hopefully its a soft brick.
Click to expand...
Click to collapse
Yeah when I try to push the file its in CWM and I type adb devices it recognizes it in recovery and the serial. I put adb push Primalicious_9.4.2.21._Final.zip /sdcard/ enter and it says no such file. Is it supposed to be in a specific folder or am I doing something wrong? I already unbricked it I just need to load the ROM
Sent from my Galaxy Nexus using xda premium
adb
The rom zip file should be in the directory where your adb.exe is. So if its in say
Program files/android/tools that's where you need to put the zip, otherwise it won't know
Where it is.
dklue said:
The rom zip file should be in the directory where your adb.exe is. So if its in say
Program files/android/tools that's where you need to put the zip, otherwise it won't know
Where it is.
Click to expand...
Click to collapse
Is this right?
Sent from my Galaxy Nexus using xda premium
Sent from my Galaxy Nexus using xda premium
Sent from my Galaxy Nexus using xda premium
adb
Yes that's right, you may want to rename it prime.zip, cause it may be .zip.zip or something,
or it may be a zip inside a zip.
dklue said:
Yes that's right, you may want to rename it prime.zip, cause it may be .zip.zip or something,
or it may be a zip inside a zip.
Click to expand...
Click to collapse
So rename the ROM prime.zip? And try that?
Sent from my Galaxy Nexus using xda premium
adb
You need to put the full file name,
adb push primalicious.zip /sdcard/
That's just the example, put the correct name in and include .zip.
I changed the name to prime.zip so I tried adb push prime.zip /sdcard/ and adb push prime.zip.zip /sdcard/ and it says no files found
Sent from my Galaxy Nexus using xda premium
adb
Do you have a backup to restore in cwm ? Or try to unmount /staging and mount /Data
In cwm and try
adb push prime.zip /data/local/
Otherwise I'm not sure why its not recognizing that file, I bricked my prime and someone in irc channel sent me a blob file, and he told me to push it to /data/local/
And it worked, I had to use win xp cause I couldn't get it to work on win 7, but your getting the correct response from adb devices, so I'm not sure,
---------- Post added at 09:22 PM ---------- Previous post was at 09:11 PM ----------
http://android.dkszone.net/copy-transfer-files-android-sd-card-adb-windows
dklue said:
Do you have a backup to restore in cwm ? Or try to unmount /staging and mount /Data
In cwm and try
adb push prime.zip /data/local/
Otherwise I'm not sure why its not recognizing that file, I bricked my prime and someone in irc channel sent me a blob file, and he told me to push it to /data/local/
And it worked, I had to use win xp cause I couldn't get it to work on win 7, but your getting the correct response from adb devices, so I'm not sure,
Click to expand...
Click to collapse
Ok thank you for your help. I will try to do that tomorrow cause I'm tired of messing with it for tonight lol. Hopefully I can get it to work
Sent from my Galaxy Nexus using xda premium
FIX!! - How to adb a zip ROM through CWM!!!
Hello there, for the last few nights I was having the same issue as you. I bricked my tablet, fixed it, and then just got stocked on the recovery with no data on my SDCARD. After searching and searching for hours online I found your post last night. And after reading the comments from "dklue", i googled some more information about something very important that me and you were missing!: "Blob files".
The "Primalicious_9.4.2.21._Final.zip" file or the "AOKP.zip" file will not work just like that because they are not in the format to be "Pushed" using the push command (At least thats what i kinda realized lol) anyhow, so i went online and searched for a ROM on Blob format and luckily i found the following!:
[ROM][WW][US][9.4.2.21] Primeval: The STOCK stock rom
So here is what worked for me thanks God! lol (Keep in mind that for some reason this process did not work for me on the new "CWM Touch Recovery 5.8.1.8" I actually had to downgrade my CWM to the 5.5.0.4 Version, you can download it from here:
androidroot . mobi / 2012 / 02/22/introducing-cwm-for-asus-transformer-prime/ --> WITH NO SPACE in between!
Here is how to Install the CWM file on your prime:
1. Get fastboot from that website, and extract it.
2. Download the blob file (tfp_CWM5_androidroot.blob), and put it in the same folder as where you extracted fastboot.
3. Power off your prime.
4. Boot with Volume-down pressed. Wait when you see text appearing. The prime will then allow you to start “fastboot” -> USB ICON.
5. Open up a command-line prompt, and navigate to where you extracted fastboot with “cd”.
6. Enter the following commandline to flash recovery: fastboot -i 0x0b05 flash recovery tfp_CWM5_androidroot.blob
7. Reboot
-----------------------------------------------------------------------------------------
Anyhow, so after you have that version installed:
1. Download "ROOTED 9.4.2.21 CWM compatible signed US version"
d - h . s t / r 4 4 -> WITH NO SPACE! (This is from the Primeval: The STOCK stock rom) Thread.
2. EXTRACT IT to the same directory where your ADB is! We only need the BLOBFILE from that zip folder!
3. Once you have the files extracted just run the following on your Command line:
adb push blobfile /sdcard/ ---> Its going to look like its not doing
nothing but dont worry its doing it in the background after 401 or some
seconds the command line will returned to you with a message like this:
1275kb, dadadada...
4. VERY IMPORTANT!: enter:
adb shell
dd if=/sdcard/blobfile of=/dev/block/mmcblk0p4
(Same as the previews step it will take forever but it will work dude!)
5. DONE! at least this is what worked for me man!
Im so happy now my Asus is freaking Brand NEw again! i was JUST about to through this garbage away but im so happy "dklue" gave me the BLOB concept idea! heheheh i guess i learned something new now..
djedoortega said:
Hello there, for the last few nights I was having the same issue as you. I bricked my tablet, fixed it, and then just got stocked on the recovery with no data on my SDCARD. After searching and searching for hours online I found your post last night. And after reading the comments from Nilsonf, i googled some more information about something very important that me and you were missing!: "Blob files".
The "Primalicious_9.4.2.21._Final.zip" file or the "AOKP.zip" file will not work just like that because they are not in the format to be "Pushed" using the push command (At least thats what i kinda realized lol) anyhow, so i went online and searched for a ROM on Blob format and luckily i found the following!:
[ROM][WW][US][9.4.2.21] Primeval: The STOCK stock rom
So here is what worked for me thanks God! lol (Keep in mind that for some reason this process did not work for me on the new "CWM Touch Recovery 5.8.1.8" I actually had to downgrade my CWM to the 5.5.0.4 Version, you can download it from here:
androidroot . mobi / 2012 / 02/22/introducing-cwm-for-asus-transformer-prime/ --> WITH NO SPACE in between!
Here is how to Install the CWM file on your prime:
1. Get fastboot from that website, and extract it.
2. Download the blob file (tfp_CWM5_androidroot.blob), and put it in the same folder as where you extracted fastboot.
3. Power off your prime.
4. Boot with Volume-down pressed. Wait when you see text appearing. The prime will then allow you to start “fastboot” -> USB ICON.
5. Open up a command-line prompt, and navigate to where you extracted fastboot with “cd”.
6. Enter the following commandline to flash recovery: fastboot -i 0x0b05 flash recovery tfp_CWM5_androidroot.blob
7. Reboot
-----------------------------------------------------------------------------------------
Anyhow, so after you have that version installed:
1. Download "ROOTED 9.4.2.21 CWM compatible signed US version"
d - h . s t / r 4 4 -> WITH NO SPACE! (This is from the Primeval: The STOCK stock rom) Thread.
2. EXTRACT IT to the same directory where your ADB is! We only need the BLOBFILE from that zip folder!
3. Once you have the files extracted just run the following on your Command line:
adb push blobfile /sdcard/ ---> Its going to look like its not doing
nothing but dont worry its doing it in the background after 401 or some
seconds the command line will returned to you with a message like this:
1275kb, dadadada...
4. VERY IMPORTANT!: enter:
adb shell
dd if=/sdcard/blobfile of=/dev/block/mmcblk0p4
(Same as the previews step it will take forever but it will work dude!)
5. DONE! at least this is what worked for me man!
Im so happy now my Asus is freaking Brand NEw again! i was JUST about to through this garbage away but im so happy "Nilsonf" gave me the BLOB concept idea! heheheh i guess i learned something new now..
Click to expand...
Click to collapse
Thanks man. I'll have to try that sometime later on today. I will report back with the end results
Sent from my Galaxy Nexus using xda premium
I'm stuck on number 3 of part 2. It's been doing nothing for about 20 minutes now. Should I keep waiting?

Bricked Badly

Hello i have a transformer prime and i did some work on it and at this moment, it has not any files in it but i can access cwm recovery and fastboot mode. Plz help me. I think that somehow i need to put rom inside so i can flash it with cwm but how.
Put rom on sd card?
Sent from my Galaxy Nexus using XDA Premium HD app
Although you may get flamed from posting in Dev instead of QA,iIf you have fastboot access from your PC, then you can run the following command:
fastboot -i 0x0b05 flash staging YourChoiceOfRom.blob
Afterwards, reboot your TFP and your new rom should install.
If not, you can also try using ADB to push the file from your PC to the tablet's internal storage, then install through CWM.
kokopuphz said:
Although you may get flamed from posting in Dev instead of QA,iIf you have fastboot access from your PC, then you can run the following command:
fastboot -i 0x0b05 flash staging YourChoiceOfRom.blob
Afterwards, reboot your TFP and your new rom should install.
If not, you can also try using ADB to push the file from your PC to the tablet's internal storage, then install through CWM.
Click to expand...
Click to collapse
ADB push a rom onto /sdcard from your pc through Recovery
SFG said:
ADB push a rom onto /sdcard from your pc through Recovery
Click to expand...
Click to collapse
Download nvflash from the dev thread, extract it to C: it has adb in it. Download universal naked driver from dev thread, install the drivers as per the opening page (the prime is connected to the pc by cable at this point and booted into cwm). Download a rom, put it in the nvflash folder where the adb.exe is. Open the folder so you can see adb.exe, press and hold the shift key, right click the mouse, from the menu select open command window here. In the window, type adb push (enter name of the rom) don't forget the .zip at the end, press enter. This will take about 5 minutes to transfer. Reboot to cwm, install the zip (rom). You should be good to go.

[Q] Unable to ADB push a ROM (using CM9 with CWM v6.0.1.0)

Hi guys,
This might be a common question/issue but i've tried to search and tried many ways. However i still am not able to do it successfully.
I'm trying to ADB push a ROM zip into my internal sdcard on my phone. Here's the steps i have used:
1. Open cmd in windows and locate the ADB path.
2. Plug phone into USB and boot into recovery.
3. Mount /sdcard/
Whenever i try that it always gives me "Error mounting /sdcard/". Why is this so? Do i need this step to do an ADB push?
I also tried doing ADB push without mounting /sdcard/ and it says file transfered in my cmd prompt window on my PC but i couldnt find the ROM zip file anywhere in /mnt/sdcard/.
Am i doing something wrong here?
Btw i'm using an SGS2 GT-i9100 with CM9 - 20120722 nightly (CWM version 6.0.1.0)
shadowcaster31 said:
Hi guys,
This might be a common question/issue but i've tried to search and tried many ways. However i still am not able to do it successfully.
I'm trying to ADB push a ROM zip into my internal sdcard on my phone. Here's the steps i have used:
1. Open cmd in windows and locate the ADB path.
2. Plug phone into USB and boot into recovery.
3. Mount /sdcard/
Whenever i try that it always gives me "Error mounting /sdcard/". Why is this so? Do i need this step to do an ADB push?
I also tried doing ADB push without mounting /sdcard/ and it says file transfered in my cmd prompt window on my PC but i couldnt find the ROM zip file anywhere in /mnt/sdcard/.
Am i doing something wrong here?
Btw i'm using an SGS2 GT-i9100 with CM9 - 20120722 nightly (CWM version 6.0.1.0)
Click to expand...
Click to collapse
And you are sure USB debugging is enabled on your phone? No need to do any kind of mount for ADB push command to work.
fxrb said:
And you are sure USB debugging is enabled on your phone? No need to do any kind of mount for ADB push command to work.
Click to expand...
Click to collapse
Yes USB debugging is turned on. Do i need to be in recovery to do ADB push?
shadowcaster31 said:
Yes USB debugging is turned on. Do i need to be in recovery to do ADB push?
Click to expand...
Click to collapse
No. Just connect the phone and enter ADB devices. Your phone should show up then.
fxrb said:
No. Just connect the phone and enter ADB devices. Your phone should show up then.
Click to expand...
Click to collapse
Great i can use adb devices. But now idea why it doesnt show my device ID correctly.
anyway i tried ADB push like this:
1. put my rom zip in the same folder as adb.exe
2. open cmd
3. type in "adb push ROM.zip /sdcard" (without the quotes)
4. i get error "failed to copy to 'ROM.zip' to '/sdcard': Is a directory"
Any idea how do i copy something into my /sdcard path?
edit: okay nvm i solved it. forgot another / after /sdcard.

Categories

Resources