i have made a zip with an addon.d script, which backup and restore the files when you update your ROM. So you only need to flash the zip once
PS: OP, you can link my zip on the first post if you want :D
It works good on Xiaomi mi5 on latest cm 1...
XDA Developers was founded by developers, for developers. It is now a valuable resource for people who want to make the most of their mobile devices, from customizing the look and feel to adding new functionality. Are you a developer? | Terms of Service