Difference between revisions of "Action: Airplane Mode On/Off"
m (→Example) |
|||
Line 57: | Line 57: | ||
Day/Time Trigger | Day/Time Trigger | ||
07:00 Mon - Sun | 07:00 Mon - Sun | ||
− | </pre | + | </pre> |
<pre style="background-color: #45289F; color: white; border-radius: 10px; padding: 10px;"> | <pre style="background-color: #45289F; color: white; border-radius: 10px; padding: 10px;"> | ||
Line 89: | Line 89: | ||
<pre style="background-color: #45289F; color: white; border-radius: 10px; padding: 10px;"> | <pre style="background-color: #45289F; color: white; border-radius: 10px; padding: 10px;"> | ||
End If | End If | ||
− | </pre | + | </pre> |
<pre style="background-color: #387F3D; color: white; border-radius: 10px; padding: 10px;"> | <pre style="background-color: #387F3D; color: white; border-radius: 10px; padding: 10px;"> | ||
Constraints | Constraints | ||
− | </pre | + | </pre> |
<pre style="background-color: teal; color: white; border-radius: 10px; padding: 10px;"> | <pre style="background-color: teal; color: white; border-radius: 10px; padding: 10px;"> | ||
Local variables | Local variables | ||
</pre><br> | </pre><br> |
Revision as of 18:02, 22 January 2024
About
This action allows you to set the device's current default digital assistant. This will (for example) allow you to switch dynamically between the Google default assistant and some other app when required.
Configuration available
Root Only
No additional configuration is required, simply grant ROOT permissions to macrodroid and it will start working.
Macrodrood as Default Assist App
In this situation, the google assistant (Default) is replaced by MacroDroid, this change will make functions like OK google unavailable. Requires MacroDroid to be configured as the default digital assistant/voice input app. Please note you should also grant MacroDroid permission to use the microphone so the assistant app can continue to function correctly.
ADB hack
To use this function you need to have ADB hack permissions. It will toggle the current application by macrodroid, then switch back to the application that was configured, after the process functions like OK google will remain functional.
The 3 available methods support the same functions.
- Airplane Mode On
Activate airplane mode.
- Airplane Mode Off
Turn off airplane mode.
- Airplane Mode Toogle
Toggles the current status of the airplane mode.
Example
This macro activates the airplane mode at night (22:00) and deactivates it in the morning (07:00).
Triggers Day/Time Trigger 22:00 Mon - Sun Day/Time Trigger 07:00 Mon - Sun
If Trigger Fired: Day/Time Trigger 22:00 Mon - Sun
Actions Airplane Mode On
End If
If Day/Time Trigger 07:00 Mon - Sun
Actions Airplane Mode Off
End If
Constraints
Local variables