In this guide, we will show you a nifty method through which you can prevent apps from being killed in the background by the system. In order to get the most out of your battery [not to mention the fact that the OEM could also brag about providing the best battery life], the OS tends to put quite a few battery restriction measures in place.
While it does tend to get the job done, however, it also has a few negative impacts on the functioning of the app. From the app being unable to connect to the servers and sync the data in real-time to the notifications getting delayed, there are quite a few issues that you might come across. Fortunately, the OEM keeps a note of the same and usually tends to give a relative degree of control over this functionality.
But in spite of that, there are a few apps that are still unable to work along the expected lines even after giving it all the required background permissions. If you are also dealing with such an app, then this guide will make you aware of a nifty workaround that should help you address this “bug”. So without any further ado, let’s check them out.
How to Prevent Apps from Being Killed in Background by System
To get this job done, we will have to gain administrative access, in other words, access to the system partition. And for that, you will have to, yes you guessed that right, root your device. After this, we will be using the AppRetentionHook module. But what does this module do? Well, it tends to achieve app retention by modifying the system kill logic through Hook. So with that in mind, let’s put it to the test right away.
- First off, root your device via Magisk/KernelSU/APatch.
- Then download, install, and set up LSPosed Framework.
- Now download and install the AppRetentionHook APK.
- Then launch LSPosed, and head over to the Modules tab.
- Now enable AppRetentionHook and restart your device.
- Launch AppRetentionHook and add the desired apps to it.
That’s it. These were the steps to prevent apps from being killed in the background by the system. If you have any queries concerning the aforementioned steps, do let us know in the comments. We will get back to you with a solution at the earliest.