I wiped my phone without a rom - Nexus 4 Q&A, Help & Troubleshooting

So, I wiped my phone and didn't realize that the rom I was about to install was corrupted (I think the download didn't finish) and I forgot to do a backup, what can I do to recover from this disaster?

Use Nexus toolkit.

Two easy options:
1. Use adb to push a rom to your sdcard from your recovery then install like normal
2. Use fastboot to flash a stock image your system partition

Download a ROM that's not corrupted and place it in platform tools folder (where you have your adb is located) and just go to your phones recovery and sideload
Sent from my Nexus 4 using xda app-developers app

CellPhish said:
Download a ROM that's not corrupted and place it in platform tools folder (where you have your adb is located) and just go to your phones recovery and sideload
Sent from my Nexus 4 using xda app-developers app
Click to expand...
Click to collapse
Thank you to all of you, I used Wug's Toolkit (NRT) and it worked.

Similar Problem
My problem is similar but a bit different.
I flashed CWM over the top TWRP and when I re-entered custom recovery and I went in to install a zip from sd not all my folders where showing including the folder I keep all my roms in.
When I try to boot back in to system it just takes me back to recovery.
Am I being a noob or is it something gone wrong?
Thanks in advance!

Related

Need help with adb sideload

I was going to flash a rom using twrp. Before I got to flash it I wiped the internal storage. Now I have nothing on my tablet. Can I use the adb sideload feature in twrp to push a rom on the device? If so can you explain how? I'm new at this so I do think know the commands. Thank you for your help.
I'm in the same boat as you
Sort of in the same boat as you. Except I'm having trouble with ADB sideload and Fastboot. But for you to try and fix your issue go here: http://forum.xda-developers.com/showthread.php?t=2001868
That toolkit will allow you to flash either a Google stock ROM or a backup using fastboot. If that doesn't work then reply back to this thread.
I also did the same thing as you did, I was able to side load cyanogen mod on the nexus
Just go into recovery and then into adbsideload option,make sure device is connected to PC and adbfastboot drivers are installed,then while your recovery is in adbsideload mode, type in command by opening command prompt in platform tools in sdk 'adb sideload filename.zip'
Where filename is the name of the rom you downloaded,then the ROM will be pushed and twrp will flash it automatically
Make sure you reset the device(factory reset) from twrp first,otherwise ROM will not be flashed
Sent from my Nexus 7 using xda app-developers app
You can also use an OTG/memory stick. TWRP reads them just fine. I've also used an SD card & reader. Load your rom, kernel, gapps & connect. Then you can flash all right from your memory-source. I find it much more convenient.
Sent from my Nexus 10 using Tapatalk 2

[Q] Help, boot issue

