Broke my screen, touch no longer works, want to back up - Nexus 4 Q&A, Help & Troubleshooting

Hi everyone, I dropped my phone last night and the touch functionality is now finicky at best. Only a few very tiny spots respond to touch input. Anyway, I now want to back up my phone before I send it in for repairs just in case something happens. What is my best option for doing this? ADB won't work because I'm unable to enter the swipe pattern to unlock my device. My recovery is TWRP so I can't navigate it using the volume keys. I have no idea what I should do. Help?

Boot into recovery then use adb
Sent from my Nexus 5

jd1639 said:
Boot into recovery then use adb
Sent from my Nexus 5
Click to expand...
Click to collapse
You mean use adb backup? That requires me to unlock my phone, which is impossible.

Muniosi said:
You mean use adb backup? That requires me to unlock my phone, which is impossible.
Click to expand...
Click to collapse
just run the adb commands when you're in recovery. If you have usb debugging enabled you don't have to unlock your phone.
Sent from my Nexus 5

jd1639 said:
just run the adb commands when you're in recovery. If you have usb debugging enabled you don't have to unlock your phone.
Sent from my Nexus 5
Click to expand...
Click to collapse
I've already tried doing adb backup while in recovery, I just get Now unlock your device and confirm the backup operation. I can't back it up unless I unlock the phone, which I can't do.

Muniosi said:
I've already tried doing adb backup while in recovery, I just get Now unlock your device and confirm the backup operation. I can't back it up unless I unlock the phone, which I can't do.
Click to expand...
Click to collapse
Try using adb pull and pull your whole /sdcard. It'll take a long time but you'll get your stuff
Edit, you could also flash a non-touch cwm in fastboot, but using that for a backup won't backup pictures and stuff
Sent from my Nexus 5

jd1639 said:
Try using adb pull and pull your whole /sdcard. It'll take a long time but you'll get your stuff
Edit, you could also flash a non-touch cwm in fastboot, but using that for a backup won't backup pictures and stuff
Sent from my Nexus 5
Click to expand...
Click to collapse
Thanks, pulling sdcard now. What about app data? Would I just use CWM for that?

Muniosi said:
Thanks, pulling sdcard now. What about app data? Would I just use CWM for that?
Click to expand...
Click to collapse
You could make a nandroid with cwm, you'll want to adb pull that off too.
Edit you'll want to pull /mnt/shell/emulated/clockworkmod/backup.
Sent from my Nexus 5

jd1639 said:
You could make a nandroid with cwm, you'll want to adb pull that off too.
Edit you'll want to pull /mnt/shell/emulated/clockworkmod/backup.
Sent from my Nexus 5
Click to expand...
Click to collapse
Thanks, working on that now. When I was pulling my sdcard I got an error: cannot create '<filename>': No such file or directory. The file it's referring to is on my computer, so I'm not sure what it's trying to do that it's unable to. I even get it with an administrator command prompt.
Meanwhile, the CWM backup is running out of sdcard space. Is there a way I can write the backup directly to my computer's hard drive?
EDIT: I think I see the issue. The file adb is trying to pull has colons in it. Can I just skip this file, or is there a way to delete it in CWM?

Muniosi said:
Thanks, working on that now. When I was pulling my sdcard I got an error: cannot create '<filename>': No such file or directory. The file it's referring to is on my computer, so I'm not sure what it's trying to do that it's unable to. I even get it with an administrator command prompt.
Meanwhile, the CWM backup is running out of sdcard space. Is there a way I can write the backup directly to my computer's hard drive?
Click to expand...
Click to collapse
Use adb pull /sdcard c:/sdcard. That pull your sdcard and put it in the directory sdcard on your pc.
Sent from my Nexus 5

jd1639 said:
Use adb pull /sdcard c:/sdcard. That pull your sdcard and put it in the directory sdcard on your pc.
Sent from my Nexus 5
Click to expand...
Click to collapse
I don't think that's the issue. Did you see my edit? Also, what can I do about the nandroid backup?

