Make Nandroid Backup via ADB and 8GB to 16GB - Nexus 4 Q&A, Help & Troubleshooting

So I have a 8GB N4 with a broken digitizer, phone works fine otherwise, boots and can unlock it and can boot into recovery.
I have TWRP installed and stock rooted 5.0.1 w/ busybox just wondering what is the best way to backup all my data (is there a script to launch a nandroid backup in recovery via ADB?).
Also I have purchased a 16GB N4 to replace it, will moving data from a 8GB to a 16GB lead to any issues?

Can you make the nandroid in twrp? If so just copy it to your new device and it'll work fine. You can't make a nandroid with adb. But you can backup the device with adb, although I haven't done it successfully. Google adb backup
Sent from my Nexus 9 using XDA Free mobile app

Thanks,
I think I have it, it's running a backup as we speak. I couldn't make a Nandroid, I have zero input from the digitizer.
But I was able to run the backup command, and then a series of commands to unlock the screen and simulate a screen tap in the lower right corner to get it confirm. After this is complete I will see if I can use the same input tap commands to get it to launch a Nandroid backup in TWRP.
I figured the size difference wouldn't matter, just wasn't sure if the difference in partition sizes (I assume its only the /data partition thats different on the 16GB models) would screw things up or not, i.e. does it specify a start and end point for each partition or not.

No go on the input tap commands in TWRP, is there an older version that goes old school with volume rocker and power button?

jakejm79 said:
No go on the input tap commands in TWRP, is there an older version that goes old school with volume rocker and power button?
Click to expand...
Click to collapse
Try a non touch version of clock work mod
Sent from my Nexus 9 using XDA Free mobile app

Thanks, I now have both a nandroid and adb backup (and also a pulled all the files off the 'sdcard') so hopefully I should be all set when the new one comes in.
Now to survive the weekend with no phone.
Lastly can I restore a CWM nandroid with TWRP? oh should I boot to CWM restore the nandroid and then flash TWRP.

jakejm79 said:
Thanks, I now have both a nandroid and adb backup (and also a pulled all the files off the 'sdcard') so hopefully I should be all set when the new one comes in.
Now to survive the weekend with no phone.
Lastly can I restore a CWM nandroid with TWRP? oh should I boot to CWM restore the nandroid and then flash TWRP.
Click to expand...
Click to collapse
You'll need to use cwm. The nandroid between twrp and cwm are not compatible
Sent from my Nexus 9 using XDA Free mobile app

OK, good to know. Having a hard time getting it to complete the nandroid, keep getting an error while making a backup image of /data. I think I might be running out of room, I had about 1.8GB free, but I've already cleaned out the 'sdcard' and cache, it's all apps and data left which is what I'm trying to backup.

Related

Nandroid restore

Hey guys,
Hopefully you can help me, I've successfully rooted installed cwm and done a nandroid back up, I updated to the 2.3.5 update, I want to restore my files back to how they were with the 2.2 system, when I go to restore, should I restore boot, system, data, cache and sd-ext? I was under the impression this will reinstall the 2.2 rom
Thanks.
DON'T DO IT!
Use titanium backup: menu > more > extract from nandroid backup.
If you try use CWM, you will be stuck at bootlogo.
Sent from my GT-P1000 using Tapatalk 2
Qqqxxxzzz said:
DON'T DO IT!
Use titanium backup: menu > more > extract from nandroid backup.
If you try use CWM, you will be stuck at bootlogo.
Sent from my GT-P1000 using Tapatalk 2
Click to expand...
Click to collapse
Is there a free piece of software that can do that? I have titanium back up on my phone, but this is not my phone im doing this on.
Titanium backup is free in play market
Edit: I forgot you need pro key
Sent from my GT-P1000 using Tapatalk 2
hey guys, I got a question about nandroid backup and since I have a huawei this seems to be the right thread
I'm about to get a new sd card class 10 to replace my current slower one..I want to know: if I make a nandroid backup with my clockwork recovery then I transfer it to the new sd card and plug it in my phone can I restore it from recovery? the recovery and the phone are the same, I will change just my sd card with the new one..it's too boring to reinstall everything so I'd like to know if I can do it this way
yes
Sent from my GT-P1000 using Tapatalk 2
Thank you! I asked because I tried in the past to put a custom rom this way but the backup wasn't mine..the cook of the rom shared his nandroid backup to let you have the rom already set up..but it was a mess because after the nandroid was restored the recovery automatically formatted the user data on the sd and when the phone boots was a disaster..maybe because the versions of the recoveries were different or because the phone was different..

