yashsingh1/xdaforums huggingface dataset:
[Android Software Development] CappyT:
Android Version? Screen resolution?

This details should help diagnose why you're seeing a not compatible message.

Smali patches are deprecated, we will distribute only java files or automatic patching. You're seeing your phone stuck on repack because it takes a really long time to repack large frameworks (Samsung's one of them).

Take in mind that you're basically recompiling a part of your system on the processor of your phone! It can easily take from 10 min to 1h, do not interrupt it, because it cannot screw your phone. If the compilation goes bad, the phone is safe, because wakeblock does not flash the file.
[Android Software Development] Vuska:
My N910G is Android 6.0.1

Ahhh.. or is it not work with 6.0.1 ?

It is only for Android 7 and up ?
[Android Software Development] bielie:
I has try on many rom M, RR Xenon AICP at 3 diffrent devices. Not working. Only work with N.
[Android Software Development] abraden80:
What is your block duration on each?

---------- Post added at 05:32 AM ---------- Previous post was at 05:31 AM ----------

Anybody have a list of wakelocks to block on aosp nougat?
[Android Software Development] fkfmfz:
one was posted in the op with the requests

---------- Post added at 11:43 AM ---------- Previous post was at 11:42 AM ----------

i can confirm the app patches six oreo and services are bound and working.... it did take about 45 minutes for repacking but it works
[Android Software Development] CappyT:
Refer to the 3rd section of this thread: https://xdaforums.com/nexus-6p/general/guide-set-forget-setup-easy-update-t3560052

Be careful that some wakelocks do not like to being blocked on Oreo (Eg: RILJ, which is know for bootlooping on 8.0.0)
[Android Software Development] hochoch:
I installed on my Pixel running Pure Nexus and can't get it to work. I click the button to install the core mod, it does it's thing for maybe 1-2 minutes, then reboots me into TWRP. Then nothing happens after i password decrypt. I looked in a few folders and didn't find any zip files. So, i reboot back into system and nothing has intstalled/been modified.

I can provide logs if need be.....thanks!
[Android Software Development] bluedog220:
Hey guys ...I'm installing the core mod at the moment but it's it's been repackaging for well over 1 hour ..is this normal? I'm on PA rom nougat 7.1
[Android Software Development] otonieru:
am trying it on Meizu Pro 7 - Flyme 6 stock and S8 - Renovate 3.0

both already running the repack process for like 1 hour,

i dont mind waiting,

but i think there should be a like of percentage bar so at least user can know that the process is actually working

this way, we wont even know, whether it will work or not. LoL

also, is this already work with deodexed ROM ? since both of my ROM r deodexed

Edit :

dalvik vm process will always stop after few minutes of doing it process. not sure why

What file i supposed to find in /files/patcher folder to know whether its work ?
[Android Software Development] DallasBelt:
Hello! I couldn't make it work. TWRP showed error 255. Maybe my device is not compatible. I copied the log, hope it's useful. Thanks!
[Android Software Development] DEVILOPS 007:
Congrats on this to everyone involved with wakeblock development!

https://www.xda-developers.com/wakeblock-android-amplify-wakelocks/
[Android Software Development] ichbinich:
After installing the app and tapping INSTALL CORE MOD it runs about 2 hours but didn't finish @ Samsung S7 Stock

Anyone the same problem?
[Android Software Development] kssxs:
**DELETED** sorry, didn't go far enough in before asking...
[Android Software Development] Ketsueki_Takayanagi:
Tried running this on TMobile Note 5 running Khongloi v11 S8 port ROM and after nearly 3 hours of it doing it's thing I gave up =/
[Android Software Development] krogoth:
Same here on S7 with S8 ROM.
[Android Software Development] MRDOCA:
Same for me on s7 with s8 port
[Android Software Development] phantom146:
[MENTION=7087071]GioBozza[/MENTION], I can't seem to update wakeblock.. Im still running the first version but cant install the second version because playstore doesnt show the update version :(
[Android Software Development] ling_c:
Not working on S7 Edge

