"Set Speakerphone State: On" makes flow fail
Moderator: Martin
Re: "Set Speakerphone State: On" makes flow fail
@Desmanto
below the sequence of screenshots on my Y5 2019 from searching accessibility in global settings:
below the sequence of screenshots on my Y5 2019 from searching accessibility in global settings:
Re: "Set Speakerphone State: On" makes flow fail
@bobeurone : "This service is malfunctioning". It seems the accessibility is broken. Try to disable and enable it again. Also try to disable it, restart the phone, enable it again. (and restart again, if it still malfunction).
Do you use other app which use accessibility too? If yes, try to turn them off first. Also try to disable any other feature in that accessibility setting which might interfere. If none works, go to Automagic Settings > Features & Permissions > Accessibility feedback type > try to change to other type. AFAIR, some huawei phones required to change this to make the AM Accessibility works.
Do you use other app which use accessibility too? If yes, try to turn them off first. Also try to disable any other feature in that accessibility setting which might interfere. If none works, go to Automagic Settings > Features & Permissions > Accessibility feedback type > try to change to other type. AFAIR, some huawei phones required to change this to make the AM Accessibility works.
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.
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.
Re: "Set Speakerphone State: On" makes flow fail
@Desmanto
Could it be the funky theme Space Dark I installed on the smartphone that disturbed accessibility?
Could it be the funky theme Space Dark I installed on the smartphone that disturbed accessibility?
Re: "Set Speakerphone State: On" makes flow fail
@Desmanto disabling => restart => renabling and now Overlay Control button works !!
Big thank you again.
Big thank you again.
Re: "Set Speakerphone State: On" makes flow fail
@Desmonto when clicking Airplane Mode text I don't get the Click("Airplane Mode") option but only the getText.
I tried clickById or checkById on the button but it did not work.
Any hint
I tried clickById or checkById on the button but it did not work.
Any hint
Re: "Set Speakerphone State: On" makes flow fail
If CUI return getText("Mode avion"), try to use click("Mode avion"). clickById() and its kind only work for element id.
At my phone, I can still see the click, click (x,y) and clickById(). You need to experiment with various element box to see which one can provide the one you need.
Anyway, this seems to be off topic from the thread title, maybe you should create a new thread for the airplane mode. If you install new AM 1.38.0, and grant Read logs and dump permission, maybe you can toggle airplane mode without root.
To grant the permission in PC
I can't try it, as I have rooted. Even if I disable the root for Automagic, the binary is still probably there and still have the permission. Hence, what work for me, might not work for you.
At my phone, I can still see the click, click (x,y) and clickById(). You need to experiment with various element box to see which one can provide the one you need.
Anyway, this seems to be off topic from the thread title, maybe you should create a new thread for the airplane mode. If you install new AM 1.38.0, and grant Read logs and dump permission, maybe you can toggle airplane mode without root.
To grant the permission in PC
Code: Select all
adb shell pm grant ch.gridvision.ppam.androidautomagic android.permission.READ_LOGS
adb shell pm grant ch.gridvision.ppam.androidautomagic android.permission.DUMP
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.
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.
Re: "Set Speakerphone State: On" makes flow fail
@Desmanto
My initial ask was about clicking the speaker button once phone call is answered.
With overlay control I could find the label of speaker "Haut-parleur" as you can see.
I implemented a parallel flow AnswerCall // Sleep(5s);click("Haut-parleur";.
Despite call is answered the click in parallel flow does not work.
My initial ask was about clicking the speaker button once phone call is answered.
With overlay control I could find the label of speaker "Haut-parleur" as you can see.
I implemented a parallel flow AnswerCall // Sleep(5s);click("Haut-parleur";.
Despite call is answered the click in parallel flow does not work.
Re: "Set Speakerphone State: On" makes flow fail
If you check the log, do you see the flow get executed? It is possible that your call trigger doesn't triggered at all, or maybe executed too early than your 5s delay.
Try clickById("com.android.incallui:id/showAudioButton") and click(576, 1244) too to see if it works. You might want to try other simple Control UI first in other place, such as other app. There is another possibility that your dialer is flagged secure and can't be controlled by CUI.
Try clickById("com.android.incallui:id/showAudioButton") and click(576, 1244) too to see if it works. You might want to try other simple Control UI first in other place, such as other app. There is another possibility that your dialer is flagged secure and can't be controlled by CUI.
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.
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.
Re: "Set Speakerphone State: On" makes flow fail
@Desmanto The trigger of my flow works well since call is indeed answered, this is the parallel flow that is problematic and specifically clicking the speaker.
I already tried clickById("com.android.incallui:id/showAudioButton") with no more success. I did not try click(x,y) for speaker but for "Airplane mode" in tutorial click(x,y) did not work either and the flow was much simpler with no filter and no parallel branch. A speech() function before click() works well so the parallel branch is indeed executing.
Since I could not click either the "Airplane Mode" in your tutorial, I suspect my phone has some security setting that prevents specific actions on buttons. Any idea how I could check that?
I already tried clickById("com.android.incallui:id/showAudioButton") with no more success. I did not try click(x,y) for speaker but for "Airplane mode" in tutorial click(x,y) did not work either and the flow was much simpler with no filter and no parallel branch. A speech() function before click() works well so the parallel branch is indeed executing.
Since I could not click either the "Airplane Mode" in your tutorial, I suspect my phone has some security setting that prevents specific actions on buttons. Any idea how I could check that?
Re: "Set Speakerphone State: On" makes flow fail
Try to change the accessibiity feedback type to other, as I mentioned before. Some huawei phone required to change it first. I don't have any friend using huawei here, can't test it. In most cases, accessibility frequently got killed by the system power saver. You have to toggle it again (disable and enable it again), never touch the kill all button. Then make sure you try the Control UI before any screen off, as the power saver usually kicks in after screen off.
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.
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.