by Dor Inon
Version 1 (September 30, 2025)
Download (4 downloads)
This flow is used to block specific instances of the user interface by identifying them using Xpath and their app package.
Add your UI element to the dictionary when the key is the app package and the value is the associated Xpath
*How to find the Xpath*
The easiest way I found to get your desiered Xpath is using the inspect block record interaction feature
Example:
App package: com.android.settings
Xpath: //android.widget.LinearLayout[.//android.widget.TextView[@android:text='Automate shortcut']]//android.widget.Switch[@android:checked='true'
The dictionary will be
{"com.android.settings" : "//android.widget.LinearLayout[.//android.widget.TextView[@android:text='Automate shortcut']]//android.widget.Switch[@android:checked='true']" ,...}
It will block turning off Automate accessibility feature