Detect vibration started by other app

Bonchan

New member
Hello,

How to detect vibration that is started by other app?

I have a smartwatch companion app installed on my android. It vibrates my phone when I click "locate phone" button that is on my smartwatch. What I want to do is intercept/takeover that "locate phone" command.

When that companion app vibrate my phone, it doesn't show any notification, so I can't use notification to trigger my action. I have been thinking about catching the intent but I don't know how to catch vibration intent.

If I can catch that vibration I can use it as my trigger for my macrodroid action.

Thanks in advance
 

Bonchan

New member
A logcat trigger would do it
I have tried to catch all possible logcat generated by the app using a word from its package name as the filter but the app doesn't seem generate any logcat.

I did the same for other apps just to make sure I have the permission to read logcat, and it worked. But that watchface companion app didn't work.

Screenshot_2022-07-29-22-44-07-563_com.arlosoft.macrodroid.jpg
 

Snurre

Well-known member
I have tried to catch all possible logcat generated by the app using a word from its package name as the filter but the app doesn't seem generate any logcat.

I did the same for other apps just to make sure I have the permission to read logcat, and it worked. But that watchface companion app didn't work.

View attachment 3111
Maybe you could find something about vibrate ?
 

Snurre

Well-known member
Hey, I just noticed that you set "text to match" don't do that, use "Capture logcat message" and search in the results
 

Bonchan

New member
Hey, I just noticed that you set "text to match" don't do that, use "Capture logcat message" and search in the results

I have use that "capture logcat message" button before. I pressed it -> pressed the cat face button -> create the event (pressing "find phone" button on my smartwatch), wait until my phone vibration finished -> press the "stop" record logcat button.

Then from the result I search for "vib", still got no matched log.
 
Top