ControlUI Problem after Nougat Upgrade

Post your questions and help other users.

Moderator: Martin

Post Reply
skiptannen
Posts: 82
Joined: 13 Jan 2014 21:39

ControlUI Problem after Nougat Upgrade

Post by skiptannen » 16 Apr 2017 11:36

My Verizon Galaxy Note 5 (no root) was updated to Android 7.0, which caused a number of minor issues, but the big one is that I can no longer use an existing flow to put the phone in Airplane Mode. My flow, which worked perfectly in Android 6, uses ControlUI to tap the Airplane Mode icon:

notifications();
sleep(1000);
click(147,270);
sleep(1000);
back();

I adjusted the x and y coordinates for the alignment changes in Nougat but I still can't get it to work. As a test I added focus(x,y) with the new coordinates and the Airplane Mode icon gets highlighted, so it appears that the coordinates are correct. Could the failure to tap the Airplane Mode icon be some kind of overlay problem or maybe something that Samsung broke in the TouchWiz UI?

Has anyone else has run into this problem and is there a fix? I would hate to lose this functionality, especially since it used to work so well in Android 6 and it was part of a flow I used all the time.

Thanks.

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: ControlUI Problem after Nougat Upgrade

Post by Martin » 17 Apr 2017 20:14

Hi,

Unfortunately I don't have a Note 5 to test. Following script works on an S7 with Android 7.0:
quickSettings();
sleep(1000);
click("Flight,mode*");

Note that the text "Flight,mode" might need to be changed depending on language settings and maybe even ROM version.
The flight mode icon temporarily switches to a light blue color and then switches on/off after about one more second.

Regards,
Martin

skiptannen
Posts: 82
Joined: 13 Jan 2014 21:39

Re: ControlUI Problem after Nougat Upgrade

Post by skiptannen » 18 Apr 2017 11:01

Hi Martin,

Thanks to your example I got it working. My Quick Setting tile looks like this:

Image

I found that click("Airplane,mode*") worked a treat.

Thanks again!

Econdoc
Posts: 153
Joined: 28 May 2016 20:06

Re: ControlUI Problem after Nougat Upgrade

Post by Econdoc » 10 Nov 2018 15:17

I just ran across this conversation and am curious about the syntax used by both contributors. Both use a comma and an asterisk in their click command. Click("Flight,mode*") and Click("Airplane,mode*);

Is there a special reason for the comma and asterisk?
Last edited by Econdoc on 10 Nov 2018 22:28, edited 1 time in total.

User avatar
Desmanto
Posts: 2709
Joined: 21 Jul 2017 17:50

Re: ControlUI Problem after Nougat Upgrade

Post by Desmanto » 10 Nov 2018 16:43

I don't get it too. In my test, I usually use the text provided by the INFO overlay. Sometimes the text can contains special or hidden char that can only retrieved by choosing directly from the INFO, not by typing.
Index of Automagic useful thread List of my other useful posts (and others')
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.

Post Reply