yashsingh1/xdaforums huggingface dataset:
[Xposed Framework Modules] Celesica:
Hi. I want to better understand wakelocks and my battery life, so I installed this app.

Attached is what I have so far. Can you please help me analyze it - and if there's any problem.

Also, I had tried the tweak in System Tuner for Google Play Services and Google Services Framework. However, I had encountered problems with checking in to specific apps that I use but it's been working well in Google Maps. Can I still tweak some services in GPS and GSF?

I don't use Google Fitness, Wearable support, and Cast screen.

I ONLY use these apps for location check ins: Swarm, Foursquare, Facebook and Instagram.

Will these be possible?

Thanks in advance for the help!
[Xposed Framework Modules] Celestial Fury:
First, is it actually draining battery as reported by BBS? #3731 If not, leave it alone. I know the OCD will kick in, mine does - resist the urge. "Keep calling on the app [...] resulting a higher battery usage" - I have NlpCollectorWakeLock at 60000 seconds. BBS reports it at 0% (if it even shows up). Hard facts over logic.

Is account (billing) or internet permissions restricted? In earlier versions, Unbounce would force close if internet permission was denied on first opening the app after installing. Not sure if this is still the case.

First, you've not denied anything in Wakelocks or Services (Alarms not shown) so Amplify won't affect anything. So, I'd say there's no problem. Except that the default NlpCollectorWakeLock and NLPWakeLock that are denied by default don't seem to be denied in your screenshot. So, you must have manually allowed them. On System Tuner, I don't prefer using multiple apps for mostly the same things though some use it for even more fine tuning. Because if something doesn't work, you'll have to go into multiple apps to find the cause. On the stuff you don't use, see my first reply above. OCD + Amplify is not = to less battery drain.
[Xposed Framework Modules] Celesica:
How do I deny NlpCollectorWakeLock and NLPWakeLock if they're not denied?

I'll be uninstalling the Amplify app when I resolve my batt concerns. System Tuner had been uninstalled tho.
[Xposed Framework Modules] Celestial Fury:
Go to Wakelocks. Click on NlpCollectorWakeLock & NLPWakeLock. Turn the settings to ON.

Go to Alarms. Click on ALARM_WAKEUP_LOCATOR & ALARM_WAKE_ACTIVITY_DETECTION. Turn the settings to ON.

If you uninstall Amplify, any changes you made will be reverted.
[Xposed Framework Modules] naughty6t9:
How do I check that. I uninstalled n reinstalled amplify. I cleared data of play store and amplify. Still same error
[Xposed Framework Modules] Celesica:
I see. Then I must keep it then.

Problem is I only found the ALARM_WAKEUP_LOCATOR and set it up.

I couldn't find the NlpCollectorWakeLock & NLPWakeLock from WakeLock.

Also, there is no ALARM_WAKE_ACTIVITY_DETECTION, but I found these two (see attachment).

ALARM_WAKEUP_ACTIVE_COLLECTOR

ALAM_WAKEUP_CACHE_UPDATER

Should these be the ones I would limit?
[Xposed Framework Modules] Celestial Fury:
Let's see a screenshot of your permission manager in venom ROM relating to Amplify.

Turn your phone sideways then the name will show better. No, those two are not it. It has to be exact wording. Since your Amplify has been collecting stats for 2 days they should show up. Since they don't then you might have blocked them in System Tuner.

Don't quote my replies to other people in your post.
[Xposed Framework Modules] Celesica:
Actually, when I did the System Tuner thing, my location checked-in for apps messed up, and I didn't know what to do but to factory reset my phone. So my phone now is clean - no tweaks done by System Tuner. I don't see that in my wakelocks for BetterBatteryStats as well. My Google Location Reporting says "Off for this device".

Anyway, should I worry that I can't find these stuff in my phone? :eek:

Attached the current WakeLocks list.
[Xposed Framework Modules] Celestial Fury:
If Google Location Reporting is off then I don't believe they'll show. So no need to deny them. BUT I did not test this as I do use Location reporting. Or else, reinstall Amplify and they should be once again denied by default.

