Nexus 4 Boot Problem - Nexus 4 Q&A, Help & Troubleshooting

Hey ! I Have Google Nexus 4
My System Has Delete >> And I Cant Move Rom To Phone Because Need USB debugging
My Recovery TWRP
Please Help Me
And Sorry For Bad English !

Penguin997 said:
Hey ! I Have Google Nexus 4
My System Has Delete >> And I Cant Move Rom To Phone Because Need USB debugging
My Recovery TWRP
Please Help Me
And Sorry For Bad English !
Click to expand...
Click to collapse
You can copy the file over from TWRP. Just connect to the computer boot into TWRP, go under Mounts, and Mount USB. You can just copy and paste from your computer to the phone, then unmount, and flash the file in CWM
Otherwise,
1. Open your cmd and navigate to the folder with the adb files(the folder where you flashed your roms, kernels, or recovery).
2. Access the cwm at your phone and connect an usb cable to the computer.
3. Put the files that you wanted to send to your phone at that particular folder
4. Type "adb push (filename) /sdcard/(filename)". Example, "adb push rom.zip /sdcard/rom.zip"
4.1. Depending on your OS, you may want to add "./" at the front of the command if you're using unix based os(this is an oversimplified version)
5. Wait until it finishes its transfer(a message will appear saying the filename, file size and the speed of the transfer per sec when it finishes)
6. Wait for a while or reboot your cwm so that the filename will appear and just reflash the file.

Related

How to put file on SDCard from Recovery

I need to flash a ROM, but I can't start my phone up to be able to transfer the file over. There used to be a Mount Storage Device option on my old DHD, but I noticed that on the N4, CWM does not have this option (maybe to do with MTP).
How can I copy a file over onto SDCard so I can flash it? I tried:
Code:
adb push file.zip /sdcard/file.zip
When I try and flash it, it says "Can't open /sdcard/file.zip (bad)
Flash TWRP via fastboot and mount the phone via usb the same drag it into the phone.
Alternatively as a last resort, flash back to stock using stock images provided by Google vis fast boot and then drag it onto the sd as well as reinstalling the recovery.
Sent from my Nexus 4 using xda premium
stefandunn said:
I need to flash a ROM, but I can't start my phone up to be able to transfer the file over. There used to be a Mount Storage Device option on my old DHD, but I noticed that on the N4, CWM does not have this option (maybe to do with MTP).
How can I copy a file over onto SDCard so I can flash it? I tried:
Code:
adb push file.zip /sdcard/file.zip
When I try and flash it, it says "Can't open /sdcard/file.zip (bad)
Click to expand...
Click to collapse
Remove the "file.zip" after the sdcard:
Code:
adb push file.zip /sdcard/
Also ensure the real file name doesn't contain spaces.
Edit: the command as you were typing it was telling adb to take the CONTENTS of file.zip and place them in a FOLDER called file.zip. Out of adb's range of abilities
Alternatively, if you're using CWM, you can use the "Install zip from sideload" option. Once you're in, push the file from adb using "adb sideload filename.zip"
The adb command you tried should work fine in recovery. Maybe you weren't in the correct folder where file.zip was located when you executed the adb command?
Also, if you don't have adb set in your PATH, then the adb app will need to be in the same folder as file.zip.
http://forum.xda-developers.com/showthread.php?t=1667929
se1000 said:
Alternatively, if you're using CWM, you can use the "Install zip from sideload" option. Once you're in, push the file from adb using "adb sideload filename.zip"
Click to expand...
Click to collapse
Thank you very much!

HELP! Formatted Nexus 4

