How to stop ActivityManager killing apps due to "high power cost"??? - ZTE Axon 7 Questions & Answers

By now you may have heard about Axon 7 killing music playing app issue, if you haven't experienced it yourself already. For me I'm having a similar or at least related issue. The phone would kill my game when I turn off and on screen. After some investigation, below is my observation
1. Doesn't happen all the time. After a fresh reboot, no killing for a while... but after some time using the phone, it starts to happen
2. Not app-specific: After playing a game heavily for a while, the killing starts... only for that specific game. If I play a different game, then only that new game gets killed.
This have driven me kinda crazy. A look at adb logs reveals this:
12-22 12:45:34.229 I/ActivityManager( 1752): Killing 23881:jp.co.happyelements.toto/u0a122 (adj 0): excessive high power cost :jp.co.happyelements.toto
What the actual f***??? Why would ZTE kill my "excessive high power cost" process *after* I turn on the screen (and not when I turn off screen, which was 5 seconds earlier)??? Has nobody in ZTE thought about that apps that has "high power cost" may not be actually "excessive" but totally within reasons and fall into the category of normal every day use?
And no amount of changing the native "power saving" options stopped this behavior. Back in the days I remember there was some root/xposed module that would whitelist apps from being killed by the OS but I couldn't remember the name. So now I have to ask help on how to deal with this idiocy.
Edit: My apologies... I just noticed I posted in the wrong section... mods please move the thread to Q&A section if possible. Thanks a lot.

is there seriously no solution?
This is intolerable

Turn off smart power lol. Not rocket science my friends

icenight89 said:
Turn off smart power lol. Not rocket science my friends
Click to expand...
Click to collapse
I did. Didn't help.
If it was that easy, then I wouldne be here asking about it would I?

Yep, have the same problem after trying the same things. Several apps (2 of which I use for monitoring blood sugar levels) will randomly stop updating until either re-launched or the phone is rebooted. I have disabled all power manager options to no avail. Whatever power management system ZTE has implemented, it's FAR too aggressive.
Disclaimer - I haven't pulled logcats, but your description of the problem matches mine exactly. Here's hoping for a fix in Nougat and/or a custom ROM, otherwise I'm moving to a different phone. The A7 has great hardware but the stock software is a bloated mess.

B27 does not have this issue (which is why I downgraded to it). Might be a solution for you until the next upgrade releases.

whoiswes said:
Yep, have the same problem after trying the same things. Several apps (2 of which I use for monitoring blood sugar levels) will randomly stop updating until either re-launched or the phone is rebooted. I have disabled all power manager options to no avail. Whatever power management system ZTE has implemented, it's FAR too aggressive.
Disclaimer - I haven't pulled logcats, but your description of the problem matches mine exactly. Here's hoping for a fix in Nougat and/or a custom ROM, otherwise I'm moving to a different phone. The A7 has great hardware but the stock software is a bloated mess.
Click to expand...
Click to collapse
@whoiswes If you are talking about the xdrip app. I too want this app to work with this phone. I tried CM13 and had the app work for hours then at night it stopped working. I only tried it for one night so didn't try different settings. At least this is a positive sign once CM13 becomes more stable or CM14 is released. I heard the app won't work with B27 either.

Found a solution, though it needs root
Code:
pm disable com.zte.powersavemode
then reboot
This totally disables the power saving menu though

phailyoor said:
Found a solution, though it needs root
then reboot
This totally disables the power saving menu though
Click to expand...
Click to collapse
Can you freeze it with TB?

Actually no that didnt help just made it take longer

I have the same issue, ram management is too aggressive.

phailyoor said:
Found a solution, though it needs root
then reboot
This totally disables the power saving menu though
Click to expand...
Click to collapse
Didn't work

:crying::crying::crying:https://forum.xda-developers.com/axon-7/development/xposed-kill-zte-killer-t3532298

phailyoor said:
:crying::crying::crying:https://forum.xda-developers.com/axon-7/development/xposed-kill-zte-killer-t3532298
Click to expand...
Click to collapse
Did this work?