If what you want is to reduce battery drain while idle, then:

Charge phone to 100%.

Don't use phone for 6 hours or so.

Open Better Battery Stats and post screenshots of Other, Partial Wakelocks, Alarms, and History Details (Android Power Management - Battery Usage).
[Xposed Framework Modules] Celesica:
I have my results from yesterday's.

It was included in Amplify too (Amplify ran for 2days now).

The issue is I have faster battery drain when screen is on.
[Xposed Framework Modules] Celestial Fury:
Amplify is mostly to lessen battery drain when screen is off and device is supposed to be asleep. To lessen battery drain when screen is on, turn down brightness or underclock (risk involved).

From your log these can be limited:

AudioMix (mine is set to 60000 seconds and I can still play games with sound on)

android.app.backup.intent.RUN (how often you want to backup)

android.content.syncmanager.SYNC_ALARM (how often you want to sync)

These I don't use but log shows a lot of alarms:

net.dinglisch.android.taskerm - your tasker app

com.gau.go.launcherex - your Go Launcher

They look to be a pain to limit (quite a lot) but you can test limiting them or reduce number of tasks in Tasker or change automation and/or launcher app.
[Xposed Framework Modules] Celesica:
1. How often you want to backup - I just manually backup thru Titanium Back Up, and I don't backup much - prolly just 2-3 times a week.

2. how often you want to sync - just want my Gmail to sync - the rest I want to receive updates when they're opened

For the alarms, do they consume that much battery based on the log? If so, I might have to remove/limit them.

Thanks again!
[Xposed Framework Modules] Celestial Fury:
android.app.backup.intent.RUN is Android's backup. You can turn it off under Settings - Backup & Reset (since you use Titanium backup). Same goes for Sync. Remove what you don't want.

For alarm comparison, my automation and launcher apps don't need to be limited because they don't show up in BBS at all. So, yes - yours are excessive.
[Xposed Framework Modules] jfriend33:
Have all mine set to 2400. Yes, 2400. Worked fine on Droid maxx, testing on lg g3.
[Xposed Framework Modules] cryptyk:
I added a new version, v1.1, to the OP. It includes bug fixes that ya'll have found in the last week, and rolls in all of xordos's fixes (THANK YOU!), This release should handle from API level 15 to 20 (ICS to KitKat).

If someone with a 4.0.3 device or 4.0.4 device could test, that would be awesome. You shouldn't get any exceptions in the log, and the NlpUnbounce logcat should show you what's going on without spamming the log.

After a few people from here test, I'll push it to the Xposed repo.

Thanks!

Ryan
[Xposed Framework Modules] xordos:
Hi, I quickly tested this version for 4.1.2. It throw 2 exceptions. I have logged the issue here:

https://bitbucket.org/cryptyk/nlpunbounce/issue/8/nosuchmethoderror-for-412-device

Thanks.
[Xposed Framework Modules] starcallr:
yep, exactly the same thing here/
[Xposed Framework Modules] Pkt_Lnt:
I am seeing the same errors in the Xposed log. AOSP 4.4.4 rom

http://pastebin.com/nXpAM08x
[Xposed Framework Modules] cryptyk:
Got it. Thanks, all.

I'll post a quick fix for problem #1 (the class not found exception)

The fix for #2 (Alarms not being blocked on < Android 4.3) will take a bit, but I'll take a look tonight.
[Xposed Framework Modules] diggmc:
Thank you for addressing the verbose logging problem. ?
[Xposed Framework Modules] cryptyk:
v1.1.1 is online in the OP and on the BitBucket site.

This addresses the problem with the exception in the log, and everything now works cleanly.

The remaining big problem is that Alarms can't be blocked on Android 4.2.1 and lower. I'm trying to find a workaround, but it's not an easy fix. If you have 4.2.1 or lower, you'll see one message in the log letting you know that Alarm blocking won't be active. WakeLock blocking will still work, though.

