Hello,
I managed to soft-brick my nexus 4 and want to reinstall a ROM, but I wiped the internal memory and there are no files on the Nexus 4. I cannot go anywhere but recovery and I have clockworkmod installed. Where do I go so I can copy and paste the ROM file on my Nexus 4?
Thanks
gokuman56 said:
Hello,
I managed to soft-brick my nexus 4 and want to reinstall a ROM, but I wiped the internal memory and there are no files on the Nexus 4. I cannot go anywhere but recovery and I have clockworkmod installed. Where do I go so I can copy and paste the ROM file on my Nexus 4?
Thanks
Click to expand...
Click to collapse
Try using TWRP, and use ADB to push your flashable ROM zip into your /sdcard directory. You can then use the recovery to flash it onto your phone.
The command to push files from your local desktop to your Nexus 4's internal memory is:
Code:
$ adb push flashable-rom-zip.zip /sdcard
You can try doing the same thing with CWM, but in my experience it doesn't work that well. With TWRP, on the other hand, ADB push commands work flawlessly.
So there is no other way to mount my Nexus to the computer?
gokuman56 said:
So there is no other way to mount my Nexus to the computer?
Click to expand...
Click to collapse
Not in recovery
gokuman56 said:
So there is no other way to mount my Nexus to the computer?
Click to expand...
Click to collapse
You cannot mount an MTP device as USB in recovery. Some devices have an app but they also have removable storages.
Sent from my Nexus 4 using Tapatalk 2
gokuman56 said:
Hello,
I managed to soft-brick my nexus 4 and want to reinstall a ROM, but I wiped the internal memory and there are no files on the Nexus 4. I cannot go anywhere but recovery and I have clockworkmod installed. Where do I go so I can copy and paste the ROM file on my Nexus 4?
Thanks
Click to expand...
Click to collapse
If I had that problem, I would probably flash back to stock Android. Google (finally) put the Nexus 4 factory images back online. I can't post links here just yet, but a quick Google search for "nexus factory images" should get you there.
Just run:
Code:
adb reboot bootloader
And then run flash-all for your OS.
It's easier if all those files are in the folder with fastboot and adb from the Android SDK. I'm trying to clear up confusion between the codenamed "mako" and "occam", both linked with the Nexus 4. I think "mako" is the hardware and "occam" is the software, but if they are actually two slightly different phones, and you make your problem worse, I can't take responsibility.
Related
HOW CAN I ACCES root directory SDCARD from PC so I can place there my Rom to Flash it?
I Have formated everything, including the SDCARD, And now I only can get into RECOVERY mode,
Is there any way I can Flash my rom from Recovery?
How can I get acces to the SDcard ROOT directory so tha I can place there my Rom in order to Flash It ?
Is ther an ODIN type of flashing Roms in Nexus 7 just like in the S3?
How can I flash Rom from a Formatted SDCARD?
If you are in Recovery, then you can still use ADB. That means you can push files to your device.
Sent from my Nexus 7
BillGoss said:
If you are in Recovery, then you can still use ADB. That means you can push files to your device.
Sent from my Nexus 7
Click to expand...
Click to collapse
Plese Tell me HOW to use ADB ? What do I have to do to push the Rom files into Root Directory of SDCARD?
I am using CWM recovery TOUCH 6.0.1.0
If you are connected to your PC you are seeing the sdcard root directory. Not sure what you are looking for
Sent from my SPH-L710 using Tapatalk 2
Moricon said:
If you are connected to your PC you are seeing the sdcard root directory. Not sure what you are looking for
Sent from my SPH-L710 using Tapatalk 2
Click to expand...
Click to collapse
I aM Connected to PC in RECOVERY mode,
The driver is installed OK
BUT I DONT SEE MY DEVICE IN PC
So I can not Push Rom fils to Root SDCARD directory becasuse I DONT SEE IT
When I PLUG in and Unplug I hear the USB installing BUT I DONT SEE THE DEVICE in my EXPLORER...So I dont Know Where I must Put Rom files to flash my Nexus 7...
My Device is ATTACHED into RECOVERY MODE
But I dont see it in my FileExplorerSo I dont Know HOW can I copy Rom to my SDCARD root directory...
Is there a COMMAND to copy rom from the CMD ?
OR is there a COMMAND for FLASHING ROM from within CMD
HELP NEEDED PLEASE:silly:
WHAT is the COMMAND to DUMP ROM into the SDCARD with Android. SDK and the CMD?
I am using the DEXDUMP.exe command but I dont know how it works...
NDUTU said:
I aM Connected to PC in RECOVERY mode,
The driver is installed OK
BUT I DONT SEE MY DEVICE IN PC
So I can not Push Rom fils to Root SDCARD directory becasuse I DONT SEE IT
When I PLUG in and Unplug I hear the USB installing BUT I DONT SEE THE DEVICE in my EXPLORER...So I dont Know Where I must Put Rom files to flash my Nexus 7...
Click to expand...
Click to collapse
Then you don't have the right drivers loaded if your pc can't see your device...
Sent from my Nexus 7
krelvinaz said:
Then you don't have the right drivers loaded if your pc can't see your device...
Sent from my Nexus 7
Click to expand...
Click to collapse
Yes I DO HAVE the right drivers loaded see the attached file,
The command is adb push. I'm not at my computer and it's too hard to type and example on my phone for you. Just Google adb push and you should get your answer. Hope this helps.
adb push <where rom is stored>/<name of zip>.zip /sdcard/<any name here>.zip
ie adb push E:/cm10-UNOFFICIAL-i777.zip /sdcard/cm10.zip
you might have to reboot the device back into recovery, even if you're already in recovery, for it to come up. Then just flash it like normal. You do have CWM or TWRP, right?
THANKS
OK guys thank you all , I managed to flash STOCK rom with the tool kit using the : put_google_factory_image_here , FOLDER
Hi,
I was going to install a ROM on my Nexus, so I made a backup and wiped EVERYTHING. Including the SD card so now in clockworkmod
it can not mount the SD card, I cannot mount it to my computer... I am shaking and my hands are cold... I cant flash any rom HELP NOW!!!! ((((
thanks
No need to panic, its a nexus.
can you adb push a ROM zip to your sdcard?
if you can't then you can always flash a factory image with fastboot and you'll be back to normal in no time.
So take a deep breath and chill.
Sent from my Nexus 7 using xda premium
nodstuff said:
No need to panic, its a nexus.
can you adb push a ROM zip to your sdcard?
if you can't then you can always flash a factory image with fastboot and you'll be back to normal in no time.
So take a deep breath and chill.
Sent from my Nexus 7 using xda premium
Click to expand...
Click to collapse
I have a factory image please tell me how'd I do that in fastboot! (only if they had a begging at knees thing)
ok i will write you some step by step functions to follow in order to get yourself a rom onto your device
Info that is Needed!
Do You Already Have ADB functioning on your Computer
If Yes - Skip to Step 2
If No Proceed from Step 1
----STEP 1----
install the ADB drivers for your device
im going to assume you have a windows machine here so the followthrough will be for windows (i use Win7 but it should be the same)
BOOT YOUR DEVICE INTO RECOVERY WHILE PLUGGED INTO YOUR PC BUT DO NOT CLICK ON ANYTHING
1. Download These Google Drivers for Nexus Devices http://www.themoviedb.org/movie/15092-crank-ii-high-voltage
2. extract the folder
3. press the start button
4. right click on "Comptuer" or "My Computer (XP)
5. Click on Manage
6. in the new window press "Device Manager" on the left
you should see in the tree on the right (a device with a yellow exclamation mark ! probably called nexus)
7. right click it and press update driver software
8. press browse my computer for driver software
9. press let me pick from a list of device drivers on my computer
10. press have disk
11. press browse
12. on the new window navigate to the folder you extracted earlier and select the android_winusb.inf
13. press ok
14. there will either be 1 or 2 options to choose - click Android Composite ADB Interface and then press next
15. tick always trust software from google inc. and then install
your device should now have ADB capablilities
Proceed to step 2
----STEP 2----
this will use adb to push a file to your device while it is in recovery mode which you can then flash
1. Download This - http://www.mediafire.com/?50baad8rykng2j0
these are adb & fastboot binaries which will allow your pc to send files to your nexus via ADB
2. extract the downloaded archive to somewhere easy to remember ( i suggest C:\fastboot )
3. rename your downloaded custom rom to rom.zip (for simplicity) and copy it to the extracted directory (the one with adb.exe & fastboot.exe)
4. bring a command prompt to this directory
- in the directory you extracted (c:\fastboot) hold shift and right click in a blank area of the main window
- click "open command window here"
or
- Windows Key & R
- in the new box type cmd then press enter
- type cd c:\fastboot (where c:\fastboot is the directory where you extracted)
now to push it over
5. in the cmd window type adb devices and make sure your device is listed
your should see something like
list of attached devices
XXXXXXXXXXXXXXXX Recovery
where XXXXX is your devices serial number
6. in your cmd window type adb push rom.zip /sdcard/
this will take a while to complete but once it is down go back to your device and try to install a rom as you usually would
you should see the file in your internal memory to install now
^^ I was too slow!
First install the android SDK (Google it) then you need to put fastboot in your path you need to open my computer, system properties, advanced system settings, environment variables button at the bottom, then in the bottom window scroll down til you see find path and edit it and add the path to the android SDK and in particular the platform-tools folder.
So if you download the android SDK to your C drive, the path you will be adding will be like ";C:\android-sdk\platform tools" (note the semi colon at the start, important to separate entries)
Once the path is set up you can use fast boot in cmd just by typing fastboot xxxxx rather than typing C:\android-sdk\platform-tools fastboot xxxxx every time.
So next thing is to extract the images to somewhere.
Inside the zip is another zip called image-nakasi-jzo54k,
unzip that til you have .IMG files, system.img, boot.img etc.
then once they are extracted you use cmd to CD to that folder where you have the images and you can start to flash them.
fastboot flash system system.img
fastboot flash boot boot.img
You could just use flash-all.bat but and that will flash them all automatically but will wipe your internal SD.
Sent from my Nexus 7 using xda premium
If you JUST read that, I figured it out, and if I can flash all the partitons correctly, I will punch the thanks button.
cburk01 said:
yay new problem
Ok, so I unzipped it, extracted the thing inside, but it was it a weird format Windows recognized as "file". So, I added .zip to the end. WinRAR opened it, I saw the files, began to extract when an error popped up about the archive being damaged. WTF.
Click to expand...
Click to collapse
What was the name of the file that you had problems with?
the first one is a .tgz file then .tar but the one with the images inside that is .zip (looking at it now)
use 7-zip instead of winzip
Sent from my Nexus 7 using xda premium
nodstuff said:
What was the name of the file that you had problems with?
the first one is a .tgz file then .tar but the one with the images inside that is .zip (looking at it now)
use 7-zip instead of winzip
Sent from my Nexus 7 using xda premium
Click to expand...
Click to collapse
Now I REALLY DO have a problem. I flashed boot.img, system.img, userdata.img, everything to the right partitons and still have a problem. Boot loop. Sticks on Google logo. Why? I did everything right. I even tried fastboot boot boot.img, no luck. I saw some people having boot loop problems, too on 4.1.2. So now, until you reply, I am going to try a custom kernel. Scratch that I'm using ToolKit to download and install 4.1.1.
If you flashed userdata.img that means your internal SD is wiped.
did you run flash-all.bat that is in the folder?
It would be no harm to do that now since everything is wiped already.
no matter what its still recoverable so don't worry.
Sent from my Nexus 7 using xda premium
nodstuff said:
If you flashed userdata.img that means your internal SD is wiped.
did you run flash-all.bat that is in the folder?
It would be no harm to do that now since everything is wiped already.
no matter what its still recoverable so don't worry.
Sent from my Nexus 7 using xda premium
Click to expand...
Click to collapse
*facepalm* with the SD I already wiped that before I flashed. And I didnt run flashall.bat or what ever its called so I am going in to try that. Ran flashall got some weird radio flashing error so now continuing with ToolKit.
Flash-all.bat just automatically flashes all the images by running one command, it simplifies the process.
It just isn't ideal if you wanna keep your SD contents.
that's why you flash images separately, so you don't flash userdata.img but since you already wiped it then you're good to go.
Sent from my Nexus 7 using xda premium
WOOT!!!!!!!!!!!!!!!!!!!! Although I don't know if my backup will work, my tablet is now booted up into Android 4.1.1. Now I am going to root it, install a ROM, restore my data partition from TWRP, and (hopefully) have what I have been waiting for. A updated, functioning Nexus 7. *mashes thanks button*
Hey, should I update to 4.1.2 THEN root or root on 4.1.1 THEN flash the ROM?
cburk01 said:
WOOT!!!!!!!!!!!!!!!!!!!! Although I don't know if my backup will work, my tablet is now booted up into Android 4.1.1. Now I am going to root it, install a ROM, restore my data partition from TWRP, and (hopefully) have what I have been waiting for. A updated, functioning Nexus 7. *mashes thanks button*
Click to expand...
Click to collapse
Your backup is most likely gone, its stored on the SD card and that is wiped. Unless you have it on your computer, then you are all good.
Glad its back to life and now you know how to fix it if anything goes wrong.
What you learned today is very valuable to know.
It's nearly impossible to kill a nexus device (from a software perspective)
Sent from my Nexus 7 using xda premium
---------- Post added at 12:19 AM ---------- Previous post was at 12:18 AM ----------
cburk01 said:
Hey, should I update to 4.1.2 THEN root or root on 4.1.1 THEN flash the ROM?
Click to expand...
Click to collapse
Update first
Sent from my Nexus 7 using xda premium
Yes, I have my backup on my Macbook (running Windows 7). Thanks for all the useful advice. lol about the Nexus devices are hard to kill thing, I imagined a cockroach. And about the valuable lesson thing, I learned fastboot commands and adb stuff all when I was messing with (then soon after fixing) my HTC EVO 3D. Oh, I love XDA. Thanks again.
-cburk
I am trying to root my new Nexus 4 and I am stumped. I am trying to follow efrant's instructions: http://forum.xda-developers.com/showthread.php?t=2010312
I successfully completed part D and now am trying to work through part E. I am stuck at step 3 of E: I downloaded SuperSU v 0.98 (is that really the one to get?) and I'm supposed to put that in /sdcard. Where is /sdcard? There is no SD Card in a Nexus 4. Is this a hidden folder somewhere? Do I have to make it? How can I see that folder? I am using a Mac and the Android File Transfer program window shows no sdcard folder anywhere.
Also: Why does another unlock guide talk (http://forum.xda-developers.com/showthread.php?t=2018179) about pressing "Build Number" seven times? Why doesn't efrant's guide mention this?
I don't follow this part at all. How do I put that damn file where it needs to be?
Just download the N4 toolkit. Will do everything you want.
Toolkit
Doggonit said:
I am trying to root my new Nexus 4 and I am stumped. I am trying to follow efrant's instructions: http://forum.xda-developers.com/showthread.php?t=2010312
I successfully completed part D and now am trying to work through part E. I am stuck at step 3 of E: I downloaded SuperSU v 0.98 (is that really the one to get?) and I'm supposed to put that in /sdcard. Where is /sdcard? There is no SD Card in a Nexus 4. Is this a hidden folder somewhere? Do I have to make it? How can I see that folder? I am using a Mac and the Android File Transfer program window shows no sdcard folder anywhere.
Also: Why does another unlock guide talk (http://forum.xda-developers.com/showthread.php?t=2018179) about pressing "Build Number" seven times? Why doesn't efrant's guide mention this?
I don't follow this part at all. How do I put that damn file where it needs to be?
Click to expand...
Click to collapse
When you plug the phone into the computer /sdcard is the folder that comes up. Just place it in there.
Sent from my Nexus 4 using xda app-developers app
DO NOT USE TOOLKITS. Especially if you're new to modding.
That's like saying, I want to overclockmy computer. Just give me a toolkit where I can one click and overclock my computer.
Read more here http://forum.xda-developers.com/showthread.php?t=1469909
Do it the proper way and download ADB drivers
http://forum.xda-developers.com/showthread.php?t=1514942 (enable USB debugging)
set up ADB environment
adb reboot bootloader
fastboot oem unlock
unlock bootloader on phone
download clockwork recovery or TWRP (i suggest TWRP)
put the .img file of recovery into your /platform-tools/
fastboot flash recovery <name-of-file>.img
then boot into recovery and there you can flash your ROM, gapps, kernel.
In the long run, IT WILL PAY OFF because eventually YOU will be faced with a problem with your phone and you won't be able to recover your phone because you dont know basic fastboot or adb commands all simply because you wanted to use a toolkit. People are already asking on how to use adb / fastboot in Q&A, we can reduce the clutter by not having people use toolkits and actually learning how adb / fastboot works when it isn't a very complicated thing to do at all
As stated in my original post, I am using a Mac. Not a PC. Therefore I don't use ADB, nor any other drivers. I also do not see, as stated before, any sdcard folder. I don't, I repeat, don't see it.
Doggonit said:
As stated in my original post, I am using a Mac. Not a PC. Therefore I don't use ADB, nor any other drivers. I also do not see, as stated before, any sdcard folder. I don't, I repeat, don't see it.
Click to expand...
Click to collapse
you dont need drivers on mac then... you can still ADB connect using mac.
simple: google search..... http://lmgtfy.com/?q=mac+adb first link
Doggonit said:
Where is /sdcard? There is no SD Card in a Nexus 4. Is this a hidden folder somewhere?
Click to expand...
Click to collapse
On the Nexus 4, /sdcard is the same as /storage/emulated/0. As mentioned earlier in the thread, this is the default location for native USB file transfer.
Sent from my Nexus 4
Hi,
My tablet was having some issues yesterday and wouldn't turn on, so I managed to do a factory reset, planning on restoring everything from Titanium Backup (from my TWRP backup), however, when I look at my TWRP Backup in TiBu, there doesn't seem to be anything there?
However, when I copy the data.win file to my computer and extract it, I can see all the files and I would like to try and copy some of the saves back to my data partition, however, I can't seem to find a way to find it or write to it?
Any ideas?
Stewart
There are many possibilities, on of them:
- boot Nexus 7 into recovery mode
- connect the Nexus 7 with USB to you PC
- mount /data in recovery
- adb push the files / directories you want to restore to the /data partition
- ...
There is only one problem: as you have done a factory reset / wipe the corresponding apps are no longer installed and even if you install them again,they will get a different uid so that the restored data is no longer accessible to them. Probably fix_permissions can help in that situations, but I didn't try yet.
AndDiSa said:
There are many possibilities, on of them:
- boot Nexus 7 into recovery mode
- connect the Nexus 7 with USB to you PC
- mount /data in recovery
- adb push the files / directories you want to restore to the /data partition
- ...
There is only one problem: as you have done a factory reset / wipe the corresponding apps are no longer installed and even if you install them again,they will get a different uid so that the restored data is no longer accessible to them. Probably fix_permissions can help in that situations, but I didn't try yet.
Click to expand...
Click to collapse
Ah ok, that sucks!
Is there not anyway I can use an Android based GUI tool to copy the files from my SDCard to /data.
I am not the best with adb, but I imagine the command would be "./adb push <insert file name here> /data/com.bigideas.swys/files", would that work?
Cheers
Stewart
Yes, that should work. Unfortunately I don't know any tool providing the functionality you are looking for.
Sent from my Nexus 7 using xda app-developers app
Ummm... how about you restore it in TWRP like you're supposed to?
Sent from my SGH-I777 using xda premium
TWRP should work, too, but if I remember well, the USB id is different, so you might get problems with adb if you do not have the correct driver installed.
To push a file to the device:
- unzip/untar data.win on your PC
- boot device to recovery
- on PC cmd-line:
- adb shell mount /data
- adb push <file_or_dir_to_push> /data/
But as I said, most likely it's not enough ...
Sent from my Nexus 7 using xda app-developers app
korockinout13 said:
Ummm... how about you restore it in TWRP like you're supposed to?
Sent from my SGH-I777 using xda premium
Click to expand...
Click to collapse
Because that caused it to stop booting like it did when it first powered off!
Sent from my Nexus 4 using Tapatalk 2
StuMcBill said:
Because that caused it to stop booting like it did when it first powered off!
Sent from my Nexus 4 using Tapatalk 2
Click to expand...
Click to collapse
The data.win file is just a tar archive. You can extract whatever you want, although there are a couple caveats:
- the .tar archives seem to be absolutely rooted (e.g. /foo/bar instead of ./foo/bar) so you might need to fool with -C or other tar command line options to get the result you are after.
- while you certainly could use 7-zip or similar to unpack the archive and cherry pick whatever you want on a Windoze box, you probably ought to do offline unpacking using Linux so you don't lose file permission settings. An alternative would be to unpack on the device itself to someplace such as /data/local/tmp using your preferred terminal emulator (or adb command line) and busybox combination. Then you can adjust ownership via "chmod -r" as needed and "mv" to move your cherry picks into place. Note you also need to pay attention to /data/app-lib/* in addition to /data/data/* and /data/app/* cherry picks.
- To reiterate about file ownership, probably what you should do is install only the .apks you want first, and then after rebooting, note the assigned user/group IDs chosen for each app install, and change the restored /data/data/* and /data/app-lib/* files to that uid.
Confused? Well, you asked. Look up a decent Linux administration guide for clarification.
good luck
i was trying to install a new PA nightly and then i wanted to wipe the phone clean before i install it, but i accidentally wipe the sd card. Can i just use a toolkit and flash stock OS or can i just connect it to pc and paste a zip file of PA? help please
If you can use adb just do
adb push nameofrom.zip /sdcard
Then install as normal
Sent from my Nexus 4 using xda app-developers app
yes i have adb, i hope i have a copy of any zip file there :/
aside from that can i do a fresh install using a toolkit? i have mskips toolkit and as far as i can remember it downloaded the stock images.
eluspo said:
yes i have adb, i hope i have a copy of any zip file there :/
aside from that can i do a fresh install using a toolkit? i have mskips toolkit and as far as i can remember it downloaded the stock images.
Click to expand...
Click to collapse
Why would you? You are as clean as you can get as you wiped everything. Just push PA and gapps to the sdcard as said by Alex240188 before and flash the rom.
so command would be adb push filename.zip/sdcard? no spaces?
doest matter where i put my zip file? no need to indicate the location of the zip file?
eluspo said:
so command would be adb push filename.zip/sdcard? no spaces?
Click to expand...
Click to collapse
"adb push nameofrom.zip /sdcard/"
Also do the same for the gapps
Sent from my Nexus 4
eluspo said:
doest matter where i put my zip file? no need to indicate the location of the zip file?
Click to expand...
Click to collapse
It doesn't matter where you put it if you have adb.exe in your environment variables.
If you don't then you have to have it in the same folder as adb.exe and then CD to that folder in command prompt.
You can flash stock images in fastboot then copy new ROM back on if that's easier for you.
On a side note I keep laughing every time I put fastboot in because the slide keyboard always likes to default to Fatboy
Sent from my Nexus 4 using xda app-developers app
thanks for the info, im just wondering if i have stock images downloaded becase when i downloaded mskips toolkit it downloaded the stock 4.2.2
if i can see the images maybe ill flash stock then flash everything again.
there are tutorials all over xda on how to use adb and thats all you need to do is just push it over and flash. The longest part would be simply pushing the file over to your phone... hit up google and check it out