How to Hide the Persistent Notification for Background apps in Android O

A lot of people all over the world are expecting Android O to bring a lot of improvements in addition to new features. There are a lot of features the new Android will be equipped with and some of them include enhanced battery life, notification channels, auto-fill services, better performance and security, picture-in-picture mode and so on. Basically, in the present world, most of the people raise the issue with the battery performance of their phone. One thing that enables users to save more battery and enhance performance is imposing a limit on the background process. Here I will guide to Hide the Persistent Notification for Background apps in Android O.

In Android O, apps cannot start working on their own. They need the user’s permission first and they do so by posting a notification first. On the other side, when an app is running in the background, Android O clearly address on another persistent notification simply giving you information about apps that are running. Generally, it happens when an app with system alert window permission is directly representing an overlay.

How to Hide the Persistent Notification for Background apps in Android O

It is true that such notifications are minimized automatically but the fact is they cannot be ousted permanently by the user. Many users don’t actually like this and of course it’s a very annoying experience for them. Many people are expecting that Google will pay attention to this in the next version of Android. Let us not rely on Google for this. We let you know how to hide the persistent background app notification permanently. Relevant information along with a step-by-step guide is spotlighted below. Simply follow below guide to Hide the Persistent Notification for Background apps in Android O.

Steps to Hide the Persistent Notification for Background apps in Android O

  • Firstly you need to install USB drivers for your device in case you use Windows.
  • Next is to download the ADB binary for the operating system you use on your PC. Always make sure you install the latest version.
  • After downloading the file which is possibly in a zipped format, simply extract the content and keep it on your PC. Remember the path where you kept it.ADB Folder
  • Open your phone Settings and click on “About Phone”
  • You will see the Build Number. Tap on it 7 times. This will enable the Developer Mode. A pop-up message will appear immediately after it gets enabled.
  • After this, again open the phone Settings and enter Developer Options. Now enable USB debugging mode.Enable USB Debugging
  • Connect your phone with PC. Change the USB mode from “Charge only” to “File Transfer”
  • Open the path where you kept the ADB binary file and launch a Command Prompt. This can simply be done by pressing Shift + Right click and select the option “Open Command Prompt Here” if you are using Windows.Command window

After opening the command Prompt, enter the following command:

adb devices

  • This will start ADB Deamon. You need to authorize the connection as you see a prompt in case you are running ADB for the first time.Prompt
  • Again run the adb devices command and you will see the Command Prompt will have the serial number of your smartphone. If that doesn’t appear, possibly USB drivers are not properly installed.
  • Now go back to the Command Prompt and enter following command:

adb shell

  • After this, execute the following command:

cmd appops set android POST_NOTIFICATION ignore

ADB Shell

  • There will be no message to let you know about the success. You just pay attention to whether or not an error message is there. In case it’s not, you are done.
  • Restart the phone and enjoy
  • In case you need to turn back this command, enter the following command into command Prompt:

cmd appops set android POST_NOTIFICATION ignore

Advertisements
  • You won’t get a success message or anything, but as long as you don’t see an error it should have worked. Now just reboot your phone!

How it actually works

With the help of hidden line interface for the App Ops, it is possible to curb the notification permission from Android package. We find this permission after looking at the source code for AppOps Manager. Actually, here all the possible permissions are listed that can be revoked or granted. Most of them in the true sense are not reachable in Android settings.

Once the notification permission is abolished, it wouldn’t show a notification. It may seem very simple to you but there is an important caution. Android is responsible for a large number of notifications and therefore other notifications posted by it will no longer appear. It may seem strange or weird to you but as of now, it is the only method to avoid this. Other methods need rooting your device which you probably don’t want.

Advertisements

That’s it. You have successfully hided the Persistent Notification for Background apps in Android O.

SOURCE: XDA

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.