Thanks!

Ryan
[Xposed Framework Modules] nhoc_huhu:
Wait for quick fix, because my phone is in 4.4.2,thanks
[Xposed Framework Modules] cryptyk:
The fix for your version is 1.1.1 in the OP.
[Xposed Framework Modules] shinra00:
#cryptyk you have the hottest thread on XDA :laugh:

Want to thank you for the work, as well as #xordos
[Xposed Framework Modules] harpreet.s:
ERROR : Unsupported Android version trying to hook wakelocks

Hi ,

I was using build patched xordos for 4.1.2 and it worked good. Now I uninstalled it and upgraded to v1.1.1 . But it is throwing error - NlpUnbounce:Unsupported Android version trying to hook wakelocks

and there are no messages which earlier in 4.1.2-patch showed when the alarm was delayed or allowed.

Phones Android version - Stock 4.3

I have also raised a issue report.

Thanks
[Xposed Framework Modules] khairulez:
+1

same issue here on my android version stock 4.2.2

Tap via Tapatalk
[Xposed Framework Modules] harpreet.s:
Corrected - issue closed

Hi ,

Issue resolved - Problem , location services were disabled :)

when activated module worked as expected ...

Thanks
[Xposed Framework Modules] marbulas:
1.1.1 doesn't have any errors in logs on ported GS5 ROM for GN3 with Snapdragon 800 :)

Thx a lot.
[Xposed Framework Modules] erdal67:
Does it fix gtalk async conn?
[Xposed Framework Modules] BlastTyrantKM:
I'm still using the 'tempfix' version that xordos posted. This is the stock battery. Most of this is wifi, though I turn my wifi and data off at night. All other phone functions and services are active when I have wifi/data enabled.

Edit: I forgot to mention that I'm also using Greenify. That helped me identify several apps that were needlessly draining battery power.

2nd Edit: I've got all values set to 420. Having 420,420,0,0 wasn't giving me anything close to this result.
[Xposed Framework Modules] Jayy_Suave:
Those stats are preeeetty sweet!
[Xposed Framework Modules] TNSMANI:
If you have simply greenified Play Store without cutting off any links, you can degreenify it by highlighting it and then clicking the three dot menu where you will get the option to degreenify it.

I hope that you have not disabled the IAP billing service of Play Store using any other app.

As a last resort reflash the ROM.
[Xposed Framework Modules] cAase:
How should one interpret Amplify stats vs BBS? I have a 27 min wakelock from NFC, but BBS doesn't show anything. I'm asking since NFC isn't even enabled. This applies on some more wakelocks. Which one should i trust the most? And also, disabling one completely, putting an value of 10000 does it harm anything if you don't have any use of that wakelock?
[Xposed Framework Modules] Cyclu:
Here is the logcat of force close it happens even if IAP billing service is enabled because I can use In App Billing without problems. It appears that force close happens when Amplify don't found our Google account.

I can confirm that because when with XPrivacy I allowed my Google account for Amplify the force close has stopped.

Here the logcat:

