I've been using NordVPN on all my devices, but have always had an issue with it staying on on my OP6T, especially now that I'm running 9.0.13. I'll establish a connection and let it run in the background. However, after about 2-5 minutes, it seems to automatically disconnect. I've ensured that it's not being battery optimized, I don't have any hibernation apps running, and I'm on stock kernel. I'm rooted with magisk and running sysconfig module, but didn't know if it's supposed to affect VPN apps. Would it be better to run it through a third party VPN app? And if so, is this an issue with OOS or NordVPN's app? Normally, I'd suspect the app, but I've had issues with WearOS on OOS as well, so that's why I'm asking. I like being able to use their CyberSec feature and I didn't think it was available through third party apps. Any help would be greatly appreciated.
Hello!
This is caused because OOS is killing the VPN app. It happened to me too with a lot of apps. Maybe with some kernel tweaks or "systemizing" the apps or other tweaks you will minimize the chance to an app to be killed by OOS, but have in mind that soon or later OOS will kill your app. No matter if it's a health app, music player app or anything else. OOS will kill them even if you are using only 3GB of RAM.
For the VPN app, check if NordVPN has config info to allow you setup manually any VPN profile using IPSec XAuth or L2TP/IPSec , and set it to VPN always connected. I know this is a pain because you'll have to manually enter every config for every server you use with your VPN provider. Anyway, from time to time you will notice your connection isn't working and will be because OOS will kill even his own connection.
Welcome to the OnePlus don't kill my app club!
ducted said:
Hello!
This is caused because OOS is killing the VPN app. It happened to me too with a lot of apps. Maybe with some kernel tweaks or "systemizing" the apps or other tweaks you will minimize the chance to an app to be killed by OOS, but have in mind that soon or later OOS will kill your app. No matter if it's a health app, music player app or anything else. OOS will kill them even if you are using only 3GB of RAM.
For the VPN app, check if NordVPN has config info to allow you setup manually any VPN profile using IPSec XAuth or L2TP/IPSec , and set it to VPN always connected. I know this is a pain because you'll have to manually enter every config for every server you use with your VPN provider. Anyway, from time to time you will notice your connection isn't working and will be because OOS will kill even his own connection.
Welcome to the OnePlus don't kill my app club!
Click to expand...
Click to collapse
I guess that makes sense. When I was running pixel experience ROM, it seems to not have any of those issues. I just wanted the most polished experience and I figured OOS was always that. But I have noticed that a lot of Chinese oems tends to have pretty aggressive hibernation settings and it isn't far fetched. I just never had this issue on my OP3 back in the day and I loved OOS. But then again, I was running AOSPA a lot too and maybe that's why I didn't have this happen a lot. That kinda blows... I'm typically all about using custom roms, but with the fingerprint scanner on this one, while it is usable on other roms, I still feel like it isn't fully polished. But I'd rather no apps being killed then a perfect fingerprint scanner. I just really like the native call recording and gestures that oneplus offers natively, and I know you can do these things I'm custom roms, I just feel like it isn't executed quite as gracefully lol!
Thanks for the input! It really means a lot!
I run a VPN on my router, and connect my phone to it when I'm out and about town, or at work when I want to connect to my security cameras. I've found after a couple hours the VPN connection is dropped. I'm just using the standard VPN in the phone settings, not a special app. I've never trouble-shot the problem because it's not a big deal for me, but in this case there's no app holding it alive, just a basic phone setting.
Frankenscript said:
I run a VPN on my router, and connect my phone to it when I'm out and about town, or at work when I want to connect to my security cameras. I've found after a couple hours the VPN connection is dropped. I'm just using the standard VPN in the phone settings, not a special app. I've never trouble-shot the problem because it's not a big deal for me, but in this case there's no app holding it alive, just a basic phone setting.
Click to expand...
Click to collapse
Yeah I gotcha... I switched to OmniROM because I figured their background task management tends to be a lot better, and it is. Been running my VPN for several hours now, and I haven't had a single issue!
Observation: just now I connected VPN using standard settings feature. Was working fine. Two minutes later a call came in and I took it. After the call was over I noticed VPN was disconnected. Clearly the switch to the call caused the disconnection. Note I never set up VOLTE. I don't use the phone much...
Sent from my ONEPLUS A6013 using Tapatalk
That got fixed.
I have the same problem with OP8 Pro, don't get any OnePlus phones if you need VPN.
awdrifter said:
I have the same problem with OP8 Pro, don't get any OnePlus phones if you need VPN.
Click to expand...
Click to collapse
That because of battery optimization. If you have problem VPN disconnect of 2mins, try to set battery optimization to "don't optimize".
No, the disconnect is somewhat random. Sometimes it disconnects in a few minutes even when I'm actively using the phone. Sometimes it disconnects after about an hour, or it could be somewhere in between. I have a Samsung S8+ before, that phone has no such issue. The OnePlus phone is killing my VPN app even if I locked the app. I suspect OnePlus left some anti-VPN code that's meant for the Chinese ROM Hydrogen OS on the global ROM Oxygen OS.
I'm using Vpn to access to YouTube Music and I never have any problem.
Note: if Vpn disconnect youtube music will instantly stop.
I'm faced that problem before with Turbo VPN the connection never pass 5 mins due to battery optimization so I turn off battery optimization for specific vpn app. After that the problem never occur anymore.
Developer options>standby apps, all buckets should show as active otherwise power management is active.
When it happens check running apps and cache apps to see it you can spot what's doing it.
With Samsung's old version of Device Care I was able to find a corrupted Android Setup like this. Saved me a factory reset.
Developer options running services/cache apps is less helpful though than the former but may work.
blackhawk said:
Developer options>standby apps, all buckets should show as active otherwise power management is active.
When it happens check running apps and cache apps to see it you can spot what's doing it.
With Samsung's old version of Device Care I was able to find a corrupted Android Setup like this. Saved me a factory reset.
Developer options running services/cache apps is less helpful though than the former but may work.
Click to expand...
Click to collapse
I checked the Developer options> standby apps, my VPN app is set as "frequent", should I change it to "active"? Thanks.
Seems like some apps can be set to "Exempted", but that's not an option for my VPN app. My phone is fully rooted, is there anything I can edit to force it to be "Exempted"? Even WeChat was set to "Exempted", that's definitely not a system app.
awdrifter said:
I checked the Developer options> standby apps, my VPN app is set as "frequent", should I change it to "active"? Thanks.
Seems like some apps can be set to "Exempted", but that's not an option for my VPN app. My phone is fully rooted, is there anything I can edit to force it to be "Exempted"? Even WeChat was set to "Exempted", that's definitely not a system app.
Click to expand...
Click to collapse
I don't have the "exempted" option on my stock Note 10+. Not sure.
However the fact that you can set the bucket states in standby apps means the power management is active.
It causes nothing but trouble.
I stopped using it over a year ago and dealt with problem apps directly. Power management was contributing to excessive battery consumption as well as causing erratic behaviors.
Forget all those elegant techno explanations of how the bucket states blah, blah, blah... it screws the phone up proper
Android does quit well without it... just more useless bloatware.
Not surprising... Google will ruin anything if they screw with it long enough.
It's their nature
So I set the Battery Optimization to "Don't Optimize", my VPN app is now "Exempted" in standby apps. But it still got killed by the phone. The ROM definitely have some kind of anti-VPN code.
awdrifter said:
So I set the Battery Optimization to "Don't Optimize", my VPN app is now "Exempted" in standby apps. But it still got killed by the phone. The ROM definitely have some kind of anti-VPN code.
Click to expand...
Click to collapse
What VPN app are you using??
awdrifter said:
So I set the Battery Optimization to "Don't Optimize", my VPN app is now "Exempted" in standby apps. But it still got killed by the phone. The ROM definitely have some kind of anti-VPN code.
Click to expand...
Click to collapse
You need to disable all power management.
That's the problem, I can guarantee you.
When it's fully disabled all buckets will show as active and you won't be able to reset their states.
If you* reset a bucket state then navigate out of Developer options then reenter Standby app again the reset bucket will show as active ie it was unsuccessful.
The reason you can alter the bucket states is a software power management apk is running in the background. Find it and disable it.
It's probably the phone manufacturer apk but it could well be a Google apk (Samsung, in my case, likes to supercede Android/Google apks with their own).
Lol, I played with this a lot about a year ago...
The fact that I remember it so well tells you how much time it wasted and the aggravation it caused It's junk.
Just for giggles the worst power hog on my phone is Google Play Services. Disabling it solved many issues; I enabled as needed for Gmail, Gmaps and Playstore.
*edit, sorry for the missing "you".
SOK seila said:
What VPN app are you using??
Click to expand...
Click to collapse
Tunnel Bear
ZTE (another Chinese device) also does the same. It's frustrating as hell. My subscription to Adguard and VPNs suffer the same fate where it turns off.
I know China dislikes VPNs, but this is nuts.
blackhawk said:
You need to disable all power management.
That's the problem, I can guarantee you.
When it's fully disabled all buckets will show as active and you won't be able to reset their states.
If you* reset a bucket state then navigate out of Developer options then reenter Standby app again the reset bucket will show as active ie it was unsuccessful.
The reason you can alter the bucket states is a software power management apk is running in the background. Find it and disable it.
It's probably the phone manufacturer apk but it could well be a Google apk (Samsung, in my case, likes to supercede Android/Google apks with their own).
Lol, I played with this a lot about a year ago...
The fact that I remember it so well tells you how much time it wasted and the aggravation it caused It's junk.
Just for giggles the worst power hog on my phone is Google Play Services. Disabling it solved many issues; I enabled as needed for Gmail, Gmaps and Playstore.
*edit, sorry for the missing "you".
Click to expand...
Click to collapse
How do I force disable "buckets"?
Related
So I am really angry at Android now, with all the issues and difficulties it is getting me through. Although visually and practically I still prefer it to iOS, there are some really annoying issues with it, that concern battery life/stability.
So there are apps that prevent your phone from sleeping, either leaves speaker on, or other BS. I have to close them every time I stop using the phone, to avoid a really stupid issue I had today. I recharged the phone 100% in the morning, later that day I went to check e-mails, sent a couple sms etc. and then I played this game called Pou, I left it running, the screen was off, but I didn't close it. Ended up with empty battery in 3 Hours.
This is ****ing ridiculous, what kind of smartphone is that, if it can't understand that I'm not playing games when the screen is off.
Is there at least a faster way to close all open apps, other than swiping from left to right 20 times every time you stop using the phone?!?!
What apps are causing the issue?
You're blaming the OS for the behavior of an app made by a bad developer. The vast majority of applications will not do that. iOS avoids that by limiting the cases in which an app is allowed to run in the background. You can argue that it's a superior solution for the end user, but it limits the ability for an app to actually do anything in the background.
Many custom ROMs build in a "kill all" button in the recent apps view. It's really not necessary though. You've identified an application that has this issue, so just make sure to kill that one app when you're done with it. Again, most applications won't have that problem.
raptir said:
You're blaming the OS for the behavior of an app made by a bad developer. The vast majority of applications will not do that. iOS avoids that by limiting the cases in which an app is allowed to run in the background. You can argue that it's a superior solution for the end user, but it limits the ability for an app to actually do anything in the background.
Many custom ROMs build in a "kill all" button in the recent apps view. It's really not necessary though. You've identified an application that has this issue, so just make sure to kill that one app when you're done with it. Again, most applications won't have that problem.
Click to expand...
Click to collapse
+1. I had just read a lot of silly things and ur comment relaxed me a bit. Blame a PHONE because some apps keep the phone awake... this is crazy, people should have a bit of experience before posting in this forum with so much arrogance.
This might help...
https://www.youtube.com/watch?v=JmvCpR45LKA
Sent from my Nexus 4 using Tapatalk 4
badboy47 said:
This might help...
https://www.youtube.com/watch?v=JmvCpR45LKA
Sent from my Nexus 4 using Tapatalk 4
Click to expand...
Click to collapse
That helped me so many times till I understood it....
The place to go, to get a definitive understanding of wakelocks is here:
http://forum.xda-developers.com/showthread.php?t=1179809&highlight=betterbatterystats
This is the thread for BetterBatteryStats, which is really all you need to troubleshoot why your device doesn't sleep enough.
Also, look at Greenify, which hibernates the apps you tell it to, a pretty unique trick.
http://forum.xda-developers.com/showthread.php?t=2155737&highlight=greenify
And as a last suggestion (frowned on by the purists at the betterbatterystats thread, but I find it really useful) use DS Battery Saver Pro, which will switch off wifi and reconnect every 10 minutes, amongst other tricks.
http://forum.xda-developers.com/showthread.php?t=2030696&highlight=ds+battery+saver
As an aside, I hear that iOS7 has impressed its user base with all sorts of hidden options which stop the phone resting, so maybe it's just a question of complexity . The good news is that, especially with the knowledge that is shared in betterbatterystats, it won't take you long to troubleshoot what your problems are, and the other 2 apps which will resolve your issues are pretty straightforward to use.
There are free versions I recall in the first post of these threads, I use the Pro version of DS Battery Saver since I prefer to configure my own profile.
Thank you everyone for replies.
I have not rooted the phone, so Greenify is no option for me, not really up to going through all rooting and ROM installing process in order to maybe succeed in solving the issue.
Specifically talking apps that leave speaker ON (It keeps hissing) and keeps phone awake, if you do not close them are following : Asphalt 8, Need For Speed Most Wanted.
The thing is I am not sure who to blame really, yes there are many apps that work normally and don't cause these issues, but then again why is the keeping the phone awake allowed in the first place, downloaded apps that would need to work that way should need special permissions. I understand there might be apps that want to keep ON/playing something after you have quit them, but if that's the case, then user should be able to deny certain permissions to prevent this from happening. The OS is complex enough, why not give even more options then or just this one at least.
Not sure how other people manage with this problem, I can't find anyone mentioning anything about Asphalt 8 and Android having this problem, people just deal with that they have battery draining to 0% in 5 hours? I know many people with smartphones 75% barely ever closes any programs from multitasker, most of them are iPhone users though. But how do they manage to live with their phone if they have this. I did manage to find people complaining about Pou draining battery, solution was to just uninstall the app, ridiculous.
I can't be the only one having these issues.
Well, the Android "style guide" has the back button as the exit function, so instead of leaving it running in the background, you may want to try backing all the way out.
It's been about a year since I played Asphalt (6 I think it was), but I vaguely remember it had an exit button which explicitly closed down the app.
Could be worth trying that. All the same, install the free xda edition of BetterBatteryStats (in the first post I think) and then look at the partial wakelocks, you'll quickly see what is stopping the phone sleeping.
paul c said:
Well, the Android "style guide" has the back button as the exit function, so instead of leaving it running in the background, you may want to try backing all the way out.
It's been about a year since I played Asphalt (6 I think it was), but I vaguely remember it had an exit button which explicitly closed down the app.
Could be worth trying that. All the same, install the free xda edition of BetterBatteryStats (in the first post I think) and then look at the partial wakelocks, you'll quickly see what is stopping the phone sleeping.
Click to expand...
Click to collapse
It really is like that, this fixes a small part of this issue! If you exit the game using the back button, the application closes the resource, but leaves it available at the multi task panel.
But, when I had iPhone, I could play the game, lock the screen, go home, for example, and continue where I left off, no battery drainage or anything. Only when you fill up the RAM memory it stops least recent processes.
Often it is very annoying to tap multiple times the back button (Sometimes even on screen you have to press quit multiple times (Quit current game & quit menu)) until you get to exit the application. And you can't continue where you left off, if you do that.
What the most bothers me about this is if I suddenly have something urgent and I don't turn off the application, my phone could drain a heavy amount of battery percentage till I remember to close them or check something on the phone/continue where I left off.
raptir said:
You're blaming the OS for the behavior of an app made by a bad developer. The vast majority of applications will not do that. iOS avoids that by limiting the cases in which an app is allowed to run in the background. You can argue that it's a superior solution for the end user, but it limits the ability for an app to actually do anything in the background.
Many custom ROMs build in a "kill all" button in the recent apps view. It's really not necessary though. You've identified an application that has this issue, so just make sure to kill that one app when you're done with it. Again, most applications won't have that problem.
Click to expand...
Click to collapse
luiseteyo said:
+1. I had just read a lot of silly things and ur comment relaxed me a bit. Blame a PHONE because some apps keep the phone awake... this is crazy, people should have a bit of experience before posting in this forum with so much arrogance.
Click to expand...
Click to collapse
Guys, this isn't the only issue with the OS. I had bad battery drainage from Wi-Fi & mobile network location setting also. I have various Google app problems, also with drainage, freezing and lag with Google Chrome, Google+ keeping phone awake. I would consider that as a property of Android OS, because the software was already installed when I got the phone. Chrome is the default and only internet browser in the beginning and it should work properly.
So I am not sure who to blame, maybe the developers can't find a workaround from the problem, because the OS is not behaving correctly, and I don't think that it's inappropriate to blame also the OS, since even the default apps and settings have problems same as some apps do.
I have used Chrome daily since it was first released for Android and have never had any real issues with it. Occasionally it will give me a problem where I need to restart the app but that's probably about once a week. Google+ should only keep the phone awake if you have it set to upload your photos automatically, and even then there's a setting to force it to only do the uploads when on the charger.
I think the key issue is that you're used to an OS that does not involve any thought from the user. I'm not saying that's a bad thing, but it's a distinctly different approach from Android. Apps are allowed to run when the phone is asleep because that can provide additional functionality. I'm sure you wouldn't complain if Pandora was playing music and thus running when the phone was asleep. And that would hit your battery hard. iOS only allows applications to run under very specific conditions, thus limiting what they can do but making sure you don't end up with any "runaway" applications. Android puts the responsibility on the developer to make their app handle battery life well and on the user to make sure they're using decent applications.
Things like the mobile network and WiFi location are used by Google Now to provide location-based data. If you would rather have the improved battery life, turn Google Now off. Some of us would rather have the functionality, but you have the option to disable it.
Keep in mind also that the Nexus 4 just doesn't get as good battery life as the iPhone 4 or newer.
raptir said:
I have used Chrome daily since it was first released for Android and have never had any real issues with it. Occasionally it will give me a problem where I need to restart the app but that's probably about once a week. Google+ should only keep the phone awake if you have it set to upload your photos automatically, and even then there's a setting to force it to only do the uploads when on the charger.
I think the key issue is that you're used to an OS that does not involve any thought from the user. I'm not saying that's a bad thing, but it's a distinctly different approach from Android. Apps are allowed to run when the phone is asleep because that can provide additional functionality. I'm sure you wouldn't complain if Pandora was playing music and thus running when the phone was asleep. And that would hit your battery hard. iOS only allows applications to run under very specific conditions, thus limiting what they can do but making sure you don't end up with any "runaway" applications. Android puts the responsibility on the developer to make their app handle battery life well and on the user to make sure they're using decent applications.
Things like the mobile network and WiFi location are used by Google Now to provide location-based data. If you would rather have the improved battery life, turn Google Now off. Some of us would rather have the functionality, but you have the option to disable it.
Keep in mind also that the Nexus 4 just doesn't get as good battery life as the iPhone 4 or newer.
Click to expand...
Click to collapse
I have never had a OS that I am fully satisfied with, that is normal, but I am always very aware for issues, always scanning for issues, I really hate that about myself, I am a perfectionist, I will not calm down until I get everything just the way I think it should be... So that makes up very difficult relations with any software I use, too bad for me.
Android apps do have more functionality, more freedom than iOS, and I very much appreciate that. BUT if that functionality results in 90% to 0% in 3 hours, when you forget to turn off 1 app after using it... please, I feel like it's a duty to take care of my smartphone, close app after you are done or the phone will die, and you will be left without a phone for the entire day.
I don't like that instability when you can make 1 thing wrong and it all goes to pieces, not when there are people using other phones with almost the same functionality and no problems like that.
No matter who I have to blame this on, I have this issue and it is because of Android & because of the developer of the app.
It's very sad, I really want Android to be more stable with this
Yukicore said:
It's very sad, I really want Android to be more stable with this
Click to expand...
Click to collapse
There are hundred millions of Android users, we don't all gets wakelocks. I don't have this problem and my phone is stable. Once you are using Android, you are no longer special and pampered in a walled garden like iOS users.
If you have battery drain due to Google services, see here: http://forum.xda-developers.com/showthread.php?t=2385843
I suggest doing a factory reset and not install crap apps like anything by Gameloft, just play them on Apple devices. If you gets a wakelock, make a shortcut on your desktop to Apps and check on what apps are running in the background, one of the app in the list could be the issue.
I know you don't want to root, but I suggest do it anyway and install Greenify, hibernate any apps you don't want autostarting when you boot up the phone. Watch out for apps that both runs in the background and ask for too many permissions. I know there is an app that limit the maximum app that can run in the background, but I don't know the name, you can set it in the phone's Developer mode, but it doesn't persist on reboot.
Maybe the difference is like moving from an automatic car (iOS) to a manual (Android).
At least before "multitasking" arrived to iOS, an app no longer in the foreground was effectively exited. Android's memory management is much more complex than that, and apps are kept in memory until a new app requires the RAM being held by a previous one.
There is a clear advantage to this since apps "reopen" instantly, but if you're not careful there could be continued drain from apps still open but not in the foreground.
Incidentally - I don't follow Apple closely - iOS7 has been slated by users for the scenario you describe, I believe!
Google's apps offer all sorts of wonderful location-based features, for which the phone inevitably needs to know its location. Coarse location (via triangulation of radio towers) is not a problem, but "fine" requires the GPS to be used, and that does drain the battery.
So you need to consider whether you want all that location based stuff from Google.
Wifi is also a big drain, and that is why I get my phone to switch on every 10 minutes via DS Battery Saver. The upside is that the phone sleeps regularly, but the downside is that Whatsapp messages etc don't arrive immediately.
As you can see, Android offers you the ability to choose to be uber-connected/always on, or to have a better battery consumption. Since each individual is different, you can choose what is important to you.
I just had that drain second time happening. I don't remember how I left that stupid game, but I ended up with 2% battery and phone turned off.
I think I exited using the back button. What the hell.
Pou is known to kill your battery.
http://forums.androidcentral.com/google-nexus-4/253092-media-server-draining-my-battery.html
http://answers.yahoo.com/question/index?qid=20130606043957AA9Tq7N
Since it's a virtual pet game the developer probably did not code it to close when you hit the Back button, so you need to kill it through Recent Apps. Or just uninstall it.
raptir said:
Pou is known to kill your battery.
http://forums.androidcentral.com/google-nexus-4/253092-media-server-draining-my-battery.html
http://answers.yahoo.com/question/index?qid=20130606043957AA9Tq7N
Since it's a virtual pet game the developer probably did not code it to close when you hit the Back button, so you need to kill it through Recent Apps. Or just uninstall it.
Click to expand...
Click to collapse
This is bad... Now it is developers fault, but why on earth should Android OS allow this kind of behavior on any app... This is not a simple background service, this was running fully when the screen was off. 2-4 hours is the screen on time averagely I get, 3.5 hours without screen on, it's damn fast draining.
Yukicore said:
This is bad... Now it is developers fault, but why on earth should Android OS allow this kind of behavior on any app... This is not a simple background service, this was running fully when the screen was off. 2-4 hours is the screen on time averagely I get, 3.5 hours without screen on, it's damn fast draining.
Click to expand...
Click to collapse
We've already been through this. You're fine with your phone's music player running in the background when the screen is off, right? It's the exact same behavior, just that Pou uses more resources and has no reason to be running. Apple puts heavy restrictions on what an app can do in the background (playing music being one of the only exceptions). Google leaves it up to the developer and user to manage it.
If you think that is a problem with the OS, I really recommend you go back to the iPhone. Not being mean or anything, but you clearly either do not understand the differences in philosophy between the two operating systems or you understand it and prefer the iOS way.
raptir said:
We've already been through this. You're fine with your phone's music player running in the background when the screen is off, right? It's the exact same behavior, just that Pou uses more resources and has no reason to be running. Apple puts heavy restrictions on what an app can do in the background (playing music being one of the only exceptions). Google leaves it up to the developer and user to manage it.
If you think that is a problem with the OS, I really recommend you go back to the iPhone. Not being mean or anything, but you clearly either do not understand the differences in philosophy between the two operating systems or you understand it and prefer the iOS way.
Click to expand...
Click to collapse
You said that user and developer can manage resources of apps, how can a user manage them? Can I fix this specific problem myself somehow?
Here are some screen shots of perfect CPU utilization with stock system and a ton of exposed modules.
What you want is OSmonitor to be at 1 and 2 about 50% to 80% of the time on the usage list, but that is more common with custom kernels. With stock, 1 and 3 becomes more common.
What causes hits to the system to keep OSMONITOR from stabilizing in the top ranges of utilization... quite simple; Modules that directly require the system to update screen or pol processes in background. In simple terms, the need for the OS to do the dirty work.
That is why I don't use Tasker, battery performance enhancements, and themed system type mods. Without them I can get 12 hours on a single charge with minimal sleep time, so by identifying how apps effect the system, one does not need to add overhead to correct, just need to do some detective work.
I noticed that Wanam modules use some CPU by poling the system. Even though there are plenty of good xposed modules, some are dirty in how they operate.
Not that they cause some overhead, but how they interact with other modules if used together.
Even if you find a nice app to do some custom work to your device, some use network connections to send data, either to play store, Google services, or to the developer site for debug or usage tracking. I suspect a bit of overhead is why network polling by such apps should be stopped if possible before dumping one or more because they hot on utilization.
One in particular is Solid Explorer. Not only I blocked ads, I had to block the app as well from background network usage. It is easy to find by looking at the usage data in network setting. If you are not using IPC$ or bothering with cloud storage, then by all means kill network usage for the app in question.
Right now, I am looking into Tunnelbear, Samsung's video player, and the stock video player on TouchWiz devices. Both do some odd things but are manageable. Mostly because I know what to expect.
Tunnelbear is now hooked to auto run when on an unsecured network. So it leaves its network service on when not used. Plus registration may stay on after closing. Very messy for programming, even through one may see the app as well made. IMO registration should turn off with the app closing. As for its network service, it should only enable when the option to auto start is enabled. A simple foresight many programmers don't see until pointed out.
Here I don't program and know better... a true programmer should know the processes inside and out before writing a line of code. Maybe resorting back to assembly will brake such programming habbits, that are easy to make with tools to plug away with in programming technique. Yep I know how to program, but I am not a programmer! It's a job that does not peak my interests.
Notice the attached images... the CPU usage will fluctuate but the CPU speeds will hold at one core enabled and at 200Mhz on stock kernel. On custom, it could be down to 100Mhz and any number of active cores depending on the kernel tweaks.
Partial fix for tunnelbear
Since I touched on tunnelbear keeping active connections for registration and network service. I was able to keep network service from being an issue, by preventing the service from running. I also prevented the quicksettings tile service from running as well. Both are not required and for my usage tunnelbear does not work well as a full vpn outside of streaming and messaging, due to the lack of multiple connection limit. So even if I wanted to have tunnelbear auto connect when connecting to a public Hotspot, I would be unable to use the VPN the way i want to.
So far the only issue is the registration service sticking in background once tunnelbear is closed.
Latest vs Older apps
Again I was forced into doing a trial and error run of older app usage vs that of newer and latest app functionality.
Tunnelbear and BBCiplayer were knocked down, for two different reasons.
BBCiplayer had difficulty with downloads completing and clear playback, as it seemed below 720i standards. Had a older good copy in my tibackup backups. That fixed one issue. As for tunnelbear... there was way too many so called improvements that I did not use. Plus having the old and dated version cleared up network service loading, as it did not hook with detecting unsecured networks for VPN auto connection. As for registration being loaded and running, it seems to be a problem since v 100 or so, and all the older ones fail to connect now. At least the registration service will close it's connections when not in ise, unlike the newer versions.
There are many other apps I will not update because of such trouble. I rather have 100% functionality with an app, than to have a bug or two plague what I expect out of it. Plus I don't need all that Facebook, Twitter, and other social stuff tied into what I use. Actually a browser is all I need for social activity if I choose. Disconnecting your devoce from social functionality and syncing. Truely releases your device from the power being consumed by these unnecessary apps, even when they are not in use.
You could freeze them, but it is more of an Inconvenience than what it should be.
At least with a browser, once your done, it's is done with its connection and you did not need the use of a background service.
Idle utilization
I performed a cpu idle during normalization usage stat after tweaking my disabled services and frozen system apps.
The screen shot was done 12 minutes after wake up, screen always on and had just hit 99% on a full charge.
I am trying blokkada and after several hours , may be next day the phone just stops opening any sites until I disable blokkada.
So I tried adguard same thing after a day or two, have to disable the service and then it works fine. Once renanled it would fine for several hours or till next day.
Anyone have this issue? I am on 6t intl model.
For adguard, set VPN to always on in phone settings > WiFi & internet > VPN, and then lock adguard from recent apps. Also make sure adguard is not being battery optimized.
Can't speak for blokada but this would likely work for it as well.
Thanks will try. Which is good these days?
thedrizzle said:
For adguard, set VPN to always on in phone settings > WiFi & internet > VPN, and then lock adguard from recent apps. Also make sure adguard is not being battery optimized.
Can't speak for blokada but this would likely work for it as well.
Click to expand...
Click to collapse
coolguy said:
Thanks will try. Which is good these days?
Click to expand...
Click to collapse
I use adguard, even with root. It's not free but there's a reason for that. I find that it consistently blocks the most crap.
Better Solution
coolguy said:
I am trying blokkada and after several hours , may be next day the phone just stops opening any sites until I disable blokkada.
So I tried adguard same thing after a day or two, have to disable the service and then it works fine. Once renanled it would fine for several hours or till next day.
Anyone have this issue? I am on 6t intl model.
Click to expand...
Click to collapse
If Adguard or Blokada isnt working for you give DNS66 a try. Its available on Fdroid. I like using it because i couldn't get the other apps to work because of some technical stuff i did. Finding an alternative is a much simpler fix than crying over something that doesnt work. When you get an OTA update, you can always retry Blokada and Adguard again.
From my experience the only thing that truly works is disabling the adaptive battery feature. This, along with disabling battery optimization, helps adguard stay alive during sleep.
Is anyone having serious battery drain? If so is there a fix for it!!
Not here...
Full charge at 9:00pm and by 6:00am I only see 3% drop, I don't call it a drain
(no root, latest Android Q update, location on, cell data on, bluetooth and NFC off)
Yes there is definitely higher drain on Android 10 overall.
Currently I am on AOSiP10 and getting 3-4% idle drain and about 2-3 SOT less than on AICP Pie. My friend on Stock 10 @ZeroInfinity has noticed a higher drain than Pie as well.
I'm in the process of figuring out what is causing the higher drain.
comp101inc said:
Is anyone having serious battery drain? If so is there a fix for it!!
Click to expand...
Click to collapse
No mine is about the same as with Pie (I haven't noticed any difference ... apart from once when I ran it right down I only got about 8hrs of sot (screen on time whereas on pie I'd get about 9 but it wasn't scientific not sure if I had the exact same settings).
Is an app showing high battery usage (Also use hamburger menu to show full system usage which incl standby)(might even be worth also looking at memory usage for each app under developer settings, if nothing stands out under battery for some reason). If very high usage suddenly maybe an app conflict with latest update. Or possibly even a crypto miner or some other malware. You can also check battery usage when booted into safe mode so no third party apps run.
only got around 2 to 3 hours sot after updating to Android 10
ronFenomeno said:
only got around 2 to 3 hours sot after updating to Android 10
Click to expand...
Click to collapse
Custom is always better than stock on this phone.
Wait for the AOSP ROMs to arrive and you will be able to easily get double that SOT time!
ronFenomeno said:
only got around 2 to 3 hours sot after updating to Android 10
Click to expand...
Click to collapse
I did notice somewhat higher drain on A10, but not too much to worry about. My SOT on a single charge is usually about 5+ hours. Full stock, rooted. I am using WiFi Automatic to disable WiFi when the phone is inactive, so that might be helping, not sure how much...
On AOSiP10 there is no wild battery drain.
My device sleeps like a baby.
My advice? Stay off stock Android 10 if at all possible!
CamoGeko said:
Stay off stock Android 10 if at all possible!
Click to expand...
Click to collapse
Not trying to convince anybody, but I am quite happy on stock. I used to flash custom ROMs a lot, but there is always *something* that doesn't work properly. Could be camera, audio, bluetooth, calls, sensors, whatever... So, optimized stock always seems to work better for me. Especially considering that stock on PH-1 is essentially (no pun intended ) a clean Android, I see no reason to switch. But... To everyone their own.
ronFenomeno said:
only got around 2 to 3 hours sot after updating to Android 10
Click to expand...
Click to collapse
something must be wrong, maybe old app dicta restored or similar?
The following is fairly normal for me with web browsing & social media (no gaming), I have background scanning set to off for both wifi & Bluetooth but do have an always on VPN as you can see (that battery drain is from other apps using the VPN, not just the VPN)
kt-Froggy said:
Not trying to convince anybody, but I am quite happy on stock. I used to flash custom ROMs a lot, but there is always *something* that doesn't work properly. Could be camera, audio, bluetooth, calls, sensors, whatever... So, optimized stock always seems to work better for me. Especially considering that stock on PH-1 is essentially (no pun intended ) a clean Android, I see no reason to switch. But... To everyone their own.
Click to expand...
Click to collapse
What optimizations are you using with Android 10?
I'm getting similar results just using Magisk modules: FDE.AI (plus liboemcrypto disabler for on-demand apps and updates).
Also, my phone was ported from Sprint to T-Mobile and I've only recently got a better grip on changing tower conditions with this APN guide from T-Mobile. I had redundant APNs that may have been slowing connection to changing conditions while in motion or changing towers. Support wasn't much help anytime I called. Vacationing in a rural area with limited and slow data had me looking for a better solution. Even better than before coming back home and surfing internet in a passenger car on the freeway. Deleting the redundant ones was key, I believe.
https://support.t-mobile.com/docs/DOC-2090
Sent from my PH-1 using Tapatalk
samep said:
What optimizations are you using with Android 10?
I'm getting similar results just using Magisk modules: FDE.AI (plus liboemcrypto disabler for on-demand apps and updates).
Click to expand...
Click to collapse
Actually, same here - I am using FDE.AI as well. I also use WiFi Automatic to turn off WiFi when the phone sleeps (IMO, it was a dumb move to remove that setting from Android). I am also shutting down Internet access with NetGuard to the apps that have no business with it, and limiting or removing location access to most of the apps.
On my previous devices I had to get rid of the OEM and carrier bloat, but PH-1 is using basically a clean Android, making it much leaner...
kt-Froggy said:
Actually, same here - I am using FDE.AI as well. I also use WiFi Automatic to turn off WiFi when the phone sleeps (IMO, it was a dumb move to remove that setting from Android). I am also shutting down Internet access with NetGuard to the apps that have no business with it, and limiting or removing location access to most of the apps.
On my previous devices I had to get rid of the OEM and carrier bloat, but PH-1 is using basically a clean Android, making it much leaner...
Click to expand...
Click to collapse
I haven't tried WiFi disabling in years (Juice Defender and profile apps) but I do limit apps' access to Internet with Adguard (unlocked licensed version).
I'll give the WiFi Automatic app a try and see how that goes. I have little use for WiFi outside of those saved networks that auto connect.
Thanks for the reply and suggestion.
Sent from my PH-1 using Tapatalk
IronRoo said:
something muscat be wrong, maybe old app dicta restored or similar?
The following is fairly normal for me with web browsing & social media (no gaming), I have background scanning set to off for both wifi & Bluetooth but do have an always on VPN as you can see (that battery drain is from other apps using the VPN, not just the VPN)
Click to expand...
Click to collapse
mine is just a bit weird on the battery usage. the Google play services is the highest usage on the battery but it just use running foreground for an hour. just want to clear the phone cache but it seems that it could not be cleared since my phone is not rooted
ronFenomeno said:
mine is just a bit weird on the battery usage. the Google play services is the highest usage on the battery but it just use running foreground for an hour. just want to clear the phone cache but it seems that it could not be cleared since my phone is not rooted
Click to expand...
Click to collapse
If you are sure it's play services you can just go to apps, find it & then go to "storage & cache" and clear cache or if that doesn't work clear data. (you do not need to be rooted)
However I suspect it's more likely another app is the cause as some apps will use services like location that rely on Google play services which then shows high battryr use but it is these other apps that are actually the cause as they are requesting the service. If you can't work out which tureen on developer option and look under "running services" and "memory" watch hopefully will give you a clue.
PS. You can boot to the recovery and wipe the whole cache partition from there
IronRoo said:
If you are sure it's play services you can just go to apps, find it & thin go to "storage & cache" and clear cache or if that doesn't work clear data. (you do not need to be rooted)
However I suspect it's more likely another app is the cause as some apps will use services like location that rely on Google play services which then shows high battryr use but it is these other apps that are actually the cause as they are requesting the service. If you can't work out which tureen on developer option and look under "running services" and "memory" watch hopefully will give you a clue.
Click to expand...
Click to collapse
clearing data is the last method for me. if it is possible, i would not do it.
actually, the Google play services don't play to much, the battery just drain when the screen is on. however, i have tried to clear the cache of google play service before, it doesn't help.
there is an update today, just see whether it would improve it or not. would it be the issue of the battery indicator?
I've got a problem with my S8 which is running latest, official, non-rooted XEO firmware. Specifically, it uses battery like crazy and heats up whilst doing nothing. This smells like a virus / malware infection or just... well, the last update was in December 2021 so it's also possible some system component is wonky OR... <shivers> some rootkit? I'm generally rather careful when installing apps, most of which will be coming in from official sources (Google Store) or at least fairly trusted sources.
Every so often I'll get a warning that a system component is using too much CPU and I should restart the phone - which obviously doesn't help at all. Also the battery drain is reported primarily by Android System and System Core (29 and 15% respectively). Battery usage stats generally don't add up because the listings don't add up to 100%. :/
I know the S8 is an old phone... and I know there are probably steps I should take prior to asking here - like a factory reset. But I'm really sceptical of doing a factory reset simply because I've got so much stuff on the phone that, while not impossible to backup, is certainly annoying (authenticator or banking apps for example - and I don't think the standard backup tools like those available from Google or Samsung backup such apps).
So I'd rather try some solutions or methods of dealing with the damned thing without resetting the phone first. Is there anything I can do?
You need to find the root cause. It may be a 3rd party using one or more of the Samsung system apps running under Android services, lol Legend for there are many... all lumped together.
A firewall with logging can help. Karma Firewall is what I use, uses almost no battery. Being rooted you have more options... use them.
Malware is always a possibility.
3rd party apps can cause hell. I don't allow any social media apps on the phone, ever.
Try in safe mode... if things calm down it's likely a 3rd party app. If so start going through the installed apps.
Clear system cache.
blackhawk said:
You need to find the root cause. It may be a 3rd party using one or more of the Samsung system apps running under Android services, lol Legend for there are many... all lumped together.
A firewall with logging can help. Karma Firewall is what I use, uses almost no battery.
Click to expand...
Click to collapse
Will try that, thanks!
blackhawk said:
Being rooted you have more options... use them.
Click to expand...
Click to collapse
The phone is NON-rooted.
blackhawk said:
Malware is always a possibility.
3rd party apps can cause hell. I don't allow any social media apps on the phone, ever.
Try in safe mode... if things calm down it's likely a 3rd party app. If so start going through the installed apps.
Clear system cache.
Click to expand...
Click to collapse
Oh, safe mode! I'll try that too! Thanks!
Shaamaan said:
Will try that, thanks!
The phone is NON-rooted.
Oh, safe mode! I'll try that too! Thanks!
Click to expand...
Click to collapse
Sorry about the root thing, my bad.
If you're running on Android 9 or lower Karma Firewall's logging feature is fully active otherwise not. Samsung store>Galaxy Labs> Battery Tracker can be useful.
I use Accubattery's history page to get a quick idea of charge/discharge rates.
I use Device Care>storage>clean as well.
Make sure no cloud apps are running in the background.
Update: in safe mode the phone doesn't heat up and battery usage seems normal. So it's probably some app.
Alas, the firewall wasn't very helpful - it seemed that apps that attempted accessing the internet were your usual suspects - Play Store, One Drive or other sync apps, Vanced.
Any other suggestions on possibly nailing down the culprit?
PS. I've also decided to send Samsung an error report via the Members app - I don't know what their reply times are and I honestly don't expect much from them but who knows? Perhaps they'll come through.
Shaamaan said:
Update: in safe mode the phone doesn't heat up and battery usage seems normal. So it's probably some app.
Alas, the firewall wasn't very helpful - it seemed that apps that attempted accessing the internet were your usual suspects - Play Store, One Drive or other sync apps, Vanced.
Any other suggestions on possibly nailing down the culprit?
PS. I've also decided to send Samsung an error report via the Members app - I don't know what their reply times are and I honestly don't expect much from them but who knows? Perhaps they'll come through.
Click to expand...
Click to collapse
Why other than maybe text messages is anything syncing? Take out the trash and go from there.
The ones that are connecting every minute or more when not open are prime suspects.
Some apps like Brave browser need to be closed out when not in use or they eat battery.
You can also try a hard reboot.
Update!
I left the phone in safe mode overnight. I mean, it seemed like things were better, so at least I'd have a stable phone.
Well, in the morning I was greeted with a severely depleted battery (went from 100 to 40 in the span of 6 hours) and I got the "high CPU usage" warning popup. The phone wasn't as hot to the touch tho.
So... Whatever is going on seems to happen also in safe mode, albeit less often? Or perhaps it's less "severe" where it doesn't heat up the phone but the drain is still there? But since safe mode is affected it's probably NOT an app, right?
At this point I'm completely baffled. Any other ideas?
Shaamaan said:
Update!
I left the phone in safe mode overnight. I mean, it seemed like things were better, so at least I'd have a stable phone.
Well, in the morning I was greeted with a severely depleted battery (went from 100 to 40 in the span of 6 hours) and I got the "high CPU usage" warning popup. The phone wasn't as hot to the touch tho.
So... Whatever is going on seems to happen also in safe mode, albeit less often? Or perhaps it's less "severe" where it doesn't heat up the phone but the drain is still there? But since safe mode is affected it's probably NOT an app, right?
At this point I'm completely baffled. Any other ideas?
Click to expand...
Click to collapse
Hard reset... hold power button until it powers off.
Try temporarily disabling Google play Services at night, see what that does.
OK, I'm baffled. I feel like I didn't really do anything but the phone is now running fine. Battery drain now might be better than ever!
Warms up on usage, obviously, but when idle it's nice and cool and battery drain seems minimal. I'll... leave it for a few days to see how this develops. It's very difficult to tell what the heck's the case here.
Shaamaan said:
OK, I'm baffled. I feel like I didn't really do anything but the phone is now running fine. Battery drain now might be better than ever!
Warms up on usage, obviously, but when idle it's nice and cool and battery drain seems minimal. I'll... leave it for a few days to see how this develops. It's very difficult to tell what the heck's the case here.
Click to expand...
Click to collapse
Retrace what you did. Reason being you may need to do it again. Really most times all you need to do is just "play" with it a bit (a lot). Almost impossible to crash a stock load, so explore and learn by playing with it. You are what you load and download; be careful with 3rd party apps they are the biggest potential hazards.
Once you have a fast, stable OS that's fulfilling its mission, let it be. Don't update or upgrade it.
Updates can and do break Sammy's. This N10+ is still running on Pie, current load is over 2yo. Rock solid stable and it runs like a bat out of hell with minimal maintenance. Security isn't an issue.
blackhawk said:
Retrace what you did. Reason being you may need to do it again. Really most times all you need to do is just "play" with it a bit (a lot). Almost impossible to crash a stock load, so explore and learn by playing with it. You are what you load and download; be careful with 3rd party apps they are the biggest potential hazards.
Click to expand...
Click to collapse
I have a suspicion this might have been some Samsung app (my bet's on Bixby) since those are likely still able to run in Safe Mode that got updated and then fixed...? Does that make sense?
blackhawk said:
Once you have a fast, stable OS that's fulfilling its mission, let it be. Don't update or upgrade it.
Updates can and do break Sammy's. This N10+ is still running on Pie, current load is over 2yo. Rock solid stable and it runs like a bat out of hell with minimal maintenance. Security isn't an issue.
Click to expand...
Click to collapse
I'm concerned about the last bit. I mean, upgrading to a new Android version is one thing but security updates are common, no?
Shaamaan said:
I have a suspicion this might have been some Samsung app (my bet's on Bixby) since those are likely still able to run in Safe Mode that got updated and then fixed...? Does that make sense?
I'm concerned about the last bit. I mean, upgrading to a new Android version is one thing but security updates are common, no?
Click to expand...
Click to collapse
Kill wittle bixby... you read it EULA?☠
It's more than one apk though. Takes a while to optimize a Sammy the first time
Well... if it's set up and used right Android 9 will run securely in the real world. No saving dumb bunnies anyway; they'll still get tagged even with the latest version
The proof is in my hand. Loaded over 2+ years ago and this N10+ UI version 1.5 is running clean like a bat out of hell. If I do get malware I can't erraticate in an hour or so, factory reset and change passwords.
My data is redundantly backed* up 4+ times, plus the onboard SD card used as a data drive. I'm ready to reload right now if I have to...
A malware forced reload is still less trouble than constantly updating and having the updates screw things up. That means more troubleshooting, finding new work arounds and still maybe needing a factory reset on top of all that. No.
Not vaxed either... not buying the hype.
*critical data must be redundantly backed up or sooner or latter it will likely be lost. Never encrypt data drives as you are the most likely to be locked out!
blackhawk said:
Kill wittle bixby... you read it EULA?☠
Click to expand...
Click to collapse
Oh I'd love that - but it's a system app and removing those without root is kind of... impossible? I can look into disabling it completely however - I never use it anyway. Since it's not a single app - any chance you got a link to the list of apps that need manual disabling?
Anyway, I'm still getting those damned warnings. The phone isn't constantly hot however, which is some improvement.
Shaamaan said:
Oh I'd love that - but it's a system app and removing those without root is kind of... impossible? I can look into disabling it completely however - I never use it anyway. Since it's not a single app - any chance you got a link to the list of apps that need manual disabling?
Anyway, I'm still getting those damned warnings. The phone isn't constantly hot however, which is some improvement.
Click to expand...
Click to collapse
Package Disabler kills bixby proper.
You can also disable it with an adb edit. That's one of the first things I do.
Bixby is a hot mess best dump along the interstate... like Google Assistant it needs external servers for many of its functions. I may change my mind but it's eula is like eating dry hardtack for breakfast.