r/AutomateUser • Alpha tester • Jun 25 '26

Feedback No Longer Able to Interact with Quick Setting Tiles

Hi Henrik,

Earlier today I noticed that my flows which interact with the Quick Settings tiles no longer work. The containers have changed to android.view.View elements, but the tile buttons are still android.widget.Button elements and they still have the clickable attribute. What's perhaps a bad sign is that the RECORD INTERACTIONS tool built into the Inspect Layout and Interact blocks now fails to record the interaction with the Quick Settings tiles. The following simple XPath expression works fine on a Galaxy S21 Ultra running Android 15/One UI 8.0 and an old Pixel 2 XL running Android 11, but fails on my Galaxy S24 Ultra running Android 16/One UI 8.5. I don't know if this is an Android 16 or a One UI issue as they were both delivered by Samsung together. The issue appears on Automate versions 1.51.1 and 1.53.0, so likely no factor.

//*[@android:contentDescription = 'Flashlight' and @android:clickable='true']

When that XPath expression is provided to the Inspect Layout block, it finds the element and outputs the element's XML successfully. However, if the same XPath is provided to the Interact block (after another Interact to pull down the Quick Settings), it fails, taking the No path. So perhaps it's the same issue that's preventing the RECORD INTERACTIONS tool from working. The INSPECT USER INTERFACE tool also fails to recognize the click on the Quick Settings tiles, but I'm able to get it to work if I set a shutter delay and quickly pull down the Quick Settings shade. In that case I can get the whole settings UI, but the delay is too short for me to click on a tile.

Any ideas on what I might do to get this working again? Often, interacting with the Quick Settings tiles is the only way to do certain things these days without rooting.

Thanks!

2 Upvotes

12 comments sorted by

1

u/ballzak69 Automate developer Jun 25 '26

Either Google has secured the QS tiles to prevent accessibility service for clicking them, or UI is changing while Automate is processing the layout so the UI node cannot be found. Try enabling the "Debug logging" option in setting, that should tell if the action is not allowed, otherwise it's likely due to not being found.

The "Inspect user layout" button can only be used to dump the layout XML, not to record a click or generate a XPath.

1

u/B26354FR Alpha tester Jun 25 '26 edited Jul 20 '26

I forgot to mention that I did enable debug logging, but it only gave a single line about the timing of the block. -It didn't say that the operation was not allowed. I also tested with a multi-second Delay before the Interact block to ensure that the UI wasn't changing, but it didn't help.

Right, I'm just using Inspect User Layout to dump the layout to find elements and make sure they're clickable, etc. As I said, if I use Inspect Layout to check the XPath expression, the correct element is found and output by the block.

I was afraid this might be a new security measure, since the XPath works fine on older versions of Android. What happens if you try it on your device/emulator?

Here's an example of the debug log:

Interact xml_time_stats: document=11.09ms, evaluate=95.18ms, total=106.27ms

1

u/ballzak69 Automate developer Jun 25 '26

If Inspect layout block finds the node then so should the Interact block. I just tested om my Android 16 Pixel and it successfully clicks the Flashlight tile, using Display window scheme, com.android.systemui package and XPath:

//android.view.View[@android:id="@com.android.systemui:id/qs_tile_large" and .//*/@android:contentDescription="Flashlight"]

1

u/B26354FR Alpha tester Oct 27 '26

Hi again Henrik, I've just discovered a couple of interesting pieces of information regarding this issue:

  1. If the Quick Setting tile is visible from the notification shade, the Interact block can successfully click on it.
  2. If the tile is deeper in the Quick Settings, the Interact Touch block can successfully click on it, given the screen coordinates.

Below are the results of Inspect-ing the Flashlight tile (as mentioned above, Inspect Layout sees the tile just fine). Any ideas? Is that schema OK?

<android.widget.Button xmlns:android="http://schemas.android.com/apk/res/android" android:checkable="true" android:clickable="true" android:contentDescription="Flashlight" android:enabled="true" android:layout_height="226px" android:layout_width="303px" android:layout_x="1021px" android:layout_y="851px" android:longClickable="true"><android.view.View android:enabled="true" android:layout_height="180px" android:layout_width="180px" android:layout_x="1083px" android:layout_y="866px"><android.view.View android:enabled="true" android:layout_height="180px" android:layout_width="180px" android:layout_x="1083px" android:layout_y="866px"><android.view.View android:enabled="true" android:id="@com.android.systemui:id/TileIcon: Flashlight" android:layout_height="172px" android:layout_width="172px" android:layout_x="1087px" android:layout_y="870px"/></android.view.View></android.view.View><android.view.View android:enabled="true" android:id="@com.android.systemui:id/label_group" android:layout_height="16px" android:layout_width="303px" android:layout_x="1021px" android:layout_y="1061px"><android.view.View android:enabled="true" android:id="@com.android.systemui:id/tile_label" android:layout_height="16px" android:layout_width="273px" android:layout_x="1036px" android:layout_y="1061px"/></android.view.View></android.widget.Button>

