Sadly i do not have enough storage on my Nexus 4 for a backup anymore so im trying to do a adb backup but when i do it, it doesnt work
This is the command I use.
adb backup all c:\backup
it then says to unlock the device and confirm it as i do. it then say backup started, then immediatly after finished but there is no backup.
the co0kie said:
Sadly i do not have enough storage on my Nexus 4 for a backup anymore so im trying to do a adb backup but when i do it, it doesnt work
This is the command I use.
adb backup all c:\backup
it then says to unlock the device and confirm it as i do. it then say backup started, then immediatly after finished but there is no backup.
Click to expand...
Click to collapse
Try this thread here: http://forum.xda-developers.com/showthread.php?t=1420351
The bottom of the original post is a command which I use regularly, it does the trick but the entire post is helpful.
Thanks.
the co0kie said:
Sadly i do not have enough storage on my Nexus 4 for a backup anymore so im trying to do a adb backup but when i do it, it doesnt work
Click to expand...
Click to collapse
How did you go?
Related
I know there are tutuorials for this. I found a few and most of them either expect me to fully understand adb shell commands or understand linux, of which I do very little. I have the rooted 2.1 OTA on my Eris currently. I wanted to start trying out other ROMs on the phone. I've done a nandroid backup, but from searching around I read that it doesn't back up apps or user data, to an extent.
1) I get the error message "Run Nandroid +ext via adb!" when trying to backup everything using nandroid + ext. I also get the same message when trying to use a BART backup.
2) What is the difference between the two? (BART and nandroid)
3) What are the adb commands to use these?
4) How can I make a complete "screenshot" of my phone to restore everything back to its current state? Is this what BART/nandroid+ext do? I need to be sure in case I need the phone restored to working status very quickly.
5) Is apps2SD really that useful? I only run like 45 apps.
6) Does overclocking have any downsides? (I know the phone can lock up if you push it too far, so other than this.)
I think that's it. I've softmodded consoles and a few random electronics but phones are a new one. Sorry if half of these have been answered. I haven't been able to find much about this stuff in laymen's terms.
Raikalo said:
I know there are tutuorials for this. I found a few and most of them either expect me to fully understand adb shell commands or understand linux, of which I do very little. I have the rooted 2.1 OTA on my Eris currently. I wanted to start trying out other ROMs on the phone. I've done a nandroid backup, but from searching around I read that it doesn't back up apps or user data, to an extent.
1) I get the error message "Run Nandroid +ext via adb!" when trying to backup everything using nandroid + ext. I also get the same message when trying to use a BART backup.
2) What is the difference between the two? (BART and nandroid)
3) What are the adb commands to use these?
4) How can I make a complete "screenshot" of my phone to restore everything back to its current state? Is this what BART/nandroid+ext do? I need this in case the ROM doesn't work/I screw something up.
5) Is apps2SD really that useful? I only run like 45 apps.
6) Does overclocking have any downsides? (I know the phone can lock up if you push it too far, so other than this.)
I think that's it. I've softmodded consoles and a few random electronics but phones are a new one. Sorry if half of these have been answered. I haven't been able to find much about this stuff in laymen's terms.
Click to expand...
Click to collapse
1) if you get that message on restore 99% of the time that means your battery is low.
2) I have no idea what the difference is, but NAND always works great for me.
3) You would need to flash the parts of a NAND Backup via fastboot (correct me if I'm wrong). It's a pain in the ass for the most part.
4) NAND backup and restore makes a "screenshot". It will turn your phone to exactly how it was when u made the backup (make sure you wipe first though )
5) APP2Sd is only if you feel you need it. I use it, but is not required at all. If you have enough free space that why bother, but if not it's good utility to have available.
6) OC is awesome only downside is battery and that is barely their. You can also bork your phone if you set it to high. Some phones can handle over 710 some cannot. The only way you will know for yourself is if you try!
Go for the aloysius rom if you need a or want a new rom to flash
Awesome, thanks. I'll check that ROM out and see if I can get to flashing after work.
1) This isn't when restoring, it's when I'm trying to actually make a backup. Nandroid works fine, but nandroid +ext and BART both give me errors about adb.
Any other suggestions/answers?
Oh, one more question I forgot.
Code:
adb pull data/app desktop
Was using this to pull apps from my phone to the computer. After I did, I couldn't find them on the computer. I assumed they'd go to the desktop, but apparently I was wrong? Where are they?
Raikalo said:
Awesome, thanks. I'll check that ROM out and see if I can get to flashing after work.
1) This isn't when restoring, it's when I'm trying to actually make a backup. Nandroid works fine, but nandroid +ext and BART both give me errors about adb.
Any other suggestions/answers?
Click to expand...
Click to collapse
You only have to do nandroid without the +ext. You only use ext when you have a partition on your sd card (for running apps2sd). Try a plain ole nandroid. As far as bart goes, I've never heard of anybody using it.
is there a way to name the nandroid backups so you know which one is which when you go to restore? or can you only have one at a time?
duscar said:
is there a way to name the nandroid backups so you know which one is which when you go to restore? or can you only have one at a time?
Click to expand...
Click to collapse
You can have as many as your sd card will hold. They will be in folder on your sd card called "nandroid" and you can rename however you see fit, just make sure you Do Not put any spaces in the name.
rentjr said:
You can have as many as your sd card will hold. They will be in folder on your sd card called "nandroid" and you can rename however you see fit, just make sure you Do Not put any spaces in the name.
Click to expand...
Click to collapse
if i rename them there, does it rename them in the restore menu so i know which is which?
duscar said:
if i rename them there, does it rename them in the restore menu so i know which is which?
Click to expand...
Click to collapse
yes
10char
Okay, if a nandroid backup makes a total system image incl. apps and user data, I should be good to go.
Still wondering about how to pull apks and where they go. Any ideas there? See one of my above posts about it.
Also, I need to backup my ENTIRE SD card before a wipe, right?
Hello everyone, I'm desperately seeking for your help and hope you can give me some advice. So far, I could not relate to any of the similar topics and I'm not sure how to continue.
Problem:
The display of my Nexus 4 is broken and I want to make a nandroid backup before sending it in for repair. The screen still works but the touch function won't. Thus, I am unable to fully start the device since I cannot unlock the phone. My Nexus was rooted with the Nexus 4 Toolkit and runs on CM10. CWM is installed. Operation system of my computer: Win 7 64bit
Privious attemps:
As far as I experienced it, I'm not able to use ADB as I cannot completely start my phone due to the security pattern that I can't bypass since I have no touch function. At least the Toolkit tells me so, that ADB is not possible. Furthermore, it does not allow a backup via fastboot. Hence, I entered recovery mode and did a full backup with CWM, which is supposed to be saved in the folder CWM/backup. However, when accessing my phone via usb, there is not such a subfolder in CWM and I cannot get the backup file on my computer. The file is definitely there, since I can choose it within the restore options of CWM.
Any hints for me? Ist there a possibility for a nandroid backup without ADB? or Can I somehow access the folders of CWM where the backup is saved and transfer it via usb? or Else?
Thanks!!!!!!!!!!
Try looking for a folder called clockworkmod and search there it should be in a sub folder labeled backups. Also you can try screencast, I've only heard of it never used it but is supposed view your phone on pc Like a virtual decice
Sent from my SGH-T959V using xda app-developers app
adb should work in recovery.
use the command
adb pull /sdcard/
sexun said:
Hence, I entered recovery mode and did a full backup with CWM, which is supposed to be saved in the folder CWM/backup.
Click to expand...
Click to collapse
Backups are saved in /data/media/clockworkmod/backup
I've always used /mnt/shell/emulated/clockworkmod/
I'm trying to do a back up and restore using mskip's Nexus 7 Toolkit. Everything seems fine in terms of installing the toolkit and drivers but when I attempt the back up the file is only approx 125mb in size when there should be around 600mb to back up. Also when trying the restore, I enter the password and the Nexus displays 'restoration started' then instantly displays 'restoration ended' and theres no change to my device.
I have tried the manual command prompt method before using a guide posted on this site with the same results. I have heard that adb back up doesn't always work on some devices....am I just one of the unlucky ones or could I be missing something?
Running Widows 7 64 bit
Thanks
You could try using helium backup from playstore
Sent from my Nexus 4 running Android 4.2.2
mihahn said:
You could try using helium backup from playstore
Sent from my Nexus 4 running Android 4.2.2
Click to expand...
Click to collapse
Thanks mihahn. Gave Helium a go but a keep getting a error message to do with my 'desktop backup password'. I think I'm gonna give up with this backing up idea, lol.
joesf said:
Thanks mihahn. Gave Helium a go but a keep getting a error message to do with my 'desktop backup password'. I think I'm gonna give up with this backing up idea, lol.
Click to expand...
Click to collapse
You set up the desktop backup password in the Developer section of the settings on the device.
dkendrick said:
You set up the desktop backup password in the Developer section of the settings on the device.
Click to expand...
Click to collapse
dkendrick, thanks for posting. I did have a password set already, that's what was causing the issue. After doing a little research, apparently Helium Backup may not/will not work if you have a password set. The the guy who made the app even posted somewhere there may be issues and he'll look into it.
I've managed to remove my password and Helium backup now works perfectly, exactly what I wanted. Thanks mihahn for recommending it:good:
Hi,
My nexus 4 has a broken screen, the touch screen does not work but:
I have an OTG cable
Bootloader is unlocked
Touch recovery is installed
I can connect via ADB HOWEVER when I try su in shell it won't let me because I think I need to accept the SU request on the phone.
My lock screen password is the android 9 dot type password :/
Is there anything I can do? I just really need to see texts and missed calls (and whatsapp messages) I may have had calls and texts from future employers that I have missed.
Thanks
nandrioid
I remember from galaxy nexus toolkit that you could actually make a nandroid backup on your pc.
search for that procedure in nexus 4 forums, i think that's a common function of android. you can make a nandroid backup on ur pc.
after that backup you can put it in other phone and extract that backup using titanium backup. and restore your messages and call logs to other phone
hassi4042 said:
I remember from galaxy nexus toolkit that you could actually make a nandroid backup on your pc.
search for that procedure in nexus 4 forums, i think that's a common function of android. you can make a nandroid backup on ur pc.
after that backup you can put it in other phone and extract that backup using titanium backup. and restore your messages and call logs to other phone
Click to expand...
Click to collapse
Ive tried, i've even tried a nandroid backup through CWM, but can't get a nandroid backup
androidmodd said:
Ive tried, i've even tried a nandroid backup through CWM, but can't get a nandroid backup
Click to expand...
Click to collapse
flash multirom twrp(the only one i used), put phone on recovery mode, connect to pc and type in cmd prompt
adb shell mount /data(may give some error msg, its ok)
adb pull /data c:\backup
and wait till it backups everything.
when it does you can pass to some1(if u have games, u may delete files in c:\backup\data\media\obb to have less size on backup) with nexus 4 or get some database viewer to look the files in c:\backup\data/package.name.that.i.dont.remember
and in c:\backup\data\media\0\some.folder.that.i.dont.remember.
Got a new screen int he end
From what I understand, the Snapdragon S8+'s bootloader is still locked, other than for the Chinese and Hong Kong variants, so there is no chance of a custom recovery currently. This said, I am trying to find a decent backup solution for my Sprint S8+.
I am trying to create a backup using "adb backup -apk -shared -all -system -f test.ab". I can get the backup to run, but it only creates a 40-80mb file. When I restore the backup, nothing changes on my phone.
Can someone please clarify what is going on here? If you guys need more information to help, please let me know. Thanks!
Works for my S8 snapdragon. My backup files are in the 1.6 GB size. Make sure you are running cmd.exe as administrator and wait until it finishes. It may take 15 to 20 minutes to complete.
gschroer said:
Works for my S8 snapdragon. My backup files are in the 1.6 GB size. Make sure you are running cmd.exe as administrator and wait until it finishes. It may take 15 to 20 minutes to complete.
Click to expand...
Click to collapse
Even if I use an elevated (Administrator) command prompt, the backup takes about one minute to complete. I have added a few apps to my phone, since I last posted. The size is up to 174mb now, but there is no way it takes 15+ minutes.
I am connected via USB 3.0. Are you using wifi? Do you have any idea the size of a backup on a newly reset phone? I still think something is off here.
With -apk aren't copies of the APKs supposed to be saved with the backup? Are they saved as separate files? I do not see any with mine.
DawgY said:
Even if I use an elevated (Administrator) command prompt, the backup takes about one minute to complete. I have added a few apps to my phone, since I last posted. The size is up to 174mb now, but there is no way it takes 15+ minutes.
I am connected via USB 3.0. Are you using wifi? Do you have any idea the size of a backup on a newly reset phone? I still think something is off here.
With -apk aren't copies of the APKs supposed to be saved with the backup? Are they saved as separate files? I do not see any with mine.
Click to expand...
Click to collapse
I'm using an usb 2.0 connection. The 1.5 GB size is for an unlocked, no bloat, phone with about 10 added user apps. Your backup should be at least 1.0 GB.
Yes the -apk switch should backup your apps. The app files can be extracted, the backup file is a compressed TAR file using a Java Deflater. You can search on-line on how to extract from the .ab file..
gschroer said:
I'm using an usb 2.0 connection. The 1.5 GB size is for an unlocked, no bloat, phone with about 10 added user apps. Your backup should be at least 1.0 GB.
Yes the -apk switch should backup your apps. The app files can be extracted, the backup file is a compressed TAR file using a Java Deflater. You can search on-line on how to extract from the .ab file..
Click to expand...
Click to collapse
I have looked in to all of that, because I wanted to verify the contents of my backups to make sure they are completing properly. However, this still does not provide a solution to the small size. I have a stock Sprint S8+ and am using an up-to-date version of "platform-tools" downloaded via sdkmanager.
I'm not sure what else to try at this point. Can you think of anything that would lead to a smaller size? I can see the toast messages on my phone, so I can tell when the backup begins and ends. I'm honestly out of options.
By the way, what do you mean by "unlocked"? I am accustomed to that term being used for an unlocked bootloader, although I did not think that was currently possible with the S8+. I am not rooted, so from what I understand, "adb backup" cannot access system files. If you are rooted, I guess this could account for the size difference. Again, I'm grasping at straws here...
DawgY said:
I'm not sure what else to try at this point. Can you think of anything that would lead to a smaller size? I can see the toast messages on my phone, so I can tell when the backup begins and ends. I'm honestly out of options.
By the way, what do you mean by "unlocked"? I am accustomed to that term being used for an unlocked bootloader, although I did not think that was currently possible with the S8+. I am not rooted, so from what I understand, "adb backup" cannot access system files. If you are rooted, I guess this could account for the size difference. Again, I'm grasping at straws here...
Click to expand...
Click to collapse
"Unlocked" being carrier unlocked, so no carrier bloatware to make the backup larger. After running the ADB backup command my phone gives me an option to encrypt the backup, which I' not providing a password to encrypt. On the phone screen it starts showing the apk's one at a time that it is backing up. It only shows about five apk's before the screen blanks out. Guess it could be the sprint firmware preventing the backup. Maybe post on the sprint forum to see if anybody is using ADB to backup their phone.
gschroer said:
"Unlocked" being carrier unlocked, so no carrier bloatware to make the backup larger. After running the ADB backup command my phone gives me an option to encrypt the backup, which I' not providing a password to encrypt. On the phone screen it starts showing the apk's one at a time that it is backing up. It only shows about five apk's before the screen blanks out. Guess it could be the sprint firmware preventing the backup. Maybe post on the sprint forum to see if anybody is using ADB to backup their phone.
Click to expand...
Click to collapse
Yes. I have heard that different ROMs can mess with this process. I will follow your suggestion. Thank you for the help, gschroer!