How to avoid background apps on Android 7+ – Take a look at these tips, tricks, and solution you can use to make your life much easier with your devices whenever problems arrive and complications which you may find difficult to deal with.
You should know that Android applications can keep working even if you are not using them. This is what is known as background operation. You’ll want to prevent apps from running in the background so they don’t drain battery, slow down your phone, or consume data. This is possible to do on phones with Android 7 higher, without the need for root.
The problem of preventing apps from running in the background
Before preventing applications from opening in the background, you should bear in mind that you can alter their operation so that it does not suit you. For example, by doing this you can stop receiving notifications of new messages, emails or notifications the moment they are generated. Only do it if you know what you are doing. For example, you could do this for an application whose notifications are not important and you can calmly check the news when you open the application.
That said, if you avoid background processes on Android with the below-mentioned method, it’s somewhat reversible anyway. So if you don’t like how the app works, you can reset it to its original state.
Avoid background processes with ADB
Everything consists of sending a text command from the computer to the cell phone. For this you will need to accomplish several things. You will need to download and install ADB on the computer. The mobile drivers must also be installed on the PC. And finally, USB debugging must have been activated on the cell phone.
Once the above is done, connect the cell phone to the PC with the USB cable. Open the ADB tool, enter the following command and hit enter:
A character string should appear on the screen that identifies the Android device. That means that the communication between both teams is correct and you can continue with the following. If that string does not appear, then you will need to check the above requirements.
Then type the following command and hit enter:
In the next line you must write the following command, replacing what is in red with the name of the application package (explained below):
cmd appops set nombre.del.paquete.aqui RUN_IN_BACKGROUND ignore
The name of the package of an application installed on your Android can be obtained with the App Inspector app. In the list of applications, tap on the application of your interest. In the case of the image below, the package name of the Google Plus application is com.google.android.apps.plus.
How to reverse the procedure
To reverse the previous process and re-allow the application in the background, the command you should use (instead of the previous one) will be the following:
cmd appops set nombre.del.paquete.aqui RUN_IN_BACKGROUND allow
When to prevent background apps from opening
This procedure is very useful if you want to avoid the consumption of data in the background in Android, of a specific application. Also if you want to prevent an application from draining battery while you are not using it, use RAM memory and slow down the phone. I repeat. Keep in mind that by doing this the application will stop downloading new messages, notifications or information from the internet when you are not using it. Therefore, it will not notify you of new events or it will not perform the activity that it usually does during this time. All this work will happen only when you open the application (when you have it in the foreground).