| Line 1: |
Line 1: |
| − | <pre style="background-color: #ACC8E5; color: #112A46; border-radius: 10px; padding: 10px;"> | + | <pre class="header-style">This constraint allows or prevents a macro/feature from running based on whether the device is rooted.</pre> |
| − | This constraint can be used to allow a trigger, an action or a condition to execute only when running on a rooted/non-rooted device. | + | |
| − | </pre> | + | ''' Options ''' |
| | + | |
| | + | * '''Rooted''': Constraint passes only when the device is rooted |
| | + | * '''Not Rooted''': Constraint passes only when the device is not rooted |
| | + | |
| | + | ''' Example ''' |
| | + | |
| | + | ''Example 1: Open a root file manager only on rooted devices'' |
| | + | <pre class="trigger-style">Triggers |
| | + | |
| | + | Widget Button</pre> |
| | + | <pre class="action-style">Actions |
| | + | |
| | + | Launch Application: Root Explorer</pre> |
| | + | <pre class="constraint-style">Constraints |
| | + | |
| | + | Rooted Device - Rooted</pre> |
| | + | |
| | + | ''' See Also ''' |
| | + | |
| | + | * [[Constraint: ADB Hacked|ADB Hacked Constraint]] |