12-04 12:36:08.830 W/Finsky (29676): [335] InAppBillingUtils.getPreferredAccount: com.ryansteckler.nlpunbounce: No account found.
12-04 12:36:08.920 W/ContextImpl(1330): Calling a method in the system process without a qualified user: android.app.ContextImpl.sendBroadcast:-1 com.ryansteckler.nlpunbounce.XposedReceiver.onReceive:43
12-04 12:36:18.430 E/IabHelper(13667): In-app billing error: Illegal state for operation (launchPurchaseFlow): IAB helper is not set up.
12-04 12:36:18.440 W/dalvikvm(13667): threadid=1: thread exiting with uncaught exception (group=0x416b1710)
12-04 12:36:18.440 E/AndroidRuntime(13667): FATAL EXCEPTION: main
12-04 12:36:18.440 E/AndroidRuntime(13667): Process: com.ryansteckler.nlpunbounce, PID: 13667
12-04 12:36:18.440 E/AndroidRuntime(13667): java.lang.IllegalStateException: IAB helper is not set up. Can't perform operation: launchPurchaseFlow
12-04 12:36:18.440 E/AndroidRuntime(13667): at com.ryansteckler.inappbilling.IabHelper.checkSetupDone(IabHelper.java:790)
12-04 12:36:18.440 E/AndroidRuntime(13667): at com.ryansteckler.inappbilling.IabHelper.launchPurchaseFlow(IabHelper.java:380)
12-04 12:36:18.440 E/AndroidRuntime(13667): at com.ryansteckler.inappbilling.IabHelper.launchPurchaseFlow(IabHelper.java:346)
12-04 12:36:18.440 E/AndroidRuntime(13667): at com.ryansteckler.nlpunbounce.HomeFragment$5.onClick(HomeFragment.java:492)
12-04 12:36:18.440 E/AndroidRuntime(13667): at android.view.View.performClick(View.java)
12-04 12:36:18.440 E/AndroidRuntime(13667): at android.view.View$PerformClick.run(View.java)
12-04 12:36:18.440 E/AndroidRuntime(13667): at android.os.Handler.handleCallback(Handler.java)
12-04 12:36:18.440 E/AndroidRuntime(13667): at android.os.Handler.dispatchMessage(Handler.java)
12-04 12:36:18.440 E/AndroidRuntime(13667): at android.os.Looper.loop(Looper.java)
12-04 12:36:18.440 E/AndroidRuntime(13667): at android.app.ActivityThread.main(ActivityThread.java)
12-04 12:36:18.440 E/AndroidRuntime(13667): at java.lang.reflect.Method.invokeNative(Native Method)
12-04 12:36:18.440 E/AndroidRuntime(13667): at java.lang.reflect.Method.invoke(Method.java)
12-04 12:36:18.440 E/AndroidRuntime(13667): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java)
12-04 12:36:18.440 E/AndroidRuntime(13667): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java)
12-04 12:36:18.440 E/AndroidRuntime(13667): at de.robv.android.xposed.XposedBridge.main(XposedBridge.java:132)
12-04 12:36:18.440 E/AndroidRuntime(13667): at dalvik.system.NativeStart.main(Native Method)
12-04 12:36:18.450 E/ActivityManager(1330): App crashed! Process: com.ryansteckler.nlpunbounce
12-04 12:36:18.470 W/ActivityManager(1330): Force finishing activity com.ryansteckler.nlpunbounce/.Settings-Alias
[Xposed Framework Modules] 1ceb0x:
trust bbs and/orr WLD.

no harm will be done if you don't use NFC. I have it even greenified.

Amplify will gather all the data since it is activated (or you wipe its stats) so you can have a wakelock of 27 minutes in 3 days but BBS will show nothing because you just took your phone off from charging and in this case all stats in BBS are wiped.
[Xposed Framework Modules] cAase:
Thanks. I always wipe stats in Amplify before coming to a conclusion.
[Xposed Framework Modules] Celesica:
I greenify my launcher tho. Will that help?

Also my Tasker helps get my phone into Airplane mode and hibernating apps automatic. Should I limit that too?
[Xposed Framework Modules] Celestial Fury:
Greenifying launcher doesn't cause problems? It's now up to you to experiment with limiting Tasker and your launcher and find an acceptable trade off (for you) between functionality and battery draining wakelocks/alarms.
[Xposed Framework Modules] 1ceb0x:
What's the effin' point to greenify your launcher?

I don't get it :)

You use the launcher 100% of the time - it is your desktop. In essence, you can greenify it but it will stay 100% awake no matter what. Maybe it will be greenified in deep sleep but either way, the launcher does not eat battery almost at all so what is the point in doing so?

You will eat more power to draw the launcher out from deep sleep every time you wake up your device because the launcher is one of the first things that needs to be initialized.
[Xposed Framework Modules] magnamentis:
try this

