yashsingh1/xdaforums huggingface dataset:
[Android Software Development] bielie:
[MENTION=7087071]GioBozza[/MENTION] : Thank you. Xiaomi 4C RR 5.8.3
[Android Software Development] Lughnasadh:
Thank you very much for the answer. Awesome job!!! :cool::cool::cool:
[Android Software Development] Geezerooo:
Nevermind
[Android Software Development] rajlulla:
I've been stuck on repackaging system framework for ~15 mins now. Running Android O DP4 on Nexus 6P. Is this a problem?
[Android Software Development] GioBozza:
It should work on Android O too, but it may take some time to repackage. If it's still running it means it's fine. It's not a problem if you need to interrupt it though; the file is flashed only in the end and everything is temporary until that moment.
[Android Software Development] rajlulla:
Does it work on odexed ROMs?
[Android Software Development] Chocklety Boyee:
Yes...

---------- Post added at 04:53 AM ---------- Previous post was at 04:52 AM ----------

Guys what are the wakelocks that are healthy to block...i block almost all detected by the app and now my android force closes and soft reboot every 2-3 minutes ..plz help me...
[Android Software Development] Face_Plant:
Check out the first post of this thread. It has a list of wakelocks that are safe to limit/block:

https://xdaforums.com/nexus-6p/general/taking-wakeblock-requests-t3583397

Blocking everything is a surefire way to **** up your phone. If you don't know what a specific wakelock is for, Google it. If it sounds important after researching it, then leave it alone. Some are vital to the functioning of your phone and blocking it will cause issues like freezes, reboots, or even bricks.
[Android Software Development] Chocklety Boyee:
Thanks [MENTION=5788953]Face_Plant[/MENTION]..
[Android Software Development] contactwajeeh:
Hi Zacharee I am at +91-9700167632
[Android Software Development] amerino1:
Thank You for yours apks!!!!thank you for our work
[Android Software Development] GioBozza:
*** UPDATE [DEODEXED ROMS] ***

The auto-patcher should now be working on deodexed ROMs too.

If this is confirmed by enough people I will ask to move this thread to the Android Software Development section.
[Android Software Development] Geezerooo:
Working great bud!
[Android Software Development] erk1725:
Cant seem to get it to install on Desolation Rom on nexus 6....says Root Needed
[Android Software Development] Face_Plant:
The auto patcher worked great on Pure Nexus!
[Android Software Development] kamilmirza:
service bound :good:

RR 5.8.4 OnePlus 3T
[Android Software Development] oeusr:
I'm on O DP4 and gave it a go. Installed. After the reboot it would get into android for 10-20 seconds then constantly reboot. Was out and about so I'll try to get a log later
[Android Software Development] GioBozza:
Thank you, a log would be really helpful on Android O. I got it working on your same version but it was blind testing as it wasn't a device of mine and I haven't got the source code to compare.
[Android Software Development] GioBozza:
Does trying again fix the problem (most importantly if it wasn't the latest version of the app)?

If not, can you check the content of /data/data/com.giovannibozzano.wakeblock/files/patcher/ and list it here?
[Android Software Development] bielie:
[MENTION=7087071]GioBozza[/MENTION] could you help me ? Error while patching. GT I9152 RR 5.8.4
[Android Software Development] bluesboy76:
On Pure Nexus (for Zuk Z1) says that Root is needed.

Inviato dal mio ZUK Z1 utilizzando Tapatalk
[Android Software Development] GioBozza:
it seems you are encountering an error while extracting. Could you send me a logcat with the error?

Could you list the files you currently have in /data/data/com.giovannibozzano.wakeblock/files/patcher/ ?
[Android Software Development] bluesboy76:
Here is the content of patcher folder.

Inviato dal mio ZUK Z1 utilizzando Tapatalk
[Android Software Development] GioBozza:
Could you try again with the latest version of the app (going live on Google Play soon)?

If it still gives an error, could you send me a detailed logcat?

Thank you for your help in discovering the problem! :D
[Android Software Development] Ikzy:
I had the same thing on my Sony Xcompact. When I entered my recovery to restore a backup it installed something automatic, and after rebooting it started working! Very much looking forward to the development of this app!
[Android Software Development] der_Kief:
Auto-Patcher (Extracting System Framework...) is runnig ..... for ages

How long does this take normally ?

Newest version from play store ... root by magisk

BQ Aquaris X5 Plus with stock nougat ROM
[Android Software Development] GioBozza:
It depends on a lot of things: on my OnePlus 3T (Snapdragon 821, OxygenOS kernel) it takes about 11 minutes to complete the whole process. On the Nexus 6P it takes much less despite having a less powerful CPU.

How long is your process taking? Do you have a /data/data/com.giovannibozzano.wakeblock/files/patcher/services folder? The extraction phase should fill that folder. If not, could I get a logcat?

I recently reduced the maximum RAM usage to allow lower end devices to complete the process, but it may slow down faster ones. If that is the problem, I will need to check available memory and allocate the right amount based on that.
[Android Software Development] der_Kief:
[MENTION=7087071]GioBozza[/MENTION]

OK .... maybe i was a bit to eager :)