Hi everyone,
So I have never ran across this issue before. I haven't had any problems with my device and yesterday I wanted to test out the new Jelly Bam update rom from their site. The rom would not boot pasted the "Google" spash screen so I rebooted in to recovery and did a full wipe and restored via backup to my previous rom just like normal. Well then I noticed that normally when I connect my phone to my computer I see my internal memory drive pop up which I am able to click on and then access my files, but this time when I accessed it I have a hand full or folders like 0, twrp, android, etc and I had to double click on o folder to access my memory with all my files. I thought that was weird so I went on about my day. Later I tried to do a fresh install of my current rom PACman but even after doing a fresh install the phone will not boot passed the Google spash screen, and now twrp doesn't even see my backup file because its being directed to this new partition with all the folders I was talking about. I even tried using the file manager in twrp to move the backup to that twrp folder but twrp doesn't even see it.
So as of right now I can get in to twrp but I can not boot my device pasted the google splash screen. I also can't access my memory through my pc since nexus does not allow it with twrp. What do I do? My thoughts are that something got screwed up with the partitions when I flashed the Jelly Bam rom so I will need to go back to stock, does that sound about right? I was thinking of following these instructions to go back to stock and then move on from there, any thoughts or alternatives? http://www.androidrootz.com/2012/12/how-to-unroot-nexus-4-to-stock-42-jelly.html
Thank you
Trying this method to return to stock: http://www.wugfresh.com/nrt/
If no one has any input I will assume I am following the right path.
I flashed factory images a couple weeks ago and in order for TWRP to see the nandroids I copied back to my phone I put them in the following path: /sdcard/TWRP/BACKUPS/stringofrandomnumbersandletters/
Are your TWRP backups in a similar location?
If you've decided to go back to stock, I'd suggest using the following guide by efrant... http://forum.xda-developers.com/showthread.php?p=34552123
Sent from my Nexus 4 using xda app-developers app
It is twrp fault. That recovery is crap to be honest.
Sent from my Nexus 4 using xda premium
It looks like twrp is now looking at my twrp folder in my sd card 1 not sd card 0 where I have had my backups and all my files. After trying again, I moved the TWRP backup to the sd card 1 twrp folder, twrp recognized it and I restored from backup....but when I reboot I am still stuck on the Google screen. Not sure what to do.
Underground_XI said:
It is twrp fault. That recovery is crap to be honest.
Sent from my Nexus 4 using xda premium
Click to expand...
Click to collapse
Since I can't move anything to my memory, any suggestions?
If you've got adb and the proper drivers installed on your PC you could try:
Code:
adb push ROM.zip /sdcard/ROM.zip
from the command prompt. Obviously use the name of the actual ROM.
Edit: ignore that, just read the post where you managed to restore! D'oh!
Have you tried clearing both caches?
The only issue is that my phone is not recognized as having debugging on when I use the Nexus Root Toolkit. Would it matter trying to push via adb? Also with your code, can you specify exactly what I should type. Mine shows C: \Users
synergeticink said:
The only issue is that my phone is not recognized as having debugging on when I use the Nexus Root Toolkit. Would it matter trying to push via adb? Also with your code, can you specify exactly what I should type. Mine shows C: \Users
Click to expand...
Click to collapse
If I were you I would not rely on a toolkit at this point. If you boot into recovery you can use adb commands to push the files from your computer to your phone.
Edit... Spec-Chum's suggestion of wiping caches is a good one. Have you tried that while booted into TWRP?
You could also try the following from within TWRP:
1. Factory reset
2. Wipe system
3. Restore nandroid backup
4. Wipe caches
5. Reboot
Sent from my Nexus 4 using xda app-developers app
chef_christoph said:
If I were you I would not rely on a toolkit at this point. If you boot into recovery you can use adb commands to push the files from your computer to your phone.
Sent from my Nexus 4 using xda app-developers app
Click to expand...
Click to collapse
And that's were I am stuck right now. I am not a pro at using adb commands, never used it till I got my nexus 4. Right now when I launch the cmd it shows "C:\Users\My User Name\Desktop>", not sure where to go next. I guess I am not sure what I should be pushing at this point either.
Oops...it seems I was editing my post at the same time you were responding to it...take a look at my previous response again
I'm fairly new around here but I can help with the adb commands if you need. Hang in there
Sent from my Nexus 4 using xda app-developers app
chef_christoph said:
If I were you I would not rely on a toolkit at this point. If you boot into recovery you can use adb commands to push the files from your computer to your phone.
Edit... Spec-Chum's suggestion of wiping caches is a good one. Have you tried that while booted into TWRP?
You could also try the following from within TWRP:
1. Factory reset
2. Wipe system
3. Restore nandroid backup
4. Wipe caches
5. Reboot
Sent from my Nexus 4 using xda app-developers app
Click to expand...
Click to collapse
Yeah. I tried wiping cache/dalvik/system/factory reset and then both restoring from backup or flashing the latest PACman rom which is in my sd card. Right now I am reading the http://forum.xda-developers.com/showthread.php?t=2018179 guide to see if I can use adb to flash my rom or another recovery. Makes sense if its the recovery not letting me flash anything, but i'm not a dev. At least I am able to get in to recovery to begin with, good sign I guess.
If you can boot into bootloader and recovery there are many options to help get you up and running again. That guide by Jubakuba is really good but if wiping and restoring your backup from within TWRP didn't work I would highly suggest reading efrant's guide on returning to stock...I posted the link in an earlier reply.
Sent from my Nexus 4 using xda app-developers app
I was able to flash cwm using adb, now trying to do a fresh install
Nope, doing a fresh install didn't work. Now its time to restore to stock. ......
One problem:
"
5) Extract the files from within the .tgz file which you downloaded in step 3 using 7-zip, not WinZip or WinRAR or whatever.
6) Make sure you have extracted ALL the files (including extracting any files in any archives inside the .tgz file). You should have six (6) files ending with .img in the directory you created in step 1. The other files you extracted from the .tgz are not necessary;"
UPDATE; Got it, instructions were not clear.
synergeticink said:
UPDATE; Got it, instructions were not clear.
Click to expand...
Click to collapse
I was just checking how it appeared on my own computer before responding... I'm glad you got that part cleared up.
Sent from my Nexus 4 using xda app-developers app
chef_christoph said:
I was just checking how it appeared on my own computer before responding... I'm glad you got that part cleared up.
Sent from my Nexus 4 using xda app-developers app
Click to expand...
Click to collapse
Its weird adb will not work on the computer unless the files are in the platform-tools folder in androi sdk. trial and error, just finished flashing system....
should I do this command, I really don't want to lose my stuff:
10) Optional (NOT optional for n00bs) -- Flash the data partition: fastboot flash userdata userdata.img Note: this command will wipe your device (including /sdcard), EVEN if your bootloader is already unlocked. See note 2 below.
Well, I didn't and finished the process...did a reboot when I was done...now its on the Google screen...just waiting....I'm seeing a Nexus X splash screen!!!...
Update: Its taking a very long time, hopefully it works...going to give it another 10 mins
And we have BOOT... thank you everyone! Now I have to root this sucker!

