I have searched the forums and I cant find out the answer.
I have several nandroid backups on my sdcard. Is there a way to restore my messages from the backups onto my phone?
Everytime I load another build I lose all my txts.
Please help.
Pretty sure it's stored in your /data partition along with your phones settings\apps.
fastboot flash userdata userdata.img
will that erase my current data?
d00m said:
Pretty sure it's stored in your /data partition along with your phones settings\apps.
fastboot flash userdata userdata.img
Click to expand...
Click to collapse
fastboot flash userdata data.img
when u flash data it restored whatever data u had when u made the nandroid backup....
i dont think it keeps what is on the phone after nandroid...
since nandroid backup is a complete byte by byte copy of your phone's internal flash chip, you've backed up all the data that could survive a reboot (apps, settings, etc.), so restoring it will overwrite everything you did after that point. If you used another system build and that build requires a wipe (i.e. formating /data) to run, restoring the old userdata will probably render the new system unbootable (if that's a word).
The safest way is restore the whole system (boot, system and userdata) with fastboot and backup your messages using another tool.
If you don't want to restore, you can try mounting that data.img with the android emulator in the SDK.
It's better to use applications like smsbackup or mybackup to do such a thing..
its too late now for me to use another program. but if i load it into the emulator can i back up from there? I've never used the emulator before so I don't know what all it is capable of doing.
Related
I did a nandroid backup bit it said fatal error while backing up bpws...or something like that...(one more thing...will nandroid backup...backup my apps if I lost them??)
Sent from my XT720 using XDA App
vari9 said:
I did a nandroid backup bit it said fatal error while backing up bpws...or something like that...(one more thing...will nandroid backup...backup my apps if I lost them??)
Click to expand...
Click to collapse
For some reason we can't back up all the partitions in nandroid. It should be enough to backup system and data. Optional: boot, logo (if you modified M boot logo), cache (usually not necessary), sd data (if you use ext partition on SD card).
With nandroid of system and data (and the others, but only if you use them) you should expect to be able to go back to exactly how your phone was at the time you made the backup. But you will lose changes you made after you made the backups.
When I'm about to start testing ROMs, I backup system and data. To go back to my pre-testing ROM I restore system and data and then wipe cache partition.
Mioze7Ae said:
When I'm about to start testing ROMs, I backup system and data. To go back to my pre-testing ROM I restore system and data and then wipe cache partition.
Click to expand...
Click to collapse
You want to say system and boot ?
Because changing a room modify system.img and boot.img
The boot.img is the same on all the ROMs thanks to the locked bootloader.
Yeah, I never even bother changing boot.img from the sbf version. If I did I'd probably use the Russian one because I think it was the most recently compiled.
Ok, I wasn't knowing that I always flash boot.img that come with ROM.
I am a newbie!
So I wanted to start flashing custom ROMS on my device...
So I flashed the Custom Recovery(TWRP) and downloaded compatible Custom ROM...
Ok so by following some blogs and videos I took the system backup of boot, system.
And yes I am able to restore it...
I also read about Android Partitions(https://forum.xda-developers.com/general/general/android-partitions-explained-t3657183)
But when taking the Backup I saw a System Image partition there.
So I am wondering what is its use and should I backup that for pure Stock ROM Backup?
And also does it include the boot partition files or I also need to backup the boot partition with it?
And if I create this file using which option can I install this type of Backup?
Thanks in Advance
Tanmay_B said:
I am a newbie!
So I wanted to start flashing custom ROMS on my device...
So I flashed the Custom Recovery(TWRP) and downloaded compatible Custom ROM...
Ok so by following some blogs and videos I took the system backup of boot, system.
And yes I am able to restore it...
I also read about Android Partitions(https://forum.xda-developers.com/general/general/android-partitions-explained-t3657183)
But when taking the Backup I saw a System Image partition there.
So I am wondering what is its use and should I backup that for pure Stock ROM Backup?
And also does it include the boot partition files or I also need to backup the boot partition with it?
And if I create this file using which option can I install this type of Backup?
Thanks in Advance
Click to expand...
Click to collapse
It isnt complicated, just boot into TWRP, then choose the "Backup" option, the default partitions that TWRP automatically selects to backup are all you "need" to backup. TWRP backs up the boot partition, recovery partition and system partition by default, that is all you need.
To restore the backup, just boot into TWRP then select the "Restore" option, then restore the backup file.
The "system.img" backup creates a backup of the complete system.img, it is effectively the same thing as using adb shell to dump the system.img to obtain a copy, it contains everything involved with the system partition, including boot.img and kernel(zimage). This system.img backup can restored by using fastboot flash system command, adb shell with dd command, terminal emulator with dd command or by using the option in TWRP that allows flashing .img files.
Another option for devices that are rooted is to use apps like Flashify to flash the system.img, but these apps are risky and don't always flash correctly.
Sent from my SM-S767VL using Tapatalk
Droidriven said:
It isnt complicated, just boot into TWRP, then choose the "Backup" option, the default partitions that TWRP automatically selects to backup are all you "need" to backup. TWRP backs up the boot partition, recovery partition and system partition by default, that is all you need.
To restore the backup, just boot into TWRP then select the "Restore" option, then restore the backup file.
The "system.img" backup creates a backup of the complete system.img, it is effectively the same thing as using adb shell to dump the system.img to obtain a copy, it contains everything involved with the system partition, including boot.img and kernel(zimage). This system.img backup can restored by using fastboot flash system command, adb shell with dd command, terminal emulator with dd command or by using the option in TWRP that allows flashing .img files.
Another option for devices that are rooted is to use apps like Flashify to flash the system.img, but these apps are risky and don't always flash correctly.
Sent from my SM-S767VL using Tapatalk
Click to expand...
Click to collapse
Thank You Bro So Much for explaining this:laugh:
Ok So I can keep the backup of the system image if I want a complete stock rom backup, right?
But what about the other partitions like Recovery, IMEI, FRP, Pinfo, Logo?
I mean to say if I clear all these partitions for eg IMEI, will my device's IMEI number be deleted?
Or after flashing the system img these partitons will be regenerated?
And yes I am using the default TWRP backup and I am able to restore my android backup...
Tanmay_B said:
Thank You Bro So Much for explaining this[emoji23]
Ok So I can keep the backup of the system image if I want a complete stock rom backup, right?
But what about the other partitions like Recovery, IMEI, FRP, Pinfo, Logo?
I mean to say if I clear all these partitions for eg IMEI, will my device's IMEI number be deleted?
Or after flashing the system img these partitons will be regenerated?
And yes I am using the default TWRP backup and I am able to restore my android backup...
Click to expand...
Click to collapse
The default TWRP backup is all you really need. It will completely backup everything you need to backup/restore your ROM, the system.img backup isn't necessary. It is no different than the system.img that can be extracted from your stock firmware file.
As for IMEI, the method of backing up and restoring IMEI doesn't involve TWRP, there are other tools for that. Do a Google search for:
"How to backup and restore IMEI"
I suggest that you don't mess with any of the other partitions
Sent from my SM-S767VL using Tapatalk
Droidriven said:
It isnt complicated, just boot into TWRP, then choose the "Backup" option, the default partitions that TWRP automatically selects to backup are all you "need" to backup. TWRP backs up the boot partition, recovery partition and system partition by default, that is all you need.
To restore the backup, just boot into TWRP then select the "Restore" option, then restore the backup file.
The "system.img" backup creates a backup of the complete system.img, it is effectively the same thing as using adb shell to dump the system.img to obtain a copy, it contains everything involved with the system partition, including boot.img and kernel(zimage). This system.img backup can restored by using fastboot flash system command, adb shell with dd command, terminal emulator with dd command or by using the option in TWRP that allows flashing .img files.
Another option for devices that are rooted is to use apps like Flashify to flash the system.img, but these apps are risky and don't always flash correctly.
Sent from my SM-S767VL using Tapatalk
Click to expand...
Click to collapse
Droidriven said:
The default TWRP backup is all you really need. It will completely backup everything you need to backup/restore your ROM, the system.img backup isn't necessary. It is no different than the system.img that can be extracted from your stock firmware file.
As for IMEI, the method of backing up and restoring IMEI doesn't involve TWRP, there are other tools for that. Do a Google search for:
"How to backup and restore IMEI"
I suggest that you don't mess with any of the other partitions
Sent from my SM-S767VL using Tapatalk
Click to expand...
Click to collapse
OK Thanks Bro...
I keep trying to do backups but it gets about half way through and the error 255. I don't understand what I'm doing wrong. Is it not possible to backup through twrp on xt1955-5. If not any suggestions on other means. Something that would include my accounts as well would be great. I have an google acct that google refuses to give back. Be cause they say can't verify. I know password but 2sv got messed up. Which is a bunch of bs. They track everything. I would prefer to never have to go through this again. Any help would be great.
First question. What all are you trying to backup? Second, to where? Third, do you have adequate space for said backup?
Also, if you have a pin or code enabled for access to the device I would disable it for the backup process.
I'm trying to back up system and data only to my ext sd with 50g avail but only needing 12g
Pbsipher1 said:
I'm trying to back up system and data only to my ext sd with 50g avail but only needing 12g
Click to expand...
Click to collapse
I was able to use TWRP to create a backup on an SD card. I'm running Android 10 and rom RR.
You might try other avenues like titanium or migrate. A quick internet search might lead you to a better procedure and app.
I've been having the same trouble. I just restored my XT1955-5 to stock RETAIL. Then installed TWRP and Magisk. I set my phone up as I like it, and want to back it up - everything I can possibly backup - boot, data, system, system image, efs, persist1, persist2, fsg, vendor, vendor image, dsp, and boot logo.
Before I tried to backup anything, I made sure that I mounted all of the partitions in TWRP.
The first few times I tried to back them all up at once, I got the error 255. So I started backing up the partitions one by one. The only partition that would NOT backup was the data partition. I still get the error 255 on the data partition backup. But all the others worked fine. I even went back and selected all the partitions except the data partition, and it backed up in one large backup just fine. So I don't know what the deal is with the data partition, but I can grab it with adb pull, so I guess I'm good to go.
I even booted back into the system and turned off the screen lock PIN - changed it to none. But I still couldn't backup the data partition via TWRP.
This should work for you from adb to backup your data partition:
Code:
adb push mmcblk0p64-data.img /dev/block/mmcblk0p64
Thanks tom2112 I'll give it a try what can it hurt. I also heard u have to be decrypted in order to backup data but can't seem to get decryption to stick
i was no able to backup using that command got
adb: error: stat failed when trying to push to /dev/block/mmcblk0p64: permission deni
Tom2112 said:
I've been having the same trouble. I just restored my XT1955-5 to stock RETAIL. Then installed TWRP and Magisk. I set my phone up as I like it, and want to back it up - everything I can possibly backup - boot, data, system, system image, efs, persist1, persist2, fsg, vendor, vendor image, dsp, and boot logo.
Before I tried to backup anything, I made sure that I mounted all of the partitions in TWRP.
The first few times I tried to back them all up at once, I got the error 255. So I started backing up the partitions one by one. The only partition that would NOT backup was the data partition. I still get the error 255 on the data partition backup. But all the others worked fine. I even went back and selected all the partitions except the data partition, and it backed up in one large backup just fine. So I don't know what the deal is with the data partition, but I can grab it with adb pull, so I guess I'm good to go.
I even booted back into the system and turned off the screen lock PIN - changed it to none. But I still couldn't backup the data partition via TWRP.
This should work for you from adb to backup your data partition:
Code:
adb push mmcblk0p64-data.img /dev/block/mmcblk0p64
Click to expand...
Click to collapse
ed
Hmm... if it is "permission denied" that sounds like you need root permissions to back it up. I'm sorry, but I'm not good enough with ADB to tell you how to get higher privs. Maybe ADB SHELL then SU, but I don't honestly know.
do i have to unencrypt my device in order to restore/backup and maybe even flash from on it? I've seen in twrp it tells me backups and restores may not work fully due to being encrypted
No, I guess.
The only partition encrypted is your internal storage and twrp can't take a backup of that.
So, you can try by yourself, just remember to take your cautious.
in old devices I always made a backup of this partitions:
Boot
System
Data
Vendor
And restored without problems, just make a factory reset before and maybe flash magisk after restoration
Having my V60EA rooted with all my apps installed and configured I started to wonder how to perform a backup.
On a file level I have working Swift Backup, NeoBackup and partially old good Titanium Backup.
The question is how to wisely backup on a partition level. TWRP seems to be not ready yet (or am I wrong?) What then? QFIL and manual backup of all those dozens of partitions? Or maybe this doesn't make sense as there is KDZ file? Maybe I should backup just a set of crucial partitions, like boot_a/b (already got them backed up) and some others?
From everything I've read so far, my first step will be to get into QFIL and make a backup of every single partition in case I make a huge stuffup and need to restore any of them. It seems to save a lot of people from certain doom.
Still battling to understand what a FTM is as this seems like it's going to be pretty important for my Verizon to make it to EA successfully.
I think you could omit user data partition if you use another backup tool like SwiftBackup, OAndBackupX/NeoBackup etc.
And there are about 108 other partitions to backup. System is the biggest or of them - 21GB. I've just backed them up.
Ok, via qfill backup QCN than backup vital partitions of LUN 5, maybe you will be need it some time.
Than make full backup partitions you do not need backup userdata partition.
I am working like this made backup full there is rooted made system rw and some customizations. Than when. I set all my userdata customization and apps I am using migrate tool to backup userdata apps, settings... Also I can using LP to backup apps data.
bandario said:
From everything I've read so far, my first step will be to get into QFIL and make a backup of every single partition in case I make a huge stuffup and need to restore any of them. It seems to save a lot of people from certain doom.
Still battling to understand what a FTM is as this seems like it's going to be pretty important for my Verizon to make it to EA successfully.
Click to expand...
Click to collapse
You do not need backup single one by one partition, you can do it several of vital partitions than make backup.
If you want to croosflash Verizon to EA you do not need Verizon FTM you need EA FTM.
In FTM stored some temporary data like imei, ntcode, s/n... While first booting it write data from other vital partitions. You do not care so much about FTM.