Tipically those scripts are used to backup system apps, and their files, so that they can survive a format and reFlash.
For example, this is how you would keep SuperSU (root), Avast Agent,...
I made the script below so that @rovo89's Xposed for Marshmallow will survive (that is keep it installed) when I flash a new CM13 nightly.
Tested on my phone #MotoG #Falcon (32bits), just flashed latest CM13 nightly, wiped cache and dalvik-cache and the phone rebooted fine (and Xposed was still working). Tested on latest TWRP might not work with other recovery.
Warning: It's for Xposed for Marsshmallow only. It work as of today. It might not work later with new future versions of Xposed. Also not sure it would work for 64bits.
If you use superSu or you have root permitions, you can put this file under "/system/addon.d" and give it the right permitions as the other files in the folder:
Or just flash the zip attached!!
Haven't tested it on 64bit but It should work, please try and report back!!
this was possible thanks to @adlx.xda so just go over his thread and grab him a beer!! Thank him as well!!
👍👍Thank me if you appreciate👍👍