Copy third-party notification action to trigger autonomously

dreas

New member
I use a third party app which sometimes shows a notification including an "Activate now" clickable text to trigger a specific app action.

I'd love to be able to use MacroDroid to trigger that specific action regardless of the notification presence.

I am a n00b still. Is there any way to "catch" that "link" in the notification so it can be "replayed" whenever I want from MacroDroid?

Reading up on this topic, my theory is the notification activates some intent. But I so far have been unsuccessful to understand exactly what is triggered and if/how I can trigger it from MacroDroid instead.

Would appreciate any suggestions! I did get some information extracting the APK and using a notification analyzer, however it hasn't led to any meaningful outcome yet :) I do have a rooted phone.
 

420

Active member
I use a third party app which sometimes shows a notification including an "Activate now" clickable text to trigger a specific app action.

I'd love to be able to use MacroDroid to trigger that specific action regardless of the notification presence.

I am a n00b still. Is there any way to "catch" that "link" in the notification so it can be "replayed" whenever I want from MacroDroid?

Reading up on this topic, my theory is the notification activates some intent. But I so far have been unsuccessful to understand exactly what is triggered and if/how I can trigger it from MacroDroid instead.

Would appreciate any suggestions! I did get some information extracting the APK and using a notification analyzer, however it hasn't led to any meaningful outcome yet :) I do have a rooted phone.
what is this specific app action doing? maybe macrodroid can do it instead?

and also, have you checked the "launch shortcut" action? your third party app might let you run that specific app action as a shortcut..
 

dreas

New member
what is this specific app action doing? maybe macrodroid can do it instead?

and also, have you checked the "launch shortcut" action? your third party app might let you run that specific app action as a shortcut..

The app activates a nearby doorlock using Bluetooth. That communication is supposedly protected, so would seem harder to figure out. Unfortunately there is no shortcuts for the app (except to start in general).
 

420

Active member
The app activates a nearby doorlock using Bluetooth. That communication is supposedly protected, so would seem harder to figure out. Unfortunately there is no shortcuts for the app (except to start in general).
that is to bad, i can't really think of another way right now.. i don't know much about intents, sorry..

what does it take to bring up that notification though? maybe you can have macrodroid do it? so it can just bring up the notification and click on it whenever?
 

dreas

New member
what does it take to bring up that notification though? maybe you can have macrodroid do it? so it can just bring up the notification and click on it whenever?
It shows when I am nearby the lock. However I'd like to use a dedicated device I leave at home to detect my presence (and activate the lock).

Also just curious to better understand Android and if/how such app integration could work. I can use the UI click feature instead to trigger the action for now, however that's not as clean as calling the app programmatically. Works as well though.
 

dsnz

Well-known member
I read that "Notification Listener" plugin (one in a big series of great plugins that many forum members use) can reply to notifications

I haven't used it because I haven't had this need until now
but you should try it !
 

dreas

New member
I read that "Notification Listener" plugin (one in a big series of great plugins that many forum members use) can reply to notifications

I read that "Notification Listener" plugin (one in a big series of great plugins that many forum members use) can reply to notifications
Thanks for the suggestion! That plugin may indeed be useful. I am not trying to reply though, I am trying to activate the notification.

Activation does work with the native notification interaction feature from MacroDroid. Also this specific notification persists after activation, so I can actually continue to use it. Only if I reboot the phone I presume I need to start it manually. The notification listener plugin can clone/modify the notification, so I can possibly play with the variables (e.g. which lock).

Still would be cool if I can actually figure out the command the notification executes, however that may never be possible since it seems to have export off and therefore can likely only be triggered from the actual real app notification.

So I have things working now. Still if someone can explain if such action can be "extracted" somehow and repeated standalone, would be great to know to better understand things :)
 

dsnz

Well-known member
I thought you had problem interacting with the notification automatically using macrodroid
(post title is misleading !)


finally after re-reading the whole chat a few times (!) I understand that you want to do what the notification click does autonomously (ie without this notification interaction)

of course this is probably impossible as you understand !

however as a last resort I propose that you install the "logcat reader" app (with full logging permission) and examine all log messages for a brief time after you click the notification
maybe you discover something useful
 

dreas

New member
(post title is misleading !)
Updated, hopefully more clear.
however as a last resort I propose that you install the "logcat reader" app (with full logging permission) and examine all log messages for a brief time after you click the notification
maybe you discover something useful
It does show an intent:
AutoActivationService - received intent: com.ppprtechnology.ppprservice.ACTIVATE

So far haven't been able to trigger this myself though. Using e.g. shortcut maker it also doesn't seem to show available intents.
 

420

Active member
Updated, hopefully more clear.

It does show an intent:
AutoActivationService - received intent: com.ppprtechnology.ppprservice.ACTIVATE

So far haven't been able to trigger this myself though. Using e.g. shortcut maker it also doesn't seem to show available intents.
i think you can just put that intent into an macrodroid "send intent" action, shouldn't need "shortcut maker", im not really sure what "target" you should choose though and in which field you should put the intent, and what (if anything) to put in the other fields :ROFLMAO:
 

dreas

New member
and what (if anything) to put in the other fields :ROFLMAO:
:) That's indeed the tricky part, assuming it is possible at all. I think only the app itself is authorized to send such attempt and hence it may not be possible.
 

dsnz

Well-known member
can you tell us the app name and/or give a link to the play store ?
(I can't find a com.ppprtechnology app)
 

dreas

New member
can you tell us the app name and/or give a link to the play store ?
(I can't find a com.ppprtechnology app)
Sorry yes, was trying to keep the name out of it to avoid revealing my lock automation/security. Not a fan of security through obscurity though, so "pppr" is actually "sesam". Package name: sesam . technology . bold
 

dsnz

Well-known member
please share it here
use share option in play store

I can't find it perhaps due to regional restrictions or android compatibility
 

dsnz

Well-known member
yes, that's by sesam solutions bv

I will try to see what I can understand from this app after I finish work and will tell you
(but I don't have time to decompile it .. sorry)
 

dreas

New member
That's awesome :) in general though. Is my understanding correct notifications can show buttons/actions, which trigger an intent, which results in some app activity? Is it also correct the app may have (native Android) protection to only listen to intents it generates itself (hence it can never be done from e.g. MacroDroid)?
 
Top