How to force an app to run in locked screen? Android 9.0 - Android Q&A, Help & Troubleshooting

Huawei health always closes on locked screen, I've added as a system app, every battery saving option is disabled. Battery optimization is set to Not optimized.
Developer mode enabled. Any idea?

Related

Honor X2 - Accessibility Service / Ultimate Rotation Control

I use the app Ultimate Rotation Control to force apps in landscape mode.
This app requires Accessibility Service to be enabled but every time I turn the screen off this is disabled again.
What could be the cause of this?
Accessibility Service is also enabled for Nova Launcher and this stays enabled.
Flavio said:
I use the app Ultimate Rotation Control to force apps in landscape mode.
This app requires Accessibility Service to be enabled but every time I turn the screen off this is disabled again.
What could be the cause of this?
Accessibility Service is also enabled for Nova Launcher and this stays enabled.
Click to expand...
Click to collapse
Huawei rom closes any app which is not protected(see settings>protected apps) when screen is turned off. Whenever a app is closed, its accessibility setting is disabled again.
Try setting protection for URC on.
PS: every time you boot device, you may have to set accessibility on again. Not sure about this though.
Thanks, that worked!

Launch setting and Android battery optimizations

I very confused about the launch settings options in my Mate 10 Pro under settings -> battery. I understand what it does, but what I dont understand is if this is connected to the native oreo Android battery optimizations or not? If I turn all of the apps in Launch to manual, is the Android managing optimizations still or is everything turned off?
The Launch settings is way to aggressive and makes my phone skip notifications and important stuff is not happening.
After you set your launch control to manual, you have to "exempt from battery optimization" (no idea where in the settings is buried, I just type "exempt" into the search bar in the settings menu)

Question How to reset battery settings imported from an Android One device?

During the MIUI first-boot setup process, I chose to import settings via Google from a previous Android One Mi A2 lite. It seems some settings were imported which are now still active but I cannot seem to change or reset via the MIUI interface:
* Battery saver mode - turns on when battery falls below X%, enforces dark mode and no vibrations etc
* 'Bedtime' red tint - turns on/off at the time set on the old phone, but I can't modify this via the MIUI settings
Is the MIUI implementation of these features separate from the underlying Android, or why is this happening?
More importantly, is there a way to reset these settings?
I managed to access the Android battery saver settings (which are indeed at least partly separate from the MIUI ones) via Google Assistant and the command "show battery settings". This opens a rudimentary UI which allows one to change the imported settings.
Not sure how to do the same for the night shift mode yet.
monoidal said:
I managed to access the Android battery saver settings (which are indeed at least partly separate from the MIUI ones) via Google Assistant and the command "show battery settings". This opens a rudimentary UI which allows one to change the imported settings.
Not sure how to do the same for the night shift mode yet.
Click to expand...
Click to collapse
May be try Activity Launcher ?

Question Easy High Performance Mode Toggle?

There doesn't seem to be a way to turn on high performance mode outside of navigating to battery in the settings and then advanced battery settings. Does anyone know of a way to add a notification switch or even a widget on the home screen to quickly turn it on and off?
Also I have tried my best to eliminate the OS's ability to kill apps running in the background. The one I have issues with the most is PokemonGo. I will switch from one app to another and when going back to PokemonGO it will have killed it and it restarts when going back to it. Loading like I just opened the app for the first time.
Things I have done so far. Disabled battery optimization for the app in the battery settings and turned on "Allow background activity" in the app settings under app management.
I have no task killers installed and the OS is basically stock after a factory reset.
I'm rooted and on DE2118_11_C.16
Have you tried locking the PokemonGo app to prevent it from being suspended?
Also you should check setting under developer mode in APPS section: Susspend execution for cached apps.
I would lower the background process limit from 5 to 3 due to the limited amount of ram on this device and lock any app you want to continue to run if it falls into 4th place.
Also, I would tur off RAM Boost as it does not improve app selection based on my use.
I have it locked yes, still gets closed in the background at random it seems.
RAM Boost was off as well.
The Suspend execution for cashed apps can you explain a bit on how this works? Do I have to cache the app or something in addition for it to work?
I keep the VPN Hotspot, AD Guard, and Pokemon GO locked.
xVoidx said:
The Suspend execution for cashed apps can you explain a bit on how this works? Do I have to cache the app or something in addition for it to work?
Click to expand...
Click to collapse
This will "freeze" apps that are cached (past the open app limit) and they will not take any resources. This also will cause them to stop responding like your Pokemon app.

Question Work of Notifications

do you have notifications working? how to make them work without disabling battery optimization for applications and without locking background applications? Google Basic Services are enabled in the settings.
After I cleared any application from the multitasking menu, it stops and the notifications stop coming.
Device is Elish (5 pro Wi-Fi) Actual Stable MIUI 13

Categories

Resources