Expanded/customizable backup and restore
This is a new feature that I came up with all my own and I'm pretty proud of it. I normally flash 6 or so zips every time I dirty flash, most of which are to replace files on /system that get wiped during ROM installation. LS already backs up and restores gapps, so I wanted to come with something that would allow you to do this with any file on /system. Here's my method for doing so:
1. Create the folder /data/ls_restore (case sensitive!)
2. Create any or all of the following folders: /data/ls_restore/app, /data/ls_restore/bin, /data/ls_restore/etc, /data/ls_restore/init.d, /data/ls_restore/priv-app (again, case sensitive!)
3. Place copies of files that you want backed up and restored during installation in the appropriate folder (/system/app = /data/ls_restore/app, /system/etc/init.d = /data/ls_restore/init.d... you get the point)
When you install the latest LS-UNOFFICIAL, the installer will see these files on /data and replace them with the equivalent files from /system. Once the ROM is installed, the files on /data will be copied back.
Right now it's set up to handle just the 5 folders from system, but I can easily add more. Also, I set this all up on /data so that if you want to clean flash, nothing will get restored since you've wiped /data.
Pro tip: If you use xposed, place a copy of /system/bin/app_process in /data/ls_restore/bin and you no longer need to reinstall xposed every time!
[poo]