I have a rooted phone (CM6.1) and just had the misfortune to drop it. The scree didn't shatter, but when I turn on the display, the only thing I can see is a bunch of vertical lines.
I tried calling myself, and can answer the call by swiping my finger across the "Accept" (Call).
I want to know if anyone knows if I can do a full backup of my phone using adb or another tool. Anyone have a suggestion?
Tl;dr: I can't access my phone through the screen and need to do a full backup via USB. How?
Well, you can pull anything you want via ADB, but here's something that might be even more useful:
adb reboot recovery (to get into recovery). After it's in recovery, go into adb shell and run:
nandroid-mobile.sh backup
Hands free nandroid!
nandroid-mobile.sh --help will list out all available options if you want. A couple that might be of interest:
- Include -e and -a if you want it to capture your ext (if applicable) and .android_secure folders on your SD.
- Since you'll be using this on a new device, you don't want to restore the wimax partition. Therefore, you could exclude it from the backup with -nowimax.
Also, I'm not sure what kind of issues you can have with a nandroid restore from another device. But maybe you can restore it to the new device, use Titanium to backup what you need, and then wipe and restore with Titanium. Or maybe it's just fine to restore the nandroid. Haven't needed to try yet.
Thank you so much!
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/
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
Hi all, been trying to solve this problem for a while, can't seem to figure it out.
Yesterday, when my phone died and I charged and turned it back on, the recents and home buttons wouldn't work, in addition to my notifications not showing and the quick settings drawer not coming down. This seems to be a problem others have ran into. Here's what I've tried so far:
clearing dalvik cache and regular cache
updating my ROM (I use AICP)
restoring an old backup of AICP
starting my phone in safe mode (all errors persist)
using ADB to attempt to get into the SetupWizardTestActivity as advised here
The error I get from this:
Code:
adb shell am start -n com.google.android.setupwizard/.SetupWizardTestActivity
Starting: Intent { cmp=com.google.android.setupwizard/.SetupWizardTestActivity }
java.lang.SecurityException: Permission Denial: starting Intent { flg=0x10000000 cmp=com.google.android.setupwizard/.SetupWizardTestActivity } from null (pid=12048, uid=2000) not exported from uid 10072
at android.os.Parcel.readException(Parcel.java:1684)
at android.os.Parcel.readException(Parcel.java:1637)
at android.app.ActivityManagerProxy.startActivityAsUser(ActivityManagerNative.java:3160)
at com.android.commands.am.Am.runStart(Am.java:643)
at com.android.commands.am.Am.onRun(Am.java:394)
at com.android.internal.os.BaseCommand.run(BaseCommand.java:51)
at com.android.commands.am.Am.main(Am.java:124)
at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method)
at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:264)
I also tried switching from my user to a Guest user, but it won't allow me to go into the Users. At this point, I decided to take a backup on my laptop and factory reset, but after plugging my phone into my laptop, I realized I can't change the USB connection type from charging to mass storage (or whatever it is) to access the files on my laptop since I can't see notifications. This lead me to Developer Options, where I get the message "Developer options are not available for this user."
So then I tried to make an activity in Nova for the SetupTestActivity as detailed here, but the closest thing I can find in there is under Settings about activating the cellular service, and when I try to use that I just get "Permission denied" error.
After all of this, I looked into backing up my device via ADB using this command:
Code:
adb backup -apk -shared -all
It tells me to unlock my device to confirm the backup operation, but there is nothing shown on my device indicating a confirmation.
Then I went into my file manager (I use Xplore) and it indicates that my device is not rooted. I don't know how that could've happened, although I have not tried re-rooting it to see if that helps. Any suggestions or do I just have to do a factory reset and lose all my data?
markgnarza said:
... Any suggestions or do I just have to do a factory reset and lose all my data?
Click to expand...
Click to collapse
Why not use TWRP to create a newer backup? You can also use TWRP's MTP to move anything off the phone you want. Then flash a full Google image with flash-all.bat. You can try it without the -w switch first if you like. I doubt it's a hardware issue, but stranger things have happened, and returning to stock briefly will let you know right away.
v12xke said:
Why not use TWRP to create a newer backup? You can also use TWRP's MTP to move anything off the phone you want. Then flash a full Google image with flash-all.bat. You can try it without the -w switch first if you like. I doubt it's a hardware issue, but stranger things have happened, and returning to stock briefly will let you know right away.
Click to expand...
Click to collapse
I ended up uploading my Titanium backups/other files I wanted to keep to Google Drive and factory resetting, but now the setup wizard keeps crashing. Think I'm gonna try a full wipe and flash of AICP again to see if that does it.
markgnarza said:
I ended up uploading my Titanium backups/other files I wanted to keep to Google Drive and factory resetting, but now the setup wizard keeps crashing. Think I'm gonna try a full wipe and flash of AICP again to see if that does it.
Click to expand...
Click to collapse
Okay, hope that works for ya. Nowadays with Google backup for market apps and TiBu for everything else, it doesn't take long (less than one hour) to completely wipe, clean install, and restore everything back the way it was. Especially if you have a good internet connection. I use my Solid Explorer to zip the TiBu folder into a single file and transfer that off to my PC. Try that next time and see if it saves you some time. My TiBu zip files are well over 1GB, so I don't u/l them to the cloud. Curious if you have TWRP why you did not have MTP file transfer from recovery to laptop?
v12xke said:
Okay, hope that works for ya. Nowadays with Google backup for market apps and TiBu for everything else, it doesn't take long (less than one hour) to completely wipe, clean install, and restore everything back the way it was. Especially if you have a good internet connection. I use my Solid Explorer to zip the TiBu folder into a single file and transfer that off to my PC. Try that next time and see if it saves you some time. My TiBu zip files are well over 1GB, so I don't u/l them to the cloud. Curious if you have TWRP why you did not have MTP file transfer from recovery to laptop?
Click to expand...
Click to collapse
It worked! And all my Titanium backups + photos are still intact on my phone? Seems strange to me. I hadn't thought of zipping my TiBu folder, good idea!
As for using TWRP to transfer to laptop, I'm not sure how that process works! I'll look around in TWRP once I'm done restoring everything to see what you mean, good to keep in mind for the future. Thanks for the help!
My honor got the same problem... I know they were working but now they don't.. what should i do??
I assume this is possible. Usually I would do this with TWRP (which you can do), but this method does not require root necessarily.
I want a backup I can restore in case things go sideways.
I managed to do this. Here are the basic instructions.
Have developer options available, select USB debugging. On PC, install minimal adb and fastboot, install essential drivers. Connect phone to PC, select transfer files MTP under USB connected options in notifications. If USB debugging prompt prompts up on phone, check alway allow and ok.
Run cmd.exe as admin and navigate to you ADB install directory. Type "adb root" if rooted or just "adb" if not. ADB should start.
Type adb backup -system -apk -shared -all -f C:\filenameyouchoose.ab
On the phone, type a password for encryption if wanted and touch Back Up My Data.
Presto, now all that's left is to wait. The -apk is to back up apps and -shared is to backup internal SD card data. Change those if you don't want that data backed up.
The command to restore the backup is adb restore C:\filenameyouchoose.ab
Full XDA guide here: https://forum.xda-developers.com/galaxy-nexus/general/guide-phone-backup-unlock-root-t1420351
Thanks! I'm attempting this procedure for the first time. I am at the place where I am supposed to enter a password to encrypt my backup. The "Back Up My Data" button does nothing. I've tapped all over and around it. The "Do Not Backup" button works just fine and it cancels the operation instantly. My adb session ends. If I tap all over the "Back Up My Data" eventually the operation times out. What could I possibly be doing wrong? Has anyone ever seen this behavior before? (It's super hard to troubleshoot problems with no feedback or error codes.)
I set a desktop backup password in developer options. It still wouldn't go. Then I rebooted and it worked after a fresh boot. Not sure why. I hope that is helpful to someone.
Grep_The_Truth said:
Thanks! I'm attempting this procedure for the first time. I am at the place where I am supposed to enter a password to encrypt my backup. The "Back Up My Data" button does nothing. I've tapped all over and around it. The "Do Not Backup" button works just fine and it cancels the operation instantly. My adb session ends. If I tap all over the "Back Up My Data" eventually the operation times out. What could I possibly be doing wrong? Has anyone ever seen this behavior before? (It's super hard to troubleshoot problems with no feedback or error codes.)
Click to expand...
Click to collapse
Oh, while I was typing out the message, seems you already solved it.
Previous message: I had similar issue when I was trying to install apps using apk(s) files. It turned out to be the app Twilight app which didn't allow me to click install button except cancel: "The prompt for screen overlay detected is presented when an installed application is allowed to Draw over other apps is running in the background" See if your issue has something to do with an app.
Charkatak said:
...It turned out to be the app Twilight app...
Click to expand...
Click to collapse
Brilliant! That was it. Jolly good show, sir!
File size of backup
Just wondering if anyone gets vastly different file sizes when they do a complete backup? The first time i tried this i got a backup file of about 600mb. I did it again with a different file name to the same folder and it was double the size. The third time i tried it was back to the original smaller size. My fear is that this is not a reliable means for complete backup. Is there any way of seeing whats inside this backup?
I have stumbled upon this command and my question is, is this as powerful as a nandroid backup? Since we don't have permanent TWRP (Yet?), I feel really unsafe while messing with the phone (The whole A/B thing which I still need to get used to doesn't help either) and considering the times nandroid backup saved my device I could really use something equally powerful to fall back on.
I tried the ADB backup and it took a while and generated a ~10GB file for me, but restoring to a new phone didn't work. No errors or anything, it just went real fast and didn't seem to do anything. I didn't care to try to investigate it because I just needed to get my new phone up and send the broken one back.
I ended up using TWRP from the boot partition (obviously not backing up boot), then installing twrp on boot on the new phone and restoring the system and data, next copying the sdcard contents to the computer using adb pull and adb push onto the new phone, finally flashing the correct boot.img, and I was back up and running on a replacement phone right where I left off on the old one. ...
One caveat is if your old phone is on a different firmware you have to update the new phone to match before all this.