No one can deny that stock ROMs sometimes offer feature that we miss in custom ROMs. And for everyone switching from stock Xperia, I bet Stamina mode is one of these features. Luckily, Power Nap for Xposed brings this feature to every phone running Android +4.1. Of course, you need to have root privileges in your device and have Xposed installed to use it.
The module maximizes your device’s deep sleep time by stopping services, alarms and wakelocks from waking the device when the screen is off. This means you can leave Wi-Fi/data on and still get the notifications from apps you have whitelisted, while all others are unable to wake up your device. Leading to an increase in your battery life. According to its description. So unlike many power saving apps out there, you don’t have to worry about missing important notifications.
You can install Power Nap in your device running Jelly Beans, Kitkat, Lollipop, Marshmallow and thanks to the last release of Xposed, you can have it on nougat. This is the official Xposed repository.