[MOD][APP][XPOSED][4.1+] Power Nap for Xposed - Sony's Stamina Mode for all devices!

Search This thread

xtrs84zk

Senior Member
Oct 5, 2013
216
374
Saltillo
javiersanchez.dev
.. i see thanks :)

Why i cant see any statistics ? Dies it take some time to be shown ?

Yeah, It takes some time :p
Just reboot, use your phone and drink some tea or something, the statistics should be there , check the attachement ;)
 

Attachments

  • Screenshot_2015-06-08-20-55-30.png
    Screenshot_2015-06-08-20-55-30.png
    136.6 KB · Views: 868
Last edited:

ciccio83q

Senior Member
Nov 26, 2009
102
33
What would be the use case for this?
If you want to have the low battery mode active at all times, just use Android's settings to change the specific settings you want changed and use Endurance mode.
Low Battery Mode does not do anything different...

In my case, it would be autosync and wifi off with screen off.
Moreover with an extra option of keeping wifi on just if connected (like in Leandroid) it would be awsome.
 

johnclevenger

Senior Member
Jul 20, 2010
140
22
So this app is pretty great. Thanks for making it. I've got a feature request. It's really great that we can set endurance mode to only kick in at a specified battery level, but it'd be nice if we could also have it activate a stricter profile at a certain battery level. This would allow us to use a less strict profile for most occasions and then automatically block more stuff when battery is low.

Again, this app is awesome. Thanks for sharing
 

kttlbll

New member
Jun 9, 2015
1
4
Im facing the same issue aswell on cm 12.1 and I already changed selinux to permissive but still no statistics.

Doesnt work here ... no statistics for me.
Im on latest CM12.1

for people running cm 12.1 or cm 12.1 based roms that don't show statistics, try this. flash supersu from recovery and set selinux to permissive with SELinuxModeChanger as mentioned by @Xyzko. grant root to powernap and selinuxmodechanger with supersu, reboot phone. don't check statistics right away after phone restarts. just reboot, let the screen turn off and leave it for a couple of minutes and statistics should appear the next time you check. if it still doesn't appear reboot again and let screen turn off for a couple minutes and check again. :good::highfive:
 
Last edited:

aloom

Senior Member
Mar 15, 2011
317
69
Dubai
for people running cm 12.1 or cm 12.1 based roms that don't show statistics, try this. flash supersu from recovery and set selinux to permissive with SELinuxModeChanger as mentioned by @Xyzko. grant root to powernap and selinuxmodechanger with supersu, reboot phone. don't check statistics right away after phone restarts. just reboot, let the screen turn off and leave it for a couple of minutes and statistics should appear the next time you check. if it still doesn't appear reboot again and let screen turn off for a couple minutes and check again. :good::highfive:
Flashing super su fixed it thanks.
 

Amir0157

Senior Member
Oct 12, 2013
157
21
for people running cm 12.1 or cm 12.1 based roms that don't show statistics, try this. flash supersu from recovery and set selinux to permissive with SELinuxModeChanger as mentioned by @Xyzko. grant root to powernap and selinuxmodechanger with supersu, reboot phone. don't check statistics right away after phone restarts. just reboot, let the screen turn off and leave it for a couple of minutes and statistics should appear the next time you check. if it still doesn't appear reboot again and let screen turn off for a couple minutes and check again. :good::highfive:
Fixed, ty
 

drxd

New member
Jun 11, 2015
2
0
I'm using this on mi 2013 Moto X with the brasilian soak of Lollipop 5.1
the thing is that I can't make active display work.

Anyone can tell me wich service add to the whitelist?

Very gratefull in advance...
 

Portgas D. Ace

Inactive Recognized Contributor
Jun 12, 2014
4,354
3,160
Bergisches Land
Nexus 7
Google Pixel 6
is it reasonable to disable Stamina Mode on my Xperia Z1 compact while using Power Nap or can i use them parallel?

As Power Nap is more or less a ported version of Sony's Stamina Mode, there is no reason for you to use Power Nap, I guess.

---------- Post added at 07:52 AM ---------- Previous post was at 07:52 AM ----------

I'm using this on mi 2013 Moto X with the brasilian soak of Lollipop 5.1
the thing is that I can't make active display work.

Anyone can tell me wich service add to the whitelist?

Very gratefull in advance...

Have you whitelisted Android System?
 