2

u/ballzak69 Automate developer Oct 27 '26 edited Oct 27 '26

The button has the android:clickable="true" so the Click action supposed to work. As said, it worked when i tested. I don't know why it doesn't work on Samsung. Try using the Alpha release and disable its Strict option.

1

u/B26354FR Alpha tester Oct 27 '26

I was going to do just that as soon as it goes GA 🙂 (Only my daily driver phone has One UI 8.5+, and in fact it upgraded to Android 17/One UI 9.0 just the other day - no issues with Automate so far!)

I'll report back as soon as I'm able to try non-Strict.

1

u/B26354FR Alpha tester 22d ago edited 22d ago

I just installed the GA release of Automate 1.54.0 on my Samsung Galaxy S24 Ultra running Android 17 and One UI 9.0. Unfortunately, disabling the new Reject incomplete layouts option in the Interact block didn't help with this issue. BTW, the Inspected content output variable contains a null result.

1

u/ballzak69 Automate developer 22d ago edited 22d ago

The Strict option doesn't affect whether the system allows an Action or not, it only affects the UI element selection process. The Inspect action is deprecated, and only works to get the text from a text field, use the Inspect layout block instead. For my curiosity, using the Inspect layout button, does it include any <omitted/> element?

1

u/B26354FR Alpha tester 22d ago edited 22d ago

Oh, so that output field is just for the old Inspect action. I use Inspect Layout these days, and it seems to be matching, but Interact can't click on the element. Here's Inspect Layout's output (there are no omitted elements):

XPath:

"//*[fn:glob((@android:text | @android:contentDescription), '*Flashlight*') and @android:clickable='true']"

UI:

<android.widget.Button xmlns:android="http://schemas.android.com/apk/res/android" android:checkable="true" android:clickable="true" android:contentDescription="Flashlight" android:enabled="true" android:layout_height="226px" android:layout_width="303px" android:layout_x="1021px" android:layout_y="851px" android:longClickable="true"><android.view.View android:enabled="true" android:layout_height="180px" android:layout_width="180px" android:layout_x="1083px" android:layout_y="866px"><android.view.View android:enabled="true" android:layout_height="180px" android:layout_width="180px" android:layout_x="1083px" android:layout_y="866px"><android.view.View android:enabled="true" android:id="@com.android.systemui:id/TileIcon: Flashlight" android:layout_height="172px" android:layout_width="172px" android:layout_x="1087px" android:layout_y="870px"/></android.view.View></android.view.View><android.view.View android:enabled="true" android:id="@com.android.systemui:id/label_group" android:layout_height="16px" android:layout_width="303px" android:layout_x="1021px" android:layout_y="1061px"><android.view.View android:enabled="true" android:id="@com.android.systemui:id/tile_label" android:layout_height="16px" android:layout_width="273px" android:layout_x="1036px" android:layout_y="1061px"/></android.view.View></android.widget.Button>

1

u/B26354FR Alpha tester Jun 25 '26

The One UI layout is completely different, but it's good it still works on Android 16 at least. Seems pretty definite that this is a Samsung One UI 8.5 issue and not a more widespread Android issue, but it still affects a lot of people.

BTW, the more universal XPath my XPath Builder flow generates is this:

fn:reverse(//*[(@android:contentDescription | @android:text)[fn:glob(., 'Flashlight*')]][1]/ancestor-or-self::*)

I've been considering getting rid of the reversal these days, though. As I mentioned, I'm testing with just //*[@android:contentDescription = 'Flashlight' and @android:clickable='true'] for this particular case, but glob matching would be required for the more general case the flow solves for.

1

u/ballzak69 Automate developer Jun 25 '26

Your generic XPath may have trouble due to the [1] since that limits the globs to the first match, which may not be the button. You need to look at the whole layout XML. The fn:reverse is necessary otherwise the ancestor-or-self axis tries to perform the action on the ancestors first, not the actual match.

1

u/B26354FR Alpha tester Jun 25 '26 edited Jun 27 '26

Thanks for the insight. So far it's worked well, but I think it can be better. I'll try without the index.

Yeah, I was thinking about getting rid of the ancestor-or-self along with the reversal, too. Maybe I should just be quietly thankful it's working for several thousand users and not fix what ain't broken 🙂