1

This question already has an answer here:

I have an android 4.4.2 device and permission manager app enabled.

I have facebook messenger installed for example and i deny it permission to read my sms or phone contacts.

It works, but keeps displaying "Messenger is denied " in the center bottom lower screen for ages. Sometimes i need to reboot my device to make it go away.

absolutely annoying

marked as duplicate by Firelord, Community Oct 7 '15 at 8:15

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • That's called a toast. Permissions manager is part of Android (android) and you can't do anything about it without root access. See if there is an option to not show toast/notifications, in your permission manager app. – Firelord Oct 5 '15 at 16:49
  • Thank you for clearing that up. I had no idea it's called like that. Will search google on toasts and whatnot but my device is rooted. any advice on how i can do something about it given that it's rooted ? – Horatiu Oct 6 '15 at 10:51
  • I can give you the way, but as I said, it is part of Android (android). It's take or leave approach. There is no compromise. My solution would make you end up with no USB connected notification, no low storage notification, may be many more native notifications that you will not be able to see. Do you still want the solution? – Firelord Oct 6 '15 at 10:55
  • i think i can adapt it or something. so please tell. – Horatiu Oct 6 '15 at 16:57
  • Things are different in my case. Sorry I mixed things up with my Lollipop. I need some clarification. Do you see a notification in the notification bar about Permission manager? Or do you know the app responsible for that toast. I see that in my Android 4.4.2 the relevant app is named "Permissions Control" whose package name is com.mediatek.security. What's the name in your case? – Firelord Oct 6 '15 at 17:24
2

"Toasts" are implemented in an app's java programming, so that needs to be modified in some way, assuming the app doesn't give you the option to configure toasts. The following assumes you're rooted.

The easy way: Use Xposed. There are many modules available to block all toasts, block toasts for a specific app, or even customize toasts, e.g. EnhancedToast and UnToaster Xposed. Xposed supports Android 2.2(Froyo) and up, with increasing support for 5.0+(Lollipop). If your Android is bootloader locked, aka no TWRP/CWM recovery, you can see if your device can run FlashFire to install Xposed. Note: To use Xposed modules on an app, it needs to be deodexed, e.g. data apps, apps you download from the Play Store are deodexed.

The hard way: You can usually decompile an app into smali code, edit the smali code to disable toasts, and then recompile the app. Without smali modification, this process is known as deodexing. If you're interested, check out this Lollipop compatible deodexing guide for decompiling an app's java code, and this smali code editing guide to learn how to edit smali code.

Not the answer you're looking for? Browse other questions tagged or ask your own question.