yashsingh1/xdaforums huggingface dataset:
[Android Software Development] GioBozza:
Was the process shown as still running in the application? What is the content of /data/data/com.giovannibozzano.wakeblock/files/patcher/ ?
[Android Software Development] bielie:
I got error " error while creating backup folder ". Can i create this folder ? where ? GT I9100 xenon hd
[Android Software Development] GioBozza:
You need to give the app "External storage writing" permission from settings.
[Android Software Development] DEVILOPS 007:
Is this normal because I see no files directory but service is still bound.
[Android Software Development] GioBozza:
Yes, it's normal. The files directory is created only if you run the patcher after installing the application.
[Android Software Development] DEVILOPS 007:
Run the patcher as in? I used the tool in the app to get it to work.
[Android Software Development] bielie:
I has reset permission storage.
[Android Software Development] oeusr:
Hey I know I said I'd get you a log on Android O DP4 before, but... it's working without rebooting so far now. Not sure if one of the recent updates changed anything but so far so good. If it does start giving me issues, how should I gather a log? I saw the changelog added something about logging but I don't see the option anywhere

edit: nevermind I found in the first post how you wanted. Sorry!

edit 2: even works on my nexus 7 running microG too!
[Android Software Development] GioBozza:
The files folder is a standard Android folder for every app to write its own files. It gets deleted if you reinstall the app or delete data from settings. Anyway, in WakeBlock they are all temporary files, so no need to worry about that.

Do you mean the app "Storage" permission is checked? If yes, could you attach a logcat as explained in the main post?
[Android Software Development] jyoti.id:
After 6hours when I opened the app it force closed automatically! I didn't checked the files. Sorry. & I just formatted my device as I'm facing some issues (not due to wakeblock :laugh: ). So if you want I can try that one more time & check the presented files!
[Android Software Development] Chocklety Boyee:
Guys how to block this wakelock!! They are draining my battery...
[Android Software Development] bielie:
Done. Its running on GT I9100 Xenon HD. Xiaomi libra 4C RR without problem. but i got force closed for every app open on GT I9152 when im install lawnchair louncher (still beta too).

Anyone here using lawnchair louncher with wakeblock together?

Im install lawnchair after install wakeblock.

---------- Post added at 05:36 PM ---------- Previous post was at 05:21 PM ----------

Read this, https://xdaforums.com/oneplus-one/help/event0-wakelocks-t2957829. I had problem like this a year ago. Change rom is my solution.
[Android Software Development] DEVILOPS 007:
I don't have an issue with lawnchair. I prefer Nova but I tried it with lawnchair and no force closes for me.

---------- Post added at 07:49 PM ---------- Previous post was at 07:28 PM ----------

Is there a function somewhere in the app or in a file explorer to uninstall wakeblock. It seems to be causing more wakelock issues on LOS based ROMs like crdroid but not AOSP based ROMs [MENTION=7087071]GioBozza[/MENTION]. Also, if not I recommend adding a script that backs up the services... and restores it when pressing uninstall to the app if possible to eliminate dirty flashing. Thanks.:)
[Android Software Development] der_Kief:
see HERE
[Android Software Development] DEVILOPS 007:
Missed that... Thanks! Hopefully that process can become a feature of the app.:fingers-crossed:
[Android Software Development] brunopio:
[MENTION=7087071]GioBozza[/MENTION], nice app. I found it in google play, last here.
[Android Software Development] Subhojit:
I did, still no luck :cyclops:
[Android Software Development] Puddi_Puddin:
Dirty flash your rom and try again. Deoxed is not supported yet.
[Android Software Development] GioBozza:
Are you sure you gave the app root privileges? That error should happen in this situation.
[Android Software Development] onestyle007:
Using this version on deodexed LG G5 stock rom ( fulmics 3.5) it took 2 minutes to patch,nice reboot,and it works perfect. Great work GioBozza,love it :D
[Android Software Development] Miaou63:
When the device boots its OK service is bound. But few minutes later it's unbound. Battery optimization is turned off for wakeblock.

