[APP] [MOD] [7.0+] WakeBlock: Blocking the drain before it is too late (Core v0)

Search This thread

GioBozza

Senior Member
Nov 19, 2015
198
399
28
Milan
With newest Version the device reboots and flashes in TWRP @ Stock Samsung S7
But now it seems that I'm stuck in bootloop after flashing

We found out Samsung uses a different procedure to package deodexed framework files. We are testing fixes for this right now.

I will push an update on the Play Store with specific changelog as soon as a working version is ready!
 

yung40oz84

Senior Member
Sep 23, 2014
3,090
1,027
sites.psu.edu
So instead of me running the latched every time I dirty flash I can just place the backup files created by wakeblock in /system/framework/oat/arm64? The services.odex and vdex? Thanks.
 

GioBozza

Senior Member
Nov 19, 2015
198
399
28
Milan
So instead of me running the latched every time I dirty flash I can just place the backup files created by wakeblock in /system/framework/oat/arm64? The services.odex and vdex? Thanks.

If you dirty flash a ROM update you cannot use the WakeBlock backups: those are saved to revert the patcher's work. The backups are basically the original framework files.
Also, ROM updates usually change the services framework, so putting back the old one could most probably cause a bootloop.
 
D

Deleted member 7835385

Guest
I finally got it working on my Sony Xperia Z5 Compact (i just changed kernel) but now i have one question
since i have greenify installed do you raccomend to use both or uninstall greenify and just use WakeBlock?
Thanks
 
D

Deleted member 7982903

Guest
For anyone interested is working perfect in OnePlus 3 Paranoid AOSPA rom
 

Attachments

  • Screenshot_20170910-083806.png
    Screenshot_20170910-083806.png
    75.1 KB · Views: 234

cpthero

Senior Member
Aug 16, 2017
157
69
I finally got it working on my Sony Xperia Z5 Compact (i just changed kernel) but now i have one question
since i have greenify installed do you raccomend to use both or uninstall greenify and just use WakeBlock?
Thanks
These are different things and it shouldn't lead to problems using both. I'm doing that too.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 145
    GP1Q7ND.png


    THIS THREAD IS NOT MONITORED, ANY HELP REQUEST/QUESTION/BUG SUBMISSION MUST BE POSTED INTO THE TELEGRAM GROUP OR THEY WILL BE IGNORED

    WakeBlock is an app that, through a system modification, allows users to block or limit any system wakelock, without the need of any kind of framework.

    Currently, we support all versions of Android from Nougat 7.0 to Q 10. We plan to continue the support for future Android version, while anything under Android 7.0 won't be supported. While the patch is supposedly working on ANY device, we won't know unless we try. So try this and let us know!

    Recently, we updated the coremod for better compatibility and even added Dark Mode!

    This modification can be applied Systemless-ly with Magisk, by creating the Magisk Module from inside the app.

    The app is currently in beta stage, so is missing many features we plan to implement in future releases.

    Also, beware that the current version of the app is released for free, but it may become paid/donation based 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 read the FAQs 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.
    *
    */

    Google Play Store Link

    Patreon Link

    Telegram Group

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

    *** BUG REPORTS WITHOUT A LOGCAT WILL BE IGNORED AND LAUGHED AT ***

    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
    • @TotemFallico for helping me with the support & development

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

    Contributors
    GioBozza, TotemFallico, SimoIanni, pioccd, CappyT

    Version Information
    Status: Beta

    Created 2017-08-15
    Last Updated 2019-11-30
    36
    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:
    v0 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!
    22
    Just a quick update: I am currently working on the smali autopatcher and got the easier parts done.

    When this is done, you should be able to apply the core mod on every device and ROM, if they are not too different from the original source (this should not happen).
    15
    CHANGELOG
    v0.2.0 (05/01/2018)
    • WakeBlock service binds on runtime (this means that, if the core mod is already installed, you do not need to reboot after app installation/update). The service status shown in the app will automatically update on service binding.
    • Automatic uninstallation/backup restoring
    • The app can fetch the core mod version
    v0.1.8 (02/01/2018)
    • Fixed core mod classes patching
    v0.1.7 (31/12/2017)
    • Fixed SELinux permissions acquisition
    • Started implementation of the auto-binding process to avoid reboot on app update (not yet functional)
    v0.1.6 (29/12/2017)
    • Fixed repackaging phase on deodexed devices
    v0.1.5 (25/12/2017)
    • Improved patcher process
    • Updated baksmali to v2.2.2 (not yet compatible with Android 8.1)
    v0.1.4 (10/09/2017)
    • Fixed bootloop on Samsung devices
    • Auto-patcher process priority raised to avoid it being killed by the OS
    • Added Simplified Chinese localization
    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
    11
    *** UPDATE [AUTO-PATCHER] ***

    The latest version of the app allows you to automatically patch your system framework, whatever your device, ROM and version is.

    This feature is currently under testing and available only for odexed ROMs. If the process gives "Unsupported Framework", please report it here with device and ROM information.

    As soon as I have enough proofs that the patcher is stable, I will ask to move this topic in a general category.

    NOTES:
    • Backups are always found in /sdcard/WakeBlock/Backups/
    • The patching will take some minutes.
    • The device will reboot when the process is finished.