[Q] TWRP / CWM Compatible - need data from old backup.

Long story short, my car charger 'melted' my main board on my N4. Sent in to LG for repair and they replaced it, free of charge. However, I lost everything since the memory is on the mainboard.
I have since re-rooted my phone and decided to go with TWRP instead of CWM that I had previously.
My questions are this:
I have an older CWM backup saved on my computer. Is there a way for me to 'explore' the backup with a Window program so I don't have to re-flash the whole image on the phone in order to save whatever data (pictures videos etc) and extract them somehow?
If not, can I flash a CWM backup onto the phone via TWRP? Are they compatible? Is there any harm in flashing an old CWM (4.2.2) onto a TWRP (4.3) to get my data back and then repeat the process?
usafle said:
Long story short, my car charger 'melted' my main board on my N4. Sent in to LG for repair and they replaced it, free of charge. However, I lost everything since the memory is on the mainboard.
I have since re-rooted my phone and decided to go with TWRP instead of CWM that I had previously.
My questions are this:
I have an older CWM backup saved on my computer. Is there a way for me to 'explore' the backup with a Window program so I don't have to re-flash the whole image on the phone in order to save whatever data (pictures videos etc) and extract them somehow?
If not, can I flash a CWM backup onto the phone via TWRP? Are they compatible? Is there any harm in flashing an old CWM (4.2.2) onto a TWRP (4.3) to get my data back and then repeat the process?
Click to expand...
Click to collapse
No, there is no problem in :
Flashing CWM, restoring the backup, then flashing TWRP, and create a backup.
Another way would be extracting the data from the backup, which would be a pain in the back, and it's not worth it.
Google for "diskinternals". There should be a program for windows that allows you to open/read linux files/partitions.
Good luck.
Sent from my Nexus 4 using xda app-developers app
So from what I am understanding a "CWM" backup won't load in TWRP? I would have to flash CWM recovery to load the backup and then rinse and repeat to get TWRP back on the device...
I'll Google that diskinternal - thanks
Well we can close this. I used Nandroid manager to browse the CWM backup - as suggested by a friend. Unfortunately, I did not choose to back up my SDCard when I did the backup. So now, everything is lost for good.
Lesson learned.

Failed TWRP restore

So I decided to try and flash Ubuntu last night... I booted into recovery made a backup 15min and 2.5 GB later it was done... wiped flashed no go would not boot... so back to recovery I choose my restore file... system says it was successful but when restoring the data it fails... I'm on twrp 2.5 ...then I tried to just restore the system when booting up I get that static image you see on cm flash every 5 sec but never boot nor goes inyo the boot animation...is there anyway to use this restore file... I just need the data part.. I have messages that i need to show my lawyer and numbers that I need... TiB won't restore my messages either....
Sent from my XT907 using xda app-developers app
You will need TWRP 2.6.3 / PhilZ / or a newer CWM that supports adb in recovery (not sure is 2.5 does)
First off, all of your pictures and other stuff are stored at "/data/media" or "/data/media/0" and are not "wiped" unless picked. These are both accessible in recovery, and you could do an "adb pull ....." to get those files to a PC. At this point you should have your pictures.
Sounds like Ubuntu messed some things up, and when you restored "/system" only it won't boot because of missing data. I once had a problem like this bouncing back and forth between 4.3 and 4.2. Assuming you were on a custom ROM, maybe try wiping completely including "/data/media" DO NOT WIPE "/DATA/MEDIA" IF YOU HAVEN"T BEEN ABLE TO PULL THE FILES VIA ADB IN RECOVERY!!! YOUR PHOTOS WILL BE GONE!!! Sorry for the bold caps, I just didn't want you to miss it. Next install your custom ROM, boot, and do enough setup to get to the home screen. Now go back to recovery and your backup should restore. From here you could "adb push ..." your files back.
Updating TWRP is one way to solve this in the future, like JB already posted. However, to remedy on 2.5, do a clean wipe prior to restore, mounting system prior. Then, restore only the boot.img from the ROM you want and then restore the full ROM you want. This is how I was able resolve this same issue. Hopefully, it will work for you.
I was on stock deodexed debloated prior to all this... after a few tries at the restore I just flashed that same ROM and used TiB to restore what I had on last back up... tonight I'll try and restore that twrp backup ... but either way I guess I'll be updating my recovery... I'm not worried about all my pics n what not I keep all that on the external SD card now...
Sent from my XT907 using xda app-developers app

