How to use action "send intent"?

Janek Ebert

New member
Hi, I've seen several times in templates that some of you use the "send intent" action. Can you tell me how you know what to write in all these mysterious places? How do you know, what kind of sentences will actually work?

I want to make a makro, which could allow me to trigger reading new notifications by Google Asistante. Do you have any ideas, how to do it? Is using the action "send intention" a good way? How to know, what should I write in the intention?
 

Janek Ebert

New member
This might help you with intents:

If you are wanting to have notification read, you can use notification received trigger and speak text action.tmT

This might help you with intents:

If you are wanting to have notification read, you can use notification received trigger and speak text action.
Thanks, I know that way, I already have one macro, which works like this, but now I need Google Asistante to read the notification. Thank to that I will be able to respond directle, using voice. And I want to control all the macro with my headphones.

Thanks for the link to the wideo too, it is very interesting and now I understand more about intent. Unfortunately I still don't know, how to make Google Asistante to read the notifications...
 

dudul6395

Member
Hello everyone, I've been struggling for 4 days so I've come to cry for help!!! I want to create an intent to click the SOS button on the Thuja interface of my home security system. I use Amazon Alexa in voice command. I retrieved the logcat, the action starts at 03-28 00:05:27.162 in the recording i click on a shortcut from the home screen of my android phone.

03-28 00:05:27.162 3030:3030 E/ActivityManagerWrapper] getRecentTasks: taskId=1818 userId=0 baseIntent=Intent { act=android.intent.action.VIEW flg=0x10000000 pkg=com.tuya.smart cmp=com.tuya.smart/com.thingclips.smart.hometab.activity.shortcut } [03-28 00:05:27.166 1040:1040 D/CompositionEngine] writeOutputDependentGeometryStateToHWC layer[com.tuya.smart/com.thingclips.smart.panel.base.activity.ThingRCTSmartPanelActivity#0] set Z 134217728 miFodLayer 134217728 [03-28 00:05:27.166 1040:1040 D/CompositionEngine] writeOutputDependentGeometryStateToHWC layer[com.tuya.smart/com.thingclips.smart.pushcenter.view.PushAlarmActivity#0] set Z 134217730 miFodLayer 134217728 [03-28 00:05:27.183 1040:1040 D/CompositionEngine] writeOutputDependentGeometryStateToHWC layer[com.tuya.smart/com.thingclips.smart.panel.base.activity.ThingRCTSmartPanelActivity#0] set Z 134217728 miFodLayer 134217728
 

Attachments

  • logcat_03-28-2023_00-20-51.txt
    98.7 KB · Views: 3
  • Screenshot_2023-03-28-01-34-07-902_com.tuya.smart.jpg
    Screenshot_2023-03-28-01-34-07-902_com.tuya.smart.jpg
    378.5 KB · Views: 10
Last edited:

dudul6395

Member
I try with intent macrodroid and shortcut maker
I only launch the general menu of tuya the shortcut created by tuya app is functional
this is the one i use before saving the logcat
I tested in conversion of the hexadecimal flg .... nothing works
 

dudul6395

Member
think's for thread @Snurre

i have xiaomi...
I think I can go through smartthing but I'm not sure that tuya smart is less efficient
tuya also has a lot of scene possibilities

i try this classe ThingSplashActivity

screenId seems to me an important data ... I go back to coal

[03-28 10:38:07.987 3030:3030 D/Launcher.CellLayout]
touch item:DeepShortcutInfo, id=228, itemType=14, user=UserHandle{0}, mIconType=1, pkgName=com.tuya.smart, className=com.smart.ThingSplashActivity, screenId=6, container=-100, cellX=3, cellY=4, spanX=1, spanY=1, isLandscapePos=false
 

dudul6395

Member
IMG_20230328_180405.jpg

I went back to macrodroid the line of code of the logcat corresponds perfectly macrodroid notification but it doesn't work
 

dudul6395

Member
denial of permission...

I don't think we can...

except find a way to change macrodroid's uid 10237 to tuya's uid 10234

I noticed when reading tuya activities "external access no"

I think that explains my failure...
in your opinion?

do you know a way to bypass UID protection?

IMG_20230328_233600.jpg
IMG_20230328_233402.jpgIMG_20230328_233128.jpg
 

dudul6395

Member
Hello everyone

I am decompiling the apk and modifying the manifest to increase the permissions that will allow me to send intents to tuya smart app....

also i need macrodroid developer permission

I did not find his email so I call a moderator @Endercraft for help thank you in advance for sending my request
Good evening Vincent
 

Attachments

  • IMG_20230329_175759.jpg
    IMG_20230329_175759.jpg
    6.8 MB · Views: 19

dudul6395

Member
of course I would understand and I respect intellectual property
it's a lot of work and intelligence...

after the intent function will not be used much except to launch the package of an application what macrodroid already does "via launch a package or an application"

it's a safe bet that developers use its permission needs liberally
 
Top