Looking to run the app in the background? - OnePlus 6T Questions & Answers

Hello Members,
I was looking to run one of the apps in the background as it's work related . However, on the flip-side Android is building the operating system in such a way that it kills the apps for more battery life and/or best performance.
In order to fix it I have changed the following setting on OnePlus 6T which has worked like a charm.
Settings --> System --> Recent App Management --> Normal Clear (by default it is Deep Clear) - Change it to Normal Clear.
Hope this helps someone.
Cheers!

Actually default is normal clear.

polzovotel said:
Actually default is normal clear.
Click to expand...
Click to collapse
Thanks polzovotel. However, for me it was Deep Clear

By me it was also normal clear. And it is not working.
I wanna have termux running in the background always, but it gets killed.
I disabled battery optimization for the termux app, I turned off adaptive battery. It still gets killed automatically.
Within termux there is termux-wakelock setting but it is not working on the 6t.
Tried with a Samsung phone and it works perfectly.

elyem said:
By me it was also normal clear. And it is not working.
I wanna have termux running in the background always, but it gets killed.
I disabled battery optimization for the termux app, I turned off adaptive battery. It still gets killed automatically.
Within termux there is termux-wakelock setting but it is not working on the 6t.
Tried with a Samsung phone and it works perfectly.
Click to expand...
Click to collapse
I have same issue with background running apps like NordVPN or Strava.
My configuration is 9.0.7 + xXx + Smurf Kernel.
Do you use any of this?

Try this guys. Report back if it helps.

TheKnux said:
Try this guys. Report back if it helps.
Click to expand...
Click to collapse
How do you get that option of Lock? I am looking to run Fongo World (a VoIP app) but it doesn't show me that Lock option

KomodoPlus said:
How do you get that option of Lock? I am looking to run Fongo World (a VoIP app) but it doesn't show me that Lock option
Click to expand...
Click to collapse
Tap the 3 dot overflow button and Lock should be there.

Unfortunately it didn't helped.

Related

Does Tasker work in Marshmallow 6.0?

