[q] nexus 4 backup - Nexus 4 Q&A, Help & Troubleshooting

Hi
i stupidly dropped my nexus 4 on the floor and the screen completely smashed, the buttons work fine, but my phone is locked so whenever i connect to my laptop it wont backup my files.
Is there anyway i can backup my pictures and videos?
Any help or suggestions will be greatly appreciated, as i have some memoroable pictures stored on there?
Thanks
mr cazorla

Do you have USB debugging enabled? If so you can pull your picture folder via adb.
Sent from my Nexus 4 using xda app-developers app

NEXUS 4
morbe said:
do you have usb debugging enabled? If so you can pull your picture folder via adb.
Sent from my nexus 4 using xda app-developers app
Click to expand...
Click to collapse
hi
no its not enabled as my phone has not been rooted

phone doesn't need to be rooted to enable usb debugging.

CAZORLA said:
hi
no its not enabled as my phone has not been rooted
Click to expand...
Click to collapse
As goofball2k said, you don't need to root your device to enable USB debugging. In your case though, you can't enable it due to the broken screen.
When your screen is locked and you connect your phone to the pc, does it show the phone? If it does it will probably show no folders inside. Right?
What you need to do is unlock the bootloader, flash a custom recovery and then in the recovery you will be able to use adb pull command.
To do all that you can read efrant's guide (unlock bootloader, flash custom recovery) in this forum, or you can use a toolkit like this guy in your same situation: http://forum.xda-developers.com/showthread.php?t=2177440
I would recommend efrant's guide as it teaches you the basics on how to use adb and fastboot to flash anything you like.
Cheers
Sent from my Nexus 4 using xda app-developers app

Unlocking his bootloader will wipe the device though. He's SOL unless it's already unlocked.

DrFredPhD said:
Unlocking his bootloader will wipe the device though. He's SOL unless it's already unlocked.
Click to expand...
Click to collapse
True, but I think that with "boot unlocker" you can unlock the bootloader without wipe
Sent from my Nexus 4 using xda app-developers app

Another solution would be to make a backup image of the entire phone memory (see the bootloader unlock sticky thread), but he needs to set a password for the desktop backup first.

Morbe said:
True, but I think that with "boot unlocker" you can unlock the bootloader without wipe
Sent from my Nexus 4 using xda app-developers app
Click to expand...
Click to collapse
It needs root to work and he can't unlock his device to use an app even if he had root.

Related

One click root

