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.
HOW TO DO IT
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://forum.xda-developers.com/show...php?p=48915118. If you have any questions concerning ADB and how to use it, take a look at this thread: http://forum.xda-developers.com/show....php?t=2225405
a) Open a terminal and check if the device is connected using the following command:
adb shell settings put global heads_up_notifications_enabled 0
2- HeadsOff app method [FREE]
a) Install "HeadsOff - TickerOn" - https://play.google.com/store/apps/d...oheadsup&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.
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://forum.xda-developers.com/andr...heads-t3117929
3- Terminal method (directly from your phone) [FREE]
a) Install "Terminal Emulator for Android" - https://play.google.com/store/apps/d...roidterm&hl=en
b) Open the application. Use the following command:
settings put global heads_up_notifications_enabled 0
4- aSQLiteManager app [FREE]
a) Install "aSQLiteManager" - https://play.google.com/store/apps/d...emanager&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.
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.