For now its about 5min ago when i started patching but till now that services folder does not exist.

Should this folder immediately appear after patching is started ?
[Android Software Development] GioBozza:
Almost immediately, yes. You can check if it is running by executing "top -m 5" with root privileges in a terminal app. If dalvikvm is in the top processes if means everything is going as it should.

Also, are baksmali-dvk.jar and smali-dvk.jar in the files folder?
[Android Software Development] der_Kief:
[MENTION=7087071]GioBozza[/MENTION]

Ok ... it seem it doesnt work for me as there is no dalvikvm process in that list.

The files baksmali-dvk.jar and smali-dvk.jar are there.

What kind of log do you need ? I have syslog app and can choose between kernel log, main log, event log, modem log and audit.log.
[Android Software Development] GioBozza:
Main log.
[Android Software Development] der_Kief:
[MENTION=7087071]GioBozza[/MENTION]

here you are...hopefully that log is sufficient. I started patching process waited about 2min and than killed that.
[Android Software Development] jyoti.id:
Same thing happening for me. No dalivik in terminal after executing that commend! Im using LOS G4+ 7.1.2
[Android Software Development] GioBozza:
By trying to fix another problem I messed up with part of the initial process: could you confirm this apk (see attachment) is doing the job before I update the Google Play version (I feel kinda bad for all those people who already installed it and have to reboot everytime the app gets updated :laugh:)?
[Android Software Development] Lughnasadh:
Hi [MENTION=7087071]GioBozza[/MENTION] . I'm using a rom which has had the core module built into it before the recent updates of your app. I've been using the latest version of the app with no problem and everything is working fine. However, when I check for updated versions of the core module I get the screenshot below. What can I do to rectify this? Thanks for your help.
[Android Software Development] Chocklety Boyee:
Same issue here ...waited for around half and hour and i wqs like wtf...the previous version worked fine for me..i was on deodexed ResurectionRemix..
[Android Software Development] GioBozza:
Short answer: You can just ignore that by now. :p

