With root access, there are some apps such as 3c Toolbox that allow you to change the notification settings for any app. App Ops is another one that gives you control over all apps' general permissions.
You can actually manage all app permissions from the command line with root access. In Android 5.x, appops
was added. It gives control over general app permissions.
Find your app's package name by looking through the list generated by:
# pm list packages | sed 's/^package://'
Get a list of permissions and their mode
(allow/ignore/deny/default) for a particular app:
(Note that get
parameter is not available in 5.0.2 or earlier Lollipop releases, but was introduced in Android 5.1.0)
# appops get <package_name>
Set a particular app's permission:
# appops set <package_name> <permission> <mode>
To accomplish the same thing as unticking the "show notifications" box in the application manager:
# appops set <package_name> POST_NOTIFICATION ignore
From my experience, using deny
as a mode
can break appops so that permissions can't be accessed or changed from an app, so I recommend using ignore
, which is what the system uses.
If in some case, you end up breaking access to app ops through something like the application manager, you can reset the permissions for an app:
appops reset <package_name>
For more control over detailed permissions, you can use pm
in the terminal. This works with older Android versions.
Find your app's package name by looking through the list generated by:
# pm list packages | sed 's/^package://'
Then list the permissions for a particular package:
# pm list permissions <package_name>
Find the notifcation permissions:
# pm list permissions <package_name> | grep NOTIF
Grant or revoke a particular permission:
# pm grant <package_name> <permission>
# pm revoke <package_name> <permission>
The permissions listed with package manager are very detailed. Using a capable app to manage them may be a more practical route.
notifications_policy.xml
in Android 4.2 and 4.4, I can easily disable app notifications for any of the app regardless of that greyed out check-box, so I don't have to rely on third-party apps. But the issue is more conceptual, the reason I asked three questions under one hood.