[Q] Help,infinate reboot!

n4 with 4.3 now, rooted ,installed a fullscreen app ,then reboot as the app told ,,,,,,,,,,then black (but max brightness)screen then google logo then again.....help ,i still have some unsaved photo or files in it ,i can get into recovery, and ive checked that all files are allright ,how can i get them out??
What full screen app exactly?, if you have TWRP then it is possible to fix it all.
Sent from my Nexus 4 using Tapatalk 4
the app was made for galaxynexus ,and i could use it when my n4 was in 4.2.2 ,the name was in chinese...,i think i have the twrp ,infact i was in it,buta i can't find it againXD, now i'm in clockworkmod recovery.
andyabc said:
What full screen app exactly?, if you have TWRP then it is possible to fix it all.
Sent from my Nexus 4 using Tapatalk 4
Click to expand...
Click to collapse
can you tell me how can i get in TWRP again? i can only get in CMW recovery now:P
andyabc said:
What full screen app exactly?, if you have TWRP then it is possible to fix it all.
Sent from my Nexus 4 using Tapatalk 4
Click to expand...
Click to collapse
cffh said:
the app was made for galaxynexus ,and i could use it when my n4 was in 4.2.2 ,the name was in chinese...,i think i have the twrp ,infact i was in it,buta i can't find it againXD, now i'm in clockworkmod recovery.
Click to expand...
Click to collapse
Because I don't know what app it is I have no idea what it did so what I would do is go to recovery and do the following command to every file you want:
adb pull /sdcard/Some_file.txt C://Users/Your_name/Desktop/Some_folder/Some_file.txt
If possible you can make a backup of the internal storage and restore when you reflash your rom or something if you have TWRP also moving the image file to your PC using ADB Pull.
After backing up you have to use this tool with your device on the bootloader menu: https://developers.google.com/android/nexus/images#occamjwr66v
You can restore your files afterwards but if you originally used a custom rom then flash the custom rom.
Sent from my Nexus 4 using Tapatalk 4
Ummm, i found there is an Mount function in CWM Recovery ,but my pc has no respond ,besides i did got into the TWRP you said once i just donno how to get there again ,the images are about hundreds imma little bit lazy..anyway thank you very much for your help
andyabc said:
Because I don't know what app it is I have no idea what it did so what I would do is go to recovery and do the following command to every file you want:
adb pull /sdcard/Some_file.txt C://Users/Your_name/Desktop/Some_folder/Some_file.txt
If possible you can make a backup of the internal storage and restore when you reflash your rom or something if you have TWRP also moving the image file to your PC using ADB Pull.
After backing up you have to use this tool with your device on the bootloader menu:
You can restore your files afterwards but if you originally used a custom rom then flash the custom rom.
Sent from my Nexus 4 using Tapatalk 4
Click to expand...
Click to collapse
finally after a sleep , i did some search ,then i successfully saved my files by using ADB Pull !!(it really took me a looooong time) and i guess there is no way to boot again now so i decide to flash to 4.3 rom
andyabc said:
Because I don't know what app it is I have no idea what it did so what I would do is go to recovery and do the following command to every file you want:
adb pull /sdcard/Some_file.txt C://Users/Your_name/Desktop/Some_folder/Some_file.txt
If possible you can make a backup of the internal storage and restore when you reflash your rom or something if you have TWRP also moving the image file to your PC using ADB Pull.
After backing up you have to use this tool with your device on the bootloader menu:
You can restore your files afterwards but if you originally used a custom rom then flash the custom rom.
Sent from my Nexus 4 using Tapatalk 4
Click to expand...
Click to collapse

[Q] Nexus 4 with No OS - Bricked?