What should I try?
[Android Software Development] jyoti.id:
Im happy now. The new version from the playstore is working flawlessly. Took 3min to patch. Nice work ??
[Android Software Development] GioBozza:
Did the app get an update? Does the problem persist if you reboot your device?
[Android Software Development] Miaou63:
The app definitely was updated. And yes it persists after a reboot!
[Android Software Development] GioBozza:
This is strange, battery optimization shouldn't be a problem, I've always had that on. Do you have any process killer app or aggressive doze setting turned on?

Does it unbind after just a few seconds, minutes or does it take longer?
[Android Software Development] edoardotavecchio:
Has anyone else tested this on Android O dp4 (I'm on Nexus 5x but I think that this makes only a little difference)? For me it doesn't work, I'd like to know if anyone else experienced a positive result.
[Android Software Development] GioBozza:
We tested it on Android O Nexus 6P but couldn't do it on Nexus 5X. What is the error you are encountering?
[Android Software Development] edoardotavecchio:
Infinite framework repackaging. Could a log be helpful?
[Android Software Development] GioBozza:
Yes it could. How long did you wait anyway? It can take a lot of time on some devices/ROMs.
[Android Software Development] oeusr:
It works for me (also Nexus 5x Android O DP4). Took about 20 minutes to install and repackage though. Only issue is using the listed wakelocks to block in the nexus 6p section causes random bootloops. So not all of those are apparently safe to block on android O.
[Android Software Development] GioBozza:
RILJ seems to cause the problem on Android O. Do not block it.
[Android Software Development] oeusr:
ooooh I was going to go through and test each individually from that other thread. Thanks for making it easier on me :D
[Android Software Development] edoardotavecchio:
Started working after some tries.
[Android Software Development] Miaou63:
I'm using naptime and brevent.

It unbinds after 20 minutes
[Android Software Development] SimoIanni:
I'm 99% sure that brevent is unbinding the service
[Android Software Development] jordirpz:
[MENTION=7087071]GioBozza[/MENTION]

hola, have you plans for add others devices? will be fantastic.(oneplus 5 maybe?)

sorry for eta.

thank you.

gracias.
[Android Software Development] SimoIanni:
Theoretically every device is now supported, just download the app from the playstore and start the autopatcher (note that it could take up to 20/30 minutes).

OP5 is already tested and working
[Android Software Development] yung40oz84:
Is there plans to create a backup option to backups the currently blocked wakelocks and times, so that when clean flashing that backup can be restored.
[Android Software Development] GioBozza:
Yes, I also plan to add support for manually removing wakelocks from the list.

I'm still not sure about automatically removing wakelocks called by apps which are uninstalled, would you recommend that?
[Android Software Development] jordirpz:
Hola.

Will be awesome feature.

But he tell about add backup of current wakelocks limited for make a clean rom install and can restore limited wakelocks once reinstall you app.

Thank you and sorry for my english
[Android Software Development] GioBozza:
Of course, my positive reply was about this feature! Also, it should not take long to do this.
[Android Software Development] :
Yes it was brevent.
[Android Software Development] jyoti.id:
I don't know what's the issue, but it worked for me only once! Now after clean install of rom it's not working! Again showing repacking ?
[Android Software Development] GioBozza:
I need a new logcat then.

It could be the system killing the process due to memory usage, but I need more information.
[Android Software Development] yung40oz84:
Yes that would be a great feature actually. And yes, I was referring to backing up all currently blocked wakelocks to restore on a clean ROM flash. That's way you don't have to manually block them all again, u can just restore.
[Android Software Development] Redhawk2000:
I haven't tried it, but wouldn't TB accomplish that feat?
[Android Software Development] GioBozza:
*** UPDATE (v0.1.1) ***

CHANGELOG

Added application automatic backup of previously detected wakelocks

Added support for localization

Removed auto-downloader (now obsolete)
[Android Software Development] Miaou63:
It's working like a charm after a reboot.

Have you already started to work on alarms?
[Android Software Development] ngundu:
One suggestion,

If the core mod is already installed then can you disable the underlying functionality which patches the service files again? So that an accidental click won't patch the system files again. I hope it makes sense?
[Android Software Development] Zacharee1:
Repatching shouldn't cause a problem.
[Android Software Development] Miaou63:
Repatching did not work for me. "invalid framework"
[Android Software Development] Zacharee1:
So there isn't a problem, then.
[Android Software Development] GioBozza:
It is currently not possible. I should think of a way to let the app check if the framework is already modded or not by further modifying the framework. The only way to find out right now is by trying to bind the process on boot.

Anyway, if you run the patcher again, it should just fail, if it is already modified.
[Android Software Development] rignfool:
Why not when it shows a modified framework... Go to the backup... Copy the backup... Modify it... Then replace the existing jar file...

Ya know... Just in case you were to modify something...

Also... If you decide to do this... Can the backup directory label include ROM and ROM build date to avoid confusion?
[Android Software Development] AlemanSantos:
Maybe you can add a check to the app, so it searches the backup files after the first patch? If the app can't find a backup, it patches framework, if backup is found, display a warning message.

One problem could be if someone restores the original file and keep the backup, the app will think is patched. Maybe add a restore option on the app so if anyone wants or need to restore, the app should flash the original file and delete the backup or move it to some other folder in case anything goes wrong.
[Android Software Development] GioBozza:
First of all I really appreciate every advice you give!

This needs to be carefully planned because it's also going to change how the updater will work.

To make things clear: if I update the core-mod (by adding alarms blocking for example), I need to patch the framework again and differently, but the patcher will fail if it's already modded. So it would be easier to replace the modded framework with the latest (?) backup and only then patching it again with the updated app/patcher.

The current idea would be to store the core-mod version and pair it with the current backup (just to be sure to know when an update is available and which backup is the right one). This will also come with automatic backup restoring to make things easier for the user, possibly service rebinding after an app update and other features you ask.

Unfortunately right now I'm in the middle of taking my university degree and so it's hard to find free time, but just as I did with the auto-patcher (which was more difficult to plan), I will do this as soon as possible.
[Android Software Development] Chocklety Boyee:
[MENTION=7087071]GioBozza[/MENTION] i installed your latest apk via over previous version which was working fine ...now the new one gave me error of unsupported framework..i rebooted the device and found the core mod has been installed but it is not showing all the wakelocks that needs to be blocked or that i had blocked before like nlpwakelock ,icing..blah blah ..can you plz elaborate is it the issue or something else..plz...
[Android Software Development] GioBozza:
When you update the app, it is currently normal for the service to unbind. All you have to do is reboot (no need to run the patcher).

Was the version you were running before the update the one downloaded from here or the one from the Play Store? If you update an app downloaded from the Play Store, its data should not be deleted (it should do automatic backups with Google Play Services from now on anyway).
[Android Software Development] Chocklety Boyee:
[MENTION=7087071]GioBozza[/MENTION] i had downloaded the app from playstore before update ..again i updated via play store but ..i uninstalled the previous version then again installed the new one coz i got unsupported framework ..? ..Now my previously blocked wakelocks disappeared ..only few new wakelocks blocking option..what is that plz elaborate ...
[Android Software Development] rignfool:
When all else fails... Reboot to recovery, mount system, open the file manager (twrp or aroma), copy the backed up version of your services.jar or services.odex to /system/framework/ and reboot...

Then repatch

EDIT: and clean up your old backup to alleviate confusion
[Android Software Development] GioBozza:
If you uninstalled the app and then reinstalled it, all its data was lost. This is normal, but from now on there will be automatic backups, so you should be able to uninstall it without losing everything (Google stores backups on Drive).

Always remember that you never need to run the patcher if you don't update or reinstall your ROM. If the app says "Unbound" it probably means that it was updated. A reboot will do the trick to rebind the service.

I'm currently trying to find a way to rebind it on runtime.
[Android Software Development] fossils-n-dents:
Hello GioBozza!

I installed your app, this is what I am getting. Did I do something wrong???

My device is HTC 10, rooted, s-off, ViperRom10, ElementalX kernal running Nougat.
[Android Software Development] rajlulla:
Just tried the automatic patcher on Oreo and my phone started restarting 10 seconds after booting. Nexus 6P, ElementalX kernel. Sorry for no logs, I reflashed stock after 10 reboots
[Android Software Development] GioBozza:
Could you send a logcat to find out the problem?
[Android Software Development] GioBozza:
What wakelocks are you blocking? Blocking RILJ is known to cause problems on Android Oreo.
[Android Software Development] rajlulla:
I didn't get the chance to block any because my phone would reboot before I reach the homescreen
[Android Software Development] GioBozza:
From recovery go into /data/data/com.giovannibozzano.wakeblock/databases and delete all files.

This will clear all wakelocks settings in the app.
[Android Software Development] fossils-n-dents:
There is a zip file attatched to my original post. I will post again.

Thank You in advance.
[Android Software Development] GioBozza:
Sorry, I was browsing with my phone and couldn't see it.

The problem is there is no log about WakeBlock in the logcat you sent. Are you sure you ran the app while logging?
[Android Software Development] fossils-n-dents:
Yes, the app was being logged. Mind you, Wakeblock only ran for about two minutes before I recieved an error.

I will prepare another log. Thanks again.
[Android Software Development] Pvcabr:
Anyone can answer me why we don't have a "Alarm Block" app?

Why is so difficult to have something like Amplify on Nougat without Xposed?

I know that some ROMs have Alarm Blocker but we can't control the interval of the alarms, just block or unblock them.

Why this Amplify feature is not built in the ROMs? Would not it be easier to implement?

My fear is that Android O gonna be even harder to control things like alarms and Wakelocks, this really SUCKSSSSS

OP I really love you dude, if wasn't for you I already had thrown out my phone into the wall
[Android Software Development] rajlulla:
This worked! My phone booted up fine, will try to block some wakelocks and report back later.
[Android Software Development] CappyT:
Alarms are currently scheduled as next point of Wakeblock, then regex and services.

Also, mind that Wakeblock is currently working on O (tested on my Nexus 6P, running 8.0.0 release), so no, Oreo doesn't really affect Wakeblock patches at all.

Don't worry and hold on, we will soon deliver a more complete experience, but we need to first fix some things in the auto patching methodology.
[Android Software Development] troymz1:
Working great on OP5 no limits ROM. Been looking for an app like this. Used to use amplify but not a big fan of xposed. Well done guys thanks a lot. Looking forward to whatever else you have up your sleeves. Will gladly pay for this when you decide is ready.
[Android Software Development] F3ELING1337:
As you are working on the autopatcher is there a possibility to make it somehow systemless (e.g. the autopatcher creating a flashable magisk module) or still provide a method/guide to manually mod the services.odex? Awesome work btw!
[Android Software Development] SimoIanni:
It isn't a prioity because it doesn't trip SafetyNet
[Android Software Development] F3ELING1337:
Oh okay, didn't know that because I was always using my self made magisk module for Wakeblock. But I can understand why it's not priority then :)
[Android Software Development] ramansehra:
After successfully installing wakeblock my phone is not going into deep sleep. I am using greenify (wakeblock is not greenfied) and Naptime,but phone is not sleeping for a minute.