So I can't root my nexus s I don't know why I have had all the great androids since day one but this baby wont budge. Will any of those one.click apps work never tried one?
Sent from my Nexus S using XDA App
dskyers said:
So I can't root my nexus s I don't know why I have had all the great androids since day one but this baby wont budge. Will any of those one.click apps work never tried one?
Sent from my Nexus S using XDA App
Click to expand...
Click to collapse
There's no one click method I know of for the Nexus S.
What do you mean you can't root & it won't budge? This phone is about as easy they come (without some one click app): http://forum.xda-developers.com/showthread.php?t=931865
Install the android sdk on your computer.
Put the su.zip file on your sdcard partition of the phone.
Put the phone in fastboot mode.
Fastboot flash the recovery.
Select recovery.
Select install zip from sdcard.
Flash it.
Reboot.
You're done.
If your computer doesn't recognize the phone while it's in the bootloader, you gotta install the google Nexus S drivers or the one from PDAnet. That was where I got stuck at 1st when I tried rooting. Fastboot couldn't find my phone because I had the generic windows drivers.
Also if you have PDANet on, turn it off before putting your phone in fastboot mode.
Actually there is a one click method...brb with it
http://www.theandroidsoul.com/easy-one-click-root-for-nexus-s-full-guide/
Or search superboot nexus s
Here on xda
Either will work PC or mac.
Sent from my Nexus S using XDA App
vapor311 said:
Actually there is a one click method...brb with it
http://www.theandroidsoul.com/easy-one-click-root-for-nexus-s-full-guide/
Or search superboot nexus s
Here on xda
Either will work PC or mac.
Sent from my Nexus S using XDA App
Click to expand...
Click to collapse
Interesting. So the steps on the referenced one-click method you posted are:
1) put your phone in fastboot
2) do the fastboot oem unlock command manually.
3) run a batch file that contains two lines (fastboot-windows.exe flash boot boot.superboot.img & fastboot-windows.exe reboot).
I guess that's easier than putting your phone in fastboot directly and typing in a command to flash clockwork, then selecting a zip file to install from clockwork, but not much.
The drawbacks here are of course that it's superboot, and that it requires you to unlock the bootloader. I guess it's useful if you're really noob, but it only saves you typing one command.
The noob part is very true. However I prefer my bootloader unlocked anyhow.
Sent from my Nexus S using XDA App
vapor311 said:
The noob part is very true. However I prefer my bootloader unlocked anyhow.
Sent from my Nexus S using XDA App
Click to expand...
Click to collapse
Why do you prefer it unlocked?
I like the unlocked lock! No seriously custom roms etc.
Sent from my Nexus S using XDA App
main reason i think there is no one click root is because its so simple to do on this phone
vapor311 said:
I like the unlocked lock! No seriously custom roms etc.
Sent from my Nexus S using XDA App
Click to expand...
Click to collapse
You do not need an unlocked bootloader (currently) to use custom roms, or to root, or to flash clockwork recovery, etc...
On day one that wasn't a known entity.
Sent from my Nexus S using XDA App
vapor311 said:
On day one that wasn't a known entity.
Sent from my Nexus S using XDA App
Click to expand...
Click to collapse
Of course, but since you contradicted my statement earlier that one disadvantage to the posted method here was that it had you unlock the bootloader by replying that you like having yours unlocked, I was trying to pin down if there was an advantage to unlocking the bootloader that had been discovered that I hadn't heard yet.
There's indication on git for our phone that the next update includes a change to the bootloader being able to use the fastboot boot command while locked. Unknown what that will actually do in terms of just fastboot flashing clockwork to apply root and custom roms.
I c wut u did there. I'm not sure how the update is going to affect things ATM. I keep it unlocked for "in case sh*t" happens. Never know what an update will bring in changes to rom management.
Sent from my Nexus S using XDA App

Oops! I changed LCD Density and now will not boot up.