Hey,
Last night I was thinking about reflashing my phone with a new ROM. I made a backup (it's on my computer now), transferred it to my computer. I installed the ROM files and put them into to clockwordmod folder thinking that they wouldn't be deleted if I deleted /data and /date/media (/sdcard) in the custom recovery under "mounts and storage menu."
I was wrong. It deleted the rom files and now I don't have anything to flash. If I try to reboot to system, it says "Android is upgrading - app 1 of 52" Once that is done, it gets stuck on "Android is upgrading - Loading Apps", or something like that.
What can I do? I heard I could ABD push but I have no idea what that is and how I can do it... Help!?
Any help? Please
Goto cmw and install your ROM via adb.
Under option install zip there will be a choice for flashing zip via adb. Just select that in cmw and connect your phone to laptop.
Now in laptop you should have adb files in a folder and paste your ROM in that adb folder.
Next do as it is written in cmw and it will be flashed
Sent from my Nexus 4 using xda app-developers app
suvasco said:
Hey,
Last night I was thinking about reflashing my phone with a new ROM. I made a backup (it's on my computer now), transferred it to my computer. I installed the ROM files and put them into to clockwordmod folder thinking that they wouldn't be deleted if I deleted /data and /date/media (/sdcard) in the custom recovery under "mounts and storage menu."
I was wrong. It deleted the rom files and now I don't have anything to flash. If I try to reboot to system, it says "Android is upgrading - app 1 of 52" Once that is done, it gets stuck on "Android is upgrading - Loading Apps", or something like that.
What can I do? I heard I could ABD push but I have no idea what that is and how I can do it... Help!?
Click to expand...
Click to collapse
You cant brick your phone as long as fastboot and recovery works.
boot into fastboot.
if your recovery is not working : reflash your recovery
Then boot into recovery and install rom via sideload;
From your pcadb sideload):
http://teamw.in/ADBSideload
Try wugfresh tool kit from here: http://www.wugfresh.com/nrt/
suvasco said:
Hey,
Last night I was thinking about reflashing my phone with a new ROM. I made a backup (it's on my computer now), transferred it to my computer. I installed the ROM files and put them into to clockwordmod folder thinking that they wouldn't be deleted if I deleted /data and /date/media (/sdcard) in the custom recovery under "mounts and storage menu."
I was wrong. It deleted the rom files and now I don't have anything to flash. If I try to reboot to system, it says "Android is upgrading - app 1 of 52" Once that is done, it gets stuck on "Android is upgrading - Loading Apps", or something like that.
What can I do? I heard I could ABD push but I have no idea what that is and how I can do it... Help!?
Click to expand...
Click to collapse
What can I do? I heard I could ABD push but I have no idea what that is and how I can do it... Help!? - What you can do is some leg work and look up how to ADB push instead of saying you dont know what that is. Now if you rooted your phone yourself at some point an ADB push was probably done. This is why most hate toolkits(if thats what was used) since it does not help you learn anything.
Search my friend but its like starting from scratch but if you have a working recovery still thats one less step...
adb push -> rom to phone
boot into recovery
flash rom
go on with life......:good:
playya said:
What can I do? I heard I could ABD push but I have no idea what that is and how I can do it... Help!? - What you can do is some leg work and look up how to ADB push instead of saying you dont know what that is. Now if you rooted your phone yourself at some point an ADB push was probably done. This is why most hate toolkits(if thats what was used) since it does not help you learn anything.
Search my friend but its like starting from scratch but if you have a working recovery still thats one less step...
adb push -> rom to phone
boot into recovery
flash rom
go on with life......:good:
Click to expand...
Click to collapse
That, or use adb push or sideload from recovery.
Sent from my Nexus 7 using Tapatalk
korockinout13 said:
That, or use adb push or sideload from recovery.
Sent from my Nexus 7 using Tapatalk
Click to expand...
Click to collapse
Yes... sorry I forgot to add sideload and if you not sure what that is please use Google
Edit; My bad I see instructions and website for sideloading were posted area in here

I think it's a bootloop

I wanted to do factory reset on my rooted nexus 4 , using CWM. It didn;t work (all files stayed) so I went to advanced and formated everything that was there. Now my phone doesn't start (the screen with "google" is on.
I can go to recovery or fastboot but in fastboot adb or anything can't see my device.
Is there anything I can do?
Yes, you wiped your os. Either adb push a rom zip onto your sdcard and flash in recovery or adb sideload a rom zip in recovery
Sent from my Nexus 5 using XDA Free mobile app
Should I sideload zip or tgz?
I tried zip, it says: installation aborted.
I tried tgz, it says e: can't open /tmp/update.zip (bad)
I also tried pushing, but installation aborted as well
If you're trying to get back to stock then flash individual partitions using fastboot.
This guide should help you out .
http://forum.xda-developers.com/nexus-4/general/how-to-how-to-flash-factory-image-t2010312
If you want to flash a custom ROM follow the steps in the previous post.
Doesn't work, like I said, adb can't see my nexus in bootloader.
Before I started doing anything I'd made a backup. Maybe I can restore it now somehow?
EDIT: @up, it worked, tkanks a lot
szajbuz said:
Doesn't work, like I said, adb can't see my nexus in bootloader.
Before I started doing anything I'd made a backup. Maybe I can restore it now somehow?
added: wait, smoething is happening
Click to expand...
Click to collapse
If your in the boot loader you need to use fastboot devices, not adb devices
Sent from my Nexus 5 using XDA Free mobile app
@up
yeah but I realized that after my previous post
If you are on bootloader you van use nexus foot toolkit for flash stock with bricked option

Categories

Resources