[Q] ADB sideload using TWRP recovery - Nexus 4 Q&A, Help & Troubleshooting

So I wiped my stock OS trying to install a custom ROM that failed to flash, and now I'm trying to sideload a rom on my nexus 4 using TWRP. However it is as if adb isn't installed. No commands work and my Nexus 4 is constantly trying to establish a connection. Also, for some strange reason it's incorrectly recognized as a Galaxy Nexus in device manager. I have the ADT bundle and Nexus 4 drivers installed, so what am I doing wrong? Is my Win XP the problem? I would just mount the internal SD, but it doesn't seem like I can (nothing happens).

Any ideas???
Gonna attempt a fastboot flash in the meantime.

I guess nobody knows...
Oh well, luckily fastboot worked. Otherwise I would have had a brick.

Illudrium said:
So I wiped my stock OS trying to install a custom ROM that failed to flash, and now I'm trying to sideload a rom on my nexus 4 using TWRP. However it is as if adb isn't installed. No commands work and my Nexus 4 is constantly trying to establish a connection. Also, for some strange reason it's incorrectly recognized as a Galaxy Nexus in device manager. I have the ADT bundle and Nexus 4 drivers installed, so what am I doing wrong? Is my Win XP the problem? I would just mount the internal SD, but it doesn't seem like I can (nothing happens).
Click to expand...
Click to collapse
how did u do that i cant flash a os on mines it keep saying im missing files

Here's what I ended up doing since I couldn't figure out how to get adb to work. I used fastboot to flash stock Android and then copied my vision room to my internal sd. Then I flashed it using recovery. The first file I downloaded apparently was corrupted. This could be your problem too. Your best bet is to redownload your custom rom and use a md5 checksum to make sure the file is complete.
Hope this helps as I am not sure it is the exact answer your looking for.
Sent from my toaster using potatotalk 2

Related

help:can't flash ROM as unable to mount sdcard

hello all, my N7 shows upgrading all apps in every boot. i suspect is caused by CWM upgrade through ROM manager but i couldn't prove. i tried many way and erased cache. then i flashed ROM but failed. now i dont have OS. CWM shows /sdcard. /cache is unable to mount seems root cause. i tries nexus toolkit and have same error. i use command line adb still can't overcome. pls advice.
Sent from my HTC One X using xda premium
besides, my N7 is rooted. i can go to bootloader & recovery mode. through PC, its fine in adb mode. one error in MTP driver is found in device mgr. through adb devices command, it also dont show my N7. thx. pls help.
Sent from my HTC One X using xda premium

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] Nexus 4 wont work after new cyanogenmod update

Hi guys im sort of new to the android scene and im having problems with my nexus 4, i downloaded the newest cyanogenmod nightly and flashed it, it messed up part way through. i rebooted the phone and now its just stuck at boot animation. i have wiped the cache the dalvik cache and done a factory restore.
i have tried reflashing the nightly but it stick stops part way through, i want to add the new rom to the /sdcard but i dont know how, its not showing in android file manager and i have tried using adb push command.
im sure its a noob question but any ideas?
P.s sorry i know there are posts similar to mine but tried them and wont work
If adb push won't work in recovery you might try flashing the factory images with fastboot. System.img is really all you'd need.
estallings15 said:
If adb push won't work in recovery you might try flashing the factory images with fastboot. System.img is really all you'd need.
Click to expand...
Click to collapse
sorry i have no idea how to do that, i just need to access the file system so i can dump a rom to install
AW: [Q] Nexus 4 wont work after new cyanogenmod update
You can try to sideload a new ROM via 'adb sideload' in the recovery.
Sent from my Nexus 4 using xda premium
TobiS87 said:
You can try to sideload a new ROM via 'adb sideload' in the recovery.
Sent from my Nexus 4 using xda premium
Click to expand...
Click to collapse
i have tried to side load a rom onto it but that didnt work adb gave a error
http://forum.xda-developers.com/showthread.php?t=2010312
Follow the steps, but only flash the system.img. Once it boots, move your ROM over. Reboot into recovery. Flash.

[Q] Need help after accidentally wiping OS and Internal Storage.

Hey Xda, so I ran into a little problem earlier today.
After creating a backup on my PC with the nexus 4 root toolkit and rotting and flashing TWRP I attempted to install a rom but since it was my first time using TWRP (Im used to CWM) i accedently wiped my internal storage and my OS and now im stuck in TWRP since i have no OS to boot to.
Is there anything I can do or is all hope lost?
Thanks in advance
Gabrielvbrz said:
Hey Xda, so I ran into a little problem earlier today.
After creating a backup on my PC with the nexus 4 root toolkit and rotting and flashing TWRP I attempted to install a rom but since it was my first time using TWRP (Im used to CWM) i accedently wiped my internal storage and my OS and now im stuck in TWRP since i have no OS to boot to.
Is there anything I can do or is all hope lost?
Thanks in advance
Click to expand...
Click to collapse
Yes, install adb platform-tools and push a rom to the sdcard: adb push namerom.zip /sdcard/. Or try TWRP sideload http://teamw.in/ADBSideload.
Gabrielvbrz said:
Hey Xda, so I ran into a little problem earlier today.
After creating a backup on my PC with the nexus 4 root toolkit and rotting and flashing TWRP I attempted to install a rom but since it was my first time using TWRP (Im used to CWM) i accedently wiped my internal storage and my OS and now im stuck in TWRP since i have no OS to boot to.
Is there anything I can do or is all hope lost?
Thanks in advance
Click to expand...
Click to collapse
Dude the same thing happened to me the very first time but here's what I did I hooked up my phone to the PC and ran wug nexus tool kit and performed back to stock. And it worked like a charm hope that helps if you're still stuck there:thumbup:
Sent from my Nexus 4 using Tapatalk 2
Just posted a good reply from someone on the Nexus 10 forums who did the same thing:
espionage724 said:
I tend to take a FAT32-formatted flash drive, USB OTG cable, throw a custom ROM, Kernel, and Gapps onto the flash drive's root, reboot the tablet to TWRP, wipe everything (except USB OTG) and format data, reboot back to recovery, and then install ROM, Gapps, and Kernel (in that order).
In other words, if you have a flash drive and OTG cable, you can recover your device pretty easily If you don't have these though, you can adb push the zip's over to /sdcard I believe; it's been awhile since I've done this.
If you want to go back to factory stock, you can grab the latest factory image from the link shimp208 provided, and should be able to run the flash-all.bat included (may have to have platform-tools in PATH if running Windows, or cd into the folder).
Click to expand...
Click to collapse
Edit: I'm not entirely sure how USB OTG is on the N4 though. If it doesn't work, then adb push should be fine.
espionage724 said:
Just posted a good reply from someone on the Nexus 10 forums who did the same thing:
Edit: I'm not entirely sure how USB OTG is on the N4 though. If it doesn't work, then adb push should be fine.
Click to expand...
Click to collapse
Interesting, This is indeed a truly "clean install". Any idea if this method would this work in CWM. Sorry to OP for jacking your thread.
I myself have done this before, I hope you get through it. Goodluck

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