Line 1: |
Line 1: |
− | <pre style="background-color: #AC2424; color: white; border-radius: 10px; padding: 10px; margin: 10;"> | + | == About == |
| + | |
| + | <pre style="background-color: #ACC8E5; color: #112A46; border-radius: 10px; padding: 10px;"> |
| + | 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. |
| + | </pre><br/> |
| + | |
| + | ==<p><b>Configuration available</b></p>== |
| + | |
| + | === Root Only === |
| + | |
| + | <pre style="background-color: #ACC8E5; color: #112A46; border-radius: 10px; padding: 10px;"> |
| + | No additional configuration is required, simply grant ROOT permissions to macrodroid and it will start working. |
| + | </pre> |
| + | |
| + | === Macrodrood as Default Assist App === |
| + | |
| + | <pre style="background-color: #ACC8E5; color: #112A46; border-radius: 10px; padding: 10px;"> |
| + | 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. |
| + | </pre> |
| + | |
| + | === ADB hack === |
| + | |
| + | <pre style="background-color: #ACC8E5; color: #112A46; border-radius: 10px; padding: 10px;"> |
| + | 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. |
| + | </pre> |
| + | * ''''' [http://www.macrodroidforum.com/index.php?threads/adb-hack-granting-extra-capabilities-via-the-adb-tool.48/ ADB hack] ''''' |
| + | <br/> |
| + | |
| + | ''''' 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. |
| + | |
| + | ==<p><b>Example</b></p>== |
| + | |
| + | ''''' This macro activates the airplane mode at night (22:00) and deactivates it in the morning (07:00).''' |
| + | <br> |
| + | |
| + | <pre style="background-color: #AC2424; color: white; border-radius: 10px; padding: 10px;"> |
| Triggers | | Triggers |
| | | |
Line 7: |
Line 57: |
| Day/Time Trigger | | Day/Time Trigger |
| 07:00 Mon - Sun | | 07:00 Mon - Sun |
− | </pre> | + | </pre><br> |
| | | |
− | <pre style="background-color: #40289F; color: white; border-radius: 10px; padding: 10px; margin: 0;"> | + | <pre style="background-color: #45289F; color: white; border-radius: 10px; padding: 10px;"> |
| If | | If |
| Trigger Fired: Day/Time Trigger | | Trigger Fired: Day/Time Trigger |
Line 15: |
Line 65: |
| </pre> | | </pre> |
| | | |
− | <pre style="background-color: #1660B0; color: white; border-radius: 10px; padding: 10px; margin: 0;"> | + | <pre style="background-color: #1665B0; color: white; border-radius: 10px; padding: 10px;"> |
| Actions | | Actions |
| | | |
| + | Airplane Mode On |
| </pre> | | </pre> |
| | | |
− | <pre style="background-color: #40289F; margin: 0; color: white; border-radius: 10px; padding: 10px; margin: 0;"> | + | <pre style="background-color: #45289F; color: white; border-radius: 10px; padding: 10px;"> |
| End If | | End If |
| </pre> | | </pre> |
| | | |
− | <pre style="background-color: #1660B0; color: white; border-radius: 10px; padding: 10px; margin: 0;"> | + | <pre style="background-color: #45289F; color: white; border-radius: 10px; padding: 10px;"> |
| + | If |
| + | Day/Time Trigger |
| + | 07:00 Mon - Sun |
| + | </pre> |
| + | |
| + | <pre style="background-color: #1665B0; color: white; border-radius: 10px; padding: 10px;"> |
| Actions | | Actions |
| | | |
− | Set Digital Assistant
| + | Airplane Mode Off |
− | Macrodroid
| |
| </pre> | | </pre> |
| | | |
| + | <pre style="background-color: #45289F; color: white; border-radius: 10px; padding: 10px;"> |
| + | End If |
| + | </pre><br> |
| | | |
− | | + | <pre style="background-color: #387F3D; color: white; border-radius: 10px; padding: 10px;"> |
− | <pre style="background-color: #387F3D; color: white; border-radius: 10px; padding: 10px; margin: 10;"> | |
| Constraints | | Constraints |
| | | |
− | </pre> | + | </pre><br> |
− | <pre style="background-color: teal; color: white; border-radius: 10px; padding: 10px; margin: 0;"> | + | <pre style="background-color: teal; color: white; border-radius: 10px; padding: 10px;"> |
| Local variables | | Local variables |
| | | |
− | assistant = False
| + | </pre><br> |
− | </pre> | |