Create macros for OTG activation

vm53

Member
I bought a small infrared transmitter to use my realme 9 pro+ as a remote control for TV and/or other...
When I plug it into the OTG socket, the appropriate application opens for me.
The problem is that you also have to activate (by hand) the OTG connection in the system settings.
Therefore I would like to create a macro that would do this for me, I thought about using relative intent, but even with shortcutmanager, I couldn't find it.
Does anyone know if this is possible or perhaps another solution, besides the possible obvious UI interaction?
Thanks in advance and greetings to the whole community.
 

Josué García

MacroDroid Support
Staff member
I bought a small infrared transmitter to use my realme 9 pro+ as a remote control for TV and/or other...
When I plug it into the OTG socket, the appropriate application opens for me.
The problem is that you also have to activate (by hand) the OTG connection in the system settings.
Therefore I would like to create a macro that would do this for me, I thought about using relative intent, but even with shortcutmanager, I couldn't find it.
Does anyone know if this is possible or perhaps another solution, besides the possible obvious UI interaction?
Thanks in advance and greetings to the whole community.
I don't know what the exact key is on that model but you can take a look at this app "setEdit" that can help you find the key to modify the status of the OTG switch
Hopefully you can find the corresponding key.

You should also know that performing that action will likely require an ADB hack.

Link to download website (F-droid)

Direct download
 
Last edited:

vm53

Member
I don't know what the exact key is on that model but you can take a look at this app "setEdit" that can help you find the key to modify the status of the NFC switch
Hopefully you can find the corresponding key.
The application you recommended to me is very interesting, I presume it is also valid for many other things.
Unfortunately this does not resolve my question, as within it, there is no relevance regarding the OTG, while there is regarding the NFC as you mistakenly posted, but not of interest to me.
Anyway, thank you very much for the interest shown to me!
 

Josué García

MacroDroid Support
Staff member
The application you recommended to me is very interesting, I presume it is also valid for many other things.
Unfortunately this does not resolve my question, as within it, there is no relevance regarding the OTG, while there is regarding the NFC as you mistakenly posted, but not of interest to me.
Anyway, thank you very much for the interest shown to me!
Sorry I used the wrong word, I really meant OTG, Finally I try to search the other 2 tables? In my case it only appears in "global" I am afraid that if it does not appear in any table, you will have to use the UI interaction
 

Attachments

  • IMG_20231213_092724.jpg
    IMG_20231213_092724.jpg
    355 KB · Views: 7
Top