Hey Everyone,
So I was being impatient and wanted to change the Density of my LCD on my Nexus 7. I changed it from the stock DPI to 170 using LCD Density Modder on the Market. Ever since reboot I have not been able to get past the google screen when you first turn on device. I can get into bootloader as well. My bootloader is unlocked and device is rooted if that helps.
Is there any easy way to recover the device besides a adb, or fastboot method? If not, what are the adb, fastboot commands to flash the OTA image to device from my PC?
Thanks
Download the nexus root toolkit, it can turn everything stock.
Sent from my LG-P999 using xda app-developers app
I have the nexus root toolkit, but don't you need the device powered on to put in usb debugging mode, etc? All I can do is hit google splash screen and get into bootloader, recovery.
There's buttons that say revert to stock, I believe those work in recovery.
Sent from my LG-P999 using xda app-developers app
redmonke255 said:
Download the nexus root toolkit, it can turn everything stock.
Sent from my LG-P999 using xda app-developers app
Click to expand...
Click to collapse
+1 just unlock and reflash
Sent from my i777 using xda app-developers app
Whenever I try to flash stock + unroot I get error message, "Windows cannot find 'C:\\data\gnexwug_DLnX.exe'. Make sure you typed the name correctly, and then try again."
Im not trying to type in anything, all I am doing is trying to restore to stock.
did you make a nandroid backup?" i am goign through the same thing right now. I am goign to restore from backup.
To change the desinty, it must be manually done in build.prod i assume. LCD Density modder might not be compatible, yet.
edit: Crap, i cant boot to recovery for some reason :/
edit2: it seems the only way to boot into recovery now is from a ROM manager application. Ijust finished restoring using the Nexus Toolkit.
I finally figured how to get SDK going and restored via nexus root toolkit. Thanks guys!
Sent from my Nexus 7 using xda app-developers app
mheller91 said:
I finally figured how to get SDK going and restored via nexus root toolkit. Thanks guys!
Sent from my Nexus 7 using xda app-developers app
Click to expand...
Click to collapse
Hi,
I stupidly did the same thing and am now in the same situation. :crying:
Can you tell me how you finally got it sorted?
Cheers
damienleetobin1976 said:
Hi,
I stupidly did the same thing and am now in the same situation. :crying:
Can you tell me how you finally got it sorted?
Cheers
Click to expand...
Click to collapse
Personally,
i booted into fastboot (all buttons if i remember correctly), then hit up the Tool Kit, go to advanced > temporary recovery, From there, i just restored my nandroid backup, or if you have any roms on there, just flash that.
You could do that, or once in fastboot and connected, you could just unlock, which will wipe everything.
tremblingwater said:
Personally,
i booted into fastboot (all buttons if i remember correctly), then hit up the Tool Kit, go to advanced > temporary recovery, From there, i just restored my nandroid backup, or if you have any roms on there, just flash that.
You could do that, or once in fastboot and connected, you could just unlock, which will wipe everything.
Click to expand...
Click to collapse
Hi,
I tried this and went for the Unlock route but after a restart it now just seems to be stuck at the google splash screen.
Is it usual to take this long?
Cheers
So what program is everyone using to change the DPI without getting a black screen?
Sent from my Nexus 7 using xda premium
theusername said:
So what program is everyone using to change the DPI without getting a black screen?
Sent from my Nexus 7 using xda premium
Click to expand...
Click to collapse
Just using a file explorer (specifically, solid explorer but root explorer should also work), navigating to /system/build.prop, and changing the number ro.sf.lcd_density.
changing that particular number's easy, and the last app I tried somehow managed to make a second build.prop inside the same file. So yeah.
Don't forget to backup your build.prop (preferably externally as well, in case you need to flash it) before trying this. And/or make a nandroid.
damienleetobin1976 said:
Hi,
I tried this and went for the Unlock route but after a restart it now just seems to be stuck at the google splash screen.
Is it usual to take this long?
Cheers
Click to expand...
Click to collapse
Im not sure, i dont want to advise something that is wrong, but, no, it doesn't take extraordinarily long. How long has it been?
I would boot into fastboot again and try the other route (provided you have a rom on the device or hopefully, better yet, a nandroid)
If you're using the cwm recovery from the toolkit you must be plugged in to usb to access cwm from the bootloader menu. From there you can reflash whatever you want to fix it.
jamesbra said:
If you're using the cwm recovery from the toolkit you must be plugged in to usb to access cwm from the bootloader menu. From there you can reflash whatever you want to fix it.
Click to expand...
Click to collapse
Yep, this is how it got it back and running last night.
I then used root explorer to edit build.prop and it worked like a charm.
Thanks all

Best Toolkit?