Top Liked Posts

  • There are no posts matching your filters.
  • 506
    Introduction

    As the owner of an Xperia Z3, I found myself missing Stamina Mode after flashing a CM12 ROM. None of the battery apps in the Play Store worked the same way - most of the ones I found merely disabled Wi-Fi/data while the screen was off, along with managing auto-sync, but I still wanted whitelisted apps to be able to access the internet.

    I spent a good 12 hours straight working to replicate the basic features of Stamina Mode, and now here we are: Power Nap for Xposed!

    Images

    Imgur album link for easier viewing: http://imgur.com/a/JvSD8

    7VtGH1q.png

    Cy1bh4t.png

    gysUudu.png

    CF7vaJQ.png

    Czq2RUf.png



    Description

    Compatible with any Android device running 4.1+, with root and Xposed.

    Power Nap for Xposed is the best app for saving battery. When your screen is off, Power Nap 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.

    Power Nap for Xposed also has a Low Battery Mode, where you can selectively functions to save power when battery level is low.

    Power Nap for Xposed is inspired by Sony's Stamina Mode, but accessible for all Android devices 4.1 and higher. This app requires root and Xposed.

    Be sure to whitelist any third-party alarm clock app you are using, or it will be prevented from waking up your device!

    Permissions

    android.permission.INTERNET: this is for Crashlytics only, which will automatically send me stack trace logs if the app crashes due to something non-Xposed related. No other information is being sent.
    android.permission.WRITE_SETTINGS: For Low Battery Mode, to change screen brightness and screen display timeout
    android.permission.READ_SYNC_SETTINGS: For Low Battery Mode, to check if auto-sync is on/off
    android.permission.WRITE_SYNC_SETTINGS: For Low Battery Mode, to turn on/off auto-sync
    android.permission.ACCESS_WIFI_STATE: For Low Battery Mode, to check if Wi-Fi is on/off
    android.permission.CHANGE_WIFI_STATE: For Low Battery Mode, to turn on/off Wi-Fi
    android.permission.ACCESS_NETWORK_STATE: For Low Battery Mode, to check if mobile data is on/off
    android.permission.BLUETOOTH: For Low Battery Mode, to check if Bluetooth is on/off
    android.permission.BLUETOOTH_ADMIN: For Low Battery Mode, to turn on/off Bluetooth
    android.permission.RECEIVE_BOOT_COMPLETED: For Low Battery Mode, to start a service that monitors the current battery level (if LBM is enabled), when the device is finished booting

    Installation Instructions

    To get the app, you can either opt-in for testing on Google Play (and/or join the G+ Alpha testing community if you're interested in helping out by reporting bugs and sharing your experiences), or simply download it directly from the Xposed Module Repository. You may need to change "Versions to be shown" to "Experimental" in the Xposed Installer's Settings to be able to download it using the app.

    The latest APK version is also attached to the "Download" tab of this thread, but you will not receive updates using this method.

    Final Thoughts

    By using Power Nap, you can expect to see as little as 0.2% battery drain per hour (if you don't have many apps whitelisted) during standby. Results may vary by device and depending on which apps have been whitelisted.

    Since it's in Alpha mode, please feel free to leave feedback and report bugs. If you need any clarifications on any aspect of the app, please leave a comment!

    NEW ISSUE TRACKER - POST ISSUES HERE

    XDA:DevDB Information
    Power Nap for Xposed, Xposed for all devices (see above for details)

    Contributors
    waylaidwanderer
    Xposed Package Name: net.jzhang.powernap

    Version Information
    Status: Alpha
    Current Beta Version: 0.8a
    Beta Release Date: 2015-04-09

    Created 2015-04-09
    Last Updated 2016-10-22
    38
    Hi everyone, Power Nap v0.8 Alpha is now available on the Play Store!

    Mirror: http://dl-xda.xposed.info/modules/net.jzhang.powernap_v8_e3c396.apk

    Opt-in for testing
    Google Play link

    Changelog v0.8a (October 22, 2016)

    - added App Settings (click on app in whitelist to set active hours and allow only certain wakelocks)
    - warn the user if module is not enabled
    - fixed swipe to delete not working
    - fix stats not showing up on some devices
    - only ask for root if necessary

    NEW ISSUE TRACKER
    25
    Power Nap 0.8.1a has been uploaded to the Play Store and Xposed repo. There are still lingering issues with statistics not showing up for some people, so I decided to release the fix for the bootloops first.

    Direct download link: http://dl-xda.xposed.info/modules/net.jzhang.powernap_v9_38ab23.apk

    Changelog v0.8.1a (October 26, 2016)

    - fixed bootloop on Android 5.x
    - fix module not working on some 4.x devices
    - update Crashlytics library
    - fix force close when phone reaches low battery level with LBM enabled on Android 6.x (will ask for necessary permission first)
    - some more fixes for statistics not showing up: for those still experiencing issues, post on the issue tracker @ https://github.com/waylaidwanderer/PowerNapForXposed-Development/issues/2
    24
    Power Nap for Xposed is now available for download on the Xposed Module Repository: http://repo.xposed.info/module/net.jzhang.powernap

    You may need to change "Versions to be shown" to "Experimental" in the Xposed Installer's Settings to be able to download it using the app.

    You can also find the latest APK attached to the "Download" tab of this thread.
    21
    Good news, I've discovered the cause of the bootloop issue and fixed it. Funnily enough, I never ran into the problem because it seems to affect < 6.0 devices only. The fix will be available in the next update, once I sort out a bug with statistics not displaying for some people (again).