I am using Resurrection Remix 5.8.4 on my moto g4 plus with beans gapps.
[Android Software Development] kessaras:
Sorry that I answer this but as a dev too (and not a very polite one)

Shouldn't be better to say all these with a logcat ?

So what can he do right now that Moto G4 doesn't go into deep sleep ? You will send him your phone or he should go buy one ?

Logcats always ....
[Android Software Development] GioBozza:
Did you install the core mod or just the app? If you installed the core mod too, did you block any wakelock?
[Android Software Development] ramansehra:
Sorry for that but seems like proximity sensor is keeping device awake.

Dump file and logcat file
[Android Software Development] ramansehra:
Yes I installed core mode. I installed some of the wakelocks but they are from guide given in xda forums.

Seems like phone sensors is keeping device awake.
[Android Software Development] bhanuprasad1981:
Please add search wakelock in internet option in application like a button bellow wakelock block button such option was available in amplify was most handy
[Android Software Development] GioBozza:
Could you provide me the list of wakelocks you blocked?

This is already in the list of todo features. I just need to find the time for everything. :fingers-crossed:
[Android Software Development] GioBozza:
Don't worry, I'm glad you found out the real issue.
[Android Software Development] THERAJ12:
Wakeblock has been stuck in patching system framework for 50 minutes after I flashed latest 7.12 factory image. I wiped cache deleted folders reinstalled rebooted ran again no luck...Any thoughts? Was working perfect before on all ROMs
[Android Software Development] ipredatorv:
Hi everyone, I'd love to join your struggle in fighting wakelocks.

