[Q] to save OTA option for future, should i backup system partition or system image? - AT&T HTC One (M9)

as the title says.
with TWRP flashed + system as Read-Only, if i want the option to OTA in the future, should i backup system image or the system partition or both?
Thanks in advance

Nexaddo88 said:
as the title says.
with TWRP flashed + system as Read-Only, if i want the option to OTA in the future, should i backup system image or the system partition or both?
Thanks in advance
Click to expand...
Click to collapse
backup system image, then later when you want to ota just go and restore the system image and the system partition will be stock from when you backed it up, letting you do the ota, just did it myself for the stagefright patch when it came out

Related

[Q] Nand Data Partition Restore

If I install an newer version of a rom, one that has had some changes to the data partition such as adds and deletes, does then restoring my most recent nand data partition over it wipe the new changes or simply combine the two? IOW, will a nand data restore keep my old data PLUS the new data from the new rom or is the new data changes simply over written by the restore?
I have been doing this for some time but now I'm faced with an updated rom with data partition changes that I would like to keep and I'm afraid that running a nand data restore will overwrite all the new rom data additions
Thanks for your assistance. A search for this subject turned up a few hits but none of them answered this question in particular.
alexv59 said:
If I install an newer version of a rom, one that has had some changes to the data partition such as adds and deletes, does then restoring my most recent nand data partition over it wipe the new changes or simply combine the two? IOW, will a nand data restore keep my old data PLUS the new data from the new rom or is the new data changes simply over written by the restore?
I have been doing this for some time but now I'm faced with an updated rom with data partition changes that I would like to keep and I'm afraid that running a nand data restore will overwrite all the new rom data additions
Thanks for your assistance. A search for this subject turned up a few hits but none of them answered this question in particular.
Click to expand...
Click to collapse
This all depends on how the custom recovery handles the data partition restore function. Most custom recoveries, CWM and TWRP are using images of the data partition as opposed to a .tar. The image of the data partition will overwrite anything previously on the partition as the process essentially copies back the full partition image made previously.
If a .tar file was being used, the .tar file could be laid on top of whatever was previously in the partition, but I don't think these are being used.
Double checked and TWRP latest open source code version is using images of the data partition opposed to .tar files. This means restoring the data partition will very likely overwrite any previously held information on the /data partition.
https://github.com/TeamWin/Team-Win-Recovery-Project/blob/master/backstore.c#L256
The best way to know for sure, make a backup and then experiment! No better answer than personal experience!
Hope that helps!
Thanks, Joey!

Backup vendor in TWRP?

Hi, I'm new to the N9, I've noticed that vendor image is available for backup now in TWRP. Is it necessary to backup vendor image? Or just continue backing up boot, system and data as always.
Thanks, very much
Erik
I don't know, I noticed TWRP leaves it unchecked so I assume it doesn;t need backing up. I am interested in getting an answer too though.
The /vendor partition would only need backing up if you manually made changes to it yourself (for instance, if you use Layers). Otherwise, you can just use the vendor.img from the factory image if you need to restore /vendor
Sent from my Nexus 9

twrp more options

can back more partitions ignore the partitions that say zero i think i need to fix those. u can backup and restore other partitions if u want to or feel the need toohttps://drive.google.com/open?id=0Bx88t3CJrNjoNDBreGFUT3JXYVk
madvane20 said:
can back more partitions ignore the partitions that say zero i think i need to fix those. i also fixed where system was listed 2 times u can backup and restore other partitions if u want to or feel the need too https://drive.google.com/open?id=0Bx88t3CJrNjoQjhFQXBqSm0zRUk@yuweng guess he accidental added extra system to backup
Click to expand...
Click to collapse
The extra System your referring too is a System.img it's flashable with fastboot unlike the regular system backup in TWRP.
If you look at the file size you would notice the System.img is the same size as if you dd dump system
it also backs up cust.img and tz.img and modem1.img, it's by design not a mistake
On most devices shipping with Android 6.0 or higher, the device maker has enabled dm-verity as a security measure. The device will signature check blocks of data on the system partition during boot at the block level. The usage of dm-verity prevents TWRP from being able to successfully restore a normal system backup. On most of these devices, you will see an option on the backup page for System Image. A system image backup takes up more space than a regular system backup, but the system image backup is a bit-perfect backup that, when restored, will not break dm-verity (assuming that you don't break dm-verity before making the backup). On a handful of devices, you may also find a Vendor and Vendor Image backup option. The same rules apply with regards to dm-verity. If you need a perfect "go back to completely stock" backup then you should be using System Image (and Vendor Image, when available) instead of just system.
Click to expand...
Click to collapse
theirs more info here > https://twrp.me/FAQ/
its fixed see original post

Which partitions to backup in latest twrp 3.3?

dears, please, post which partitions to backup in twrp to get fullly restored system and data?
dimdimdim said:
dears, please, post which partitions to backup in twrp to get fullly restored system and data?
Click to expand...
Click to collapse
The default TWRP settings under "Backup" will give you a nandroid that should allow you to restore when changing roms or a failed "something" install. Generally "Boot," "System," and "Data" are what you should backup. A more comprehensive device backup might include other partitions.
ktmom said:
The default TWRP settings under "Backup" will give you a nandroid that should allow you to restore when changing roms or a failed "something" install. Generally "Boot," "System," and "Data" are what you should backup. A more comprehensive device backup might include other partitions.
Click to expand...
Click to collapse
Okay, thanks! That is pretty basic.
whether there are other important partitions to backup at least once?
And why system image partition is checked for backup by default? Do we need it at all? - at least for me backup even can't be finished with that system image checked. So, I unchecked it to succeed with the backup.
Take a look at team TWRP's What should I back up in TWRP?
ktmom said:
Take a look at team TWRP's What should I back up in TWRP?
Click to expand...
Click to collapse
if that system image backup reason applies to the custom-to-custom restore for moto z? -
I know that for other devices twrp (or custom versions of it) disables dm-verity check by default.
so, the question also is if that applies to moto z too?

How to do TWRP Backup with system_ext and encryption ?

I always just backup every partition and restore them all but when i boot into android i get the security error and it tells me to delete all my data. What am i doing wrong ?

Categories

Resources