borijess said:
Did this work?
Click to expand...
Click to collapse
No because it has nothing to do with powermanager.

doyou37 said:
No because it has nothing to do with powermanager.
Click to expand...
Click to collapse
Then why was it posts here?

borijess said:
Then why was it posts here?
Click to expand...
Click to collapse
People are desperate

borijess said:
Did this work?
Click to expand...
Click to collapse
Yes
doyou37 said:
No because it has nothing to do with powermanager.
Click to expand...
Click to collapse
Lol did you even look at it?
doyou37 said:
People are desperate
Click to expand...
Click to collapse
I made this xposed module specifically to fix the problem described in OP. If you have the exact problem, including the logcat message, then the module should fix it.
If you dont have the exact problem, including the logcat mesage, then go ****post in another thread.

My solution is to whitelist all apps in:
settings -> energy management -> app energy management -> option button (upper right) -> app protection list -> option button -> set all to off
But the problem is that this setting resets everytime you install/delete an app
Edit: Ok i just tried out manually setting all apps to "off", now it doesn't reset the apps when installing an app but the new app ist automatically allowed to be cleaned. So you still have to disallow cleaning for each installed app manually.

Just an FYI, I updated to the Cyanogenmod/Lineage 13 Beta by UDev and one of my problem apps has been running for 18 hours without a single hiccup. Trying the second problem app later today. Not a solution for this problem but from my perspective it definitely pinpoints Power Manager as the culprit.
@borijess - yeah, Nightwatch and xDrip are the 2 apps that I've had trouble with, and so far Nightwatch is working great on CM13 (1228 build).

Related

Device Quality Agent?

This weird app (device quantity agent) was pushed to my phone from the galaxy apps store as a critical update just a few ago, anyone know what it is?
msburr87 said:
This weird app (device quantity agent) was pushed to my phone from the galaxy apps store as a critical update just a few ago, anyone know what it is?
Click to expand...
Click to collapse
Same here.
ahh so thats the "critical update" i declined. Was wondering what it was since there were no apps that needed updating in the store. Wonder what it does
It's update for fixing DQA keeps stopping issue.
I had mine suddenly download and install 3 things from the galaxp app store yesterday without me knowing anything about it. Personalized service client, samsung pass, and LED view cover icon editor. I thought I had been hacked and someone was downloading sutff to my phone!! No idea why it suddenly started doing that by itself. I have turned auto update apps off now in the galaxy app store, I guess they were already installed and were just auto updating (and i have no disabled them all in package disabler since they all seemed like junk).
I dont know what DQA does, wonder if its another one we can safely disable.
ewokuk said:
I dont know what DQA does, wonder if its another one we can safely disable.
Click to expand...
Click to collapse
From what I understand, DQA has to do with checking the quality of your Wi-Fi. You'll notice if you turn your Wi-fi off, you'll stop getting those messages. Some have had success with going into your running Apps and force stopping the DQA. That didn't help me though and rebooting several times (which has also helped some) didn't work for me either. Still working through options. If anyone has other ideas...
RTBee said:
From what I understand, DQA has to do with checking the quality of your Wi-Fi. You'll notice if you turn your Wi-fi off, you'll stop getting those messages. Some have had success with going into your running Apps and force stopping the DQA. That didn't help me though and rebooting several times (which has also helped some) didn't work for me either. Still working through options. If anyone has other ideas...
Click to expand...
Click to collapse
I havent had any issues with or or any messages about it either before it updated or after. I usually have wifi on but have turned it off today and not noticed anything either. I have not disabled it in package disabler as i didnt know what it did, it doesnt seem to be using battery so i will just leave it on.
This is what I've found from Android Authority...
- Reboot device (may need to repeat a few times)
- Clear cache partition through recovery (turn off phone, press and hold Power, Volume Up and Bixby button. On Android screen, when you see ‘No command’ hold power and press volume up to access recovery. Use volume keys to highlight ‘Wipe cache partition’ and press Power to select. Highlight ‘Yes’ and press Power to confirm, then reboot phone)
- Turn off Wi-Fi
- Disable high performance mode
- Force quit DQA app (go to Settings > Apps and tap the overflow menu (three dots at the top right), tap ‘Show system apps’ and locate DQA. Tap it and ‘Force stop’)
- Disable DQA app with BK Package Disabler (costs $1.50, does not require root). Install app, grant permissions, swipe to System tab, find DQA and check the box next to it (simply uncheck to re-enable).
I haven't tried all these options yet. Let me know if any help should you decide to try.
I'm bumping this topic. Tried googling DQA, but very little seems to be known about it. If it indeed is checking the quality of the wifi, is it really safe to disable?
eried1 said:
I'm bumping this topic. Tried googling DQA, but very little seems to be known about it. If it indeed is checking the quality of the wifi, is it really safe to disable?
Click to expand...
Click to collapse
Hi, have you found any info regarding DQA? I found it among the recommended apps to disable/uninstall on Universal Android Debloater, but still I read somewhere that some of the apps disabled through UAD might be important, so I'm not sure about what to do.
NovaProspekt70 said:
Hi, have you found any info regarding DQA? I found it among the recommended apps to disable/uninstall on Universal Android Debloater, but still I read somewhere that some of the apps disabled through UAD might be important, so I'm not sure about what to do.
Click to expand...
Click to collapse
No. I'd leave it active.