Go to root/home directory /data/data/.com.ryansteckler.nlpunbounce Delete all 4 files
[Xposed Framework Modules] Celesica:
I see. Thanks for pointing that out.

I guess I'm okay now. Just got 21hrs today with almost 4hrs screen on.

Thanks for all the help [MENTION=5401012]Celestial Fury[/MENTION]
[Xposed Framework Modules] Osama Zabin:
Uninstalling System Tuner will NOT revert back the changes you had applied to GPS and GSF, you have to tick back whatever you disabled in GPS and GSF.

Also clearing cache/data of System Tuner will not revert back your changes.
[Xposed Framework Modules] wirespot:
Hi, got a few suggestions to make this module better:

* Consider adding quick search or filtering by name mode in the alarms/wakelocks/services views. If I want to look up all that contain "gtalk" in their name I could type it in and only see stuff that matches '*gtalk*' (case insensitive ofc).

* Have you considered approaching the maintainer of Better Battery Stats about a collaboration? It would be totally amazing if I could pick a wakelock or alarm in BBS and I could jump directly to its "limit" screen in Amplify.

* A global "enable/disable all interception" master switch.
[Xposed Framework Modules] naughty6t9:
there is nothing related to Amplify in permission manager,

but well i restored the phone thru a nandroid backup, and Amplify works perfectly, even donation and everything untill i install Lucky Patcher, and when lucky patcher updates to latest version, this error occurs, even if i uninstall LP after error, error remain unless i do nandroid restore again.

is there any workaround to keep both.
[Xposed Framework Modules] Celestial Fury:
I don't see how they're related as long as you don't use it to modify and other apps are still working.
[Xposed Framework Modules] wertzPH:
looks good. bbs user. now testing with wld
[Xposed Framework Modules] naughty6t9:
All apps r working perfectly, except this one,
[Xposed Framework Modules] LiL_Assassin:
Will this support a search feature and possibly a way to completely disable a wake lock? I know you can just set it really high. Audiomix and RILJ completely kill my battery :/

Sent from my Slimsaber i9100.
[Xposed Framework Modules] kurtextrem:
You probably should search for another solution if your Audiomix goes crazy. If you put it higher and higher it won't get better (I made that experience). A good start would be looking for an app which modifies audio output (yeah... you must live without frequency changes if you want to have good battery life).
[Xposed Framework Modules] hosgor45:
[MENTION=526666]cryptyk[/MENTION]

Hi Ryan,

I think the Turkish translation is done. You can start using it, or wait couple of days for someone else to go over and make sure there is no translation mistake.

Thanks for the great app :) specially pro version is awesome.
[Xposed Framework Modules] Woody:
Since going all-in to Lollipop, it pains me to see NLP at the top of my battery drain. I had such great battery life with Amplify and a few other tweaks while on KK. But moving and developing some things for LP ROMs, I have to stay on LP. Still read the thread though. If rovo89 doesn't get Xposed to work with LP, I'll have to start back at a clean drawing board for taming these awful wakelocks.

Still one of the best donations I have sent was to Ryan, even though I was only using Amplify for multiple iterations and name changes. :silly: Keep up the good fight gents and hopefully something like this will come around for LolliROMs.
[Xposed Framework Modules] MIKEMON:
For me, everything absolutely fine

I stock 4.3
[Xposed Framework Modules] thor1k:
Android System spends 3-5 hours / day looking at my Nexus 5 accelerometer. Why is that? What's the biggest source of battery drain in Android System? it doesn't keep the phone awake very long, but the CPU energy usage according to GSAM is usually about 15% day
[Xposed Framework Modules] Javi22:
Guys could you tell me which exactly services do you disable with Disable services app?

I've disabled the fitness, wearable and plus services and that's ok, but don't know what else. If I disable checkin and some others my drain is maximum, I've lot of wakeups