Hey guys,
I see alot of toolkits around like N-Cry and Wkip or something.
Now, Im still unrooted and locked.
What is the best toolkit to unlock my bootloader and flash twrp?
Also, I don't want to lose any data while unlocking my bootloader.
Thanks in advance!
Sent from my Nexus 4 using xda app-developers app
The best toolkit is to not use a toolkit at all. Learn how to do it yourself, it's not difficult and will pay off in the end since you'll know how to use fast boot.
You cant unlock your bootloader without losing data, it's a part of the process and is there for security purposes.
Sent from my Nexus 4 using Tapatalk 4
Like zephiK said, don't use a toolkit.
It is actually possible to unlock the bootloader without having everything wiped. You need to flash a custom recovery right after unlocking, without rebooting in between. Then you boot into the recovery, wipe the cache, and boot back into android and everything should be left untouched.
Sent using xda-developers app
zephiK said:
The best toolkit is to not use a toolkit at all. Learn how to do it yourself, it's not difficult and will pay off in the end since you'll know how to use fast boot.
You cant unlock your bootloader without losing data, it's a part of the process and is there for security purposes.
Sent from my Nexus 4 using Tapatalk 4
Click to expand...
Click to collapse
Okay thanks guys I now know enough!
I'll find me a good tutorial and hopefully start unlocking and rooting soon.
Chromium_ said:
Like zephiK said, don't use a toolkit.
It is actually possible to unlock the bootloader without having everything wiped. You need to flash a custom recovery right after unlocking, without rebooting in between. Then you boot into the recovery, wipe the cache, and boot back into android and everything should be left untouched.
Sent using xda-developers app
Click to expand...
Click to collapse
Sent from my Nexus 4 using xda app-developers app
yup, in agreement.. best "toolkit" is fastboot/adb
failly said:
Okay thanks guys I now know enough!
I'll find me a good tutorial and hopefully start unlocking and rooting soon.
Sent from my Nexus 4 using xda app-developers app
Click to expand...
Click to collapse
A good guide to unlocking and rooting your Nexus 4 is available at http://forum.xda-developers.com/showthread.php?t=2266654. Don't forget Chromium's advise to flash a custom recovery then boot into recovery and wipe the cache before rebooting to preserve your data. I would also recommend copying all data from the Nexus' internal storage to your computer as a backup before rooting.
Thanks alot guys! Will just use the fastboot method instead of a toolkit!

Enable USB Debugging in Recovery Nexus 4