This is normal. I previously supported stock Nexus 6P ROM by manually creating modded frameworks for every version (the app is checking this file https://github.com/GiovanniBozzano/wakeblock/blob/master/builds.json). Your ROM is a custom one and, by the way, I do not bother to create core mods manually since the automatic patcher was implemented, so this feature is eventually going to be removed.

I should have fixed that in the new version. I'm just waiting to have it confirmed so that I can release it on Google Play.

You can test this to check if it is fixed: https://xdaforums.com/attachment.php?attachmentid=4243332&d=1502889411
[Android Software Development] Lughnasadh:
Thank you very much for the answer. So I assume there will be no problems in the future if I just leave the core module in the rom build (yes, I am using a personal rom build) or would it be advisable to take it out? Or more likely it doesn't matter?

And btw, your work is hugely appreciated. What you have done with this is absolutely fantastic! :cool::cool:
[Android Software Development] jyoti.id:
Nope, it's showing "Root needed" notification like it has in previous non-deodexed ver
[Android Software Development] GioBozza:
No problem at all if the core mod is already included in the ROM at compile time! It is even better because there is no need to run the auto-patcher to install it.

And allow me to take this opportunity to thank the people who are supporting me by implementing WakeBlock in their ROM, it means a lot to me!
[Android Software Development] Lughnasadh:
Thank you sir!
[Android Software Development] GioBozza:
Mmh, could you send me a new logcat taken with the debug apk? You can get it with the app SysLog (main log) or manually by running "logcat > /sdcard/logcat.log" in a terminal app with root privileges.
[Android Software Development] jyoti.id:
I use matlog, Just a simple log while trying to patch would be ok? Though i can use the app u are saying!
[Android Software Development] der_Kief:
same here .... log attached
[Android Software Development] jyoti.id:
Ow! That was fast ? thanks for tge log ?
[Android Software Development] GioBozza:
Yep, it's totally fine. You should fine some INFO logs describing what the process is doing.

The "root needed" error is due to some command failing in some deodexed ROMs and I'm trying to find out which one it is and why.
[Android Software Development] Ikzy:
Is there a way to uninstall the patch?
[Android Software Development] Chocklety Boyee:
[MENTION=7087071]GioBozza[/MENTION] Look i got this issue now..?? Previous version worked without issue..Plz fix it..Can you provide me the previous version link..thank you...
[Android Software Development] GioBozza:
Right now you have to go into recovery and copy the backup found in /sdcard/framework/WakeBlock/Backups/[DATE]/ into:

/system/framework/ (if deodexed rom (if the backup is a services.jar))

/system/framework/oat/arm/ (if the device is arm)

/system/framework/oat/arm64/ (if the device is arm64)
[Android Software Development] CappyT:
Yes, just flash the /system or restore one of the automatic backups in /sdcard/Wakeblock/Backups

You should put your services.jar into /system/framework

OR

You should put your services.odex into /system/framework/oat/arm64 ((NOTE that arm64 or arm depends on the architecture of your device))
[Android Software Development] GioBozza:
Just reboot your device. The core mod is most probably already installed and an app update unbinded the process.

When the app gets updated, the process (which has to bind to the system framework during boot) gets killed.
[Android Software Development] GioBozza:
Well, this wasn't my fault after all! :laugh:

We've got an out of memory error. I will try to find out if it's the process which needs more RAM or the system which goes out of memory and kills the process.
[Android Software Development] pipnmike:
I'm on Pure Nexus. I had previously flashed the install script to have Wakeblock work. I updated the app and then rebooted into recovery to flash the uninstall script. After rebooting, I'm good to go. So i think the auto patcher is working correctly. Thanks!
[Android Software Development] CappyT:
Thanks for reporting bud!
[Android Software Development] Chocklety Boyee:
Thanks ..reboot solved my issue ..lol..One last question..Can i use both wakelock blocker app..Yours wakeblock app and the one that comes with some roms like resurrection?? Ryt now i am using both ..
[Android Software Development] CappyT:
If you already have a wakeblocking solution, you should not have 2. I suggest you to use whichever you prefer, but using two solutions it may mess up with your wakelocks...
[Android Software Development] jyoti.id:
Here's the log.

What i did, Opened the Matlog, minimized it, opened Wakeblock, Tried to patch, motification showed, then opend the minimized Matlog, paused the log & sent it [emoji28]http://cloud.tapatalk.com/s/599454419edde/2017-08-16-19-38-33.txt
[Android Software Development] JonasVFC:
check this out https://xdaforums.com/android/general/guide-extreme-battery-life-t3095884
[Android Software Development] DEVILOPS 007:
Hopefully the d odexed rom support is going well. I would be happy to test a beta version for you guys if you want and I can give feedback.
[Android Software Development] DEVILOPS 007:
How's it going with deodexed roms? Hopefully everything goes is going well.
[Android Software Development] Clienterror:
Thanks for posting this, but you relealize Xposed doesn't work for Android 7.0+ right? So the only thing that works is basically Greenify from that post.....Unless you never upgraded from Marshmallow at least.
[Android Software Development] SimoIanni:
WakeBlock(the topic this thread is about) is a service that can block or limit wakelocks WITHOUT Xposed so we can follow the relative part on that guide.
[Android Software Development] JonasVFC:
this app completely replaces xposed+amplify
[Android Software Development] frap129:
Cool to see this! [MENTION=7087071]GioBozza[/MENTION] Would it be possible for you to make a commit for the changes on top of a stock android repo? You mention that the flashable zip only works on stock/odexed roms, but if a custom rom were to include the necessary changes by default, users could simply install the app to use it. No pressure, just thought it would be cool. I'd definitely try to get it into Carbon ;)
[Android Software Development] GioBozza:
It's a good idea and I'll definitely take it into consideration.

I'm currently a little bit delayed with the developing due to university exams and especially because I dropped my Nexus 6 last week and I can't continue testing without it, but I'll be back very soon.
[Android Software Development] brbbX:
Hi, just installed today.

I was just wondering why did you make it block in miliseconds, instead of seconds?

IMO it would make more sense like in Amplify to have it in seconds, since I don't see any use in being that precise about wakelock frequencies.

Thank you for the great work! :)
[Android Software Development] SimoIanni:
I thought the same thing, the ideal would be to have a selector to choose from mS, S, M and H.