My culprits are netlink, qcom rx and timerfd. Using EX Kernel Manager I can eliminate the latter two, but not NETLINK.

I'll try this app and report back.

Edit: Ran the patcher, rebootet to recovery, saw it installing something, then bootet back to system, opened the app. After 10 seconds of glancing at current wakelocks, the phone rebootet randomly, and continued to do so in a boot loop. A dirty flash fixed it though, I u installed the app again.
[Android Software Development] Lughnasadh:
If your device supports Franco or Jolla kernels, they both can block NETLINK while using EX Kernel Manager.
[Android Software Development] ramansehra:
Same is happening with me.
[Android Software Development] THERAJ12:
I was able to get it to work by reflashing the ROM gapps and magisk....and then reinstall wakeblock. Some other. Mod must have been interfering.
[Android Software Development] L22EEW:
Any OP5 / OnePlus 5 users who have tried this - any noticeable differences?

---------- Post added at 03:01 PM ---------- Previous post was at 02:10 PM ----------

Which have you blocked? Just curious, as I have a OP5 too. (with thex Xx NoLimits ROM + Boeffla kernel)

Cheers
[Android Software Development] Pvcabr:
One thing I notice is that wakeblock don't work after I dirty flashed a ROM Update.

My idle was about 0,40-0,50%/hr before the dirty flash. After went up to about 2,50%/hr. I knew that it wasn't the ROM cause this had happened every time I dirty flashed for ROM Update.