So I managed to break the digitiser on my Nexus 4 last weekend. I have most things off it anyway but there are a couple of apps I need to run to get the data I need. I would like to be able to use android screencast to run the couple of apps or use it to set up my bluetooth mouse so I can use that as the screen itself still views fine. However, I need to enable USB Debugging in regular operation.
My phone is rooted, has CWM as the recovery and I have the ADB platform tools downloaded to my mac. This for a Nexus 7 is the closest I have come to an answer of how to do it. However, I can't find these files so I guess they are somewhere else to change these settings?
Any help would be much appreciated, thanks!
If you have cwm, not into recovery and use adb to pull files you want off your device
Sent from my Nexus 5 using XDA Free mobile app
jd1639 said:
If you have cwm, not into recovery and use adb to pull files you want off your device
Sent from my Nexus 5 using XDA Free mobile app
Click to expand...
Click to collapse
I can't seem to find build.prop to be able to edit it. I can find default.prop but when I do adb pull /system/build.prop it doesn't work just says 'does not exist'.
mike_dangerous said:
I can't seem to find build.prop to be able to edit it. I can find default.prop but when I do adb pull /system/build.prop it doesn't work just says 'does not exist'.
Click to expand...
Click to collapse
In your recovery, I use twrp, mount system. It should work then.
Sent from my Nexus 5 using XDA Free mobile app
Works! Brilliant thanks! Hopefully the rest of this works!
So I have managed to Brick my phone into a boot loop of the cyanogenmod startup symbol. What can I do now?
Can someone confirm what the file permissions should be for settings.db and build.prop?
mike_dangerous said:
So I have managed to Brick my phone into a boot loop of the cyanogenmod startup symbol. What can I do now?
Can someone confirm what the file permissions should be for settings.db and build.prop?
Click to expand...
Click to collapse
Permissions should be rw-r-r. There's always the factory image to flash. You're not bricked!
Sent from my Nexus 5 using XDA Free mobile app
jd1639 said:
Permissions should be rw-r-r. There's always the factory image to flash. You're not bricked!
Sent from my Nexus 5 using XDA Free mobile app
Click to expand...
Click to collapse
OK so I'm stuck how do I flash a factory image then? And I can't wipe my data or else the exercise is moot. Is there a way I can flash an image with the USB Debugging I require enabled? That would make my life much much simpler!
mike_dangerous said:
OK so I'm stuck how do I flash a factory image then? And I can't wipe my data or else the exercise is moot. Is there a way I can flash an image with the USB Debugging I require enabled? That would make my life much much simpler!
Click to expand...
Click to collapse
This going to get some what experimental but it won't wipe your date. I assume your bootloader is unlocked Just flashing the factory image will wipe your data but.... Download the factory image and extract it using winrar or 7-zip. Inside is a zip file, extract that too. You should find a system.img file in there. Flash that in fastboot
fastboot flash system system.img
Hopefully that'll get you past the boot loop
Edit, I'd forgotten that I made this. It'll get you up and running too. http://forum.xda-developers.com/showthread.php?p=533289
Sent from my Nexus 5 using XDA Free mobile app
jd1639 said:
This going to get some what experimental but it won't wipe your date. I assume your bootloader is unlocked Just flashing the factory image will wipe your data but.... Download the factory image and extract it using winrar or 7-zip. Inside is a zip file, extract that too. You should find a system.img file in there. Flash that in fastboot
fastboot flash system system.img
Hopefully that'll get you past the boot loop
Edit, I'd forgotten that I made this. It'll get you up and running too. http://forum.xda-developers.com/showthread.php?p=533289
Sent from my Nexus 5 using XDA Free mobile app
Click to expand...
Click to collapse
Your link doesnt seem to work?
mike_dangerous said:
Your link doesnt seem to work?
Click to expand...
Click to collapse
Try this
http://forum.xda-developers.com/showthread.php?p=53766885
Sent from my Nexus 5 using XDA Free mobile app
jd1639 said:
Try this
http://forum.xda-developers.com/showthread.php?p=53766885
Sent from my Nexus 5 using XDA Free mobile app
Click to expand...
Click to collapse
Thanks a lot, I have now successfully unbricked my phone, enabled usb debugging and through a series of key strokes turned on bluetooth and connected my mouse. However, somewhere in the process I appear to have lost all my app data which was the points of trying to get in there in the first place. What could have done this? All my data e.g. photos is there but my SMS are gone!
mike_dangerous said:
Thanks a lot, I have now successfully unbricked my phone, enabled usb debugging and through a series of key strokes turned on bluetooth and connected my mouse. However, somewhere in the process I appear to have lost all my app data which was the points of trying to get in there in the first place. What could have done this? All my data e.g. photos is there but my SMS are gone!
Click to expand...
Click to collapse
You most likely wiped the data partition while trying to fix the bootloop.
Would the data partition not be where everything else is stored?
Try this
http://forum.xda-developers.com/showthread.php?p=53766885
Sent from my Nexus 5 using XDA Free mobile app
Click to expand...
Click to collapse
Is this image modified so that USB debugging is ENabled?
Background: I'm in the same situation as OP. Broken screen/digitizer, USB debugging is DISabled, unlocked, rooted, CWM recovery. I need to ENable USB debugging, otherwise I just keep getting told "error: device offline".
theman5511 said:
Is this image modified so that USB debugging is ENabled?
Background: I'm in the same situation as OP. Broken screen/digitizer, USB debugging is DISabled, unlocked, rooted, CWM recovery. I need to ENable USB debugging, otherwise I just keep getting told "error: device offline".
Click to expand...
Click to collapse
If you boot into recovery and then type adb devices is it still offline? It shouldn't be. You can recovery data while in recovery if that's what you're trying to do
Sent from my SAMSUNG-SGH-I957 using XDA Free mobile app
Yes, when I attempt to run adb while in recovery I still get told that the device is offline.
Not sure what the best solution is. I was thinking about trying to flash a modified factory image that is already set up to have USB Debugging Enabled because I can probably flash that without wiping data. However, I don't know if such images exist or, if necessary, how to make my own.
Clearly the OP got around it but I can't seem to be able to and I'm not sure what to do.
theman5511 said:
Yes, when I attempt to run adb while in recovery I still get told that the device is offline.
Not sure what the best solution is. I was thinking about trying to flash a modified factory image that is already set up to have USB Debugging Enabled because I can probably flash that without wiping data. However, I don't know if such images exist or, if necessary, how to make my own.
Clearly the OP got around it but I can't seem to be able to and I'm not sure what to do.
Click to expand...
Click to collapse
I would start by flashing a twrp recovery in your current cwm recovery. I.know you don't need usb debugging checked in trwp.
Sent from my Nexus 5 using XDA Free mobile app
jd1639 said:
I would start by flashing a twrp recovery in your current cwm recovery. I.know you don't need usb debugging checked in trwp.
Sent from my Nexus 5 using XDA Free mobile app
Click to expand...
Click to collapse
Well I'll start there and keep you posted. Thanks!
I was able to get TWRP running as my recovery. When I run adb, my device appears as "recovery", however, I'm not able to access the "build.prop" file to edit it so I can ENable USB Debugging. I think this is because I'm not able to remount "system" as read/write. Not sure what my issue is, but when I run adb root, it claims to be already in root, however when I run su in adb shell, it claims it can't find su. Any ideas?

