| Line 1: |
Line 1: |
| − | <span style="color: #0E9549; font-size: 24px;">'''About this constraint '''</span> | + | <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.
| + | ''' 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]] |