Hou can I make Android 6.0's doze feature not suck that much?

Hi,
I really don't understand how the doze system works on android marshmallow. I mean, it kills apps that I need, and leaves on apps that I need killed. I have done all the battery optimization exceptions from settings->apps, I have excluded and included in the keep alive after screen lock option in battery manager, nothing is working how it should be.
I want apps like Tasker and Automate It to work when i close the screen, but even if I exclude them from all things that could kill them, they work for only about 2 minutes and then bye bye.
Is there a setting I missed, or maybe an app that keeps them alive, or maybe some root underground terminal emulator magic I can do to fix this issue?
Thanks in advance.
sundaysfantasy said:
Hi,
I really don't understand how the doze system works on android marshmallow. I mean, it kills apps that I need, and leaves on apps that I need killed. I have done all the battery optimization exceptions from settings->apps, I have excluded and included in the keep alive after screen lock option in battery manager, nothing is working how it should be.
I want apps like Tasker and Automate It to work when i close the screen, but even if I exclude them from all things that could kill them, they work for only about 2 minutes and then bye bye.
Is there a setting I missed, or maybe an app that keeps them alive, or maybe some root underground terminal emulator magic I can do to fix this issue?
Thanks in advance.
Click to expand...
Click to collapse
It's not Doze that sucks so much, it's EMUI's power management. It's overly aggressive in killing apps.
zgomot said:
It's not Doze that sucks so much, it's EMUI's power management. It's overly aggressive in killing apps.
Click to expand...
Click to collapse
You're probably right, even though they fixed this in EMUI 5.0, but I don't like Nougat because it has an annoying bug, so maybe there's a fix to this for MM. I'll try to write to them too.
sundaysfantasy said:
You're probably right, even though they fixed this in EMUI 5.0, but I don't like Nougat because it has an annoying bug, so maybe there's a fix to this for MM. I'll try to write to them too.
Click to expand...
Click to collapse
What annoying bug do you mean? I find N better than MM in almost every way. And now with B380 battery usage is amazing.
zgomot said:
What annoying bug do you mean? I find N better than MM in almost every way. And now with B380 battery usage is amazing.
Click to expand...
Click to collapse
At random times, my screen won't turn on when I unlock it. I can hear the unlock sound, receive phone calls and probably use all other phone functions, but my screen stays black. I have to force-restart the phone in order for the screen to work again. It probably is a problem with my phone, but I'm too lazy to send it to warranty.

Small Tip: Disable Lookout for Better Performance on the S8

