FORUMS
Remove All Ads from XDA

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

195 posts
Thanks Meter: 320
 
By GioBozza, Senior Member on 26th December 2016, 05:08 PM
Post Reply Email Thread
WakeBlock

WakeBlock is a system modification that allows users 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 beta and is missing many options planned for the final state of the mod.
I plan to add support for alarms control, (maybe) services, regex blocking and translations.

Also, beware 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.
*/

Install instructions
  1. Install the application
  2. Tap on "INSTALL CORE MOD" [this may take a SIGNIFICANT amount of time (between 5 and 30 minutes, depending on your device and ROM)]
  3. Wait for the process to finish and reboot when asked to do so
  4. Open the application, if it says "SERVICE BOUND", you are good to go
  5. Go to wakelocks tab and feel free to explore and block the wakelocks you want while it gets populated
  6. If the application gets updated, the service is killed and it will be shown as "Unbound"; Reboot the device to bind it again

Download
GOOGLE PLAY STORE

Telegram Group
https://t.me/wakeblock

WANT TO INTEGRATE WAKEBLOCK IN YOUR ROM? CHECK THIS POST!

If you find a bug, feel free to report it in this thread or via PM (if you are concerned about privacy). Make sure to attach a logcat in the report. You can use this app to take the log file (main log).

*** REPORTS WITHOUT A LOGCAT WILL BE IGNORED ***

Special Thanks
  • @DEVILOPS 007 for testing and porting the initial release to various ROMs and devices
  • @SuperSandro2000 for helping testing the mod on Samsung devices

XDA:DevDB Information
WakeBlock, App for the Huawei Nexus 6P

Contributors
GioBozza, CappyT, SimoIanni, pioccd, TotemFallico

Version Information
Status: Beta

Created 2017-08-15
Last Updated 2017-10-03
Attached Thumbnails
Click image for larger version

Name:	http-%2F%2Fi.imgur.com%2FaursbqS.png
Views:	7596
Size:	32.7 KB
ID:	4242593  
The Following 99 Users Say Thank You to GioBozza For This Useful Post: [ View ] Gift GioBozza Ad-Free
 
 
26th December 2016, 05:08 PM |#2  
GioBozza's Avatar
OP Senior Member
Flag Milan
Thanks Meter: 320
 
Donate to Me
More
CHANGELOG
v0.1.4 (10/09/2017)
  • Fixed Samsung bootloop
v0.1.3 (07/09/2017)
v0.1.2 (07/09/2017)
  • Auto-patcher process priority rised to avoid it being killed by the OS
  • Added Simplified Chinese localization
v0.1.1 (21/08/2017)
  • Added application automatic backup of previously detected wakelocks
  • Added support for localization
  • Removed auto-downloader (now obsolete)
v0.1.0 (17/08/2017)
  • Initial release
The Following 3 Users Say Thank You to GioBozza For This Useful Post: [ View ] Gift GioBozza Ad-Free
26th December 2016, 05:08 PM |#3  
GioBozza's Avatar
OP Senior Member
Flag Milan
Thanks Meter: 320
 
Donate to Me
More
Reserved
26th December 2016, 05:10 PM |#4  
GioBozza's Avatar
OP Senior Member
Flag Milan
Thanks Meter: 320
 
Donate to Me
More
WANT TO INTEGRATE WAKEBLOCK IN YOUR ROM?

We decided to release the core part of the mod to let ROM developers integrate it in their own source code.

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.

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 to manage wakelocks. The ROM can even be without root!

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 27 Users Say Thank You to GioBozza For This Useful Post: [ View ] Gift GioBozza Ad-Free
26th December 2016, 06:46 PM |#5  
Senior Member
Flag Riverside
Thanks Meter: 150
 
More
Thank you. Seems promising
26th December 2016, 10:21 PM |#6  
Senior Member
Flag Colchester
Thanks Meter: 1,332
 
Donate to Me
More
Nothing shows up in the wake lock section for me
26th December 2016, 10:50 PM |#7  
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, 10:53 PM |#8  
Senior Member
Flag Colchester
Thanks Meter: 1,332
 
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, 10:58 PM |#9  
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, 11:00 PM |#10  
Senior Member
Flag Anywhere there is the best LTE coverage
Thanks Meter: 227
 
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, 11:01 PM |#11  
Senior Member
Flag Colchester
Thanks Meter: 1,332
 
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?
Post Reply Subscribe to Thread

Tags
battery, doze, sleep, wakelocks

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

Advanced Search
Display Modes