Anybody use Tasker on they're Moto X Pure? If so what version. Tasker definitely came in handy on my other phone. I just got my Moto X Pure a few days ago. My setup is almost finished. I love it.
dkeepitabuck said:
Anybody use Tasker on they're Moto X Pure? If so what version. Tasker definitely came in handy on my other phone. I just got my Moto X Pure a few days ago. My setup is almost finished. I love it.
Click to expand...
Click to collapse
Yes I use it all day long. Version 4.8u1 which is the newest in the playstore.
dkeepitabuck said:
Anybody use Tasker on they're Moto X Pure? If so what version. Tasker definitely came in handy on my other phone. I just got my Moto X Pure a few days ago. My setup is almost finished. I love it.
Click to expand...
Click to collapse
Tasker works just fine for me on the MXPE. I am on Marshmallow 6.0 with the February security update. i am using the latest version in the Play Store.
aybarrap1 said:
Tasker works just fine for me on the MXPE. I am on Marshmallow 6.0 with the February security update. i am using the latest version in the Play Store.
Click to expand...
Click to collapse
I am using tasker but it says data not available try secure settings, which I have. Also I can set a GPS toggle but when trying to use it it does nothing.
Could be an issue with secure settings app. Couldn't tell you since I have chosen not to root for now. My main reason for rooting other phones was to tame the bloat. With the exception of GPS on and off with certain apps, tasker works just fine for the functions I want so secure settings is not a must have.
What tasks do you have running? Sorry I've rooted many phones but I'm a noob to tasker.
I have a variety running such as wifi at home, rotation and custom brightness on or off based off apps, and custom alarms dependent upon calendar entries, day of the week and times. The thing with tasker is that with root and the right third party apps, the things you can do are too numerous to list. Just read up on it and come up with things you want your phone to do. Then read some more so you can set up profiles to do this things. I will admit that if you are new to tasker and do not have programming background, it seems daunting. However, once I got into it was fun and I can't up with new ideas. Once it is setup with the profiles you want, you can sit back as your phone will be automated.
aybarrap1 said:
I have a variety running such as wifi at home, rotation and custom brightness on or off based off apps, and custom alarms dependent upon calendar entries, day of the week and times. The thing with tasker is that with root and the right third party apps, the things you can do are too numerous to list. Just read up on it and come up with things you want your phone to do. Then read some more so you can set up profiles to do this things. I will admit that if you are new to tasker and do not have programming background, it seems daunting. However, once I got into it was fun and I can't up with new ideas. Once it is setup with the profiles you want, you can sit back as your phone will be automated.
Click to expand...
Click to collapse
I actually do have some programming background which is what drew me to tasker. I currently have one profile set up for home which automates my wifi on. I was hoping for GPS and data off, at said locatio, but no biggie. I'll keep playing around and create more profiles. I'm just glad it was the app not me that was the problem. One last thing is there an xposed app or some way tasker can set auto brightness? That's the one thing I miss from previous phones.
jtsativa420 said:
I actually do have some programming background which is what drew me to tasker. I currently have one profile set up for home which automates my wifi on. I was hoping for GPS and data off, at said locatio, but no biggie. I'll keep playing around and create more profiles. I'm just glad it was the app not me that was the problem. One last thing is there an xposed app or some way tasker can set auto brightness? That's the one thing I miss from previous phones.
Click to expand...
Click to collapse
Make sure that system+ in enabled in the Secure Settings app. gps off/on should work fine, but for data on/off you have to make a task that has about 2 or 3 seperate actions. I can help with that if you'd like, as i have data off/on when i connect/disconnect from wifi. what are you trying to set auto brightness on during? like a time of the day or when you use a certain app?
thefallen924 said:
Make sure that system+ in enabled in the Secure Settings app. gps off/on should work fine, but for data on/off you have to make a task that has about 2 or 3 seperate actions. I can help with that if you'd like, as i have data off/on when i connect/disconnect from wifi. what are you trying to set auto brightness on during? like a time of the day or when you use a certain app?
Click to expand...
Click to collapse
System plus is enabled and I was able to get auto brightness to work. The GPS on/off says it works yet my location light in the notification bar doesn't turn off. Yes I would love help with the data. Thanks in advance!
jtsativa420 said:
System plus is enabled and I was able to get auto brightness to work. The GPS on/off says it works yet my location light in the notification bar doesn't turn off. Yes I would love help with the data. Thanks in advance!
Click to expand...
Click to collapse
So I made a task and called it Data off. you'll want to Add>Net>Test Net. Type=Mobile Data Enabled, Store Result in=%Data. Second action will be Code>Run Shell, command=svc data disable, if=%Data~yes. Third action will b e variable>variable clear, name=%Data.
Next you'll make a task called Data On. First action is Add>Net>Test Net. Type=Mobile Data Enabled, Store Result in=%Data. Second action will be Code>Run Shell, command=svc data enable, if=%Data~No. Third action will b e variable>variable clear, name=%Data.
Now you make a new profile that becomes active with the wifi connected state. set that to trigger the Data off task, and add select data on as your exit task.
This may seem a bit of a roundabout way to do things, but i think since LL, android no longer allows any third party app or plug in to toggle the data. so the way around that is through the shell commands. Hope this helps!
Hi thefallen924, thanks for this walkthrough on mobile data, I have a noob question though, do I need root for it to work? Thanks in advance!
thefallen924 said:
So I made a task and called it Data off. you'll want to Add>Net>Test Net. Type=Mobile Data Enabled, Store Result in=%Data. Second action will be Code>Run Shell, command=svc data disable, if=%Data~yes. Third action will b e variable>variable clear, name=%Data.
Next you'll make a task called Data On. First action is Add>Net>Test Net. Type=Mobile Data Enabled, Store Result in=%Data. Second action will be Code>Run Shell, command=svc data enable, if=%Data~No. Third action will b e variable>variable clear, name=%Data.
Now you make a new profile that becomes active with the wifi connected state. set that to trigger the Data off task, and add select data on as your exit task.
This may seem a bit of a roundabout way to do things, but i think since LL, android no longer allows any third party app or plug in to toggle the data. so the way around that is through the shell commands. Hope this helps!
Click to expand...
Click to collapse
Thanks for this. I'm definitely saving the task but not enabling it just yet. Between posts I set up gavity box mm and it seems to be doing what I wanted with it's smart radio.
---------- Post added at 07:21 AM ---------- Previous post was at 07:18 AM ----------
Fumodemasiado said:
Hi thefallen924, thanks for this walkthrough on mobile data, I have a noob question though, do I need root for it to work? Thanks in advance!
Click to expand...
Click to collapse
Yes , im 90% sure you need root for this. Also, to give him thanks, click the thumbs up button below his post!
jtsativa420 said:
System plus is enabled and I was able to get auto brightness to work. The GPS on/off says it works yet my location light in the notification bar doesn't turn off. Yes I would love help with the data. Thanks in advance!
Click to expand...
Click to collapse
I had the same problem, it seems secure settings can't turn on/off the data. A found a solution using Code -> Run Shell -> Command: svc data enable (or disable) and check the Use Root option.
It works fine that way.
Dunkel06 said:
I had the same problem, it seems secure settings can't turn on/off the data. A found a solution using Code -> Run Shell -> Command: svc data enable (or disable) and check the Use Root option.
It works fine that way.
Click to expand...
Click to collapse
Very nice and simple. I just tried it, confirmed it's working and updated my tasks!! Any backdoor GPS methods?
Fit secure settings to work with data connection you do need root.