As soon as the dev will have his new phone I'll remember him.
[Android Software Development] Sharelwine:
Whoa, I'm excited as hell. This mod looks promising as an amplify contender.

Since Nougat has no X-posed support, I had to ditch amplify and I greatly miss the wakelock blocking options it provided. I hope you'll make the systemless version of your mod.

Great work!

Edit: Actually, after testing it - it does not trigger SafetyNet, and bypasses it.

¯\_(ツ)_/¯
[Android Software Development] Clienterror:
I never said anything about this app. The link provided is ways to save battery mostly pertaining to Xposed modules that which I stated don't work with 7.0+. This app works great on 7.0+.
[Android Software Development] DEVILOPS 007:
Any updates on deodexed rom support?
[Android Software Development] treesurf:
Does this work on non-stock ROMs like Pure Nexus?
[Android Software Development] SimoIanni:
If the rom is odexed it should but we haven't tested it yet.

To se if it's odexed the "/system/framework/oat/arm64" dir should exists

Let us know if you try and if it works.
[Android Software Development] GioBozza:
It currently works if the ROM is odexed. You can check this by looking for /system/framework/oat/arm64/services.odex.

If it's there, you should be good to go.
[Android Software Development] DEVILOPS 007:
Any idea when it will work on deodexed roms?
[Android Software Development] GioBozza:
As I said earlier, right now I'm delayed by university exams and other things, but I'll resume working on it as soon as I can.
[Android Software Development] DEVILOPS 007:
Oh okay, sorry
[Android Software Development] treesurf:
Thanks for the replies! I installed PureNexus ROM and checked, but there are no other directories inside of /system/framework, so I'm out of luck for now.

Will keep an eye on future updates, whenever the dev has time.
[Android Software Development] GioBozza:
I can't remember if RR's wakelock blocker detects kernel wakelock (like wlan_rx (most probably)) or partial ones (like WakeBlock does). In any case there shouldn't be any conflict by using both of them.
[Android Software Development] GioBozza:
Same as above. I'm trying to find a solution to this.
[Android Software Development] GioBozza:
[MENTION=6928666]jyoti.id[/MENTION] [MENTION=5929147]der_Kief[/MENTION]

Please try this attached version. I'm trying to do some memory freeing before starting the process as I found out it is the system which is going out of memory.

If does not work, could you send a new logcat?
[Android Software Development] der_Kief:
doesnt seem to work. autopatching again lasts forever. but this time services folder is created.

Log attached.
[Android Software Development] GioBozza:
How much time did you wait since the "Repackaging" message came up?

The process wasn't killed (you can check for "dalvikvm" with "top -m 5") and it was probably just taking a while (remember that you are basically compiling a part of your ROM on your own device :p).
[Android Software Development] der_Kief:
first try was about 15min before i aborted. i check processes and there was no dalvikvm. Should dalvikvm process run all the time till patching is finished ?
[Android Software Development] jyoti.id:
Same ?
[Android Software Development] GioBozza:
I would need a logcat with the version I'm attaching here: I added a log for every executed command to get to the bottom of this.
[Android Software Development] EinsteinXXL:
Not working with Oneplus 3T and OxygenOS Beta12. App show unsupported framework!
[Android Software Development] GioBozza:
If you already installed it, reboot and it will be bound.

When the app gets updated, the process (which has to bind to the system framework during boot) gets killed.
[Android Software Development] jyoti.id:
Here it is!http://cloud.tapatalk.com/s/59947cee8bb94/2017-08-16-22-42-22.txt
[Android Software Development] EinsteinXXL:
I have already done a reboot several times but service is not working.

By the way, I have deodexed the services.jar and patched it with nanomod 13 Beta 3 (adding signature spoofing) before.
[Android Software Development] GioBozza:
Sorry for the trouble: could you take another one with this version and while waiting around 15 minutes before killing it? :rolleyes:
[Android Software Development] jyoti.id:
:laugh: no problem. It's a piece of cake :p
[Android Software Development] GioBozza:
You can try and check the app permissions (which appear to be missing by reading the log), but the error is probably caused by NanoMod, which I don't think is compatible with WakeBlock.

