FORUMS
Remove All Ads from XDA

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

189 posts
Thanks Meter: 798
 
By waylaidwanderer, Senior Member on 9th April 2015, 11:54 PM
Post Reply Email Thread
Announcement from waylaidwanderer: Power Nap for Xposed is a replacement for Sony's Stamina Mode for all devices!
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








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
The Following 503 Users Say Thank You to waylaidwanderer For This Useful Post: [ View ] Gift waylaidwanderer Ad-Free
 
 
10th April 2015, 03:39 AM |#2  
codfx's Avatar
Senior Member
Flag Maho
Thanks Meter: 115
 
More
wow! This is great! Testing mode: ON
The Following 6 Users Say Thank You to codfx For This Useful Post: [ View ] Gift codfx Ad-Free
10th April 2015, 12:19 PM |#3  
Senior Member
Thanks Meter: 43
 
More
Man ..
I spent the whole week looking for something like this .. thinking like I was thinking before I knew about #xprivacy ; there has to be someone thinking the same way am thinking with the knowledge to actually create it ..

Thank you
The Following 3 Users Say Thank You to Ultimous For This Useful Post: [ View ] Gift Ultimous Ad-Free
10th April 2015, 12:23 PM |#4  
Jashanmallan's Avatar
Member
Flag Patiala
Thanks Meter: 59
 
More
Will it work on android 5.1?
10th April 2015, 12:29 PM |#5  
Senior Member
Flag XDA Forums
Thanks Meter: 209
 
Donate to Me
More
this looks fantastic!
The Following 2 Users Say Thank You to panyan For This Useful Post: [ View ] Gift panyan Ad-Free
10th April 2015, 12:36 PM |#6  
Senior Member
Flag Jakarta
Thanks Meter: 146
 
More
never use sony devices before, let's say if I add whatsapp/bbm/snapchat to app whitelist I still could get notification or chat while the data will mostly turned off?
isn't deep sleep battery saver works with turning off data/wifi and turn on again for specific minute in time interval?
10th April 2015, 12:44 PM |#7  
Senior Member
Thanks Meter: 298
 
More
Are you planning to bring JellyBean support?
10th April 2015, 12:45 PM |#8  
Member
Flag Carolina
Thanks Meter: 12
 
More
Quote:
Originally Posted by Jashanmallan

Will it work on android 5.1?

nope because xposed doesn't run in Lollipop for now...
10th April 2015, 12:49 PM |#9  
waylaidwanderer's Avatar
OP Senior Member
Thanks Meter: 798
 
More
Quote:
Originally Posted by Jashanmallan

Will it work on android 5.1?

It should work, as long as you get Xposed working!
It's been confirmed that it DOES NOT WORK with 5.1 due to ART changes.

Quote:
Originally Posted by dels07

never use sony devices before, let's say if I add whatsapp/bbm/snapchat to app whitelist I still could get notification or chat while the data will mostly turned off?
isn't deep sleep battery saver works with turning off data/wifi and turn on again for specific minute in time interval?

Yep, Power Nap will let your whatsapp/bbm/snapchat receive notifications while all the other ones will be prevented from waking the phone.

Quote:
Originally Posted by wasd-

Are you planning to bring JellyBean support?

Yes, I can theoretically support all the way down to Gingerbread, but I wanted to start off with a smaller audience because I can't test with any older devices yet. But I'll definitely be adding Jellybean support soon!
The Following 6 Users Say Thank You to waylaidwanderer For This Useful Post: [ View ] Gift waylaidwanderer Ad-Free
10th April 2015, 12:49 PM |#10  
JustinSang's Avatar
Senior Member
Thanks Meter: 39
 
More
Hey guy . It looks great ! But I can't find and download it . I joined your community and become a tester . But Google says : " We're sorry, the requested URL was not found on this server. "
10th April 2015, 12:55 PM |#11  
Senior Member
Thanks Meter: 298
 
More
Quote:
Originally Posted by waylaidwanderer

Yes, I can theoretically support all the way down to Gingerbread, but I wanted to start off with a smaller audience because I can't test with any older devices yet. But I'll definitely be adding Jellybean support soon!

Awesome

Looking forward to it
Post Reply Subscribe to Thread

Tags
battery saver, doze, power nap, stamina mode, xposed

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes