yashsingh1/xdaforums huggingface dataset:
[Android General] garthybarthy:
I finally fixed the fast dormancy kernel wakelock, I looked on sammobile.com for the latest stock rom for my network Three UK and phone model GT-I8190N, looked at the build number and downloaded the baseband from that build off XDA.

After flashing that baseband I no longer receive the secril fd wakelock in BBS and my phone now goes into deep sleep!
[Android General] v7:
You can try MyAndroidTools on GB.Use MyAndroidTools and disable the following receivers.

Checkin.EventLogService$Receiver

CheckinService$TriggerReceiver

CheckinService$Receiver

CheckinService$SecretCodeReceiver

About the BBS Crash,can you try an older version of BBS here from the XDA thread?

Tapped from my furious dogo ;)
[Android General] b99721:
Great guide [MENTION=5867207]vaisakh7[/MENTION] ! :good:

I have greenify (donate) and amplify (donate). I have now installed power nap. I used to get some drain on data (but an almost flat battery graph line on wifi). I believe it is due to mobile data active - I see play services and avast at top of the list in battery graph, with high nos for mobile data active. I thought power nap might help curb this, but that doesn't seem to be the case (both are not under white list). Can you please help me diagnose?

PS: Stats are unclean - from boot and using my phone 'normally' throughout the day on data. Post full charge this morning, screen failed to wakeup (with charger still connected) when my alarm rang, so had to force restart by holding power button. Figured it could be because I hadn't white listed Android System initially.
[Android General] v7:
[MENTION=3278619]PIRATA![/MENTION] Thanks for your complement :)

Now to the Q&A

1.AFAIK Fast Dormancy is mainly a carrier thing(maybe a device thing too).You'll have to contact your network operator to know if they support it.Mainly when you get lot of alarms from the Phone app,it's mainly due to FD.

2.Navigate to Settings->Location->Mode->Device Only.

3.No if you disable the GPS/Location Services completely,you won't be able to access GPS when needed.Alternatively you can use Amplify to limit those services as mentioned in the OP.

4.AppOpsXposed maybe isn't fully compatible with your ROM.For now deny the "Keep Awake" permission for both GooglePlayServices and GoogleServicesFramework.

5.That isn't necessary.You'll find the "Auto Startup" in the App Permission menu.Switch it off to deny an app at boot.

Tapped from my furious dogo ;)
[Android General] v7:
[MENTION=6283568]garthybarthy[/MENTION] Glad to know you fixed it :) Cheers Bud! :victory:

Tapped from my furious dogo ;)
[Android General] v7:
[MENTION=4604736]b99721[/MENTION] Mobile radio is draining the battery.Google Services are running fine.They show up in Battery stats because you're getting many Notifications and the MCS_HEARTBEAT is triggered often.Don't worry about them.

bam_dmux_wakelock is a Kernel wakelock which runs while during constant data exchange in Mobile Data.It's same as the wlan_rx_wakelock.Changing the Kernel or ROM might fix the issue for you.

Tapped from my furious dogo ;)
[Android General] Traxex_:
Maybe someone could look in my recent BBS log, I got a kinda high drain overnight.

Using Greenify donate, Amplify and PowerNap and have only whitelisted inbox, whatsapp, threema, Calendar, Intelli3G, Keep, Hangouts and Greenify/Amplify.
[Android General] v7:
[MENTION=4454217]Traxex_[/MENTION] Do you have some Android wear connected to your device?.The Bluesleep Wakelock is keeping your device awake.See more info below.

Bluesleep is a wakelock that is an error on part of the Bluetooth System missing a few binaries. Even if you have bluetooth disabled, you will be affected by this bug!

This must be a bug in your ROM code.I recommend to change/update your ROM.

Tapped from my furious dogo ;)
[Android General] Traxex_:
Yeah I've got my watch connected.

I'm using Chroma ROM and had the same bluesleep wakelock with several other ROMs too :/

Maybe someone could recommend a ROM without that "missing binaries".
[Android General] v7:
Have you tried the Cataclysm ROM?I read somewhere that the wakelock doesn't appear on that ROM.

[MENTION=4454217]Traxex_[/MENTION] PS:Just saw a fix in the Cataclysm ROM thread:

Open terminal emulator app. Type su then hit enter then type echo 0 > /sys/module/wakeup/parameters/enable_bluesleep_ws all on one line. It won't say anything but if you turn on Bluetooth and check your wakelocks you shouldn't see the wakelock there anymore. This needs to be set on each boot currently. If you experience Bluetooth connectivity issues don't disable this. To enable it again either reboot or run the same command with a 1 instead of a 0.

Tapped from my furious dogo ;)
[Android General] Traxex_:
I'm gonna test if it works on Chroma too.

Shouldn't be a problem to make a short tasker task to run that command at every boot.
[Android General] b99721:
How do you do this?! The super fast diagnosis I mean :D

Thanks a lot. I will try limiting data stall alarm in Amplify. Had set it to 600 initially past week, then removed it from limit list. Going to try 7,200 now.

PS: I forgot to mention I was on calls for like 20-25mins (7-8 calls in total).
[Android General] v7:
[MENTION=4454217]Traxex_[/MENTION] You can use this script to run on boot if you have init.d support.

Remove the .zip extension and copy the file to /etc/init.d/, fix the permission to 755 and set owner to root.shell(0.2000).

Thanks to my bud [MENTION=5396196]airlessproject[/MENTION] for the script.

Tapped from my furious dogo ;)
[Android General] v7:
[MENTION=4604736]b99721[/MENTION] I don't think it's a good idea to Limit data-stall to high numbers.It might affect your Mobile Data connection.You can test and if anything goes wrong,relimit to 600 seconds.

Tapped from my furious dogo ;)
[Android General] Traxex_:
The .zip file seems to be corrupted, tried to download it several times.
[Android General] v7:
[MENTION=4454217]Traxex_[/MENTION] Can you try with another Browser?

Never mind,I uploaded it to my Drive.

Tapped from my furious dogo ;)
[Android General] madboymatt:
I'm using the latest xda beta bbs. Attached is a log of my most recent cycle. I feel like I'm not getting as much screen time as usual, even though I get amazing deep sleep and standby time.
[Android General] Traxex_:
It's still not working, tried to download it with Chrome, Firefox, Opera and Internet Explorer.

Winrar, 7zip and windows can't open the file too, maybe you could upload the file without zipping it.
[Android General] v7:
[MENTION=4454217]Traxex_[/MENTION] Hey,I didn't zip the file.Just added the zip extension so that I could upload it on the forum.Just remove the extension of the file.The script file has NO extension.

Tapped from my furious dogo ;)
[Android General] Traxex_:
ahh now I get it :P

My fault.

Thanks.
[Android General] PIRATA!:
Hi there! :)

Thanks for your reply!!

1) About Fast Dormancy, I have the same carrier as when I had my S3, and with that device I was disabling Fast Dormancy.

If you say that is carrier related, and as I was disabling it with my old device and same carrier, it would be ok and good to disable it also now...right?

2 & 3) Here is what i have in Location->Mode

I use the top one as I always have my location off, and use Location it when in Google Maps Navigation.

Is it ok?

Setting Amplify ad in OP should be enough?

4) About the AddOptApps Hacks, ok...will keep on disabling what I see.

As I remember now, with my old S3 I was seeing those entries unlocked auth the Hacks menu, while now on this device I can't see them.

5) This is what I have in AddOptApps in the last tab:

Do you refer to that when you mention the boot options?

About this disabling, I've never opted for disabling boot up apps from AddOptApps, but using SD Maid, Autostarts and BootManager module for Xposed.

I usually remove from boot in BootManager and Autostarts, and then I check in SD Maid if everything is not active at boot.

Do you say that acting in disabling boot entries in AddOptApps it's different and better?

Can you explain why?

Tnx a lot.
[Android General] v7:
[MENTION=3278619]PIRATA![/MENTION] Hi there,

1)Yes you can disable it on this device too.

2&3)If you have Location disabled when you don't use it,High Accuracy won't cause a trouble.Keep the Amplify setup.That's enough!

4)That happens on some ROMs.Just set the "Keep Awake" permission disabled as I stated in the last post.

5)SD Maid is fine.All the apps you mentioned disable the boot entries in the same way.There's no need to worry about them :)

Tapped from my furious dogo ;)
[Android General] PIRATA!:
Tnx again.

About last point 5)...disabling app to boot using AppOpsXposed, what does it change? The in-app entry for booting?

I mean...why in AppOpsXposed I don't see the Receivers disabled on each apps I have disabled in SD Maid? I thought that they were referring to same Receivers...
[Android General] v7:
[MENTION=3278619]PIRATA![/MENTION] Both the apps refer to the same Receivers to disable apps on boot.You can use either of the apps to disable them.

Tapped from my furious dogo ;)
[Android General] PIRATA!:
Prefect...but why AppOpsXposed they renault in active?

I mean...if I make edits to the Receivers in SD Maid, modifications goes across the system and they are notable also in Autostarts...

In AppOpsXposed no...and I'm suspecting that AppOpsXposed acts inside the properties of the app instead of its Receivers...or I'm completely out of the road?? [emoji28]

Is it ok to keep editing receivers boot-ups as I'm doing now and forget the boot tab in AppOpsXposed?

Tnx. :)
[Android General] schaggo:
I try to slim down the tools in use. I had the idea to only use Power Nap and a second tool to regularily wake up the device.

In Power Nap I would then only whitelist this app and have trust in android to do all the syncing etc while the device is awake and then go back to sleep.

The wakeup by that tool would take place all, lets say, 10 to 15 minutes or so.

Does anyone have an idea for such a tool or an idea, how a programmatically timed wakeup could occur? My research revealed nothing... :\
[Android General] v7:
[MENTION=3278619]PIRATA![/MENTION] Actually AppOpsXposed disable the "Permissions" of an app.By denying the BootUp permission,the app loses its capability to run at system start.Both AppOpsXposed and SD Maid does the same job but in a different way :)

See the attachment for better understanding.

Tapped from my furious dogo ;)
[Android General] b99721:
I can't access power nap statistics with SELinux set to default Enforcing. I need to change it to Permissive to access stats. But I read it works fine for you without the need to change to Permissive. Hence checking if you have an idea as to what's going on? I am using OnePlus One with stock CM12S.
[Android General] v7:
[MENTION=4604736]b99721[/MENTION] AFAIK you need a Permissive SELinux to view the Stats.

Tapped from my furious dogo ;)
[Android General] v7:
I'm afraid that such an app doesn't exist.Maybe in future?Who knows! :D

Tapped from my furious dogo ;)
[Android General] schaggo:
I tried some automation tools (like Tasker/Locale/...) but could not get them to work correctly. It should be possible, but don't know how exactly.
[Android General] PIRATA!:
Amazing!!

Just to get it straight:

so SD Maid let's say that acts in the first rectangle in the green field (yes/no exits), and AppOpsXposed in the one underneath it (with green/yellow/red exits) ???

Tnx!!!
[Android General] v7:
Maybe you can seek help from someone who knows Tasker well.

Sorry I'm not the right person.I don't know much about Tasker or its functions :)

Tapped from my furious dogo ;)
[Android General] v7:
[MENTION=3278619]PIRATA![/MENTION] Exactly :)

Tapped from my furious dogo ;)
[Android General] closee91:
Android wear DRAINS your battery. Like damn! :o
[Android General] madboymatt:
Does anyone have any tips for how to best handle the Google now app?

I like using it for voice commands every now and then, and its handy for quick reminders, but I find that it does cause a few wakelocks. Are then any entries in amplify I should limit? It doesn't seem to greenify very well, always telling me it cannot hibernate.

Also, was anyone able to check my log in post 1666? I would be ever so grateful. Cheers.
[Android General] v7:
[MENTION=4659527]madboymatt[/MENTION] Sorry for missing out.

You can force Hibernate Google App if you want.Just select "Always Ignore Running State" in Greenify.

You'll be able to get a bit more juice if you use WiFi all the time.Mobile Data consumes more juice than WiFi.

Although the Kernel wakelocks doesn't show up in the stats,the numbers seems to be fine.

Tapped from my furious dogo ;)
[Android General] madboymatt:
Thanks for your reply. I appreciate it. I'll try forcing Google to hibernate. I also have power nap blocking it.

BBS won't show kernel wakelocks, and I've tried reinstalling it. So weird.

Gsam battery tells me that my wakelocks are the same old bam_dmux and wlan ones. Tough to avoid those with sync enabled.

I'm wondering if I can amplify audioin (1013). This seems to be a wakelocks caused by Google app.

Thanks again.
[Android General] closee91:
[MENTION=5867207]vaisakh7[/MENTION] is it normal for a battery to drain like that when using android wear?
[Android General] Traxex_:
Bluesleep wakelock is still present after using the script :/

No drain caused by Android Wear except for the bluesleep wakelock.
[Android General] v7:
[MENTION=4659527]madboymatt[/MENTION] Turn Off Lockscreen Detection in Google App Settings.It'll fix the AudioIn wakelock.

Tapped from my furious dogo ;)
[Android General] v7:
[MENTION=4454217]Traxex_[/MENTION] Did you set the permission and owner as stated by me?

Maybe it works only on the Cataclysm ROM :(

Tapped from my furious dogo ;)
[Android General] Traxex_:
Yeah did that, but there's not even "enable_bluesleep" file in parameters folder.

Maybe someone that's using Cataclysm could upload the file here.
[Android General] v7:
[MENTION=4454217]Traxex_[/MENTION] I think the option to disable the bluesleep wakelock is only available in Cataclysm ROM.I don't see a single post in the Chroma thread tagged with "bluesleep".

Tapped from my furious dogo ;)
[Android General] closee91:
Android wear sucks ?
[Android General] PIRATA!:
Waww interesting!! [emoji41]

As you say that is the same, what is really the most less intrusive?

What do you use?

Tnx.
[Android General] madboymatt:
I actually don't have any options for lockscreen detection in my Google settings app. However, I did disable the "OK Google" detection completely.
[Android General] v7:
[MENTION=3278619]PIRATA![/MENTION] I'm using the built-in privacy guard that comes with my ROM.Same as AppOpsXposed.

Tapped from my furious dogo ;)
[Android General] v7:
Report later.

Tapped from my furious dogo ;)
[Android General] Traxex_:
I completely wiped my phone and flashed Cataclysm ROM with this init.d script and still getting bluesleep wakelocks, just for your information.
[Android General] v7:
Can you try executing the script manually via Terminal Emulator?

PS: [MENTION=4454217]Traxex_[/MENTION] This Kernel seems to have reduced the Bluesleep wakelock.Read the changelog of the Kernel.

In one of the posts I read that there's an option to turn of Bluesleep via Synapse.I'm not sure if I'll work with other kernels.Maybe you can try this one.

Tapped from my furious dogo ;)
[Android General] Traxex_:
Already did, it's not fixing the wakelock unfortunately.
[Android General] LiL_Assassin:
I don't know. But try a rom with a inbuilt wake lock blocker? And block it. I used to have this really bizarre wake lock on my old s2 and with Roms that had that feature. Just an idea
[Android General] Traxex_:
Already spent some hours to switch to Cataclysm and will only switch again if I've got a confirmation that the wakelock actually disappears before spending even more time [emoji14]
[Android General] v7:
[MENTION=4454217]Traxex_[/MENTION] Did you notice the kernel I mentioned?

Tapped from my furious dogo ;)
[Android General] Traxex_:
It's a nexus 6 kernel, isn't it?
[Android General] v7:
[MENTION=4454217]Traxex_[/MENTION] Ah My bad :( Misread the title.Sorry for the inconvenience.

If the wakelock appear in Amplify,can you limit it and see if it affects the Wear?

Tapped from my furious dogo ;)
[Android General] Lasantha:
I'm using this and getting good battery on sleep. I want to get long screen on time too.

On lollipop adaptive brightness is too bright for me and I tried to reduce It by edition framework res.

It works on manual but not on adaptive brightness. Can you please help or guide me which file needs to be changed.

I'm on xperia z2

Thanks for great guide
[Android General] LiL_Assassin:
Just backup your current rom. Flash new one and try. If it doesn't work. Restore. Would take no longer than 5 minutes
[Android General] v7:
[MENTION=4150165]Lasantha[/MENTION] I always use Manual Brightness on my devices.On most devices,adaptive brightness doesn't work as intended.

If you want to edit the framework,it's better to ask some devs in the forum.I'm not an expert in those stuffs.

Tapped from my furious dogo ;)
[Android General] gunawanrusli:
Hi OP, thanks to you everything is ok now with the battery. Signal loss in my room is indeed the culprit. Now I'm getting 0.1%/hr loss overnight (forgot to save bbs dump... :o).

Donation is coming your way (trx id 4GX575862J4204035).
[Android General] v7:
[MENTION=4640623]gunawanrusli[/MENTION] Glad to know mate :)

Many thanks for your support and the Donation.It means a lot :)

Enjoy some more time on your phone :)

Tapped from my furious dogo ;)
[Android General] Culateralligator:
I was looking for a post like this for a long time.

Thank you for all this information and answering all kind of questions.

A small donation was sent from Spain 2 days ago.

You won't buy a new phone with that amount, but with the contribution of other people you're helping for sure you will.

Sent from my GT i8160 4.4.4 AOSP
[Android General] v7:
[MENTION=6542205]Culateralligator[/MENTION] Many thanks for your support mate :)The amount doesn't matter.You are kind enough to make a contribution.That is the big thing.Cheers Bud :)

Tapped from my furious dogo ;)
[Android General] PIRATA!:
I'm sorry [MENTION=5867207]vaisakh7[/MENTION] ...

As I use the GPS for Google Maps Navigator, you told me not to disable/block/deny any Service related at GPS or Location, and only act on the Alarms and Wakelocks...

But doing so, would it limit or change my GPS or Location accuracy or responsiveness it while trying to catch GPS signal or using a navigator???

Please let me know. I don't want any song delay or responsiveness changed as when I use the GPS, I strongly use it!!

Tnx.
[Android General] v7:
[MENTION=3278619]PIRATA![/MENTION] Location Service/GPS won't be affected.

Tapped from my furious dogo ;)
[Android General] GjorgiDxc:
Not getting any push notifications right now, should I set the heartbeat interval even lower on PNF? I have GCM checked in greenify settings, but I also have Deep Hibernation checked too (maybe this is causing the problem?). Would love to hear someones opinion :)
[Android General] PIRATA!:
Tnx [MENTION=5867207]vaisakh7[/MENTION] !!

I'm also looking at the other things about Amplify...

I have some alarms/wakelocks that are not that called...they have low number...still set delay?

Ah!! And about instant messaging apps and Facebook...could I have delay in receiving notifications???

I've sen that there's an app in OP that it's intended to be for fixing that...but I hope to not need it.

Tnx again.
[Android General] v7:
[MENTION=6052403]GjorgiDxc[/MENTION] Deep Hibernation breaks push notifications.Uncheck it and Reboot.

Tapped from my furious dogo ;)
[Android General] v7:
[MENTION=3278619]PIRATA![/MENTION] Just keep the setup as in the OP.High numbers in Amplify doesn't mean that it causes drain.Use BBS to track down the culprit.

You'll get notifications as intended.There's no need to worry.

Tapped from my furious dogo ;)
[Android General] The Lord Vader:
At last finished with tweaking... These are my stats.

Oh, great guru [MENTION=5867207]vaisakh7[/MENTION] can you please check my BBS dump? [emoji6]

https://www.dropbox.com/s/mf5wnlirnxoomb1/BetterBatteryStats-2015-07-08_070258387.txt?dl=0

Sent from my Note3 running Temasek's ROM.
[Android General] v7:
[MENTION=4228119]The Lord Vader[/MENTION] Perfect mate :) 0.2%/hr for 9 hours is really awesome.No further tweaking needed.I believe this is the best you can get from my guide.Enjoy your battery life :)

Tapped from my furious dogo ;)
[Android General] PIRATA!:
[MENTION=5867207]vaisakh7[/MENTION] but should I act also on Alarms/Wakelocks that are in your list which I have with low numbers (less then 5/10)??

Tnx.
[Android General] v7:
[MENTION=3278619]PIRATA![/MENTION] Yes of course.We're trying to get the best out of your device's battery.So we should take care of all alarms or wakelocks running,even if they appear rarely.

Tapped from my furious dogo ;)
[Android General] Hussainally:
How about if someone make all the limits on wakelock etc on amplify and post a titanium backup file to restore the settings?
[Android General] v7:
[MENTION=618397]Hussainally[/MENTION] I'm not sure if that'll work.Restoring an app data of another device to your's is not a good idea.

Tapped from my furious dogo ;)
[Android General] Hussainally:
I understand but the normal basic stuff that need to be denied won't harm right? Just a suggestion.. It will really help noobs like me
[Android General] v7:
[MENTION=618397]Hussainally[/MENTION] If you have any doubts regarding the OP, you can contact me via PM or I can give you my personal Contact by PM.

Still I won't recommend an app data restore from another phone.It may cause troubles ;)

Tapped from my furious dogo ;)
[Android General] immy8796:
How to use amplify.. ???

Can anyone tell me ...
[Android General] Culateralligator:
Hi there! What do you think about this repairing battery app?

https://play.google.com/store/apps/details?id=com.batterytools.batterysaver

Does it really works or is just a fake?

What battery calibration app would you recommend?

Sent from my GT i8160 4.4.4 AOSP
[Android General] v7:
[MENTION=5671514]immy8796[/MENTION] Download the Donate version of Amplify and activate the module in Xposed.Reboot and open the app.Search for the wakelocks/alarms listed in the OP and limit it to the numbers listed in the OP.

Tapped from my furious dogo ;)
[Android General] v7:
[MENTION=6542205]Culateralligator[/MENTION] I'm not sure about the app.I don't believe that an app can fix the issues of a battery.

I always recommend manual Calibration.

*Charge the device to 100%.

*Leave it plugged for 10-15 minutes to reach the full capacity.

*Drain the battery to 0%.

*Repeat step 1&2.

*Done!

Tapped from my furious dogo ;)
[Android General] immy8796:
Thank u very much... :) i will try n let u knw
[Android General] amruthpradeep7:
In kernel wakelock "suspend_backoff" is consuming more battery. So phone not going in deep sleep. "suspend_backoff" is the main culprit.

I clean installed rom and removed chrome and when put wifi off also same problem.

Can anybody help to resolve:(:(:confused:
[Android General] blaz1nr:
This app was just foiled by the android police. They said it was pure garbage. Funny this is after they wrote that article, blackmart apps dumped it from playstore and the app showed up under new developer name.
[Android General] Harpratap:
I had quite nice battery life on 5.0.x on my nexus 7 but since 5.1.1 there is an annoying 'Android system' wakelock bug draining a lot of battery. (I don't use gapps). Can someone help me with this? I use AICP 10.0 build (although I have been facing this bug on many other 5.1 roms). It also has an inbuilt wakelock blocker. I have followed the guide and installed all the modules as per instructions yet there is a drain (around 5%/hr)