Removed permissions from MacrodDroid

Hi, Is there any way for a macro to notify that the cell phone has removed permissions from MacrodDroid?

So that way, when you don't have permission, immediately assign manually?
 

Jacob L

Moderator (Lawsonator)
Trigger: interval

Action: system setting action. Then you can find the key value pair for the permissions you want to grant. If MacroDroid loses permissions, set it to be device administrator and assistant.
 

Endercraft

Moderator (& bug finder :D)
I believe it won't work for all permissions. But isn't MacroDroid supposed to send a notification when one or more permissions are missing ?
 

FrameXX

Well-known member
Made it into an action block.


Note that the macro that I made only gathers runtime permissions. One of the action blocks I made also gathers install permissions so it might be more appropriate to use both of these 2 dictionaries that action blocks return.

So now just run the action block every 10 minutes or so, iterate over the runtime permissions and install permissions dictionaries and if the key is false post notification about permission from key being revoked.

EDIT: I found out that only granted permissions will list in install permissions, so it doesn't make any sense to save granted state of these permissions. This means that all permissions listed under install permissions are granted and, permissions that aren't listed granted aren't. Hovewer this is not the case with runtime permission that will get listed even if I revoke them.
 
Last edited:
Top