I noticed some lag on my S8 and I realized that it might be lookout that's causing the lag, as I had it on a prior phone and it caused some lag on that phone.
Go to settings > apps > and find lookout and just press the disable button. For me, at least, I noticed a slight improvement in performance.
disclaimer: yes, I'm sure there are benefits to having Lookout scan and ensure all your apps are safe, but I get all my apps from the play store, and stick with ones I know. Do this at your own risk/responsibility.
Some other things I did that seemed to have helped:
1. I stopped opening the official facebook app. I use a FB wrapper app called 'simple pro' for facebook. Way lighter, less resource intensive.
2. I had installed Greenify to try to help hibernate apps, but I uninstalled it. I think the way it was trying to hibernate apps was causing some lag. Just my observation/assumption. But after I uninstalled, my phone is running way smoother.
That was the only reason why I paid for the disabling app was to get rid of lookout!
easyguy said:
That was the only reason why I paid for the disabling app was to get rid of lookout!
Click to expand...
Click to collapse
You don't need to buy anything - you can just do it in the stock settings.
The disable app button is actually disabled for me.
So does this fix some lag time too or what improvement did you see offhand?
Mysticales said:
So does this fix some lag time too or what improvement did you see offhand?
Click to expand...
Click to collapse
Yes, for me, it reduced the lag/stutter I was seeing here and there.
As a side, I was actually also using Greenify app to try to save battery life, but I noticed that after I UNINSTALLED it, my s8 is also running smoother.
I'll update the original post w/ things I was doing to improve performance - now it's way smoother.
anjelika said:
The disable app button is actually disabled for me.
Click to expand...
Click to collapse
Weird, did you try force stopping it first?
ro_bro said:
Weird, did you try force stopping it first?
Click to expand...
Click to collapse
The force close button is also disabled! I can only uninstall the updates and maybe try again but I didn't bother as I have the phone insured and they might require this program to run in case the phone gets stollen or something, I don't know...
anjelika said:
The force close button is also disabled! I can only uninstall the updates and maybe try again but I didn't bother as I have the phone insured and they might require this program to run in case the phone gets stollen or something, I don't know...
Click to expand...
Click to collapse
maybe it's different by carrier? I have the tmobile s8.
ro_bro said:
maybe it's different by carrier? I have the tmobile s8.
Click to expand...
Click to collapse
Same here, I'm on T-Mobile, the only difference is that I have the S8+. Will try with wife's S8 and see if the buttons are enabled.
anjelika said:
Same here, I'm on T-Mobile, the only difference is that I have the S8+. Will try with wife's S8 and see if the buttons are enabled.
Click to expand...
Click to collapse
yeah see my attached screenshots.
To disable it on t-mobile you need to go into the lookout app and turn off the option to find your stolen phone. After doing so the force stop and disable buttons will no longer be greyed out.
Im trying to get Package Disabler pro to work, and after I activate PDP engine it just flashes the screen a bunch of times and says it has a network error

Nova 3i Bugs

