facebook app quit responding to control UI

Post your questions and help other users.

Moderator: Martin

Post Reply
User avatar
tsolignani
Posts: 187
Joined: 12 Jan 2019 11:53
Location: Vignola, Mo, Italy
Contact:

facebook app quit responding to control UI

Post by tsolignani » 18 Jan 2020 13:07

Good afternoon everyone.

Today I realized that a flow of mine to simple share a new post via the Facebook app quit working.

It looks like the app stopped responding to control UI.

The flow used to work up until yesterday, when the Facebook app was updated.

I made several tries, incremented sleeping times between commands, restarted the phone, no way.

I cannot even downgrade the app via sideloading, for the Facebook app on the Note 10 is a system app 😂

I tried rebuilding the flow, maybe, I thought, some UI elements changed name, no joy, and, as a matter of fact, names are the same as before.

I tried with another cell phone of mine with Android 8, where unfortunately the FB app was updated, it doesn't work on that either.

I am including the flow.

Any hint?

Thank you.
Attachments
flow_SubShareToFb_20200118_140537.xml
(2.46 KiB) Downloaded 594 times

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

Re: facebook app quit responding to control UI

Post by Desmanto » 19 Jan 2020 18:14

I don't use Facebook app. Maybe the app now block accessibility by turning on the secure flag. But this mean you can't take regular screenshot anymore in the app; which will definitely cause massive outrage. So maybe not the case.

In your script, you use the click(pattern). Can you try using clickById() or click(x,y) version? Try to use touchGesture() too. It works similar to adb input x y, and should be able to works on app that block regular accessibility. But using x y coordinate is not really realiable, you have to make a lot of check or protection to the script.
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.

User avatar
tsolignani
Posts: 187
Joined: 12 Jan 2019 11:53
Location: Vignola, Mo, Italy
Contact:

Re: facebook app quit responding to control UI

Post by tsolignani » 20 Jan 2020 13:09

Desmanto wrote:
19 Jan 2020 18:14
I don't use Facebook app. Maybe the app now block accessibility by turning on the secure flag. But this mean you can't take regular screenshot anymore in the app; which will definitely cause massive outrage. So maybe not the case.
As regards a security flag, I have another flow, to share into fb stories (the former one, the one which stopped working, is for sharing into fb wall).

Well the second flow still works like a charm.

So the first flow stopped working, the second one keeps doing well.

This I guess there is no new security flag.

I am including the second flow just in case.

I did not understand you about screenshots, would you explain it again to me please?
Attachments
flow_SubShareToFbStory_20200120_140812.xml
(2.1 KiB) Downloaded 584 times

User avatar
tsolignani
Posts: 187
Joined: 12 Jan 2019 11:53
Location: Vignola, Mo, Italy
Contact:

Re: facebook app quit responding to control UI

Post by tsolignani » 20 Jan 2020 13:15

Desmanto wrote:
19 Jan 2020 18:14
In your script, you use the click(pattern). Can you try using clickById() or click(x,y) version? Try to use touchGesture() too. It works similar to adb input x y, and should be able to works on app that block regular accessibility. But using x y coordinate is not really realiable, you have to make a lot of check or protection to the script.
Thank you again. I guess I cannot refer to ID, if I try to get to the IDs of the various interface elements, I end up with many "name removed" elements.

See screenshot attached.

I can try with xy coordinates or touchgesture, I still don't know how come it does not work anymore when element are recognized.

Thank you.
Screenshot_20200120-141053.jpg
Screenshot_20200120-141053.jpg (529.38 KiB) Viewed 8806 times

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

Re: facebook app quit responding to control UI

Post by Desmanto » 20 Jan 2020 17:32

Hmmm, if second flow works, then it should be not blocking accessibility nor secure flag. The script is almost the same logic, only different click.

Any app that enable secure flag will block regular screenshot feature. This is usually done by banking/financial app to prevent malware screenshoting sensitive data. But in this case, FB app doesn't enable it. Because the overlay button also must have disappear once you start the app.

I remmeber ever getting similar "name removed" in other forum, but they solve it using touchGesture(). Maybe Martin can tell us why the elementId removed in some certain elements. I never encountered it yet by myself. The worse is the element doesn't show the choice for element id at all.
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