SD Card system: In this case forget about TWRP for backup/restore. - Why?
@
Quarx
You will shoot me for sure after this ...
(wishlist)
For not being an expert at all, I asked myself, if the following would be feasable:
(This is very drafty brain storming.)
If you come as far as going for a system image (or even a system partition with ext4 or the like) on the sd card, then consider to do it in an all-purpose generic multi-boot style and do it also for (the) data images (please see "Structure" below for the idea behind this).
In the boot up sequence there should be a mechanism reading out the active-flagged system partition and the active-flagged data partition and uses this (see *.conf-files).
If you plan it the "right" way, you even could use it for other devices/ROMs (Falcon/W7 anyone?).
This would be one step further than ordinary JAMBO (just another multi-boot), right?
And no Recovery Backup/Restore would be needed.
I see at least one draw back in it:
You have to buy sd cards more often due to wear off for the data partitions sitting on it.
This could be avoided, if the active-flagged data image is dd'ed/copied to an internal data partition.
(The old active data partition has to be backed up to sd card before, sure.)
In a second step for the GUI lovers (BTW: Where is our "genius app designer" Blechd0se?):
Code a little app (
"VirtualDroid") to choose a combination of 1 system-image (partition) and 1 data-image (partition), sitting on the sd card.
This app could maintain some user-editable meta data fields (date time, rom/kernel version, short description, free text notes etc.) for each image in a simple database. - Each record represents one image.
(You could "teleporting" the images from one device to another one etc.)
This would work similar to a VirtualBox "machine" where you can easily add/remove (system) hard disks and/or (data) hard disks in any combination to.
(Quarx is going virtual ...)
_____
Structure (draft):
Folder/file structure on the sd card for a multi-boot rom might be something like this:
(maybe let the datas be locked up = cryptfs, if possible)
sdcard/
... planet_quarx/
...... systems/
.........
.system.img.conf
......... (=> this text file contains at least last active image number as property, i.e
......... last_used_sys_img_no=001)
......... system.img.000
......... system.img.001
......... ...
......... system.img.<nnn>
...... datas/
.........
.data.img.conf
......... (=> this text file contains at least last active image number as property, i.e.
......... last_used_data_img_no=002)
......... data.img.000
......... data.img.001
......... ...
......... data.img.<nnn>
_____
No warranties from the dev:
Responsibility of combinations of working system/data pairs would be up to the user, don't worry
_____
How about doing nandroid backup in that case? Can TWRP handle this?
This is a good question! @
Quarx: How about this?