Screen Overlay - Draw Over Screen permission greyed out. Cannot toggle. - Nexus 6P Q&A, Help & Troubleshooting

Now and then my 6P informs me that Screen Overlay has been detected and that if I want to change the rights for this setting, I must disable screen overlay in Settings > Apps. If I tick Open Settings, and tick any random app, the option to allow that the app will draw over other apps has been greyed out. It doesn't matter whether an app already has this permission or not. I cannot toggle it.
I have searched quite some time now but I cannot find the solution. Anyone here with a brilliant idea?
Thanks

Only certain apps have the "Draw over other apps" option available to them (Twitch, Skype, Lux, Twilight, etc.). From Google-ing the issue, it appears that certain functions in Android and some apps won't work when they're being drawn over. Are you using an app like Twilight or Lux that warms your display at night? If so, disabling them temporarily should allow you to change permission settings on apps.

BillyTheRatKing said:
Only certain apps have the "Draw over other apps" option available to them (Twitch, Skype, Lux, Twilight, etc.). From Google-ing the issue, it appears that certain functions in Android and some apps won't work when they're being drawn over. Are you using an app like Twilight or Lux that warms your display at night? If so, disabling them temporarily should allow you to change permission settings on apps.
Click to expand...
Click to collapse
Thanks for your reply. This made me thinking and I realised that I have the ScreenAdjuster app installed. After freezing that with TiBu I was able to perform the action that I wanted. So problem solved (at least I'd like to think so). The only thing that still puzzles me is that the toggle for allowing to draw over another app is greyed out at every app.

JazzMozz said:
Thanks for your reply. This made me thinking and I realised that I have the ScreenAdjuster app installed. After freezing that with TiBu I was able to perform the action that I wanted. So problem solved (at least I'd like to think so). The only thing that still puzzles me is that the toggle for allowing to draw over another app is greyed out at every app.
Click to expand...
Click to collapse
The majority of apps do not have the option available at all. Skype has it so you can view video call while in a different app, Facebook has it for their chat bubble system, and a some others that do similar things. As well as a bunch of Google apps for seemingly no reason.

BillyTheRatKing said:
The majority of apps do not have the option available at all. Skype has it so you can view video call while in a different app, Facebook has it for their chat bubble system, and a some others that do similar things. As well as a bunch of Google apps for seemingly no reason.
Click to expand...
Click to collapse
All clear and problem solved 100%. Thanks again!

BillyTheRatKing said:
Only certain apps have the "Draw over other apps" option available to them (Twitch, Skype, Lux, Twilight, etc.). From Google-ing the issue, it appears that certain functions in Android and some apps won't work when they're being drawn over. Are you using an app like Twilight or Lux that warms your display at night? If so, disabling them temporarily should allow you to change permission settings on apps.
Click to expand...
Click to collapse
I don't have any of those apps but I still get screen overlay problem. Plus draw over other apps is also greyed out Help

Bump

https://www.youtube.com/watch?v=ASM57Sl393g

Related

Question: screen overlay detected... How do I fix it?

Hi,
I am trying to use Waze on my phone, but the app won't open as it keeps saying screen overlay detected. I have gone into my settings and turned off the overlay for all the apps apart from the system apps. But it is still not working.
I have tried searching on Google, and don't have any of the apps installed like twilight, luxe or Facebook which are supposed to be causing the problem.
Any other suggestions on how to fix it?
Cheers
TRI
Do you have a display colour app running?
drummerman said:
Do you have a display colour app running?
Click to expand...
Click to collapse
Not that I am aware of unless it is a stock app? Do you have any examples of the apps?
TheRedIndian said:
Not that I am aware of unless it is a stock app? Do you have any examples of the apps?
Click to expand...
Click to collapse
Are you using swipe home, if so deactivate and enable the other app and then enable swipe home.
drummerman said:
Do you have a display colour app running?
Click to expand...
Click to collapse
Not unless it is a stock app
amar95353 said:
Are you using swipe home, if so deactivate and enable the other app and then enable swipe home.
Click to expand...
Click to collapse
Not sure what swipe home is? It's not listed under apps, I usually press the middle button to get to the home screen
TheRedIndian said:
Not unless it is a stock app
Not sure what swipe home is? It's not listed under apps, I usually press the middle button to get to the home screen
Click to expand...
Click to collapse
Screen Balance (which adjusts screen colour balance/tint) and which I recommended in another thread creates an overlay.
Certain apps will not function properly unless SB is turned off.
TheRedIndian said:
Not unless it is a stock app
Not sure what swipe home is? It's not listed under apps, I usually press the middle button to get to the home screen
Click to expand...
Click to collapse
It's not a stock app it's a downloaded app from the play store.
I usually turn off off all the apps using it and turn it on after... It's a frustrating issue but what are you going to do.
If it's bothering you find a good Rom, for example Superman Rom, Overlays was removed as it's too much if s hassle
Sent from my SM-G935F using XDA Premium HD app
TheRedIndian said:
Hi,
I am trying to use Waze on my phone, but the app won't open as it keeps saying screen overlay detected. I have gone into my settings and turned off the overlay for all the apps apart from the system apps. But it is still not working.
I have tried searching on Google, and don't have any of the apps installed like twilight, luxe or Facebook which are supposed to be causing the problem.
Any other suggestions on how to fix it?
Cheers
TRI
Click to expand...
Click to collapse
It has nothing to do with any of that, it's Google's fault. You can flash a fix which is in Phoenix rom thread or go back to a previous stock rom
drummerman said:
Screen Balance (which adjusts screen colour balance/tint) and which I recommended in another thread creates an overlay.
Certain apps will not function properly unless SB is turned off.
Click to expand...
Click to collapse
Tried setting the screen display to basic, but that didn't work
TheRedIndian said:
Tried setting the screen display to basic, but that didn't work
Click to expand...
Click to collapse
Sorry, I didn't make myself very clear. Screen Balance is an app, separate to the UI's adjustments.
I had the same overlay issue,what I did that Ive disabled all the apps altogether,and switched them on back one by one,discovered that an application called Swipe Home Button Ive installed was responsible,so I have uninstalled after which everything was normal.
Is it safe to turn off the overlay for the system installed apps? I have turned off the overlay for all other apps that I have installed
The app that was causing me this problem after this weekend's AT&T software update was Bing. I Uninstalled it and all was fine.
How I finally fixed the "Screen Overlay" problem on my S7 edge.
The easiest fix, only full fix, I have found is as follows. When the screen overlay screen opens in settings, just turn everything marked on to off. Which by the way is the only thing you can do on this screen. Since I did all my apps, even the ones that weren't working, are working as they should. Hope this helps someone.
As Richie and Monigote stated, flash the screen overlay fix from Phoenix ROM. LoL pay attention please
http://forum.xda-developers.com/s7-...s-hybrid-s7e-urv1-00-00-t3357561/post68010406
even when I tried to turn overlay off for all apps mine still was going wrong and I couldn´t use some apps...the only way I got this fixed was making a reset (from the configs options it self) from all my configurations, just configurations, not all data in the phone, it works fine for now...
now I´m with problem with my mobile data connection, I don´t know if it´s from my brand or my phone...
TheRedIndian said:
Hi,
I am trying to use Waze on my phone, but the app won't open as it keeps saying screen overlay detected. I have gone into my settings and turned off the overlay for all the apps apart from the system apps. But it is still not working.
I have tried searching on Google, and don't have any of the apps installed like twilight, luxe or Facebook which are supposed to be causing the problem.
Any other suggestions on how to fix it?
Cheers
TRI
Click to expand...
Click to collapse
The message about overlay detected i have seen and experienced a number of times.
BUT the only time this has occurred is when i was using SideSync
i.e. I am using it to Remote control the device using my PC
or am using my PC to display my Phone within my PC screen (So i can use my phone while using the PC)
The warning was being presented by some apps because SideSync was overlaying the screen to mirror it to my PC screen)
As soon as i disconnected this message stopped.
Not am not saying your using SideSync, But any other app you have installed that can mirror / allow remote access or displaying your phone screen on another device like PC may be causing the problem
TheRedIndian said:
Hi,
I am trying to use Waze on my phone, but the app won't open as it keeps saying screen overlay detected. I have gone into my settings and turned off the overlay for all the apps apart from the system apps. But it is still not working.
TRI
Click to expand...
Click to collapse
Did Pokemon enable the game overlay?
Small controller icon that comes up when games like Pokemon are playing - that could be your issue.
Settings / Advanced Features / Games / Games Tools = disable

what the heck is screen overlay detected on axiom 7

It about stops me from doing uploading pictures, downloading. It's driving me crazy anyone else having this problem?
Yea lots of people are. Anything that changes the status of the screen like some kind of screen filter like twilight, night owl, any of those things, can mess with this. It's been pretty annoying. I have Twilight set to a timer to eliminate blue light on the screen before sleeping and I have to freeze and defrost it several times a day. Apparently it's an issue with ZTE. There is a thread over there about it.
presley07 said:
It about stops me from doing uploading pictures, downloading. It's driving me crazy anyone else having this problem?
Click to expand...
Click to collapse
I guess that it should actually be a security feature to prevent an overlay app from abusing any open apps below it... but it is really annoying that the ZTE integrated feature Mi-POP will also make this warnings display... you can simply deactivate it through its notification bar shortcut but it's still annoying...
Gachmuret said:
I guess that it should actually be a security feature to prevent an overlay app from abusing any open apps below it... but it is really annoying that the ZTE integrated feature Mi-POP will also make this warnings display... you can simply deactivate it through its notification bar shortcut but it's still annoying...
Click to expand...
Click to collapse
Well for now I am backup and running, I shot down the phone and restated posting ok
presley07 said:
Well for now I am backup and running, I shot down the phone and restated posting ok
Click to expand...
Click to collapse
I'm going to guess you have MiPop enabled? is so turn it off and your screen overlay issue might go away.
Gatorguy2 said:
I'm going to guess you have MiPop enabled? is so turn it off and your screen overlay issue might go away.
Click to expand...
Click to collapse
I an checked everything and it did no good, mipop and all else. Restarted phone and all was OK, hope this helps others with the same issue
presley07 said:
I an checked everything and it did no good, mipop and all else. Restarted phone and all was OK, hope this helps others with the same issue
Click to expand...
Click to collapse
Screen overlay is new in 6.0 to prevent apps from creating an overlay and giving permissions to themselves. It's not an issue with ZTE.
Yes screen overlay is new. Came from a N6 and never had this problem on stock 6.0 from Google. Facebook messenger will not do anything other than message can't call, or send pictures. Yes it is a problem with ZTE
Sent from my ZTE A2017U using Tapatalk
Go to the "Apps" setting, and then click on the "gear-shaped" setting button to go to the "Draw over other apps" menu and turn off all apps that are enabled. Go back to the "Apps" setting and click on the app that needs permissions modified. When all the permissions are updated, go back and enable the "Draw over other apps" for those apps you disabled.
Use this app it will get rid of that annoying overlay issue.
https://play.google.com/store/apps/details?id=jp.sfapps.installbuttonunlocker

MIUI notes/tips

I don't know about anyone else, but this is my first MIUI phone.
I thought it would be useful to start a thread regarding MIUI notes/tips/etc that are specific to MIUI.
The first big one of course - how to fix push notifications:
http://www.forbes.com/sites/bensin/...ions-on-xiaomis-miui-8-for-real/#11f834174e1b
I was about to start this very thread
I found a cool feature
You can select several photos for deleting by simply gliding your fingers over the photos
Another cool feature
You can orient that device do that it's upside
The top bezel-less becomes downwards.
The phone is also programmed to rotate it to the standard orientation during a phone call because of Mic location.
One thing I quite like is how specific WIFI connects can be disabled without having to remove them.
Our work WIFI blocks certain things, so it's nice to be able to disable it but not have
to totally remove it (and then reenter all the passwords when I re-enter it).
ChodTheWacko said:
One thing I quite like is how specific WIFI connects can be disabled without having to remove them.
Our work WIFI blocks certain things, so it's nice to be able to disable it but not have
to totally remove it (and then reenter all the passwords when I re-enter it).
Click to expand...
Click to collapse
What do you mean
CorruptedSanity said:
What do you mean
Click to expand...
Click to collapse
For each WIFI connection, there is a little > to the right of it.
If you touch that you go into another menu, and one option is 'auto connect on/off'.
Turning off autoconnect helps in situations where there are multiple WIFI signals, but you only want it autoconnecting to a specific one.
- Frank
Expand Notifications
2 finger swipe on notifications displays their details (or what is called Peek)
ChodTheWacko said:
For each WIFI connection, there is a little > to the right of it.
If you touch that you go into another menu, and one option is 'auto connect on/off'.
Turning off autoconnect helps in situations where there are multiple WIFI signals, but you only want it autoconnecting to a specific one.
- Frank
Click to expand...
Click to collapse
Thanks for clarifying.
What if I'm in the range of two networks that I've saved the passwords for.
Which does the mi mix connect to when I enter range?
Looks like the last one I've connected to.
saurabhsun said:
2 finger swipe on notifications displays their details (or what is called Peek)
Click to expand...
Click to collapse
That's actually a primitive way of doing it.
Samsung did it better by letting you 'peek' one-handedly with a simple swipe down of the notification.
With mi mix, I have to use two hands. I can do it with one hand but it's tough.
CorruptedSanity said:
That's actually a primitive way of doing it.
Samsung did it better by letting you 'peek' one-handedly with a simple swipe down of the notification.
With mi mix, I have to use two hands. I can do it with one hand but it's tough.
Click to expand...
Click to collapse
And just found out, we can't "swipe away" the notifications from the lockscreen directly. Need to pull down the shade and clear from there. Would this not be considered a stupid decision?!
saurabhsun said:
And just found out, we can't "swipe away" the notifications from the lockscreen directly. Need to pull down the shade and clear from there. Would this not be considered a stupid decision?!
Click to expand...
Click to collapse
Perhaps there's a solution if you root/install Xposed & a module is available for lockscreen options.
I'm rooted,but, haven't used Xposed in ages, considering trying it again......
On Samsung devices,(non-root) Ad Blocking apps have a persistent notification on the lockscreen that cannot be swiped away,.The only remedy for this was to turn off the ad blocking.
Sent from my lithium using XDA Labs
How to always have mobile data allow to download app from playstore ? Have disable only wifi in playstore settings but always prompt to have wifi
Sent from my MIX using XDA-Developers mobile app
mobile88 said:
How to always have mobile data allow to download app from playstore ? Have disable only wifi in playstore settings but always prompt to have wifi
Sent from my MIX using XDA-Developers mobile app
Click to expand...
Click to collapse
Open Downloads app, Triple Dot, Settings, Set unlimited download limit for mobile. This resolves that issue.
TQ very much for that tip
Sent from my MIX using XDA-Developers mobile app
youtube /watch?v=NG7GmbVGBlA
A guide to uninstall a few of the system apps such as Chinese Keyboard, Messaging app etc.
saurabhsun said:
youtube /watch?v=NG7GmbVGBlA
A guide to uninstall a few of the system apps such as Chinese Keyboard, Messaging app etc.
Click to expand...
Click to collapse
I followed all the steps.
I understood that there are several instances of settings and installed apps.
I went through all of them but still could not disable or uninstall pre-loaded apps like Mi Credit, Mi Cloud and all those Mi nonsense apps.
CorruptedSanity said:
I followed all the steps.
I understood that there are several instances of settings and installed apps.
I went through all of them but still could not disable or uninstall pre-loaded apps like Mi Credit, Mi Cloud and all those Mi nonsense apps.
Click to expand...
Click to collapse
Those are uninstallable I guess (as Mi earns from these apps and not selling the phone), few rubbish were uninstalled using this method.
I should be able to disable them though
Apparently not
Some more MIUI notes:
menu + volume down = screenshot
hardware test: dial *#*#6484#*#*
More phone info: dial *#*#4636#*#*
There is a toggle to disable the navigation buttons (double tap them to re-enable)
handy if you keep accidentally hitting them.
in 'buttons' can auto disable for any particular app (games)
In accessibility there is a magnification mode - triple tap to allow/disable zooming of screen. (EDIT: it's bugged - it isn't supposed to trigger during keyboard typing,but it does, effectively making it useless)
wake with volume buttons is in lockscreen menu, not "button"
There are some apps that just won't stay uninstalled. Anyone got idea how to remove them? PPTV for example
Kildras said:
There are some apps that just won't stay uninstalled. Anyone got idea how to remove them? PPTV for example
Click to expand...
Click to collapse
Needs to be rooted to remove system app

No Gmail Notification When in Sleep Mode

Hi guys,
I have a problem with Gmail notifications, they are not showing until I unlock my phone. I know it has to do with Doze, so I went to the Battery Optimization menu to try turning off optimization but Gmail app is not present in that list.
Is anyone else has problems with notifications? How do I turn off battery optimization for Gmail App on stock OnePlus 5?
averside said:
Hi guys,
I have a problem with Gmail notifications, they are not showing until I unlock my phone. I know it has to do with Doze, so I went to the Battery Optimization menu to try turning off optimization but Gmail app is not present in that list.
Is anyone else has problems with notifications? How do I turn off battery optimization on stock OnePlus 5?
Click to expand...
Click to collapse
Search in settings.
0xTJ said:
Search in settings.
Click to expand...
Click to collapse
Is the Gmail App available for you on the Battery Optimization list?
averside said:
Is the Gmail App available for you on the Battery Optimization list?
Click to expand...
Click to collapse
It isn't visible for me.
I concur, Gmail is not visible on the battery optimization list for me either. However, Inbox appears on the list.
Thanks for the replies.
Yeah, it seems that only apps installed from Google Play appear on Battery Optimization list.
Does anyone have a problem of missed Gmail notifications?
I get this as well both in my 3t and 5
I've disabled Doze in developer options and it seems the issue is solved, at least so far. With Greenify handling app hibernation I am not seeing much of a battery drain (and I have WiFi/LTE constantly on).
I've disabled Doze too and now the issue is gone. I have WiFi/LTE always on and I don't see any side effects for battery life, it is still good. So, that seems to be a solution.
Thanks, everybody!
Hello everyone. Ive been also having no Gmails after my OP5 screen is off after a few minutes. So I also went to battery optimization list to turn Gmail off from dozing. But it wasnt there. So I had to turn off Doze completely to get it to work. I did however figure out a way to keep Doze on and found a way to add Gmail to that list using a 3rd party app shortcut maker. But for me this didnt work. I still did not get Gmails despite it being exempt from the battery optimizations. But if someone wants to know how I was able to add it to that list let me know. Its not hard, and doesnt require root.
Gam3r 4 Life said:
Hello everyone. Ive been also having no Gmails after my OP5 screen is off after a few minutes. So I also went to battery optimization list to turn Gmail off from dozing. But it wasnt there. So I had to turn off Doze completely to get it to work. I did however figure out a way to keep Doze on and found a way to add Gmail to that list using a 3rd party app shortcut maker. But for me this didnt work. I still did not get Gmails despite it being exempt from the battery optimizations. But if someone wants to know how I was able to add it to that list let me know. Its not hard, and doesnt require root.
Click to expand...
Click to collapse
Hi Yes I would interested to know how you did it as I'm experiencing the same issue with BlueMail ? - Thx
cookie1953 said:
Hi Yes I would interested to know how you did it as I'm experiencing the same issue with BlueMail ? - Thx
Click to expand...
Click to collapse
OK. What I did was use an app called QuickShortcutMaker to start to create a shortcut. Then in the search field I just typed "battery" and looked for the "Settings" section and there you should see "battery optimization". Select that, then select test shortcut. It should open the same "Battery optimization" as before, but will show many more apps then it does normally. Then you can go in there and change as many as you want. Let me know if you figure it out. Going by memory here. Hope that helps.
Gam3r 4 Life said:
OK. What I did was use an app called QuickShortcutMaker to start to create a shortcut. Then in the search field I just typed "battery" and looked for the "Settings" section and there you should see "battery optimization". Select that, then select test shortcut. It should open the same "Battery optimization" as before, but will show many more apps then it does normally. Then you can go in there and change as many as you want. Let me know if you figure it out. Going by memory here. Hope that helps.
Click to expand...
Click to collapse
Hi - Yes its canny created the BTO shortcut and turned off optimization for it -- lets see if it works now -- Thx
I have the same problem on OP5. Stock and modified ROMS. Developer options problem?
Just an update. I updated to 4.5.7 and got a Gmail update. Neither fixed it. Ive been in contact with the Oneplus bug hunters and I was told they would look into it. But for now the only way I get Gmails after the screens been off for about an hour is to keep Doze off completely, or wake up the screen. Also just updated to 4.5.8 and doubt anything was fixed as far as this issue goes.
If you have root, uninstall gmail with titanium backup and reinstall true Playstore , after that you probably have it visible in battery optimisation.
gohan040 said:
If you have root, uninstall gmail with titanium backup and reinstall true Playstore , after that you probably have it visible in battery optimisation.
Click to expand...
Click to collapse
I was able to add Gmail to the not battery optimized list by using a shortcut creator that gave me the full list of apps. But this did not fix the issue where Gmails stop coming through after about 45 mins or so with the screen off. So I had to turn Doze all the way off.
I am experiencing same issue but with facebook messenger. Had no problem on 4.5.3 . Decided to update to 4.5.6 and no more notifications during sleep :/
Hi evryone, first post for me on this forum!
You are telling that turn off Doze solved the problem. Ok I want to do that!
I'm french and I don't find any Doze item in the developer menu. The only item which can correspond is "Mode somnolence" but it is already turn off!
Gmail notifications are very important for me. I'm very disappointed, it's a basic feature!!
Just one remark: I have 3 Google accounts, do you believe it can be a problem?
Hello!
And at me on OP5 with notifications from Gmail the same problems. I contacted the developers and provided them with the logs of working with this error. No answer so far. But, promised to understand. All the above solutions are not valid. It remains only to wait and hope.

Titanium Backup schedules not executed

Is anyone else having the issue of TB schedules not being executed when the phone is sleeping? I have set all the Battery Optimizations set to manual for both TB and the TB root key app. Sometimes the scheduled task is started when I wake up the phone and sometimes (at night) it's being ignored entirely. I am on rooted Oreo stock but I saw the same on Nougat.
Fixed
khaberz said:
Is anyone else having the issue of TB schedules not being executed when the phone is sleeping? I have set all the Battery Optimizations set to manual for both TB and the TB root key app. Sometimes the scheduled task is started when I wake up the phone and sometimes (at night) it's being ignored entirely. I am on rooted Oreo stock but I saw the same on Nougat.
Click to expand...
Click to collapse
OK, fixed it - I had to activate it under Ignore Battery Optimizations
khaberz said:
OK, fixed it - I had to activate it under Ignore Battery Optimizations
Click to expand...
Click to collapse
Having the same problem. Where is the option for "Ignore Battery Optimizations", is it a Titanium option or a system option? Thanks
palosanto0 said:
Having the same problem. Where is the option for "Ignore Battery Optimizations", is it a Titanium option or a system option? Thanks
Click to expand...
Click to collapse
It's a system setting, somewhere under the Battery settings. I am not on EMUI anymore, so I can't tell you exactly. However, it didn't fix my problem permanently. I have moved on to LineageOS meanwhile, where these problems don't exist anymore.
khaberz said:
It's a system setting, somewhere under the Battery settings. I am not on EMUI anymore, so I can't tell you exactly. However, it didn't fix my problem permanently. I have moved on to LineageOS meanwhile, where these problems don't exist anymore.
Click to expand...
Click to collapse
Unfortunately it does not work in my Xiaomi redmi Note 4X.
I found the option to activate "Ignore Battery Optimizations", however if I don't leave the Titanium backup PRO running, the scheduled backups are not performed.
Last week I have been searching internet for a solution, however still I have not found a satisfactory one.
Kind regards and thanks for your advice,
Javi
<deleted - see next post for updated info>
Titanium Backup schedules not executed (or interrupted after being started) and/or its related notifications not being shown appears to be an issue that is caused by crazy additional 'features' as implemented at some devices to improve battery life. This especially happens at OnePlus devices running Oreo (Android 8), but may possibly also appear at devices of other brands (Xiaomi?). Therefore it actually isn't a shortcoming of Titanium Backup itself, but the result of some stupid app handling and killing behaviors that may be active at your device.
Also other apps that should permanently be kept running in background may be impacted by this behavior (being killed for the same reason) like Tasker, Sync-to-cloud apps, etc.
Especially at OnePlus devices running Oreo, following implemented crazy 'optimization' behaviors are playing a role here:
After a user has set Battery optimisation OFF for a specific app, it may automatically be set ON again after a reboot or after the app was updated
Background services may be killed EVEN when for the related app the Battery optimisation was set OFF
The 'Autostart' attribute may be ignored, so apps may be NOT automatically started in background after rebooting your device
SOLUTION
1. Make sure the 'Advanced optimisation' options are disabled
Go to Settings > Battery > Battery optimisation
Click the 3 dots in the upper-right corner and select 'Advanced optimisation'
Verify that the options 'Advanced optimisation' and 'Sleep standby optimisation' are both disabled
2. Set Battery optimisation OFF for any app that should continue to run in background
Go to Settings > Battery > Battery optimisation
Select the app that should never be killed, so in this example: 'Titanium Backup'
Select 'Don't optimize' and click DONE
Nb.
Above is not needed for the 2nd entry 'Titanium Backup PRO', which is just related to your PRO key payment and not the running Titanium Backup process itself.​
However, disabling Battery optimization for an app is NOT enough for preventing that it could be killed when running in background at OnePlus devices!
This not only because the 'Don't optimize' setting may automatically be reverted to 'Optimize' after a reboot or after an update of the app, but EVEN when Battery optimisation is actually disabled it's nevertheless still candidate for being killed at OnePlus devices running Oreo! Therefore also next action is required in addition.
3. Lock the app in your 'Recent Apps' list
Open and then close Titanium Backup (or just touch the Home button at your device after opening the app)
Touch the 'Recent Apps' button at your device
This shows your recent apps, where Titanium Backup will now be included (as last / most recent entry)
Toggle the 'Lock' icon in the upper right corner of that Titanium Backup entry, to switch it to a closed lock icon symbol
(see attached screenshot)
This last action not only just prevents that the app could be removed from your 'Recent Apps' list, but it ALSO prevents the issues as described above, so:
The app will not be killed anymore when running in background
The 'Battery optimisation' setting for that app will not be reverted anymore to 'Optimize' after a reboot or after an update of the app
When done, Titanium Backup schedules should now run as defined. Also, its completion messages shouldn't disappear from your notification entries anymore, but kept until you remove them.
OTHER APPS
Because it's not just a specific Titanium Backup issue but the result of the stupid behavior as implemented at OnePlus devices running Oreo, it's highly recommended to repeat the steps above for any app that should never be killed when running in background (eg. Tasker, Sync-to-cloud apps, Alarm/Alert apps, etc.). Also apps that are making use of scheduled actions, or should awake at incoming messages, chats, mails, alarms, or Security/Anti-virus apps etc. could be candidate of not being able to react properly because they were killed when running in background and/or not started at boot. When such apps doesn't always correctly react/awake at your device, just perform same actions as described above to prevent them to be killed. When an app still doesn't work because it wasn't auto-started at boot, you could use Tasker to create a Tasker-profile that executes a Tasker-task to launch such apps at boot. Start-at-boot via Tasker appears to be not required for Titanium Backup, but for some other apps this was my only option to ensure that they were auto-started after a reboot of my device.
Nb.
Some apps have options included in their internal settings like 'Keep active in background', 'Run in Foreground' or 'Turn off battery optimisation'. Even when these types of internal app settings are selected, they could still be killed at some device brands (eg. OnePlus) when the actions as described above aren't implemented in addition for such apps.
OnePlus: Never settle, but also never be so stubborn...
Thanks
Much appreciated for the fix.
Never thought about locking the app, great idea ?
Just stumbled over this post through a link. Many thanks for the info; in my case it's not only TB that's effected but also several other apps like OruxMaps and Automagic.
For completeness I post some screenshots from OnePlus 6 / OOS 9.0.4 (Pie) showing the changed recent apps screens and dialogs (in German, but I guess you'll get the picture)
paarnoutse said:
Titanium Backup schedules not executed....
OnePlus: Never settle, but also never be so stubborn...
Click to expand...
Click to collapse
i was wondering why titanium is not executed in months.. and killed shortly even when i run it manually.
settings were great:
- no battery optimization
- no data optimization
- tons of free memory on RAM boasting 1+ (funny isn't it)
- recent app management=normal clear
- standby check=exempted
- keep activities
- deep optimization turned off
- sleep standby optimization turned off
and still it didn't help until i LOCKed the app. this is why 1+ and xiaomis achieve better battery scores than samsung
doggydog2 said:
...this is why 1+ and xiaomis achieve better battery scores than samsung
Click to expand...
Click to collapse
(Spoiler: heavy OT post)
...which is what I really love about my 1+: 3 - 4 days between charging aren't rare here.
For the very few apps that are having probs (like track recording) with heavy battery optimization I wrote myself a script (am using automagic, but this should be also possible with Tasker etc) to disable deep opt. then start my critical app. Works great for me, but as always: ymmv
I can't find the setting to lock an app in the recent list in Android 10. Anyone know how to do it?
James_Oakley said:
I can't find the setting to lock an app in the recent list in Android 10. Anyone know how to do it?
Click to expand...
Click to collapse
Each tile you see in the recents screen should show the app title and the usual three dots to open a pop-up menu. There you can lock the app, show app details etc
lm089 said:
Each tile you see in the recents screen should show the app title and the usual three dots to open a pop-up menu. There you can lock the app, show app details etc
Click to expand...
Click to collapse
Thanks for taking the time to reply. Appreciate it.
Still not seeing it.
Where do I click?
James_Oakley said:
Thanks for taking the time to reply. Appreciate it.
Still not seeing it.
Where do I click?
Click to expand...
Click to collapse
Your screenshot shows the app settings. You need to bring up the "recents" screen instead. If you're using the standard navigation bar that is the square button at the right end of the nav bar (screenshot #1, blue mark).
Then you flip through your recently opened apps until you find the one you're looking for. From then on it's as I described before: tap the 3 dots (screenshot #1, red mark). in the pop up menu select the "lock" entry (screenshot #2, green mark)
=== UPDATE: added some screenshots ===
lm089 said:
Your screenshot shows the app settings. You need to bring up the "recents" screen instead. If you're using the standard navigation bar that is the square button at the right end of the nav bar (screenshot #1, blue mark).
Then you flip through your recently opened apps until you find the one you're looking for. From then on it's as I described before: tap the 3 dots (screenshot #1, red mark). in the pop up menu select the "lock" entry (screenshot #2, green mark)
=== UPDATE: added some screenshots ===
Click to expand...
Click to collapse
Thanks - got it. When I read about "recents" in this thread earlier, I assumed it was when you go to Settings > Apps and you're first shown a list of recent apps. I've now got what everyone is talking about, thanks to your patient explaining. I'm sure this will help others too. On my phone, there's no nav bar it's all done with gestures, so you swipe up from the bottom of the screen - then lock Titanium in place. Bingo, and thank you.

Categories

Resources