Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

Cannot cast my screen after Android 15 update

63 views
Skip to first unread message

Rodrigo Silvestri

unread,
Oct 25, 2024, 3:02:53 PM10/25/24
to Tasker
Hi everyone. I have been using Tasker for more than a decade but I'm not necessarily a pro user.

I have a Google Nest Speaker Group that has different devices, so it's not stable when connecting. Usually it takes two attempts to connect. So I need to tap to cast to the speaker group, then wait for 15 seconds and if it failed, tap again.

I created a task in Tasker that uses AutoInput Global Action to open Quick Settings, then taps on "Cast" (I think it was "Screen Cast" before Android 15), then it tapn on the speaker group and checks in 15 seconds if the casting notification is there. If it's not, it tries casting again.
This worked for me during the last year until the Android 15 update in the recent days (I have a Pixel 8).

Now, it seems that AutoInput cannot tap on the Quick Settings button.

I already had the WRITE_SECURE_SETTINGS enabled, which bypassed the screen recording popup.

Please let me know if there is anything else that I can enable to keep this task working, or if you can recommend a better way of start casting the screen.

I know that the Casting could be started from Settings > Connected devices > Connection preferences >  Cast, but I have not tried to do it this way yet.

Thanks!
Rodrigo.


João Dias

unread,
Oct 28, 2024, 5:58:30 AM10/28/24
to tas...@googlegroups.com
Hi. Can you please export your task's description (not xml) so I can take a look? Long-click the task in Tasker->export description Thanks in advance

Thank you for your contact.

   Join: connect multiple devices (send pushes, remote SMS, notifications) on Android, Windows, Mac, Linux
   Tasker: customize/automate anything on your phone!
   AutoApps: add advanced functionality to Tasker via plugins

     

João Dias


Rodrigo Silvestri

unread,
Oct 28, 2024, 10:14:55 AM10/28/24
to Tasker
Hi João! 
Here is my task (I think I replied minutes before, but I don't see the message now). 
%Castingvar is defined by another profile, based on the presence of the casting notification. Anyway this task is failing in step 2, it fails to click on the Cast button. This cast task was AutoInput Type Text, it clicked on the Screen Cast button, which is now called just Cast (after Android 15). So first I changed the text to just "Cast", it didn't work, and now I changed it to an XY position on the screen, with no success. 

Thanks, 
Rodrigo.

    Task: CastStart
    
    A1: AutoInput Global Action [
         Configuration: Action: Quick Settings
         Timeout (Seconds): 20
         Structure Output (JSON, etc): On ]
    
    A2: AutoInput Action [
         Configuration: Type: Point
         Value: 540,1200
         Action : Click
         Timeout (Seconds): 23
         Structure Output (JSON, etc): On ]
    
    A3: Wait [
         MS: 526
         Seconds: 0
         Minutes: 0
         Hours: 0
         Days: 0 ]
    
    A4: AutoInput Action [
         Configuration: Type: Text
         Value: CDLP All
         Action : Click
         Timeout (Seconds): 23
         Structure Output (JSON, etc): On ]
    
    A5: Wait [
         MS: 0
         Seconds: 7
         Minutes: 0
         Hours: 0
         Days: 0 ]
    
    A6: If [ %Castingvar ~ false ]
    
        A7: AutoInput Global Action [
             Configuration: Action: Quick Settings
             Timeout (Seconds): 20
             Structure Output (JSON, etc): On ]
    
        A8: AutoInput Action [
             Configuration: Type: Text
             Value: Screen Cast
             Action : Click
             Timeout (Seconds): 23
             Structure Output (JSON, etc): On ]
    
        A9: Wait [
             MS: 526
             Seconds: 0
             Minutes: 0
             Hours: 0
             Days: 0 ]
    
        A10: AutoInput Action [
              Configuration: Type: Text
             Value: CDLP All
             Action : Click
              Timeout (Seconds): 23
              Structure Output (JSON, etc): On ]
    
    

João Dias

unread,
Oct 28, 2024, 10:53:00 AM10/28/24
to tas...@googlegroups.com
Could you maybe try setting up the AutoInput Action again, but with v2 and see if that works better?

Rodrigo Silvestri

unread,
Oct 28, 2024, 1:02:37 PM10/28/24
to Tasker
Okay, thanks!

So, this is what I found:

- Neither AutoInput or AutoInput V2 can read the Cast button text from the quick settings panel. Even if I set it manually to click any "Cast" text on the screen, it doesn't seem to find the Cast button on the Quick Settings panel.
- When I tried to change the setting to click on an XY point, I was selecting the wrong XY position, because I was reading the position from the smaller Quick Settings panel, and the AutoInput Global Action Quick Settings opens the fullscreen Quick Settings.
- When I understood this and got the right XY position from the expanded Quick Settings panel, it worked. So now I changed all my "click text" actions to "click XY position" and they work.

It still would be interesting to get the "click text" to work on the Quick Settings panel.

Thank you very much!
Rodrigo

João Dias

unread,
Oct 28, 2024, 2:26:38 PM10/28/24
to tas...@googlegroups.com
I see, thanks!
Must be some kind of new limitation imposed by the system... I'll see if there's a way around it, thanks!

Reply all
Reply to author
Forward
0 new messages