[Q] Tried to unroot, wont turn on

Hey guys. I tried to unroot my nexus 4 from cyangongenmod using the nexus root tookit and it was all dandy until my phone just cut out. It won't turn on. I got into recovery mode, but i cant figure out what to do from there. How do i know if its still rooted? or if all i need to do is lock it again? Can anyone help? I really need help. Thanks
amali7861 said:
Hey guys. I tried to unroot my nexus 4 from cyangongenmod using the nexus root tookit and it was all dandy until my phone just cut out. It won't turn on. I got into recovery mode, but i cant figure out what to do from there. How do i know if its still rooted? or if all i need to do is lock it again? Can anyone help? I really need help. Thanks
Click to expand...
Click to collapse
This is why I don't recommend tool kits. I don't what you did to the device. I would try to do a factory reset in the stock recovery. It will wipe your device. Locking the phone won't do anything so don't bother with that.
Sent from my Nexus 5 using XDA Free mobile app
jd1639 said:
This is why I don't recommend tool kits. I don't what you did to the device. I would try to do a factory reset in the stock recovery. It will wipe your device. Locking the phone won't do anything so don't bother with that.
Sent from my Nexus 5 using XDA Free mobile app
Click to expand...
Click to collapse
So how would i do that? Sorry, Im rather slow with all this stuff. What i have so far is the zip file from google developer page. Should I flash that from the sd card? Or is there a better way?
amali7861 said:
So how would i do that? Sorry, Im rather slow with all this stuff. What i have so far is the zip file from google developer page. Should I flash that from the sd card? Or is there a better way?
Click to expand...
Click to collapse
Boot into the bootloader. Then go to recovery and do a factory reset.
Sent from my Nexus 5 using XDA Free mobile app
jd1639 said:
Boot into the bootloader. Then go to recovery and do a factory reset.
Sent from my Nexus 5 using XDA Free mobile app
Click to expand...
Click to collapse
Just reset the phone. I can see that the screen is on, but it's staying black. And i tried to plug it into the computer, but it wont recognize the phone anymore. Any ideas?
amali7861 said:
Just reset the phone. I can see that the screen is on, but it's staying black. And i tried to plug it into the computer, but it wont recognize the phone anymore. Any ideas?
Click to expand...
Click to collapse
It's sounding like a hardware problem. I would try flashing the factory image with fastboot. Is your device recognized by your pc when you're booted into the bootloader? If not, go to device manager on your pc. Is there a device with a yellow exclamation mark. If so right click on it and go to where it lets you choose from a list on your computer. Choose android adb composite interface.
Sent from my Nexus 5 using XDA Free mobile app
jd1639 said:
It's sounding like a hardware problem. I would try flashing the factory image with fastboot. Is your device recognized by your pc when you're booted into the bootloader? If not, go to device manager on your pc. Is there a device with a yellow exclamation mark. If so right click on it and go to where it lets you choose from a list on your computer. Choose android adb composite interface.
Sent from my Nexus 5 using XDA Free mobile app
Click to expand...
Click to collapse
You, my friend, are a lifesaver. Thank you so much for all of your help.
amali7861 said:
You, my friend, are a lifesaver. Thank you so much for all of your help.
Click to expand...
Click to collapse
No problem!
Sent from my Nexus 5 using XDA Free mobile app

Categories

Resources