When this happens, Automate is running fine and isn't being killed. The fiber with "UI_Automator Dump" superuser block keeps running fine, while the other fiber, with the Interact Touch block, stopped running ("No accessibility service running).
I found out this answer on github :
"It is not possible to test Accessibility Services in parallel with UiAutomator.
Both UiAutomator(including UiAutomator2) and AccessibilityService depends on same resources internally which are singleton in nature and UiAutomator API always holds lock on those resources.
As a result it just not possible to use both UiAutomator and AccessibilityService at a time."
Source :
https://github.com/appium/appium/issues/4910
So, if as you said, there is no workaround : how can I inspect the whole window in the foreground and get all the XML with the Views, the ID, the yexts, the coordinates,... I want to be able to fetch all of them, and then read them in a file to get the coordinates (that was why I used "UI automator dump).
Thank you !