I left it to run overnight but it was still repackaging... My device is Samsung Galaxy S7 Edge (SM-G935FD) with rooted stock Android 7.0 (CSC=BTU) with 1 July Security Patch level. Any guidance would be awesome!
[Android Software Development] skr1107:
Works great on all GSR (ground zero ROMs). On Validus right now. Great job bud. If you want the perfect mobile gaming experience, we recommend you download game booster 4x pro apk
[Android Software Development] Sh0X31:
Do it's work on Stock Pixel with August 2017(of course with root)?
[Android Software Development] edzamber:
Same here on S6 Edge G925F
[Android Software Development] mustache:
Is there some option for quick uninstalling for what its worth?
[Android Software Development] Kimbo82:
Yes, works for me. Takes some time the first time though.

Sent using Tapatalk
[Android Software Development] GioBozza:
OpenRecoveryScript seems to be failing somehow. I'm actually not sure why, but you can flash the .zip found in /data/data/com.giovannibozzano.wakeblock/files/flash.zip

It appears that sometimes the repackaging process (the one that recompiles your system framework) gets killed by the OS. I am still trying to find a way to avoid this.

You can find out if the process is still running by executing "su" and "top -m 5" in a terminal app and by checking if the first process (name on the right column) is dalvikvm.
[Android Software Development] koekoek91:
This seems promising :)

However I'm not able to get it to work.

It says unsupported framework.

When I tried it last night it did seemed to work though because it took a few minutes after clicking the core button, and then my phone rebooted into TWRP and flashed something and rebooted again.

I would like to add a log but I'm not sure how to do it with syslog.

Can anyone help me in the right direction on taking a log, or explain why I might be getting the unsupported framework error?

My device is Sony Xperia XZ F8331 running Duality ROM and kernel, Android 7.1.1.
[Android Software Development] GioBozza:
I guess you have a test version which was not from Google Play. You should try to uninstall and reinstall it from Google Play.

If you really need to save the wakelocks data (older versions did not have backups), you can backup /data/data/com.giovannibozzano.wakeblock/databases
[Android Software Development] GioBozza:
Does the app show "Service Bound" if you reboot your device?

If something got flashed then the process should have terminated correctly and WakeBlock should already be installed.
[Android Software Development] DEVILOPS 007:
This...or dirty flash your rom

https://xdaforums.com/android/software/wakeblock-blocking-drain-late-t3526313/post73422995
[Android Software Development] koekoek91:
Ahh thanks for the quick reply :)

Rebooted my phone again and now it shows service bound and coremod already installed.

Thanks for the mod and hope to see more features in the future.