How to stop ActivityManager killing apps due to "high power cost"???

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).

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.

How to handle Auto-start permissions ?

Hi,
Everything is in the title : How to handle Auto-start permissions in OOs 4.5.3 ?
I didn't find a menu for that.
With my old phone, I used to use Bootmanager, but without Xposed I can't use it anymore.
Any piece of advice ?
BR
I would like to know this as well, memory management (start up/background use/keep awake) is huge in controlling battery life.
I need Xposed for 3 apps: Boot Manager, GravityBox, and YouTube AdAway...
So, no option in OOs ?
dcrnic said:
I need Xposed for 3 apps: Boot Manager, GravityBox, and YouTube AdAway...
Click to expand...
Click to collapse
You can have and adblocked YouTube with a magisk module. Background play too.
https://forum.xda-developers.com/android/apps-games/app-iytbp-injected-youtube-background-t3560900
oskarvlc said:
You can have and adblocked YouTube with a magisk module. Background play too.
https://forum.xda-developers.com/android/apps-games/app-iytbp-injected-youtube-background-t3560900
Click to expand...
Click to collapse
Thank you. I'm using SuperSU PRO... will check if magisk can run with it together...
LBE Security Master can handle Autostarts perfectly. I use it to control permissions and for autoboot on my OP5. Rest of options I've switched off. Works like a charm. If you need APK just PM me.
You need root (of course)
exis_tenz said:
LBE Security Master can handle Autostarts perfectly. I use it to control permissions and for autoboot on my OP5. Rest of options I've switched off. Works like a charm. If you need APK just PM me.
You need root (of course)
Click to expand...
Click to collapse
I'm interested, is it an English versoin ?
There are large threads about this program here on XDA. For me this is an understandable piece of software. I found others too complicated or PMP (Xposed) that didn't work on my Sony Z3 Dual.
LBE does this job. Download from XDA or send me pm for apk.
Has anyone figured this out?
I vaguely remember seeing the option in settings - apps - cog - auto start in an earlier version of OOS?
Is this removed or moved somewhere else?
OnePlus 5 apparently has a new feature of auto starting apps based on usage, but that seems to be a load of *@#! cos none of my most used apps launch on boot
The option still exist but you cannot access it through settings.
If you're an Alarmy user, the app give you prompt to that page whenever you confirm an alarm setup (interestingly).
If you don't, you can download JOneplus tool from play store which also can lead you to that page (by force touching the app)
And no, I'm not affiliated with either or both of the above apps in any ways.
If you use nova launcher you can create an activity to point to manage centre where you can see the auto start apps, however it does not work at all for me but your mileage may vary.
I use the app Autostarts which works perfectly
Hi
I'am using this one, you should try it~
https://play.google.com/store/apps/details?id=tk.ty3uk.oxygenhiddensettings
chrislui said:
Hi
I'am using this one, you should try it~
https://play.google.com/store/apps/details?id=tk.ty3uk.oxygenhiddensettings
Click to expand...
Click to collapse
Thx, Autostart + Doze Optimization shortcuts
y7038862 said:
The option still exist but you cannot access it through settings.
If you're an Alarmy user, the app give you prompt to that page whenever you confirm an alarm setup (interestingly).
If you don't, you can download JOneplus tool from play store which also can lead you to that page (by force touching the app)
And no, I'm not affiliated with either or both of the above apps in any ways.
Click to expand...
Click to collapse
daleski75 said:
If you use nova launcher you can create an activity to point to manage centre where you can see the auto start apps, however it does not work at all for me but your mileage may vary.
Click to expand...
Click to collapse
timebandi said:
I use the app Autostarts which works perfectly
Click to expand...
Click to collapse
chrislui said:
Hi
I'am using this one, you should try it~
https://play.google.com/store/apps/details?id=tk.ty3uk.oxygenhiddensettings
Click to expand...
Click to collapse
Thanks! Interesting suggestions.
Will test all for a few days and update
chrissss91 said:
Thx, Autostart + Doze Optimization shortcuts
Click to expand...
Click to collapse
Replaced this app with Apex Shortcuts (may not be exactly the same label as I translated them from French :angel :
- Shortcuts / Activities / Management Center / Application Auto-start (.chainlaunch.view.ChainLaunchAppListActivity)
- Shortcuts / Activities / Management Center / Hibernation Application Parameters (.cleanBackground.view.ManageBackgroundAppListActivity)
If someone can provide me the real label in English, I'll update OP
chrislui said:
Hi
I'am using this one, you should try it~
https://play.google.com/store/apps/details?id=tk.ty3uk.oxygenhiddensettings
Click to expand...
Click to collapse
So tried this for the last few days, but looks like it doesn't seem to have any effect?
I have apps like LMT, greenify, ex kernel manager set to start at boot and settings in the above and other apps but they don't seem to start up or apply the settings. In fact the toggle in LMT even gets turned off at boot and have to manually get into any of the apps and restart them.
I am assuming the others don't see this misbehavior? Do you have aggressive doze and/or doze turned off?

WhatsApp location sharing problem

Hi all
I use my share location sometimes on way home from work, but it doesn't work, as soon as I open the app again it starts to work again?
Seems the app has to be open and running and on to be working.
Not an issue on previous phones, is there a way to allow it to remain running? Seems silly to need to have it on?
Try to not optimize the battery usage on WhatsApp. That may solve the issue. I have experienced delay in notifications with WhatsApp, so I removed that optimization. Normally this solves the 90% of the issues with location, notifications or background processes
WhatsApp location permission setting change from only when app is running to always allow?
hjin said:
WhatsApp location permission setting change from only when app is running to always allow?
Click to expand...
Click to collapse
Take a look, there is no option.
WeedBilbao said:
Try to not optimize the battery usage on WhatsApp. That may solve the issue. I have experienced delay in notifications with WhatsApp, so I removed that optimization. Normally this solves the 90% of the issues with location, notifications or background processes
Click to expand...
Click to collapse
That makes sense, cheers will give it a whirl.
Disabled it, let's see how it goes, there really is no option to leave it constantly on, how crap is that.
dladz said:
Take a look, there is no option.
Click to expand...
Click to collapse
Never noticed that wasn't an option for Whatsapp. Thats an option with most other apps, but found this
https://android.stackexchange.com/q...-all-the-time-location-permission-to-whatsapp
hjin said:
Never noticed that wasn't an option for Whatsapp. Thats an option with most other apps, but found this
https://android.stackexchange.com/q...-all-the-time-location-permission-to-whatsapp
Click to expand...
Click to collapse
Nice find, glad to see it wasn't just me either

Categories

Resources