I am using TWRP and wile i was wiping to install another rom i saw the option format data because i wanted to fully wipe my apps and all but wat i did not saw was that i was gonna wipe the system too. So now i have the phone and i can enter to fastboot and to TWRP but i have no rom to install and i don't know how to transfer a zip from pc to the nexus. Or at least a return to stock so i can re root it.
Please help me.
You can use a toolkit and flash a rom that way. Very user friendly. All you need to do is plug it in and flash it through its menus.
You can use adb to push the zip from your computer to your phone while in recovery.
Sent from my Nexus 4 using xda app-developers app
How do people not read up on what to do BEFORE flashing a new ROM? Or at least search? To the OP, there is a thread in General all about returning to stock using simple fastboot commands and the factory image Google provide so best to follow that
darkdhanil said:
I am using TWRP and wile i was wiping to install another rom i saw the option format data because i wanted to fully wipe my apps and all but wat i did not saw was that i was gonna wipe the system too. So now i have the phone and i can enter to fastboot and to TWRP but i have no rom to install and i don't know how to transfer a zip from pc to the nexus. Or at least a return to stock so i can re root it.
Please help me.
Click to expand...
Click to collapse
1)Go to recovery TWRP in the N4
2)Connect the phone to your computer with the USB cable
3)Shift+Right click -> Open command prompt here (In platform-tools folder)
4)Copy all the files (ROM + Gapps) to the platform-tools folder.
5)When done,on the command prompt use the command "adb push myrom.zip /sdcard/0 " where myrom = the name of the ROM you wanna flash an wait
5.1)Do the same with the gapps "adb push gapps.zip /sdcard/0" where gapps = name of the gapps zip file.
6)When done step 5 ...go back to your phone and flash a ROM like you normally would.
PS : If you've got problems at step 5 you probably need ADB drivers..just download them from the internet.
Respect
If you want to return to stock, I found these instructions very easy to follow:
http://forums.androidcentral.com/ne...3923-guide-nexus-4-factory-image-restore.html
xtrmshadow said:
1)Go to recovery TWRP in the N4
2)Connect the phone to your computer with the USB cable
3)Shift+Right click -> Open command prompt here (In platform-tools folder)
4)Copy all the files (ROM + Gapps) to the platform-tools folder.
5)When done,on the command prompt use the command "adb push myrom.zip /sdcard/0 " where myrom = the name of the ROM you wanna flash an wait
5.1)Do the same with the gapps "adb push gapps.zip /sdcard/0" where gapps = name of the gapps zip file.
6)When done step 5 ...go back to your phone and flash a ROM like you normally would.
PS : If you've got problems at step 5 you probably need ADB drivers..just download them from the internet.
Respect
Click to expand...
Click to collapse
Finally someone that explained step by step. Thanks man. All is ok now
xtrmshadow said:
1)Go to recovery TWRP in the N4
2)Connect the phone to your computer with the USB cable
3)Shift+Right click -> Open command prompt here (In platform-tools folder)
4)Copy all the files (ROM + Gapps) to the platform-tools folder.
5)When done,on the command prompt use the command "adb push myrom.zip /sdcard/0 " where myrom = the name of the ROM you wanna flash an wait
5.1)Do the same with the gapps "adb push gapps.zip /sdcard/0" where gapps = name of the gapps zip file.
6)When done step 5 ...go back to your phone and flash a ROM like you normally would.
PS : If you've got problems at step 5 you probably need ADB drivers..just download them from the internet.
Respect
Click to expand...
Click to collapse
you are the best. for real. I didnt know what platform-tools was at first, but i got it after i googled. and i kept messing up the code, but you see on my phone, you dont need the /0, /sdcard is enough since there is no /0 directory, but i figured that out too.
thankyou so much. respect.
Yes twrp automatically knows about the 0 folder. It does exist. Just you don't need to see it. Clockwork recovery does not see it so on that recovery you have to push to /sdcard/0/ but on twrp you only push to /sdcard/
Sent from my Nexus 4 using xda app-developers app

No OS but only CWM recovery

I want to flash a rom but i can't save the zip files to my storage. What do i do?
I have no os but only cwm. Please help, thanks.
dicksonjoe said:
I want to flash a rom but i can't save the zip files to my storage. What do i do?
I have no os but only cwm. Please help, thanks.
Click to expand...
Click to collapse
ADB Sideload
1. Connect your phone make sure it's actually connected. No errors in Device Manager
2. Rename the downloaded ROM you want to flash to something basic, like rom.zip (Names can get rather long)
3. Open CMD (command prompt), & navigate it to the folder you placed the ROM in. or just press shift and right click on the folder where the rom is and select open command prompt here
4. Boot to recovery on your phone and enable the ADB sideload function. Under Advanced in TWRP...not sure about CWM
5. in CMD type adb sideload rom.zip or what ever the name of the .zip is
6. Let TWRP or CWM flash the zip and prompt for reboot.
7. Reboot and be happy, your phone is fixed!
You can then transfer the gapps to your internal storage and flash the normal way through your reecovery or just go through the same process for the gapps after you flash the rom.
I am having trouble installing the adb file.
I don't know what mode my phone needs to be on in order to install adb file.
dicksonjoe said:
I am having trouble installing the adb file.
I don't know what mode my phone needs to be on in order to install adb file.
Click to expand...
Click to collapse
Installing adb doesnt have to do with what mode your phone is in.