Keep up the good work:good:
[Android Software Development] GioBozza:
Thank you for the support!
[Android Software Development] phantom146:
Now unsupported framework comes up lol :( I'm at Nexus6p android O which worked fine before... scratching my head over here
[Android Software Development] GioBozza:
The core mod is already installed, all you have to do is reboot your device and the app service will bind.
[Android Software Development] phantom146:
you stand corrected. However, even going through /data/data/com,giobozza.wakeblock and using previous /database does not provide any backup of the wakelocks, or I just might have messed up something.
[Android Software Development] GioBozza:
You may have to reboot again after replacing the database with the old one. If it still does not work I'm afraid it could be a version too old to backup the saved data.
[Android Software Development] mustache:
Couldn't find any of these. What should I do then?
[Android Software Development] FaulFels:
As stated: dirty flash your rom.
[Android Software Development] mustache:
Ok, thanks.[emoji24]
[Android Software Development] CappyT:
To everyone with problems in repackaging, i noticed you all use samsung stock or stock based roms. Try allow wakeblock to bypass battery usage in settings > battery menu

Also, could be some kind of protection that samsung applies to applications, that maybe limits performance/processor to specific applications. Try disable those modes if they exist. Also, try to do the patching while charging, could help.
[Android Software Development] hochoch:
Thanks for your reply. I tried re-running the install, which only takes maybe 1-2 minutes, so i'm not sure that it's doing what it needs to. it then boots into TWRP, i manually flashed the zip file with no errors. i boot back up, it says not installed. i rebooted and still not installed. maybe something to do with the pixel's dual boot slots? let me know if there's anything i can do to help make it work.
[Android Software Development] otonieru:
Aint helping in my case,

Its in doze whitelist and am doing it while charging,

dalvikvm process still killed or dissapear by itself in few minutes,

I monitoring it by showing cpu usage from dev options,

In the beginning cpu will have high load unpacking and repackage, but will drop to idle after few mins,

Screen stay on though, since wakeblock has permission to keep phone awake,

i think the problem is that dalvikvm process itself is run outside of wakeblock,

And am not sure how to whitelist that process
[Android Software Development] :
i'm trying to install the mod on a Sony Xperia Z5 Compact stock rom (wich should be aosp)

the problem is that i waited for 5 hours of installation and it still didn't finish...

so i tried again and same thing... it just locks up

the cpu gets warm and the battery drains during the installation like something is happening

What can i do to fix?
[Android Software Development] LiNe1771:
Will Samsung Galaxy s7 users be able to use it in future? Doesn't work on it. Tried in deodex rom, i got the "deodex rom" error.. I tried in odex rom i got "arm64 device" error..
[Android Software Development] CappyT:
As said in first post, without logcat we can't help you guys! Post logcats so we are able to see what is happening.
[Android Software Development] LiNe1771:
What's the point of logcat when the app shows red signal with 'deodex rom' or 'arm64 device' it means it doesn't work on this phone.

Enviado do meu SM-G930F através de Tapatalk
[Android Software Development] crixley:
So it's working for ~25% of users or so?
[Android Software Development] CappyT:
arm64 phones are supported and also deodexed roms. Have you installed the core mod? Because a red signal is normal when the core mod is not installed!

More like 75%. The few reports we have are from samsung (which is for some reason killing the process of repackaging) and some spots of other phones. It works without problems on most phones. We're working to provide a temporary solution for those who can't install the core mod because of that.
[Android Software Development] LiNe1771:
Let me try, yesterday i tested and no success.. 28 min repacking and nothing..
[Android Software Development] CappyT:
Samsung may have problems with it, as reported by other users. Try rebooting first then proceed to install core mod.

No guarantee btw, as Samsung seem to have some kind of protection.
[Android Software Development] LiNe1771:
There's any other way? I mean, you guys have a github to include in roms, it's possible to do it manually instead of using the apk in the rom i'm using right now?
[Android Software Development] CappyT:
If you can, you may want to compile it into the rom, in which case, yes, you can do so from our github, downloading the classes and merging them with your rom's code, then compiling it. We're working on a Windows patcher right now, to allow the phone to be connected to your pc and patched this way, as pcs have much more cpu power then phone and easily cut 20x the time required for recompilation.
[Android Software Development] meow4agc:
Installed it today on a Nexus 6P running Oreo. Repackaging took a good 20 minutes. After that the phone rebooted to TWRP and installed the zip.

The app seems to be running fine now. I'm going to test it out tomorrow.
[Android Software Development] PlutoDelic:
Waited around 20 minutes for the repackaging to finish, dont think it is though. (HTC M9 on Nougat, deodexed).

Really looking forward to this one.
[Android Software Development] :
Where can i get the logcat?
[Android Software Development] CappyT:
As the security patch of february the mod is broken, we're currently try to fix it.
[Android Software Development] CappyT:
Hotfix release for february patch:

https://mega.nz/#!KlVyiKjb!FK_OPpxBCbaauIz7IaTe1u4DiP3gbC2Q1Ay5pLtQO28

Just flash as normally would, should work without issues.

DOES NOT trips SafetyNet
[Android Software Development] DEVILOPS 007:
Does this patch or anything work with deodexed roms or is this simply just a fix and deodexed roms are still unsupported? Thanks
[Android Software Development] CappyT:
Still unsupported, but i'm trying supporting non-odex as well, what is your current rom?
[Android Software Development] DEVILOPS 007:
I'm on Chad's uber currently with flash kernel. Here's the link to the rom. Thanks a lot!

https://temp.bbqdroid.org/
[Android Software Development] CappyT:
Ok, I talked to the mail dev, [MENTION=7087071]GioBozza[/MENTION], we're currently evaluating if it's the case to release the source for system integration.

Doing the mod rom by rom isn't feasible right now. Only thing we can do is smali patching, not easier tho.
[Android Software Development] DEVILOPS 007:
Okay thanks for the info! I'm happy to do any alpha/beta testing if you want some testing and help done on different roms. I appreciate it.
[Android Software Development] CappyT:
Hey frap129!

After some thinking, I finally agreed with [MENTION=7087071]GioBozza[/MENTION] to release the core part of wakeblock, which goes into platform/frameworks/base repository.

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.

This is valid for any rom developer, not only you.

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 [MENTION=7087071]GioBozza[/MENTION] 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:

Git patch - Goes into platform/frameworks/base repository.

https://mega.nz/#!ns9HgBSS!jsuyyeeqxR7QtVJvnVJ1227jv7g-N-uTUdYhDpKrGW8

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!
[Android Software Development] CappyT:
Ask kindly to your rom dev to check out this if you want (and he also) integrate wakeblock for your rom: https://xdaforums.com/showpost.php?p=70262930&postcount=2
[Android Software Development] DEVILOPS 007:
I would but I don't see any way to get in contact with him he hasn't got an Xda thread or any info on contacts as far as I know. Is there something else I can do?
[Android Software Development] CappyT:
If you have the source code, grab a guide and merge it yourself.
[Android Software Development] DEVILOPS 007:
I'm not that clever. I do t know anything about that. Could you link me possibly so I could try? Thanks
[Android Software Development] CappyT:
You just need a guide on how to compile android, and then after you cloned the repo, apply the patch to the framework/base repo

Then proceed to compile
[Android Software Development] DEVILOPS 007:
I have no clue what to do but I'll have a look. Thanks
[Android Software Development] masri1987:
does this work on uberstock rom?
[Android Software Development] CappyT:
If the rom is based on stock and it is odexed, yes.

If it is deodexed, well, nope.
[Android Software Development] masri1987:
edit: i tried, it doesn work on Uberstock.

How the heck did Benzo rom get wakeblocker on their rom then?
[Android Software Development] CappyT:
Well, they didn't have wakeblock, but a wakeblocker system, they developed it. Anyway you CAN use it with other roms, check 2nd post of the thread.
[Android Software Development] masri1987:
unfortunately i dont have a system that i can compile with :\

Is there any other way?
[Android Software Development] CappyT:
Smali editing the services.jar or .odex (if the rom is odexed) but you need to be really way too expert that you can basically code it yourself.

Alternatively you can ask the rom dev to integrate it in the rom. That's the only way out, i guess.
[Android Software Development] Saiful98:
Read OP
[Android Software Development] hochoch:
Logs for my pixel on pure nexus with elemental x kernel attached. as i said previously, the installer runs for maybe a minute before booting into TWRP where i've tried manually flashing the file.zip from the data folder.
[Android Software Development] Mezabaru:
Samsung S7 sm-g930W8 running batman rom S8 port. with the new update I'm now seeing dalvik using command top -m 10 but it goes away after 10 minutes.
[Android Software Development] GioBozza:
Could you try to manually mount system partition in read/write mode in TWRP before flashing the file? I'm quite sure the detected partition name is not the real one.
[Android Software Development] GioBozza:
It appears that the repackaging process runs out of memory. We are trying to solve this problem as it is encountered on a lot of devices.
[Android Software Development] Mezabaru:
Well I'm interested in this project PM me if you need a Samsung tester.
[Android Software Development] hochoch:
Thanks - I tried re-running the installer, it booted into twrp, i went to mount and checked off "system", then flashed the file.zip and......nothing. more logs attached.
[Android Software Development] :
the logcat is too heavy and long so i can't paste it on pastebin...
[Android Software Development] Mezabaru:
New update, phone rebooted into recovery saw a thing for wakeblock but it wouldn't boot up afterwords restored system after waiting 10 minutes. Would my Logs be no good?
[Android Software Development] GioBozza:
We are currently having some issues with Samsung users. Right now the main problem seems to be the memory shortage in the repackaging process.

If you got past it, the last app version could have handled that. I hope to get more positive feedbacks about this.

In the end of the patching process, the device should reboot into recovery and flash the modified framework file, then reboot normally. Did it bootloop at that time?
[Android Software Development] Mezabaru:
It did patch which surprised me but didn't boot. Getting closer it seems.
[Android Software Development] GioBozza:
These are good news (even if they don't seem good :laugh: ). Odex files have a hash written into their headers which changes if the content is modified, but can be faked. Samsung devices could be checking for that hash during boot (or something else has gone wrong).

Could you send me a logcat of the booting device?

There is a really good app called LiveBoot which will save a log while the device is bootlooping that you can retrieve from recovery (you can also try "adb logcat" from the PC if the boot goes further enough to start adb).
[Android Software Development] Mezabaru:
Here ya go.

Edit apparently my phone does not want to post the log I'll try pm
[Android Software Development] Mezabaru:
Sorry for double post was having issues uploading from phone.
[Android Software Development] jigs4wkiller:
In Paranoid Android 7.2.3 it causes a boot loop

Sorry, just updated the app and tried again and it works fine.
[Android Software Development] LiNe1771:
In TouchWiz, Samsung galaxy s7 it doesn't work.. In aosp rom on same phone, the repacking lasts for 4 minutes then phone reboots into Twrp and nothing happens. Zero literally. Only reboots to Twrp and nothing. Then i boot the phone and no core installed. Weird. I don't have logcat since I restored my TouchWiz rom backup.

Enviado do meu SM-G930F através de Tapatalk
[Android Software Development] kessaras:
Nice update...

I will restore to the previous version.

You need any logcat before I do ?

Edit.

For those that update.

Reboot before running again the app.

Its not mentioned in play store
[Android Software Development] badai:
S8 managed to extract the **** in few minutes now, go to TWRP and run the script, but stuck at boot animation.

I think I should stay away from this app for now.
[Android Software Development] MusadiqManas:
Hi there.. I need help regarding blocking the wakelocks. Looks like the app is successfully installed and working on my Oneplus 2. I've attached the pics of wakelocks and I'll be obliged if anyone enlightens me as to what wakelocks I shouldn't block and what should I block. And for blocked wakelocks, what timing (mSec) should be used.

Regards!
[Android Software Development] GioBozza:
Could you also send a log of a normal boot precedure, without WakeBlock?

The issue seems to be a missing selinux permission on service binding. It appears Samsung is stricter here...

EDIT: I am quite sure the log started when the device was already booted. How did you take it?
[Android Software Development] GioBozza:
Does mounting the system partition as read/write and manually flashing /data/data/com.giovannibozzano.wakeblock/files/flash.zip in recovery solve the problem?

If it does, I guess this is some OpenRecoveryScript issue I need to look into.
[Android Software Development] bielie:
[MENTION=7087071]GioBozza[/MENTION] Im using wakeblock for 3weeks. This work for my device. Sometime i got unbound and needed restart phone for bound again.

I need request for alarm. Will you ?
[Android Software Development] GioBozza:
If you find the process to be unbound, it means the app has been updated and you need to reboot.

I'm going to try to add support for automatic rebinding and support for alarms blocking as soon as the current release is stable on every device!
[Android Software Development] feanorknd:
Could not find a list of terminals tested..

it depends of terminal or operating system????

By the way, i wish it to run at oneplus one (opo bacon) at lineageOS...

Some experiencie? Thanks so much.
[Android Software Development] Hateware:
Hi all, didn't found those information in the OP, so here are the questions:

I'm on Nexus 6P, Android 8.0 Oreo stock ROM rooted through Magisk 14.0, is this app compatible with my current configuration?
[Android Software Development] MSpider65:
Installed on Xiaomi Mi5 LineageOS 14.1 without any problem.

Core installation took less than two minutes.
[Android Software Development] harpin14789:
Can someone send me the apk before the September 7th update. After updating to September 7th version on play store. The auto patcher no longer works for. Before the update it worked. Now it says framework not supported after trying to patch.

I have a 3T running desolation ROM.
[Android Software Development] Miaou63:
Just reboot