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

Android O is looking to bring major enhancements to the Android OS we all know and love. Picture-in-picture mode for phones, notification channels, smart text selection, autofill services, and under the hood many, many changes to enhance your battery life, performance, and security. One feature that is supposed to help users sort out issues with battery life and performance is background process limitations. Without going into too much detail, apps in Android O can no longer be woken from their manifest-registered implicit broadcast receivers and they can no longer start background services without going through JobScheduler. If an app wants to start a background service, it must explicitly tell the user that it is doing so by posting a notification. However, when an app is running in the background, Android O now seemingly tacks on another persistent notification telling you what apps are running. This also occurs when an app with the SYSTEM_ALERT_WINDOW permission (such as the popular Twilight app) is currently displaying an overlay.

Android O Persistent Notification for Background and Overlay Apps. Credits: Ben Schoon 9to5Google

Although these notifications are minimized by default, they cannot be dismissed by the user or permanently blocked in Settings. This behavior is very annoying to many users, and I seriously hope that Google gives us a way to disable this notification in the final Android O/Android 8.0 release. However, if they do not, there is still a way to permanently hide the persistent background apps notification. I will showcase how to do so in a step-by-step guide, followed by an explanation of how it works as well as important caveats.


Hide the Persistent Notification in Android O

Requirements:

  • Android O
  1. Install the USB drivers for your particular phone if you’re on Windows (they can be found here).
  2. Download the ADB binary for your particular operating system (WindowsMacLinux). These links will always point to the latest version of the binary, so you don’t have to scour the net looking for the latest one.
  3. Extract the contents of the ZIP file you downloaded into an easily accessible folder on your PC (such as in the Downloads folder).
  4. Go to the Settings app on your phone and tap on the “About Phone” option.
  5. Find the Build Number and tap on it 7 times to enable Developer Mode. You’ll see a popup once it’s enabled.
  6. Go back to the Settings main menu and enter Developer Options so you can enable USB Debugging Mode.
  7. Plug your phone in to the PC and swipe down your notification panel to change the USB mode from “charge only” to “file transfer (MTP)” mode. This may not be necessary for your phone.
  8. On your PC, browse to the directory where you extracted the ADB binary.
  9. Launch a Command Prompt/Terminal in this ADB directory. For Windows users, this can be done by a Shift+Right-click then selecting the “open command prompt here” option.
  10. Once you’re in the Command Prompt or Terminal environment, enter the following command: adb devices
  11. This will start the ADB daemon. If this is your first time running ADB, you will also see a prompt on your phone asking you to authorize a connection.
  12. Now re-run the adb devices command from step 10, and the command prompt/terminal will print the serial number of your device. If it does, then you’re ready to move on. If not, then the USB drivers are likely not installed properly.
  13. Go back to the Command Prompt and enter the following command: adb shell
  14. Now execute the following command: cmd appops set android POST_NOTIFICATION ignore
  15. 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!

    Yes, I realize these are pictures of a phone screen rather than screenshots. I don’t have an Android O compatible device myself, so I asked TK to send me images.

  16. If you want to revert this command, enter this into the command prompt: cmd appops set android POST_NOTIFICATION allow

The post How to Hide the Persistent Notification for Background Apps in Android O appeared first on Android News.

Check Also

Download Xiaomi Mi A1 Android 9.0 Pie Beta Update

Good news for Xiaomi Mi A1 users, Xiaomi released the Android Pie beta for Mi A1 which is now available for beta testers in the Indian region. The update is a beta build and available as version PKQ1.180917.001.V10.0.2.0.PDHMIFK. The update brings Android Pie to Mi A1 and brings latest security patch. You need to follow the guide to Download Xiaomi Mi A1 Android 9.0 Pie Beta Update. The Android Pie for Mi A1 features a gesture-based navigation system, AI-enhanced improvements to the UI, Recent App Switcher, new Adaptive features (adaptive battery and brightness), and more. Download Xiaomi Mi A1 Android 9.0 Pie Beta Update from below to Update Xiaomi Mi A1 to Android Pie. To install Android Pie on Mi A1, your device must have rooted and TWRP Recovery installed on your device. If your device already has TWRP installed then Download Android 9 Pie for Xiaomi Mi A1 from below and install it manually. If you want to Install Android 9.0 Pie on Mi A1 without root then you have to wait for so..

Leave a Reply

Your email address will not be published. Required fields are marked *