Muniosi said:
I don't think that's the issue. Did you see my edit? Also, what can I do about the nandroid backup?
Click to expand...
Click to collapse
For your nandroid backup it's going to be harder. You need to clean up some space so you'll need to know what and where some large files you don't need any more are
Sent from my Nexus 5

jd1639 said:
For your nandroid backup it's going to be harder. You need to clean up some space so you'll need to know what and where some large files you don't need any more are
Sent from my Nexus 5
Click to expand...
Click to collapse
That's all well and good, but how can I clean up space? Do adb or CWM have functionality for deleting files? I could just pull the files using adb, but I would need to know their locations and filenames.

Muniosi said:
That's all well and good, but how can I clean up space? Do adb or CWM have functionality for deleting files? I could just pull the files using adb, but I would need to know their locations and filenames.
Click to expand...
Click to collapse
You can adb shell. Then from the shell use rm to remove files. But you need to know specifically what you want to remove, the folder it's in and the name and extension
As an example:
adb shell
rm /sdcard/DCIM/*.*
This would remove all your pictures in the gallery
Sent from my Nexus 5

jd1639 said:
You can adb shell. Then from the shell use rm to remove files. But you need to know specifically what you want to remove, the folder it's in and the name and extension
As an example:
adb shell
rm /sdcard/DCIM/*.*
This would remove all your pictures in the gallery
Sent from my Nexus 5
Click to expand...
Click to collapse
Thanks, I'd forgotten about that command. I'll try the same thing for the other problem of files with colons in them. I'll report back and let you know if it works!

Thanks man, got both backups to work. You were tons of help!

Related

How to flash zips?

Is there a way on the Vibrant to flash *.zip files like on the Nexus One? For example, I have a Mobile Defense as System App *.zip file that on the N1 I flash from the Recovery menu. Is this possible on the Vibrant? How else can I install System Apps?
it will be posible to flash .zip files in recovery once we get a custom recovery. there is a guy working on porting clockwork as we speak so it souldnt be too long before we can flash roms and kernals and other .zip stuff
hah2110 said:
Is there a way on the Vibrant to flash *.zip files like on the Nexus One? For example, I have a Mobile Defense as System App *.zip file that on the N1 I flash from the Recovery menu. Is this possible on the Vibrant? How else can I install System Apps?
Click to expand...
Click to collapse
You can only use the .zip flash function on the phone to manipulate some files. If you wanted to add a completely new rom you must use Odin. The clockwork recovery being done is still in it's very basic stage where nothing is working. So it's impossible to tell if they will get it to work especially since the bootloader is completely different from all other android phones.
Why not just inzip it on your computer and move the apk to your sd and install it that way?
Sent from my SGH-T959 using XDA App
spigatelli said:
Why not just inzip it on your computer and move the apk to your sd and install it that way?
Sent from my SGH-T959 using XDA App
Click to expand...
Click to collapse
Cause then it wouldn't be a system app. He could just use adb to push the file though.
Tried to push the file but I can't do adb remount. It says no such file or directory. What am I doing wrong?
Anyone??????
Your probably pushing the file to the wrong place.. Do you have the Samsung drivers and SDK installed?
DAKIDD236 said:
Your probably pushing the file to the wrong place.. Do you have the Samsung drivers and SDK installed?
Click to expand...
Click to collapse
Yes, because every other command works. Also, if you look, I am getting the error when not even trying to push. I am trying to do ADB REMOUNT.
hah2110 said:
Yes, because every other command works. Also, if you look, I am getting the error when not even trying to push. I am trying to do ADB REMOUNT.
Click to expand...
Click to collapse
Samsung devices use a different code to remount. Try this
mount -o rw,remount /dev/st9 /system
This is ripped from the behold 2 so you might have to play with the directories
yeah, if anyone can figure out what the mount directories are from /dev/ it would be great. i'm trying to push my ringtones so that they dont show up in media scanner. seems like a simple trick, but when remount wont work and we dont know the mount directory, its harder than it seems.
psychoace said:
Samsung devices use a different code to remount. Try this
mount -o rw,remount /dev/st9 /system
This is ripped from the behold 2 so you might have to play with the directories
Click to expand...
Click to collapse
Operation not permitted
hah2110 said:
Operation not permitted
Click to expand...
Click to collapse
Do you have root?
If so then it might just be because we don't know what mounting block to use.
we do know what mounting block to use.
http://forum.xda-developers.com/showthread.php?t=729976

Please help: How do u put files on the SD with CWM?.

Ok..
I cleared delvik cache.. battery and decided to try out a new kernel.. now it hangs..
Now I only have an 8 gig.. I guess i cleared out the backup to save space because as I went to look for it, it was gone. Now I cant get any roms on the phone to reflash.. and i deleted the ROMs on there...
How do I get a rom on the phone to reflash it. Any help would be greatly appreciated.
Thanks
Chris
Bump
Can anybody help with this? Basically is there a way to get files on the phone in recovery mode?
I'm sort of new... I see the side load but not sure how to use it. Says load the files on once activated but not sure how the relates to the computer. Or where I put the commands to do it. Thanks.
Chris
Sent from my SGH-I747 using xda app-developers app
You are running a custom recovery right?
You can use adb to push files when booted into a custom recovery.
The command used would be
Code:
adb push nameofzip /storage/emulated/0
To read more on adb check out efrants sicky http://forum.xda-developers.com/showthread.php?t=2010338 adb commands are about half way down on the OP.
When u say custom recovery do u mean CWM? I do have that... and my computer registers the phone when I plug it in. But nothing pops up. I don't think USB debugging is on...
I'll check out the link.
Sent from my SGH-I747 using xda app-developers app
Yep, that is a custom recovery. If you have questions post them here. I'll be around for a little while.
I think I am so close.
I got the adb and fastboot files, and upon checking devices in fastboot, it does say that my device is connected.
But I cant get the adb driver to put the files on my phone.
Im using "adb push -d C:\android1\cm-10.1-20121214-NIGHTLY-mako.zip
And it says device not found?
Sorry for the questions, but thank you for the help.
Chris
(and im in the directory where the adb file is located)
(Once I get this resolved... im always gonna have one backup on my phone)
wizshaw said:
I think I am so close.
I got the adb and fastboot files, and upon checking devices in fastboot, it does say that my device is connected.
But I cant get the adb driver to put the files on my phone.
Im using "adb push -d C:\android1\cm-10.1-20121214-NIGHTLY-mako.zip
And it says device not found?
Sorry for the questions, but thank you for the help.
Chris
(and im in the directory where the adb file is located)
(Once I get this resolved... im always gonna have one backup on my phone)
Click to expand...
Click to collapse
Ok. The best way is to open the command prompt from the folder in which you have adb. The easy way to do that is hold down shift and right click. Then choose open window here.
Next, once you are booted into recovery type
Code:
adb devcies
If it returns a number then proceed to push the file. (Its easy to make a typo so change the file to something easy like cm10.zip)
So you would type
Code:
adb push cm10.zip /storage/emulated/0
I erased everything the other day by mistake and total noobishness Lol. I just used wugs tool kit to flash the stock image back. Might be useful if struggling with adb etc.
Sent from my Nexus 4
slymobi said:
I erased everything the other day by mistake and total noobishness Lol. I just used wugs tool kit to flash the stock image back. Might be useful if struggling with adb etc.
Sent from my Nexus 4
Click to expand...
Click to collapse
What is anyone going to learn by using a toolkit?! I commend the OP for putting in the time to learn how to use adb. So in the future if they were to run into a problem they would know how to easily fix it.
Sent from my Nexus 4
I got it guys.
I realized that fastboot and adb only get activated in their respective UI's... And i refined my CMD commands a bit after a little more reading.
Problem solved. And i learned more about the android platform in the process. Time well spent.
I want to formally thank you guys. This is why this community is great.
Chris

Stuck on "Android is Updating, Apps is starting"

Hey Everyone,
So last night randomly while texting my phone reboots and is now stuck in "Android is Updating screen, Apps is starting" with the swirl icon swirling forever [waited over 15 min]. It keeps doing this and now I assume some file somehow got corrupt?
I'm on 4.2.2, stock rom, franco kernel. I've tried fixing permissions, wiping cache/dvalik and nothing has helped thus far. Only thing I can see is a complete wipe? Nandroid backup is not possible atm. Is there a way to pull all my pictures and files from recovery only?
Are there any other suggestions before I go that route?
Thanks,
Jonathan
Boot into recovery and use adb to pull all the contents of your SD card like this:
Code:
adb pull /sdcard/
Then do a full wipe and flash a ROM.
chromium96 said:
Boot into recovery and use adb to pull all the contents of your SD card like this:
Code:
adb pull /sdcard/
Then do a full wipe and flash a ROM.
Click to expand...
Click to collapse
Just had a question, how do I set where ADB pulls the files?
impruv said:
Just had a question, how do I set where ADB pulls the files?
Click to expand...
Click to collapse
Code:
adb pull \path\of\your\choice /sdcard/
i had the exact thing happen to me in january, something corrupted and it wouldnt finish booting. nandroid restore and wiping/flashing didnt help, i had to flash the factory img to get up and running, then i restored a nandroid backup. did you have fsync disabled?
chromium96 said:
Code:
adb pull \path\of\your\choice /sdcard/
Click to expand...
Click to collapse
Hmmm weird, it says my "remote object '\D:\nexuspull' does not exist" and I'm positive that's the correct path
impruv said:
Hmmm weird, it says my "remote object '\D:\nexuspull' does not exist" and I'm positive that's the correct path
Click to expand...
Click to collapse
Sorry I screwed up the command. It should be like this:
Code:
adb pull /sdcard/ D:\nexuspull
chromium96 said:
Sorry I screwed up the command. It should be like this:
Code:
adb pull /sdcard/ D:\nexuspull
Click to expand...
Click to collapse
Ah thank you. Works perfectly now!
chromium96 said:
Sorry I screwed up the command. It should be like this:
Code:
adb pull /sdcard/ D:\nexuspull
Click to expand...
Click to collapse
It seemed to have pulled MOST of the folders, but I have gone and manually done the rest. There is still one folder I can't pull because the folder name has spaces "Photo Grid". Can adb not deal with paths with spaces? I tried _ as a space but did not work.
impruv said:
It seemed to have pulled MOST of the folders, but I have gone and manually done the rest. There is still one folder I can't pull because the folder name has spaces "Photo Grid". Can adb not deal with paths with spaces? I tried _ as a space but did not work.
Click to expand...
Click to collapse
Have you tried putting the path is double quotes?

Please help a beginner understand ADB

I am quite proud to have got as far as I have (please see screenshot).
However, I am trying to adb pull my nandroid backup from TWRP onto my PC. I've searched all over the place for the right commands but whatever I type, I get a "could not find" message.
Could someone please let me know what to type to adb pull the nandroid backup onto my PC please?
Also, when I have reformatted my Nexus 7, what do I need to do to adb push the nandroid backup back onto my sdcard?
Many thanks in advance!
It should be in your /data/media/0/TWRP/BACKUPS/015d4172c98600219/ directory to c:/users/a/desktop.
Username invalid said:
It should be in your /data/media/0/TWRP/BACKUPS/015d4172c98600219/ directory to c:/users/a/desktop.
Click to expand...
Click to collapse
Thanks! I have been at it all day! I've finally managed to adb pull my nandroid backup and my TBU. I now want to sideload them to make sure I can do everything before I reformat my N7. When I enter: adb sideload 015d172c98600219, I get a "cannot read message". What is it that I should be entering?
You can not sideload a nandroid backup. You need to push it to your TWRP directory.
Username invalid said:
You can not sideload a nandroid backup. You need to push it to your TWRP directory.
Click to expand...
Click to collapse
Ah ok, good to know! So it's "adb push /015d4172c98600219/data/media/0/TWRP/BACKUPS/"?
Example
Code:
adb push c:/users/a/desktop/2013-07-29--11-07-31 /sdcard/TWRP/BACKUPS/015d4172c98600219/2013-07-29--11-07-31
Username invalid said:
Example
Code:
adb push c:/users/a/desktop/2013-07-29--11-07-31 /sdcard/TWRP/BACKUPS/015d4172c98600219/2013-07-29--11-07-31
Click to expand...
Click to collapse
Thanks very much for this. I guess adb is not for me.
This is where I am (screenshots). No matter what code I try nothing happens. I just see a set of instruction run quickly on the screen and then I'm back to square one.
Do I need to do something about the device itself, in "mount" perhaps?
Sorry to be a pain! Don't worry if you don't have the time!
StrangerWeather said:
Thanks very much for this. I guess adb is not for me.
This is where I am (screenshots). No matter what code I try nothing happens. I just see a set of instruction run quickly on the screen and then I'm back to square one.
Do I need to do something about the device itself, in "mount" perhaps?
Sorry to be a pain! Don't worry if you don't have the time!
Click to expand...
Click to collapse
Make a temporary backup so it will create the directory. You should still have your system image after the format so have you tried booting up then copying through My Computer?
Well I haven't reformatted yet because I wanted to make sure I mastered the adb method before I wiped everything. But now I don't know whether I should format at all. Sounds a bit risky if I don't have a rom to go back to!
Sent from my Nexus 7 using xda premium
It's strange, though, that I can successfully adb pull files but not adb push them back. Does anybody have a clue?
Your ROM will still be there after formatting. If is not, just reflash it with fastboot or sideload.
Also, you can't have spaces in the command.

Any way to sideload

I recently rooted my phone. I have not installed any ROMs because i love the stock rom so much but i decided to try one today. I didnt have my computer with me so i downloaded one today and rebooted into recovery. I saved my current rom and then wiped and accidently pressed Data, it asks if i want to wipe everything and i press back. I go to look at my downloads and they are all gone. I look for my backup i had JUST nandroid backed up and it was gone.
So there i am stuck. There is a thread for returning to Stock rom. Sure ok, but its a long process including the 2 gig download which is only uploading at 260mbit/s so another hour or 2.
I have tried sideloading a rom but it fails.
Any suggestions on how to get a rom onto the phone without booting it? I dont have a micro usb to sd card or i would have done that already =/
You need adb on the pc, connect, then in terminal or cmd
Code:
adb push ROM.zip /sdcard
Copying the zip to the folder with adb makes it easier and the above command correct, (of course replace ROM.zip with the actual name).
Sent from my Nexus 7 using Tapatalk
fr4nk1yn said:
You need adb on the pc, connect, then in terminal or cmd
Code:
adb push ROM.zip /sdcard
Copying the zip to the folder with adb makes it easier and the above command correct, (of course replace ROM.zip with the actual name).
Sent from my Nexus 7 using Tapatalk
Click to expand...
Click to collapse
via sideload or no?
No. Sideload could work, I don't remember the command off hand.
Adb push copies it to the internal memory then you flash through the menu normal.
Sent from my Nexus 7 using Tapatalk
fr4nk1yn said:
You need adb on the pc, connect, then in terminal or cmd
Code:
adb push ROM.zip /sdcard
Copying the zip to the folder with adb makes it easier and the above command correct, (of course replace ROM.zip with the actual name).
Sent from my Nexus 7 using Tapatalk
Click to expand...
Click to collapse
I gave you thanks.
That seems to work. For anyone that gets into this situation where there are no roms in your phone and you have no way to transfer them. Boot into TWRP, do not use sideload. Just main screen. Device manager will show to be just "g2" and you need the driver. In the driver folder from http://forum.xda-developers.com/showpost.php?p=48709232&postcount=869 driver section, update driver and browse to 64BitADB and choose androidandadb. It will then give you a list of options starting with Testing drivers, one that dates back to 2010 and another thats 2012. You want the one thats 2nd from the bottom called LG G2 verizon net adb or something like that. Works perfect and connects to adb.
If anyone truely needs this process i can break it down to specifics on how to get it to work. Thanks so much for your help fr4nk1yn!

Categories

Resources