[Q] Nexus 4 Help No OS Installed TWRP Wiped My Internal Data

My Friend formatted my phone by accident and now i cant install any os because my phone wont connect to my computer:crying::crying:
Sovehy said:
My Friend formatted my phone by accident and now i cant install any os because my phone wont connect to my computer:crying::crying:
Click to expand...
Click to collapse
Try this:
http://forum.xda-developers.com/showthread.php?p=48915118
Sent from my Nexus 7 (2013)
Sovehy said:
My Friend formatted my phone by accident and now i cant install any os because my phone wont connect to my computer:crying::crying:
Click to expand...
Click to collapse
hey as you said your phone is formattee and now there is no os/ rom in your internal storage..........so now you have to transfer rom/os zip file to your phone memory........for that
you have to install adb and fastboot to your laptop or pc and when it is done you can send os file from your laptop to phone storage
liks :
adb and fastbbot drivers d-h.st/iqA
usb drivers forum.xda-developers.com/showthread.php?t=1996051
step 1 :-unzip the downloaded adb and fastboot drivers in the c drive of your computer or pc..in a folder name it say "adb"
step 2 :- install the usb drivers for your phone .....this is somewhat complicated.......u can search how to install usb drivers in xda itself..
step 3 :- now copy the zip file(rom) which u want to flash or install in the folder adb which u created in step 1st along with adb and fastboot files.
step 4 :- now u have to open command prompt...for that go to adb folder where rom and adb files are....and there press shift key along with right click of mouse button..i.e shift+right click.......and u have to select "open command window here"..
step 5 :- now u have to type command to transfer that rom zip to phone memory......so the command is
adb push filename.zip /sdcard/0/filename.zip
u have to type the name of rom in place of filename and hit enter.......and then wait and watch on that command prompt....the file will get copied in few.seconds
step 6 :- now move to recovery and u can flash that rom zip and can have your os installed...
This may help to return to stock: http://forum.xda-developers.com/showthread.php?t=2010312
TWRP has an excellent Sideload feature. If all your drivers are installed, you can easily flash the ROM from the PC using adb with TWRP in sideload mode.

One Plus 5. No OS issue.

So i am having a issue with my oneplus 5 and hope someone could help me out
So i have ended up wiping the entry phone in recovery, getting rid of all the internal data, including sdcard & operating system. At the moment the only thing i can get access to is fastboot & TWRP. I am trying to sideload or push a rom zip to the phone, but all i keep getting is the below:
adb sideload "Zip folder name and extension".
loading "zip"
cannot read "zip"
or i get an error that just says "Closed.
Now i have update to the latest drivers and adb and when i type "adb devices" my phone is showing...
I have also flashed the oneplus 5 recovery via fastboot, however when i go on to adb sideload, the phone doesnt show in CMD.
any help here will be appricated, as i am out of ideas.
Thanks in advance.
Make the file names shorter.
Alternatively, you should be able to use a flash drive through OTG and install the stuff from it.
Rhoban said:
Make the file names shorter.
Alternatively, you should be able to use a flash drive through OTG and install the stuff from it.
Click to expand...
Click to collapse
Unfortunately, OTG isnt a selectable option and i have also tried shorting the file a names but still no look.
Thank you for the input
Use another recovery. OTG should be there, I know somebody that flashed ROMs this way.
KrypticGT said:
...
adb sideload "Zip folder name and extension".
loading "zip"
....
Click to expand...
Click to collapse
Two things I'd try:
1. Change your directory to the one containing the zip file so the command ONLY has the filename.zip in it
2. Download the zip file again and make sure you do a md5sum check on it just in case its corrupted.
Try this:
- Boot your phone in TWRP
- Open cmd.exe on your PC
- Type adb devices (if everything is ok, it should show some numbers followed by the write "recovery")
- Move your ROM inside a folder on your PC and rename it "Rom.zip" (ie inside the folder "download")
- Using CMD.exe, move inside that folder typing "cd C:/...."
- Type "adb push Rom.zip /sdcard"
- Wait til a confirmation message will appear on CMD.exe
- Flash the ROM using TWRP
So for future reference to anyone that might have the same issue.
I fixed this issue, by flashing a older version of TWRP. This allowed me to use ADB sideload without issue & also allow OTG_USB. It also allowed me to flash files with long names.... I have tried to go back to the latest version of TWRP for OP5 but i get the errors i was getting before.
Strange, but did the fix.
Thanks all for the help & input.

Categories

Resources