[Android General] 1edson:
[HOWTO] 4 ways to disable Heads-Up Notifications on Lollipop

Hello, everyone!

I've been asked by a lot of friends on how to disable those notifications which pop up on the top of your phone's screen. They are mistakenly called "pop-up notifications", but their real name is Heads-Up notifications and can be really useful, but sometimes they are extremely annoying. Specially if you need to use a button or something that is located on the top of the screen right when the notification appears. Some ROMs do allow to turn them off in the Settings, but most of them don't.

So in this thread (which is my first here on XDA) I'm gonna put all the info I gathered during my research about disabling the Heads-Up notifications. These methods will COMPLETELY disable them for all applications while MAINTAINING regular notifications in the status bar. All of these methods are free. Some require a rooted device and some don't.

[IMG="Example of Heads-Up notification"]http://i.imgur.com/6I9MkMG.jpg[/IMG]

HOW TO DO IT

WITHOUT ROOT​

1- ADB method (using your computer) [FREE]

Before trying this method, make sure you have installed Android ADB in your computer, that your phone is connected AND that you have "USB debugging" option enabled in the phone Settings.

If you don't have Android ADB, you can download it here: http://xdaforums.com/showthread.php?p=48915118. If you have any questions concerning ADB and how to use it, take a look at this thread: http://xdaforums.com/showthread.php?t=2225405

a) Open a terminal and check if the device is connected using the following command:

adb devices

b) You should see your phone on the list that appears. Now use the following command:

adb shell settings put global heads_up_notifications_enabled 0

c) Reboot your phone.

d) Done!

2- HeadsOff app method [FREE]

a) Install "HeadsOff - TickerOn" - https://play.google.com/store/apps/details?id=com.jamworks.noheadsup&hl=en

b) Open the application.

c) Disable the Heads-Up notifications clicking on Settings.

d) Select "Start the App" button.

e) If a "Notification access" screen appears, allow the app to control your notifications by ticking it.

f) Reboot your phone.

g) Done!

Obs1.: Apparently there is also a paid version of this application in which you can enable/disable Heads-Up notifications for each individual application on your phone.

Obs2.: Credit for this method goes to user Jawomo, who posted it on this thread: http://xdaforums.com/android/apps-games/app-headsoff-disable-lollipop-heads-t3117929

WITH ROOT​

3- Terminal method (directly from your phone) [FREE]

a) Install "Terminal Emulator for Android" - https://play.google.com/store/apps/details?id=jackpal.androidterm&hl=en

b) Open the application. Use the following command:

su

c) The indicator should change from "$" to "#". Do the following command now:

settings put global heads_up_notifications_enabled 0

d) Reboot your phone.

e) Done!

4- aSQLiteManager app [FREE]

a) Install "aSQLiteManager" - https://play.google.com/store/apps/details?id=dk.andsen.asqlitemanager&hl=en

b) Open the app and select "Open Database"

c) Press the ".." button until you reach the root folder ("/") and the ".." button disappears (usually three times).

d) Navigate to the following folder, allowing root request if it pops up: "/data/data/com.android.providers.settings/databases/"

e) Open the file "settings.db"

f) Select "global".

g) Press "PgDn" until you see the "heads_up_notifications_enabled" entry (on my phone it was the last entry, number 173).

h) Click on the "edit" button, change the "value" field to "0" and click "OK".

i) Reboot your phone.

j) Done!

DISCLAIMER/IMPORTANT INFORMATION

I do not have any affiliations with the creators/owners of the applications cited in this post. They were chosen solely based on their ability to accomplish the proposed task. If you see any mistakes or if I forgot to give you credit, please contact me and I will fix that right away. The above methods were tested on my N910C with rooted stock rom (Samsung Galaxy Note 4 - 5.0.1).

If you happen to know any other methods of disabling these notifications, please contact me so I can add them here as well.

THANKS!