Custom rom not flashing??? - Nexus 5 Q&A, Help & Troubleshooting

My phone recently got completly stuck on the google screen, and the only thing i can do is get into bootloader, and then go into recovery to get into CWM. I have the Cyanogenmod 11 ROM on my computer. I open cmd, and i do the "adb push" command, with the file name of the ROM, but it never works. Solutions? What is the exact command I have to give to push the rom onto my phone??
thanks

seanxytv said:
My phone recently got completly stuck on the google screen, and the only thing i can do is get into bootloader, and then go into recovery to get into CWM. I have the Cyanogenmod 11 ROM on my computer. I open cmd, and i do the "adb push" command, with the file name of the ROM, but it never works. Solutions? What is the exact command I have to give to push the rom onto my phone??
thanks
Click to expand...
Click to collapse
First have you tried restoring a nandroid backup (if you have one) or tried wiping cache/dalvik cache/user data and perform a factory reset via CWM recovery?
Otherwise to push a ROM to the device, rename your CM11 rom to just ROM.zip then Boot into recovery and connect to PC.
Type:
adb push ROM.zip /sdcard/
Once it's done pushing the ROM, use CWM and navigate to sdcard/ROM.zip and flash.

Related

Cannot boot the phone i9020 ICS

Hi guys, i tried to install that ROM
( http://forum.xda-developers.com/showthread.php?t=1396224 )
on my Nexus S i9020 with cwm.
Now when i try to turn on the phone i can only see the starting animation in loop, or, if i turn on my device in fastboot mode, i can't access the recovery mode, 'cause when i click it i can see the green droid for about 1 sec, but after that only a black screen XD
Before trying to install ICS i had Cyanogen mod 7, then i flashed the stock rom, and then i tried to install ICS
Does anyone know how can i go back to my previous ROM? thanks
Did you try flash this by installing the zip file or did you extract it to your sd card and use backup and restore?
Hmm, it says in the thread title that the nandroid backup is from I9023, not I9020.
If you can still access the fastboot mode then it's supposed to be easy. Just flash CWM recovery again and then use it to flash any custom ROM you want. Also wipe cache and dalvik-cache just in case.
Bryo92 said:
Hi guys, i tried to install that ROM
( http://forum.xda-developers.com/showthread.php?t=1396224 )
on my Nexus S i9020 with cwm.
Now when i try to turn on the phone i can only see the starting animation in loop, or, if i turn on my device in fastboot mode, i can't access the recovery mode, 'cause when i click it i can see the green droid for about 1 sec, but after that only a black screen XD
Before trying to install ICS i had Cyanogen mod 7, then i flashed the stock rom, and then i tried to install ICS
Does anyone know how can i go back to my previous ROM? thanks
Click to expand...
Click to collapse
you need to reflash your recovery(cwm or twrp) via fastboot then restore the nandroid backup that you made(you made a nandroid backup, right?) if no nandroid backup was made, flash a rom that you know will boot. you did realize that you restored a nandroid backup from a 9023 when you have a 9020? and it said tested on a 9023. anyways, you shouldnt restore other peoples nandroid backups, you should flash your roms. by restoring other peoples roms, you pickup other peoples issues as well.
Hi guys, I'm facing the same problem as the thread starter here. Using I9023. I still can load the fastboot mode but how do I reflash CWM in fastboot mode?
Sorry if this seems like a noob question. Thanks a lot!
thanks everyone, i solved it downloading the cwm img from the cwm's site, flashing it with fastboot and then restoring my backup
Hi Bryo92, may I know how you flash it using fastboot?
aaron.ng91 said:
Hi Bryo92, may I know how you flash it using fastboot?
Click to expand...
Click to collapse
fastboot flash recovery your-recovery-file.img
Hi suksit, I have installed the SDK, and placed the CWM recovery file image in the same folder as the fastboot executable. i tried the below command line on terminal but it says no such command is found.
i didn't placed the CWM recovery file image in the same directory as the fastboot.exe; i placed it in my desktop and then i wrote in the command prompt
"cd C:\path\to\fastboot.exe\"
and then
" fastboot flash recovery C:\path\to\desktop\recovery.img "
aaron.ng91 said:
Hi suksit, I have installed the SDK, and placed the CWM recovery file image in the same folder as the fastboot executable. i tried the below command line on terminal but it says no such command is found.
Click to expand...
Click to collapse
You're in the wrong directory.
If you're using Windows 7, press Shift + Right click on the folder which contains fastboot.exe and CWM recovery image, select "Open command window here", then type the command.
Or you could do what Bryo92 suggested, use the command cd directory-that-contains-fastboot first, then type the command.

What did I do to my phone? Please help.

On a mac here. I think I got a bit over my head here with the 2.20 root. I did all of the bootloader unlocking successfully, installed TWRP, and then downloaded CM10, and flashed the boot.img.
Now when trying to boot the phone I get stock on the screen with "This Build is for development only."
I can get into recovery, but don't really know what to do from there. I'm trying to mount, but can't get the computer to recognize the device. Tried a factory reset and it failed. I'm not quite bricked, but sort of stuck and don't know what to do. I'd love to get CM10 working, but at least I want to be able to use my phone.
I'm pretty new to Android so sorry for newbishness.
Thanks anyone for your help.
Just to add, I'm getting the message "no OS installed" when trying to reboot in recovery.
ul49 said:
On a mac here. I think I got a bit over my head here with the 2.20 root. I did all of the bootloader unlocking successfully, installed TWRP, and then downloaded CM10, and flashed the boot.img.
Now when trying to boot the phone I get stock on the screen with "This Build is for development only."
I can get into recovery, but don't really know what to do from there. I'm trying to mount, but can't get the computer to recognize the device. Tried a factory reset and it failed. I'm not quite bricked, but sort of stuck and don't know what to do. I'd love to get CM10 working, but at least I want to be able to use my phone.
I'm pretty new to Android so sorry for newbishness.
Thanks anyone for your help.
Click to expand...
Click to collapse
Did you flash the boot.img first, then the ROM?
Can you wipe System?
Sorry, what's the difference betwwen boot.img and the rom itself? I only flashed boot.img. I did wipe the system.
ul49 said:
Sorry, what's the difference betwwen boot.img and the rom itself? I only flashed boot.img. I did wipe the system.
Click to expand...
Click to collapse
The boot.img has the kernel in it. If you didn't flash the CM10.zip you have no operating system.
Wipe System, and Factory Reset
Flash boot.img
Flash the CM10.zip, flash google apps, and you should be good after that
Now flash the rom zip from recovery (twrp)
Sent from a slithery smooth phone!
So to flash the zip file for the ROM and gapps, I just enter fastboot flash boot 'rom.zip' or 'gapps.zip'?
Also, what do I do after I've flashed them?
Thanks so much for your help
ul49 said:
So to flash the zip file for the ROM and gapps, I just enter fastboot flash boot 'rom.zip' or 'gapps.zip'?
Also, what do I do after I've flashed them?
Thanks so much for your help
Click to expand...
Click to collapse
no,you flash the boot.img in fastboot, and then you flash the rom.zip and gapps.zip from recovery (twrp)
ul49 said:
So to flash the zip file for the ROM and gapps, I just enter fastboot flash boot 'rom.zip' or 'gapps.zip'?
Also, what do I do after I've flashed them?
Thanks so much for your help
Click to expand...
Click to collapse
No, do a clean wipe.
boot your phone into fastboot
download the fastboot files http://www.mediafire.com/?4dx982z93w8z7wk and extract them to your desktop
on your computer, open up cmd and type
cd desktop
cd foldername (the folder that has fastboot.exe)
fastboot flash boot boot.img
reboot into recovery
flash CM10, flash gapps, reboot
I see. The problem is that I seem to be unable to mount my phone and sd card through recovery.
Trying to push the zips using adb using './adb push cm10.zip/sdcard' but when I enter this command in terminal it seems to just reload adb, and not push the file.
ul49 said:
Trying to push the zips using adb using './adb push cm10.zip/sdcard' but when I enter this command in terminal it seems to just reload adb, and not push the file.
Click to expand...
Click to collapse
I think you are typing the command wrong
./adb push file /destination
or ./adb push cm10.zip /mnt/sdcard
./adb push cm10.zip /sdcard
whatever the mount point is for the sdcard
Tried that too. It just reloads the opening adb dialogue.
ul49 said:
Tried that too. It just reloads the opening adb dialogue.
Click to expand...
Click to collapse
does ./adb devices return your phone as connected?
Well, now it doesn't. Instead of reloading the adb dialogue now, when I try the push command it says device not found. Just came out of nowhere. How do I make it recognize the phone again?
Thanks for bearing with me here. I think I'm really close.
ul49 said:
Well, now it doesn't. Instead of reloading the adb dialogue now, when I try the push command it says device not found. Just came out of nowhere. How do I make it recognize the phone again?
Thanks for bearing with me here. I think I'm really close.
Click to expand...
Click to collapse
I'm not familiar with OS X and android, are there any specific drivers you may need to install?
Are you in your bootloader or recovery?
All necessary drivers were installed. The device was being recognized before, but for some reason isn't now. I'm stuck on the "This build is for development purposes only" screen now since I can't get into recovery or bootloader using adb now since the device isn't recognized...
Ok, I'm connected again somehow. Now just trying to figure out this pushing issue. Entered this command './adb push /android/cm10.zip /sdcard and it looked like it was working then said "failed to copy to /sdcard"
ul49 said:
Ok, I'm connected again somehow. Now just trying to figure out this pushing issue. Entered this command './adb push /android/cm10.zip /sdcard and it looked like it was working then said "failed to copy to /sdcard"
Click to expand...
Click to collapse
because it is probably at /mnt/sdcard
Successfully pushed the files. Of course, I've hit another problem. Trying to install the ROM through TWRP and it's failing. Same with Gapps. I'm seeing "unable to mount /sdcard" and unable to mount storage. I've already cleared cache, wiped system, factory reset/

Moto g problem

I am having MOTO G XT1032 US GLOBAL VERSION
I HAD FLASHED A DOZENS OF ROMS IN PAST USING CWM RECOVERY.....
LAST NIGHT I FORMATTED ALL THE FOLDERS USING CWM RECOVERY ......NAMELY....
/DATA
/SDCARD
/SYSTEM
/CACHE ......ETC......
I MEAN COMPLETE WIPE OUT OF THE PHONE AND FOLDERS
now MY PROBLEMS ARE.....
I DONOT HAVE ANY ROM OR ZIP IN /SDCARD TO INSTALL
I AM ABLE TO GET INTO BOOTLOADER AND RECOVERY
BUT NOT ABLE TO PUSH ANY OF THE ROMS OR ZIP FILES USING ADB FASTBOOT.
While using ADB Commands error is................ error: device not found
I Have already tried
fastboot flash recovery (of TWRP recovery over CWM recovery) i.e. I changed the recovery
adb push rom.zip /sdcard/........
adb sideload...........
but none of the above thing worked
It also shows that phone has to be rooted again and supersu is to be installed again......
I donot know how to get it working again
subodhverma21 said:
I am having MOTO G XT1032 US GLOBAL VERSION
I HAD FLASHED A DOZENS OF ROMS IN PAST USING CWM RECOVERY.....
LAST NIGHT I FORMATTED ALL THE FOLDERS USING CWM RECOVERY ......NAMELY....
/DATA
/SDCARD
/SYSTEM
/CACHE ......ETC......
I MEAN COMPLETE WIPE OUT OF THE PHONE AND FOLDERS
now MY PROBLEMS ARE.....
I DONOT HAVE ANY ROM OR ZIP IN /SDCARD TO INSTALL
I AM ABLE TO GET INTO BOOTLOADER AND RECOVERY
BUT NOT ABLE TO PUSH ANY OF THE ROMS OR ZIP FILES USING ADB FASTBOOT.
While using ADB Commands error is................ error: device not found
I Have already tried
fastboot flash recovery (of TWRP recovery over CWM recovery) i.e. I changed the recovery
adb push rom.zip /sdcard/........
adb sideload...........
but none of the above thing worked
It also shows that phone has to be rooted again and supersu is to be installed again......
I donot know how to get it working again
Click to expand...
Click to collapse
Relax no need to shout. lol. Go on fastboot and flash twrp. Then boot into recovery and select advanced rhen from there select terminal and choose any random folder. adb will now recognize your phone again so try to push the rom to /sdcard/
eg0097 said:
Relax no need to shout. lol. Go on fastboot and flash twrp. Then boot into recovery and select advanced rhen from there select terminal and choose any random folder. adb will now recognize your phone again so try to push the rom to /sdcard/
Click to expand...
Click to collapse
Thanks for a quick reply.....
I am able to get into the terminal.......... still the device is not detected.....
what command should i use on twrp terminal to pull rom and supersu in phone....
my phone battery is also getting drained off 15% remaining not charging
subodhverma21 said:
Thanks for a quick reply.....
I am able to get into the terminal.......... still the device is not detected.....
what command should i use on twrp terminal to pull rom and supersu in phone....
my phone battery is also getting drained off 15% remaining not charging
Click to expand...
Click to collapse
Super su can be automatically installed by TWRP when selecting to reboot. Okay heres my little "guide" :
http://forum.xda-developers.com/moto-g/general/unbrick-method-t2794271
eg0097 said:
Super su can be automatically installed by TWRP when selecting to reboot. Okay heres my little "guide" :
http://forum.xda-developers.com/moto-g/general/unbrick-method-t2794271
Click to expand...
Click to collapse
I went through your guide...... its was very gud
but Everything went well till step 5.
In terminal window of phone i could find select..... but after that how to proceed I donot know.......... what commands should i use on TWRP terminal...........
Phone didn't get detected in ADB even in TWRP terminal
subodhverma21 said:
I went through your guide...... its was very gud
but Everything went well till step 5.
In terminal window of phone i could find select..... but after that how to proceed I donot know.......... what commands should i use on TWRP terminal...........
Phone didn't get detected in ADB even in TWRP terminal
Click to expand...
Click to collapse
Check it out again i updated with pictures
eg0097 said:
Check it out again i updated with pictures
Click to expand...
Click to collapse
Thanks a lot
my problem got resolved.........
actually driver was the only problem which was not allowing ADB to detect device in RECOVERY mode, though device was detected in FASTBOOT mode
So I reinstall the driver to get ADB Interface installed in system> device manager
and then followed your remaining steps i.e. 6 onwards
Thanks a lot again.....

[Q] Accidentally erased System ROM in Oneplus

I wanted to go back to stock CM. So I went to TWRP and erased everything. Next thing it said was that I don't have any OS in the phone.
Now I want to sideload the stock CM into to the phone.
Please tell me step by step solution as I am a nooby.
Please help.
Thanks in advance
Of course you don't have an OS if you wiped system. Did you not put stock CM onto your device before wiping everything? Google search 'how to adb sideload' and you'll did plenty of guides. Maybe hold up on doing anything else to your device until you have a better understanding of what you're doing.
Transmitted via Bacon
samdubai said:
I wanted to go back to stock CM. So I went to TWRP and erased everything. Next thing it said was that I don't have any OS in the phone.
Now I want to sideload the stock CM into to the phone.
Please tell me step by step solution as I am a nooby.
Please help.
Thanks in advance
Click to expand...
Click to collapse
If you lost the recovery aswell:
- fastboot mode
- download twrp recovery to your fastboot file and rename it to "recovery"
- (pc) open comand window and type "adb flash recovery recovery.img"
- open recovery
- advanced
- adb sideload
- download stock rom
- (pc) adb sideload (rom name).zip
I find it hard to believe that people who own a "hackers phone" don't save a nandroid on their pc. Still, you got your solution there.
Please help
badjoras said:
If you lost the recovery aswell:
- fastboot mode
- download twrp recovery to your fastboot file and rename it to "recovery"
- (pc) open comand window and type "adb flash recovery recovery.img"
- open recovery
- advanced
- adb sideload
- download stock rom
- (pc) adb sideload (rom name).zip
I find it hard to believe that people who own a "hackers phone" don't save a nandroid on their pc. Still, you got your solution there.
Click to expand...
Click to collapse
I am now in stock rom. I downloaded it from Cynogenmod website. I have done it through fastboot adb sideload.
I saved nandroid but can't transfer that zip file to my phone. How can I side load it through fastboot?
Please help
samdubai said:
I am now in stock rom. I downloaded it from Cynogenmod website. I have done it through fastboot adb sideload.
I saved nandroid but can't transfer that zip file to my phone. How can I side load it through fastboot?
Please help
Click to expand...
Click to collapse
take a look in the backup. Are there image files in it?
You can flash image files with fastboot.
But why does USB not work in stock-rom?
Lei M said:
take a look in the backup. Are there image files in it?
You can flash image files with fastboot.
But why does USB not work in stock-rom?
Click to expand...
Click to collapse
I don't know the reason. I could not upload zip file into my phone through TWRP recovery.
So eventually I sideloaded stock rom through fastboot.
Which effectively means that I am back to unrooted and no TWRP.
Also, 33R seams to be buggy. Battery performance is still jittery and it can't detect wifi automatically. I need to switch it off and on to make it work again.
So, I want to go back to my earlier backup which was 25R. I need a fool proof process to do so.
Would really appreciate all your help

Wiped all partitions in twrp, now flashing a rom gives me a bootloop

So I was stupid enough to wipe all partitions (Data, system, internal storage etc) thinking that I'll do a super clean install of the new update.
Now I flash the new file (which I downloaded from the official website), it flashes just fine but gives me a bootloop.
I have (or had) root and can flash TWRP fine.
What else can I do to get back any running rom?
https://forum.xda-developers.com/oneplus-6/how-to/rom-stock-fastboot-roms-oneplus-6-t3796665
Hopefully this will help you like it did with me .
Try flashiing stock boot.img from adb or try to the unbrick tool
Absolutely nothing at all worked, not even in the slightest, everything gave me a boot loop. Except for one thing; I flashed the Open Beta DP3 zip file in twrp and that worked, then I use set it up and used the rollback-to-stable release file to revert to stable release.
I see absolutely no logic behind how and why this worked and not the other traditional methods though, anyone have any clarification on this please?
Thank you for your responses though guys, much appreciated!
If you can still access TWRP recovery, try sideloading a rom via fastboot on a Windows PC. Boot to TWRP > Advanced > Sideload. On your Windows machine - Open fastboot and type "adb sideload *rom name*.zip. See if that works. If sideloading fails for whatever reason but you can still access TWRP try pushing the rom to internal storage by using fastboot again. Boot to TWRP on your phone and do nothing else. On your Windows machine open fastboot and type "adb push *rom name*.zip /data/media/0" this will push the rom to your internal storage.
railpressureflip said:
Absolutely nothing at all worked, not even in the slightest, everything gave me a boot loop. Except for one thing; I flashed the Open Beta DP3 zip file in twrp and that worked, then I use set it up and used the rollback-to-stable release file to revert to stable release.
I see absolutely no logic behind how and why this worked and not the other traditional methods though, anyone have any clarification on this please?
Thank you for your responses though guys, much appreciated!
Click to expand...
Click to collapse
the most important thing you missed mentioning was which ROM were you ON when you wiped everything?
bcz if it was using an August security patch, and if you tried to go back to a july one without formatting data you were bound to get bootloops.
glad that it finally worked though.
but if you wanna try again, be sure to format data and your super clean install will go through.
wipe everything
format data
reboot fastboot
fastboot boot recovery
adb push stock stable ROM
flash via twrp
adb push twrp zip
flash twrp zip
reboot
now you will be fine.
speedyjay said:
If you can still access TWRP recovery, try sideloading a rom via fastboot on a Windows PC. Boot to TWRP > Advanced > Sideload. On your Windows machine - Open fastboot and type "adb sideload *rom name*.zip. See if that works. If sideloading fails for whatever reason but you can still access TWRP try pushing the rom to internal storage by using fastboot again. Boot to TWRP on your phone and do nothing else. On your Windows machine open fastboot and type "adb push *rom name*.zip /data/media/0" this will push the rom to your internal storage.
Click to expand...
Click to collapse
Thank you very much! Sideloading rom worked for me (OP6T).

Categories

Resources