I discover this just entering in Wakeblock and then unblocking and blocking with the same values all the blocked ones. After that I just let my phone rest in idle for about 30 minutes then I turn on and the idle drain was gone.

Idle was back to 0.50%/hr again.

I don't know if this is a known issue but that solved the problem for me. I was almost doing a clean flash on my phone before trying this.

Enviado de meu MI 5s usando Tapatalk
[Android Software Development] GioBozza:
What is your current ROM and device? Can you provide a logcat taken while the process is running?
[Android Software Development] GioBozza:
Dirty falshing a ROM should override WakeBlock's core mod and you will need to install it again. If you don't, the wakelocks will be acquired as normal. Did you install it again after updating?

Unblocking and blocking again shouldn't really make any difference, as they are basically stored values checked to know whether a wakelock has to be blocked or not.
[Android Software Development] Pvcabr:
Oh, I didn't know that.

No, I didn't install again. I just opened Wakeblock and unblocked and Blocked again and work.

The core mode and service bound appears to be ok in the app.

Since I just had to flash the room again I'll unblock and block the wakelocks and see if works again as I said.
[Android Software Development] dnsh89:
Oreo

Anyone got this working on Android OREO?

I tried it, it kept repacking the framework for more than 30mins.. any clue what I did wrong..
[Android Software Development] CappyT:
Running oreo here, no issues, I don't remember how long it took tho. But my suggestion is to keep it running
[Android Software Development] dhanual:
how to make this work on deodexed rom. I am using nitrogen os 7.1.2
[Android Software Development] kessaras:
What do you mean how?

I installed in both g4 and op3t. The 1st is odexed and the 2nd deodexed.

Simply tap install and it will do it's magic
[Android Software Development] yung40oz84:
Will the template be updated for Android O or a separate branch for that? There are some changes there and not sure where to put some lines... Thanks
[Android Software Development] dnsh89:
What all can be blocked without any force closing?
[Android Software Development] CappyT:
Manual smali patching/java templates to integrate in the roms will be updated to oreo sooner or later, but right now automatic patching works just fine.

See attached screenshot. Running this without any problems.
[Android Software Development] Vuska:
It's not compatible yet with Samsung Note 4 N910G with N7 port ?

I cannot download it from google play.. it say not compatible
[Android Software Development] edzamber:
[MENTION=7087071]GioBozza[/MENTION] ,

Can you share a guide with exact change to do into PackageManagerService.smali and into PowerManagerService.smali because i compare Template with my original smalis to mod services.jar manually and there are too much things differents. So i don't understand witch edits add or not.

Automatic patch don't working on my S6 Edge g925F, it unpack Framework but stuck on repack.

Many thanks !
[Android Software Development] SimoIanni:
Try this
[Android Software Development] L22EEW:
Thanks, I'll also be giving this a try and see how I get on with it.