How to avoid Android 10 on low-end devices forcibly closes app after screen was locked

Since Android 10, we found a critical "new feature" that in some low-end devices, even we disabled the power saver optimization of system, the background apps sometimes would still be is forcibly closed by system. The first thing obviously influenced on our "HotSpot Tethering" app is that the app notification bar may not resident permanently, and causes all the schedule rules do not work normally. 




The "new feature" of Android 10 seems impacts not only on our "HotSpot Tethering" app but also the background programs of amost all third party apps. If you encounter this situation, you can try to troubleshoot the problem by the following steps:


1. Enable "Developer Mode" in the system settings. The activation steps are different for different brands of mobile phones, we will not repeat them here


2. Enter the developer mode, find the "Background Process limit" item, and select the option with the largest number (in our low level devices this value is 4) 


After we tried the configuration above on the Android 10 version of Redmi 9A and Nokia 2.1, the resident function of the notification bar of "HotSpot Tethering app" is less forcibly closed by the system than before. (We do not run other third-party background programs).

In fact, in some customized systems of mobile phone manufacturers, such as MIUI, the built-in power-saving program will implement strict power-saving measures by default, which causes the background programs to be forced to close. Another reason is that users install power-saving apps by themselves. The background program is automatically closed, these factors will cause the program scheduling function to not work properly. (You might take a look at this website also.)

Another way user could try is for your reference: please go to the system settings to enable the Accessibility features of this program. The background execution of this program may also be helpful.

If you have better suggestions, please leave a message below, thank you!

 

Update @2020/12/16 20:14

 

留言

這個網誌中的熱門文章

[HotSpot Tethering App] How to setup for the "Turn ON AP at device booted" event rule on MIUI12/Android 10 system

Announce Usage for the app "Accessibility" Settings