在 Androd 11 之后,get_render_resolution 返回的值不正确
**Description of the problem bug** airtest.core.android.android.Android.get_render_resolution describes the position of an application on the screen, excluding areas that are not relevant to the application of interest, such as bezel screens, other applications in split screens, etc. This method ultimately calls airtets.core.android.adb.ADB.get_display_of_all_screen, which parses the output of adb shell dumpsys window windows and matches the regular expression "Frames: containing=". In Android 10 and earlier versions, the output is as follows: `Frames: containing=[...] parent=[...] display=[...]` In Android 11 and later versions, the output is as follows (the actual output for the application at the bottom of a split-screen scenario): `Frames: parent=[0,1779][1116,2480] display=[0,1779][1116,2480] frame=[0,1779][1116,2480] last=[0,1779][1116,2480] insetsChanged=false` In this case, no content is matched, and get_display_of_all_screen returns the size of the entire screen rather than the size of the specific application. The meaning of each field is described in the comments below. You should match the frame as the render_resolution (in fact, in the existing code, matching containing is also incorrect, and it should match display).
内容来源: AirtestProject/Airtest