FORUMS
Remove All Ads from XDA

[APP] [MOD] WakeBlock: Blocking the drain before it’s too late (Core v2.0)

86 posts
Thanks Meter: 106
 
Post Reply Email Thread
WakeBlock is a system modification that allows the user to control what wakelocks are allowed to run and schedule a block routine to keep the wakelocks from firing too frequently in a specific timespan, thus saving battery while the phone is in idle state (dozing) without Xposed.

The app state is currently in heavy alpha testing and it's missing many of the options planned for the final state of the mod.
I plan to add support for alarms control and (maybe) services. Also, it's planned support for regex blocking, better measurement of blocked time, translations and updates auto-installer.

I'm releasing this mod now to get feedback and ideas to improve, while saving the tester's phones battery in the meantime.
Also, take note that the current version of the app is released for free, but it may become paid/donate in the future.

/*
* #include <disclaimer.h>
*
* Your warranty is now void.
* I'm not responsible for bricked devices, dead SD cards,
* thermonuclear war, or you getting fired because the alarm app failed. Please
* do some research if you have any concerns about features included in this mod
* before flashing it! YOU are choosing to make these modifications, and if
* you point the finger at me for messing up your device, I will laugh at you.
* Hard. Really hard.
*/

*** MAKE A BACKUP FIRST ***
If you don't understand what wakelocks are, I highly suggest you to stay away and don't screw up your phone.


Install instructions:
  1. Install the application
  2. Install the core mod from the application
  3. Reboot
  4. Open the application, if it says "SERVICE BOUND", you're good to go
  5. Go to wakelocks tab and feel free to explore and block the wakelocks you want while it gets populated

Downloads:

Builds log (you can manually install the core mod with the flashable zips in the repository) - LINK
Application - LINK

WANT IT FOR ANOTHER ROM? CHECK 2nd POST

Screenshot:



If you find a bug, feel free to report it in the thread or via PM (if you are concerned about privacy). Make sure to attach a logcat in the report.

Contributors / Helpers:
@CappyT
@pioccd
@TotemFallico
@SimoIanni
The Following 36 Users Say Thank You to GioBozza For This Useful Post: [ View ] Gift GioBozza Ad-Free
 
 
26th December 2016, 04:10 PM |#2  
GioBozza's Avatar
OP Member
Flag Milan
Thanks Meter: 106
 
Donate to Me
More
Want to integrate with your ROM?

We decided to release the core part of the mod as it's simply too much work integrating the mod inside every rom or (worse) doing a smali patching-app.

Here is the patch, for you to simply drag on whichever version of android (should work on 7.x (maybe 6.x?)) and whichever device/rom you want.
We will continue to update the stock rom zips as it's easier for us to maintain those.

The only things we ask for are (that's not a legal license, but it can make us REALLY upset if you don't do that) :
- You shall credit @GioBozza for the mod by linking this thread in your rom post (c'mon, don't write it in the bottom of the post, with size 1!)
- You may include this code to any non-commercial work (you can still get donations, we're cool with those!)
- You can not sell this code or get donations by the code of this mod alone
- You may include the free version of the apk in your ROM (in the future we may release a paid version or an unlock app. Of course, that can not be included.)
- You should redirect users here for support about the mod or the app itself
- You should have fun and save your battery
- You may need to drink some fruit juice afterwards - have that ready!


WHOOP, WHOOP - DOWNLOAD:
v2.0:
Templates - platform/frameworks/base repository.
https://github.com/GiovanniBozzano/wakeblock

REMEMBER: the app takes no privileges at all, the ROM can even be without root!

We're currently looking for a more reliable and developer-friendly way to distribute the mod. If know a better one, let us know! (we love to improve)
Also, take note that we will update the "core" (android framework) part of the mod, from time to time. It is versioned, so you can keep track of what happened.

Cheers!
The Following 14 Users Say Thank You to GioBozza For This Useful Post: [ View ] Gift GioBozza Ad-Free
26th December 2016, 05:46 PM |#3  
Senior Member
Flag Riverside
Thanks Meter: 140
 
More
Thank you. Seems promising
26th December 2016, 09:21 PM |#4  
Senior Member
Flag Colchester
Thanks Meter: 1,036
 
Donate to Me
More
Nothing shows up in the wake lock section for me
26th December 2016, 09:50 PM |#5  
Junior Member
Thanks Meter: 0
 
More
Quote:
Originally Posted by DEVILOPS 007

Nothing shows up in the wake lock section for me

Uhm, service is BOUND or UNBOUND?
26th December 2016, 09:53 PM |#6  
Senior Member
Flag Colchester
Thanks Meter: 1,036
 
Donate to Me
More
Quote:
Originally Posted by pioccd

Uhm, service is BOUND or UNBOUND?

It says service is unbound and I flashed the zip and then installed the apk.
26th December 2016, 09:58 PM |#7  
Junior Member
Thanks Meter: 0
 
More
Quote:
Originally Posted by DEVILOPS 007

It says service is unbound and I flashed the zip and then installed the apk.

Please try to flash another time and reinstall the app.
26th December 2016, 10:00 PM |#8  
Senior Member
Flag Anywhere there is the best LTE coverage
Thanks Meter: 198
 
More
Quote:
Originally Posted by DEVILOPS 007

It says service is unbound and I flashed the zip and then installed the apk.

After installing the apk, reboot the phone. It should say now "service bound"
26th December 2016, 10:01 PM |#9  
Senior Member
Flag Colchester
Thanks Meter: 1,036
 
Donate to Me
More
Quote:
Originally Posted by pioccd

Please try to flash another time and reinstall the app.

I tried flashing again and installing the app but it still says unbound. Do I need to edit anything like build or host files?
26th December 2016, 10:07 PM |#10  
Senior Member
Flag Anywhere there is the best LTE coverage
Thanks Meter: 198
 
More
Quote:
Originally Posted by DEVILOPS 007

I tried flashing again and installing the app but it still says unbound. Do I need to edit anything like build or host files?

Are you on rooted stock 7.1.1? We tested on that, and well... it works. Just needs a reboot after app install and it will continue to work across reboots.
The Following User Says Thank You to CappyT For This Useful Post: [ View ] Gift CappyT Ad-Free
26th December 2016, 10:24 PM |#11  
Senior Member
Flag Colchester
Thanks Meter: 1,036
 
Donate to Me
More
Quote:
Originally Posted by CappyT

Are you on rooted stock 7.1.1? We tested on that, and well... it works. Just needs a reboot after app install and it will continue to work across reboots.

I'm on resurrection remix 7.1.1 and flash kernel. I guess it isn't supported on this yet but it is only alpha so no worries if I can't get it to work.
Post Reply Subscribe to Thread

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

Advanced Search
Display Modes