This thread was made for the dreaded scenario where you flash a bad rom and don't have a working backup. Since we have a non-removable sdcard, it can get a little tricky to get out of this situation now that you have a non-booting phone. Here's how:
Requirements And Assumptions:
This is written assuming you already have the sdk installed on the root of your pc's C drive. I will also mention specific Clockwork menu options although the other custom recoveries seem to use similar if not almost identical nomenclature so I don't expect this to be a pitfall.
The Procedure:
-Pull the battery, leave out for several seconds, then replace.
-Press and hold volume down and volume up and the power button all at the same time, this should bring up the bootloader screen.
-Press volume up to highlight the recovery option, then press power to enter recovery. Don't select any recovery menu options just yet.
-Plug phone into pc.
-Now place the rom zip you're wanting to push to the phone inside the sdk's platform-tools folder on your pc.
-Now open a command prompt on the pc.
Using command prompt, first navigate to the sdk's platform-tools folder:
cd c:\
cd android-sdk-windows\platform-tools
Now go ahead and push the file. If using a pre-Jellybean or pre-Jellybean rom:
adb push <name of file here.zip> /data/media/ (Note: < > symbols not to be used in actual command)
If on Jellybean or roms based upon JB, you may need to use this command instead:
adb push <name of file here.zip> /data/media/0/ (last character is a zero, not a letter "O")
You should see the transfer rate in KB/s and then the size of the file that was pushed and the time it took.
Now on the phone, you should still be seeing the recovery menu so select install zip from sdcard > choose zip from sd card, and the pushed rom should now be an available option. Repeat the above steps for Gapps if necessary/desired. If the files pushed ok, it may behoove you to first go backwards in the recovery menu and do a full wipe of data/cache/dalvik cache, then proceed to install the rom like usual. Hopefully this time, it's a working rom.
Requirements And Assumptions:
This is written assuming you already have the sdk installed on the root of your pc's C drive. I will also mention specific Clockwork menu options although the other custom recoveries seem to use similar if not almost identical nomenclature so I don't expect this to be a pitfall.
The Procedure:
-Pull the battery, leave out for several seconds, then replace.
-Press and hold volume down and volume up and the power button all at the same time, this should bring up the bootloader screen.
-Press volume up to highlight the recovery option, then press power to enter recovery. Don't select any recovery menu options just yet.
-Plug phone into pc.
-Now place the rom zip you're wanting to push to the phone inside the sdk's platform-tools folder on your pc.
-Now open a command prompt on the pc.
Using command prompt, first navigate to the sdk's platform-tools folder:
cd c:\
cd android-sdk-windows\platform-tools
Now go ahead and push the file. If using a pre-Jellybean or pre-Jellybean rom:
adb push <name of file here.zip> /data/media/ (Note: < > symbols not to be used in actual command)
If on Jellybean or roms based upon JB, you may need to use this command instead:
adb push <name of file here.zip> /data/media/0/ (last character is a zero, not a letter "O")
You should see the transfer rate in KB/s and then the size of the file that was pushed and the time it took.
Now on the phone, you should still be seeing the recovery menu so select install zip from sdcard > choose zip from sd card, and the pushed rom should now be an available option. Repeat the above steps for Gapps if necessary/desired. If the files pushed ok, it may behoove you to first go backwards in the recovery menu and do a full wipe of data/cache/dalvik cache, then proceed to install the rom like usual. Hopefully this time, it's a working rom.