I don't know what it does exactly, but I own the same device you do with the same ROM and same version, so that's the only difference we have.

I'm going to check if I can do something about this, but I can't guarantee you that I will succeed.
[Android Software Development] jyoti.id:
Here it is, iv waited 3min extra to be more asure [emoji23][emoji28][emoji12]http://cloud.tapatalk.com/s/5994853a14ad4/15minwait.txt
[Android Software Development] GioBozza:
This is starting to get on my nerves :/

There is literally no life sign after the process has started and no way for me to tell why it has stopped. May I ask you some screenshots with the list of ongoing processes listed by "top" (without "-m 5") while repackaging?

Also, when you kill the app after about 10/15 minutes, is there a file named classes.dex in /data/data/com.giovannibozzano.wakeblock/files/patcher/ ?
[Android Software Development] jyoti.id:
These are the ss! Though i killed it a while ago! Does that make any change?

& I cant get you what you said about the "top". A little noob about all these codes/comments & all that. Please explain if possible ?
[Android Software Development] GioBozza:
All those files are normal, they are the files you would find before repackaging and cleaning. You can execute it with a terminal app like JuiceSSH with root privileges (type "su" and then "top"). It will show a list of processes, just take screenshots of them so we can hopefully find out what is going on.
[Android Software Development] jyoti.id:
I have to do it for 15 min?
[Android Software Development] GioBozza:
Nope, it's fine also if it has just started!
[Android Software Development] jyoti.id:
I took 6 ?
[Android Software Development] GioBozza:
Umh, take another one with "top -m 10"...
[Android Software Development] GioBozza:
Take a look at the first process name: dalvikvm

The process is running! Let it go until it is over, it can take a lot of time as it is doing a heavy computational job. You can keep an eye on it with "top", the CPU% column shows what is using the CPU and as you can immagine the device could be a bit laggy while it's repackaging.
[Android Software Development] jyoti.id:
? It means it can take 1 or 2 hours also?
[Android Software Development] GioBozza:
That could be a bit too much. It took 11 minutes on a OnePlus 3T and it could take more on other devices, but if you see dalvikvm in top list it means it's running and it will eventually stop.
[Android Software Development] jyoti.id:
Should i let it run over night while im sleeping?? Im feeling a bit sleepy now. ? I mean does this need any special thing to do?
[Android Software Development] GioBozza:
There's no interaction to do, so you can let it run whenever you want.
[Android Software Development] jyoti.id:
Ok. Thank you. ?

& If possible make the time shorter & also make a auto backup script so that it auto patches on every flash of update of rom! If possible ?
[Android Software Development] bielie:
[MENTION=7087071]GioBozza[/MENTION]

Im using GT I9152 with RR 5.8.4.

First time im install i got message needed root. You told me to send logcat.

Im just full unroot becouse i know myrom build with systemless root. Install lineage extra root.

Only 10minutes for all process, reboot into twrp nd boot normal.

Now im running wakelock from your hard work.

How to reset all "unblock" option/menu ? :laugh:

Thanks.

Noted : With same devices I9152 RR 5.7.4 M 6.0.1 i see is'nt compatible devices at g.play.
[Android Software Development] pioccd:
Thanks for your feedback!
[Android Software Development] GioBozza:
Right now there is no shortcut or quick setting, I left all those things to be done after the main feature, the automatic patcher. :)

Android M is not supported (at the moment), at least not officially. You can try to mod it anyway by installing the app manually, but it will most probably not work.
[Android Software Development] Subhojit:
Nexus 6P running 7.1.2 RR is showing as incompatible.
[Android Software Development] jyoti.id:
I left that as it was working whole night (almost 6hours) still no success! ?

Here is an ss of that commend while repackaging after 4hours!
[Android Software Development] bluesboy76:
Installed new build on Pure Nexus and this time worked! Whole process took about only 3/4 minutes. Thanks for the great work!

Inviato dal mio ZUK Z1 utilizzando Tapatalk
[Android Software Development] Miaou63:
Working fine here on onyx aosp extended!

Thanks
[Android Software Development] der_Kief:
same here .... no dalvikvm process running when checked with top.

*Update*

i gave it another try and this time it worked :victory:

The whole process took about 3min and after the reboot it was sucessfully installed.

I used the apk form HERE
[Android Software Development] Puddi_Puddin:
Reboot your phone. This happends after a update.