Please help, just bought an 7 edge

Just bought an galaxy 7 edge, I'm running stock Android 7.0
Best way to make working TWRP NANDROID BACKUP?
I want to install TWRP, make a working NANDROID of the system, and also want device to boot and work with just TWRP and stock Android 7 from my operator that I'm using right now, that's including all apps installed.
Thanks anyone that can help me with this.
then another quesstion....
best and fastest way to rooted SU stock ROM preferable my carriers one, and how to do it
smaberg said:
Just bought an galaxy 7 edge, I'm running stock Android 7.0
Best way to make working TWRP NANDROID BACKUP?
I want to install TWRP, make a working NANDROID of the system, and also want device to boot and work with just TWRP and stock Android 7 from my operator that I'm using right now, that's including all apps installed.
Thanks anyone that can help me with this.
Click to expand...
Click to collapse
Snapdragon or Exynos?
Sorry Exynos is the one I got. 935F
smaberg said:
Sorry Exynos is the one I got. 935F
Click to expand...
Click to collapse
First of all, you know that will trigger Knox and you will lose your warranty. There are some other implications of that, are you sure you've read them all? If you have no problems with those things, things are pretty much the same as on every other phone and twrp.
I know it will trigger Knox, and that's ok. This is a temporary device until Galaxy 8.
I put TWRP on the phone, now it won't boot, and got lots of words when trying to backup in TWRP.
That's why I asked.
what does it say when you try to back up.
You may have your phone encrypted that why the back up is not working.
You may need to remove the encryption to get it working properly.
You can also use smart switch to make a back up to be used in case of issues.
smaberg said:
I put TWRP on the phone, now it won't boot, and got lots of words when trying to backup in TWRP.
That's why I asked.
Click to expand...
Click to collapse
You must've missed some steps.
http://www.droidviews.com/install-twrp-root-galaxy-s7-and-s7-edge-on-nougat-g935fxxu1dplt/
Do you need SU before no-verity-opt-encrypt-5.0.zip?
If I format data partition I can backup etc.
But I want to backup apps to!
So basically I want to install TWRP(and what's needed) and backup ROM with all apps. And then boot the ROM and run device as before.
smaberg said:
Do you need SU before no-verity-opt-encrypt-5.0.zip?
If I format data partition I can backup etc.
But I want to backup apps to!
So basically I want to install TWRP(and what's needed) and backup ROM with all apps. And then boot the ROM and run device as before.
Click to expand...
Click to collapse
First no verity and supersu after, according to the article. By formatting data you won't lose your apps, just data on sd card (internal memory). The rest is on system partition
On, last time, did I get this right, from stock rom, do this
Install TWRP, then SU (I don't want SU) backup, should this work? It's says lots of error in data...
So once again from clean, what do I have to do?
Install TWRP, then what? Want to backup all apps I mean a full NANDROID backup.
Still no, after TWRP it won't boot.
Directly after TWRP it's says something bad "/data"
Then tried to run run the decrypt, still no no
Please anyone, help, it won't boot after TWRP...
smaberg said:
Still no, after TWRP it won't boot.
Directly after TWRP it's says something bad "/data"
Then tried to run run the decrypt, still no no
Please anyone, help, it won't boot after TWRP...
Click to expand...
Click to collapse
Can you try fastboot format data and fastboot format cache commands and see what's happening?
i can format data partition no problem, even in twrp, but all apps dissapear as i tought. and then i even didnt bother to try and boot as i want to do a full nandroid.
smaberg said:
i can format data partition no problem, even in twrp, but all apps dissapear as i tought. and then i even didnt bother to try and boot as i want to do a full nandroid.
Click to expand...
Click to collapse
If you thought you could install twrp and do a backup of the stock phone you were wrong, twrp can't read the data partition since its encrypted, you have to format data and then you can do a backup, but since there's nothing there then there's no point.
Get a stock image for your phone from http://updato.com/firmware-archive-select-model?q=g935f
Thank you, finally an answer
then another quesstion....
best and fastest way to rooted SU stock ROM preferable my carriers one, and how to do it?????

TWRP backup question

If I backup my system on tw recovery, and flash a new rom, will wiping my phone delete the tw recovery backup in case I have to restore my phone? Feel free to correct me on this, but to my understanding teamwin has it's own partition, and wiping does not mess with this partition?
matthewbhass said:
If I backup my system on tw recovery, and flash a new rom, will wiping my phone delete the tw recovery backup in case I have to restore my phone? Feel free to correct me on this, but to my understanding teamwin has it's own partition, and wiping does not mess with this partition?
Click to expand...
Click to collapse
I think TWRP backups are normally stored on your internal storage partition, so if you perform a (EDIT full factory reset doesnt wipe this, thanks Silesh) or wipe your internal storage, your backups will be erased too. The TWRP itself does install to the recovery partition (which will only be affected by a flash to the recovery, which a wipe will not perform), you're correct on that but the backups are held separately to that. You can copy your backups to another computer or SD card, I found my backup under /SDcard/TWRP/BACKUPS - you could either copy the folder with a root browser or use the ADB pull command (with the ADB terminal), though the TWRP backup may not show on a Windows desktop even if it's been copied correctly. However, if copied back to your phone, the TWRP backup should function.
Edit: thanks Silesh for correcting me, I was thinking of app data rather than user data!
echo92 said:
I think TWRP backups are normally stored on your internal storage partition, so if you perform a full factory reset or wipe your internal storage, your backups will be erased too. The TWRP itself does install to the recovery partition (which will only be affected by a flash to the recovery, which a wipe will not perform), you're correct on that but the backups are held separately to that. You can copy your backups to another computer or SD card, I found my backup under /SDcard/TWRP/BACKUPS - you could either copy the folder with a root browser or use the ADB pull command (with the ADB terminal), though the TWRP backup may not show on a Windows desktop even if it's been copied correctly. However, if copied back to your phone, the TWRP backup should function.
Click to expand...
Click to collapse
Thanks for replying. I can't transfer files from my computer to my phone, but I have thought about using the ADB sideload option from recovery. Is there a way that I can move my backup from my phone to my computer (and to my phone from my computer) using the sideload option, just in case I need the backup? I refuse to flash a new ROM without access to my complete backup, lol.
Internal storage is not formatted during a normal wipe. You have to specifically go into the advanced wipe and select internal storage to wipe it completely. So there is no issue while flashing a new rom if you don't choose the advanced wipe option.
You could also create the twrp backup in your external sdcard. That way your backup stays even if you wipe your phone using a factory reset or by mistake.
Strange. What's the problem of making backups to external SD? The function is right there (as Silesh mentioned). BTW: the very last version of TWRP is able to make backups straight to pc. This needs to be done FROM a pc though. TWRP is capable to work with fastboot now (using special command though, or with this GUI for pc: https://forum.xda-developers.com/android/software-hacking/tool-twrp-backup-restore-tool-pc-t3572241 )
You can choose whether you want to use internal storage or SD card when making a backup. It doesn't matter which you choose as long as you (and I learned this the hard way) pay attention to what you are doing and DO NOT WIPE internal storage or your SD card. Advantages of SD card is you won't lose your backup if you decide to flash stock. Disadvantage: if your card craps out on you backup is lost unless you have copied to PC or saved on cloud.
My Solution
I solved my problem by using the pull command in adb. Now if I decide to flash a new ROM, I can push my TWRP recovery back to my phone using adb and then recover it in my TWRP recovery.. I also backup using adb backup which backs it up directly to my computer anyways.
I knew about storing my TWRP backup on an sd card, but I haven't made time to get one. . I recently switched to the Motorola G4 Plus after my iPhone 6s decided to turn off and not turn back on. I eventually grew tired of the iPhone anyways due to lack of accessibility and freedom. Back in the day I owned androids but never rooted one or had one that was rooted. I did jailbreak my 4th generation iPod a few years ago. But I went through an iPhone 5s, and upgraded to a 6s and had that for a few months. I eventually just switched back to android after the longest time and I can't say that I regret it.
My Moto G4 Plus has been an amazing phone. I've only had it for a few weeks now, but I rooted it the day after I got it . So I'm a bit of a noob in the rooting community, . Since then it's been a pretty smooth transition. I've only got root access and xposed framework as of now. I was thinking about flashing a ROM so I made backups just in case, but I don't plan on making any major changes to the kernel or flashing another ROM. I'm satisfied with the stock ROM since Motorola pretty much made it as minimal as possible. I would recommend this phone to anyone. It's the most solid phone I've had yet.

Categories

Resources