Magisk-Modules-Alt-Repo / chroot-distro

install linux distributions on android
GNU General Public License v3.0
87 stars 7 forks source link

Fix backup and restore #13

Closed jjkola closed 2 months ago

jjkola commented 2 months ago

Fixes #11 by ensuring that backup is restored in correct directory. Also, changes the backup format to make it more secure and more easily maintainable by not using full path but instead using path under /data/local/chroot-distro folder.

/data folder is no longer mounted by default, only if it is specified during install, if a backup has it, or if user afterwards adds it. This makes things easier for maintenance as there is no longer circular references in the file system. Also, this way there is one less chance of wiping your device clean if things go south.

Restore also now no longer mangles the backup by default. You now have to specify a parameter to reset the settings to defaults (those set during install).

Added more error checking and did some various small fixes.

jjkola commented 2 months ago

Things needing taking care of: