Greenify is one of the most popular battery-saving tools available on our forums. If your device has the Xposed Framework installed, then Greenify has even more tools available for it to help kill resource-hungry processes in the background to save your juice.
Unfortunately, Xposed is not available on Android Nougat yet, but if you’re looking to retain some of the functionality that Xposed brought to Greenify, then check out what XDA Senior Member has created. The Greenify4Magisk module is a Magisk module that allows you to use the “Boost mode” without needing the Xposed installed. It works by adding Greenify as a privileged application in /system/priv-app.
Greenify4Magisk XDA Thread