Hi all!
I am a Samsung user genuinely. But since my last phone broke down, it broke my budget too.
Got Nova and here are some bugs.
1) Bluetooth speaker issue. the sound is way late than the video. (Edit: Fixed by going in developer options and changing "Bluetooth audio codec")
2) Camera is not having any kind of stabilization.
3) It hangs like hell and u r not left with any option. Not even restart.
4) Not the fastest 4gb ram phone.
5) The interface of the phone is laggy af ( can be fixed by installing 3rd party launchers).
6) Processor temps are never lower than 60 degree C. Idk if its fine or not but antutu temp sensor always shows it in red text.
These are the ones I could find... tell if u have any.. or at least have found fix for any of them.
BTW...
Today got an update of 288MB which is currently downloading. Hope it fixes some bugs.
Xial Xahab said:
Hi all!
I am a Samsung user genuinely. But since my last phone broke down, it broke my budget too.
Got Nova and here are some bugs.
1) Bluetooth speaker issue. the sound is way late than the video.
2) Camera is not having any kind of stabilization.
3) It hangs like hell and u r not left with any option. Not even restart.
4) Not the fastest 4gb ram phone.
5) The interface of the phone is laggy af ( can be fixed by installing 3rd party launchers).
6) Processor temps are never lower than 60 degree C. Idk if its fine or not but antutu temp sensor always shows it in red text.
These are the ones I could find... tell if u have any.. or at least have found fix for any of them.
BTW...
Today got an update of 288MB which is currently downloading. Hope it fixes some bugs.
Click to expand...
Click to collapse
nova 3 or nova 3i?
jioleight said:
nova 3 or nova 3i?
Click to expand...
Click to collapse
Its nova 3i... Ofc its mentioned in the post too
Xial Xahab said:
3) It hangs like hell and u r not left with any option. Not even restart.
Click to expand...
Click to collapse
You can press power for 10 seconds for force restart right? It's it not working?
Supersonic27543 said:
You can press power for 10 seconds for force restart right? It's it not working?
Click to expand...
Click to collapse
When i was stuck at it... I had to wait for the battery to die.... It wasn't working at that time..... For me anyways
Xial Xahab said:
4) Not the fastest 4gb ram phone.
Click to expand...
Click to collapse
Take a look at screenshot
hinxnz said:
Take a look at screenshot
Click to expand...
Click to collapse
Sold that **** out .... So... Am feeling blessed now?
Xial Xahab said:
Sold that **** out .... So... Am feeling blessed now
Click to expand...
Click to collapse
Lol I kinda like mine, except for a few things I guess but I got it for a good deal, well I reckon anyway - $380 NZD.
What did you replace it with?
Hello! These issues, especially the Camera app being buggy, are common.
The performance issue, please go to settings > Battery > Battery Usage and see which apps are using a lot of background usage, then click on the app and there's written 'App Launch', click on that and toggle off the 'Manage Automatically' and also toggle off all of the toggled on things to prevent the app from consuming background usage.
On this device you can also disable/uninstall many apps that if u dont need, please do so, here are some list of apps you can disable which would improve performance:
1. Gmail (replace with another mail client like FairEmail)
2. Youtube (replace with another application like NewPipe)
3. You can also disable playstore and the main Google app.
4. You can also disable Google Play Services, this consumes a lot of background usage, more than HMS! You can replace playstore with F-Droid and you can get FOSS apps.
5. Replace Facebook with Frost for Facebook, or disable background access to it from the previous performance issue guide.
I am not getting performance issue on mine, so make sure u check which apps are using background/battery usage a lot so you'd find out.

How to disable sleep/battery optimisation?