Thanks
[Xposed Framework Modules] 1ceb0x:
Check my signature.
[Xposed Framework Modules] Celestial Fury:
What you have to disable are the receivers as well and not just the services or like you've discovered, the checkin wakelocks go crazy for hours.

I don't know how it's done but in Amplify receivers don't have their own separate category. There are no checkin receivers AFAIK that you can deny under Services. Checkin's "receiver" comes under Alarms and you can only manage its interval and not deny it totally.

Compare that with Facebook which has it's MqttReceiver as well as it's MqttPushService listed under Service so you can deny both of them completely. FB has an additional MqttReceiver listed under Wakelocks.

In fact, there are numerous "services" listed under Wakelocks including Checkin Service as well as under Alarms so are they really wakelocks, alarms or services? With the exception of FB, receivers are mostly found under Alarms. Perhaps [MENTION=526666]cryptyk[/MENTION] can comment on the sorting of the categories. If they're all in the right places, then I'd have to blame Google for not getting their categories/naming system in order.
[Xposed Framework Modules] Osama Zabin:
If you don't care about push notifications, then try this mod:

http://xdaforums.com/showthread.php?t=2357417

Otherwise, don't try it.

FYI, I'm applying this mod and still getting push notifications unless the applications are greenified.

***EDIT***

Forget about checkin if you are already facing problems, try

Gtalk

Plus

And the others
[Xposed Framework Modules] daltonhrrll:
Lately I've been getting 15% drain an hour and can't figure out why nothing in BBS or wld shows why this is happening I can only get about 3 hours screen on time on my s5 active when I used to be able to get around 5 hours. Could I just need to recalibrate my battery ?
[Xposed Framework Modules] Celestial Fury:
15& drain/hour & BBS shows nothing? Are you talking idle time or including awake/SOT time? Screenshots or we can't figure it out too. How is this related to Amplify?
[Xposed Framework Modules] LiL_Assassin:
Some devices are plagued by audiomix no matter what. putting it at 3600 fixed my problem, but i hope it does have a search function soon :)
[Xposed Framework Modules] Javi22:
I do care a lot about push notifications hahah, thanks anyway

Ok, I understand that disabling only services will cause wakelocks, so I've to use another app like System Tuner instead of disable services, which can play with receivers and activities as well

I'm gonna try now ,also thanks to 1ceb0x for for your article, I'll take a look to your post now
[Xposed Framework Modules] mafsi:
Excellent application. With only safe to limit wakelocks I managed to have 1 day battery using the phone light to moderate. Here is a screnshot of better battery stats. I'm using JB 4.2.2 on a mediatek phone Gionee Pioneer 3 dual sim.

Using Amplify paid version.

Thanks a lot for the app. Worth every penny.

<via tapatalk>
[Xposed Framework Modules] karanfire123:
Hey Guys. I'm having trouble with this mod. It isn't showing any alarms or wakelocks to tame. I've attached screenshots below. It used to work for me before when it was called unbounce. After that I stopped using it and now it doesn't show any alarms or wakelocks. I've also donated thinking it would've helped somehow. Please can anyone help me? Thanks.

Edit: It was already asked. I figured it out. Sorry
[Xposed Framework Modules] RoxAbout:
Exit Fix

Quote:

Originally Posted by cryptyk View Post

Thanks for the feedback.

1) I took those out because they were confusing people. Blocked service counts don't really mean much anyway. You can still find them in the individual services.

2) Weird. Are you sure you have enough alarms to fill up the page? And it doesn't scroll?

3) The back button behavior is actually consistent with Google's UI design principles. If you look at Play Store or Google Music, it acts the exact same way. I don't really like it either, but want to follow the guidelines.

I fixed this "annoying problem" I use long press back and kill the lil buggers :)

Hope that helps

Smile it really wont hurt you....
[Xposed Framework Modules] grisu59964:
A small suggestion: maybe Amplify could check after an update or restart if it is still working and open a notification if not.

When users update the app from Play Store in background, Amplify will stop working without being noticed.

The result is an unhappy user with bad battery performance.