We have bike computers which connect to an app on our phone. The app is called Wahoo Elemnt.
I'm having an issue with my wife's bike computer and OP 6t.
She got a new phone, the Oneplus 6T, and after 30 minutes, the phone disconnects from the bike computer, so she can't see incoming calls/messages. The moment she wakes up the phone, it connects instantaneously.
Have checked all the settings, and made sure that there is no 'battery optimisation' set for the Elemnt app. Have even disabled the advanced settings.
On my Note 8, and her previous Oneplus 3, the app would remain connected even thru a 5 hour ride, and the phones don't need to be 'woken up'.
Any other suggestions?
Will this work?
https://forum.xda-developers.com/oneplus-6t/how-to/guide-notification-fix-100-t3865551
@Funk Wizard .. this is 4th or 5th thread for apps not sending notifications or widgets not refreshing and doze has to be disabled for them to work.. is it known issue that OnePlus working on?
ram4ufriends said:
@Funk Wizard .. this is 4th or 5th thread for apps not sending notifications or widgets not refreshing and doze has to be disabled for them to work.. is it known issue that OnePlus working on?
Click to expand...
Click to collapse
Yes it's a known issue with doze being too aggressive. Most of the issues are solved when you turn off advanced optimization and sleep standby, if the issue persists please take logs and submit as feedback, thanks.
Funk Wizard said:
Yes it's a known issue with doze being too aggressive. Most of the issues are solved when you turn off advanced optimization and sleep standby, if the issue persists please take logs and submit as feedback, thanks.
Click to expand...
Click to collapse
I did turn off advanced optimization and sleep stand by..I even made these apps don't optimize in battery settings, still the issue prevails... I didn't have these issues on my Pixel 2 XL or Note8 and I didn't even have to turn off any settings on those phones to get notifications.. I have to execute "adb shell dumpsys deviceidle disable" every time I restart my 6T for the notifications and widgets to work for some apps...
ram4ufriends said:
I did turn off advanced optimization and sleep stand by..I even made these apps don't optimize in battery settings, still the issue prevails... I didn't have these issues on my Pixel 2 XL or Note8 and I didn't even have to turn off any settings on those phones to get notifications.. I have to execute "adb shell dumpsys deviceidle disable" every time I restart my 6T for the notifications and widgets to work for some apps...
Click to expand...
Click to collapse
Have u tried pinning those apps in the recents. I shall be getting the purple one in a couple of days then I can test further.
Yeah, I think that should solve this issue. I had exact the same problem with another app and locking the app in recents solved it.
Funk Wizard said:
Have u tried pinning those apps in the recents. I shall be getting the purple one in a couple of days then I can test further.
Click to expand...
Click to collapse
rmaathuis said:
Yeah, I think that should solve this issue. I had exact the same problem with another app and locking the app in recents solved it.
Click to expand...
Click to collapse
I will dig it up more over the weekend when I test further and share my findings.
Funk Wizard said:
Have u tried pinning those apps in the recents. I shall be getting the purple one in a couple of days then I can test further.
Click to expand...
Click to collapse
I don't see an option to pin the app to 'recents'.
Edit: Got it. Trying it now.
Funk Wizard said:
Yes it's a known issue with doze being too aggressive. Most of the issues are solved when you turn off advanced optimization and sleep standby, if the issue persists please take logs and submit as feedback, thanks.
Click to expand...
Click to collapse
Doze can be aggressive but there is an option to exclude Doze per app under - Apps/Special Access/Battery Optimisation.
Unfortunately Oneplus has disable this option on our devices and have replace it with a one switch called Advanced optimisation.
I am trying to find a way to get this Pie Stock feature back. Any clues?
Funk Wizard said:
Have u tried pinning those apps in the recents. I shall be getting the purple one in a couple of days then I can test further.
Click to expand...
Click to collapse
Just crossed an hour and no disconnection. I think this will work. Huge thanks.
Sent from my SM-N950F using Tapatalk
geovass said:
Doze can be aggressive but there is an option to exclude Doze per app under - Apps/Special Access/Battery Optimisation.
Unfortunately Oneplus has disable this option on our devices and have replace it with a one switch called Advanced optimisation.
I am trying to find a way to get this Pie Stock feature back. Any clues?
Click to expand...
Click to collapse
did you try this lock to recents method?
nikosrs4 said:
did you try this lock to recents method?
Click to expand...
Click to collapse
Yes i have. The application (a game to be exact) is always killed after a while...
boy, it must be a heavy one
nikosrs4 said:
boy, it must be a heavy one
Click to expand...
Click to collapse
Shouldn't be an issue on a 8GB RAM phone thought
deepakvrao said:
Just crossed an hour and no disconnection. I think this will work. Huge thanks.
Sent from my SM-N950F using Tapatalk
Click to expand...
Click to collapse
Glad i could help :good:
deepakvrao said:
Just crossed an hour and no disconnection. I think this will work. Huge thanks.
Click to expand...
Click to collapse
You have to do that after every restart?
ram4ufriends said:
You have to do that after every restart?
Click to expand...
Click to collapse
I'll do it before every ride. Not a big deal. Or leave it pinned. But, yes, after a restart it will be required.
Sent from my SM-N950F using Tapatalk
Funk Wizard said:
Yes it's a known issue with doze being too aggressive. Most of the issues are solved when you turn off advanced optimization and sleep standby, if the issue persists please take logs and submit as feedback, thanks.
Click to expand...
Click to collapse
The problem for me is that the TMobile version doesn't allow you to turn off advanced optimization and sleep standby, those settings don't even exist, unless they are in a completely different spot than the unlocked version. And I haven't found it
Funk Wizard said:
Glad i could help :good:
Click to expand...
Click to collapse
Pinning apps didn't help in widgets not refreshing data

Categories

Resources