Skip to content

CulebraTester2 public

Diego Torres Milano edited this page Sep 13, 2020 · 1 revision

CulebraTester2-public is a backend that solves some issues with other ones like uiautomator dump.

To use CulebraTester2-public you need it installed on your device.

You can follow the steps described at How to run CulebraTester-2-public.

Then once you have run

$ ./culebratester2 start-server

and the server is running you can use the command line option --use-uiautomator-helper or -h, like

$ dump -ha | jq
⚠️ CulebraTester2 server should have been started and port redirected.

as you can notice the new dump output is json by default so you can pipe it to jq:

{
  "id": "hierarchy",
  "text": "Window Hierarchy",
  "children": [
    {
      "id": 0,
      "parent": -1,
      "text": "",
      "package": "com.google.android.apps.nexuslauncher",
      "checkable": false,
      "clickable": false,
      "index": 0,
      "content_description": "",
      "focusable": false,
      "resource_id": "",
      "enabled": true,
      "password": false,
      "long_clickable": false,
      "long_text": "android.widget.FrameLayout__ id=0 parent=-1",
      "clazz": "android.widget.FrameLayout",
      "scrollable": false,
      "selected": false,
      "checked": false,
      "focused": false,
      "bounds": [
        0,
        0,
        1080,
        1878
      ],
      "children": [
        {
          "id": 1,
          "parent": 0,
          "text": "",
          "package": "com.google.android.apps.nexuslauncher",
          "checkable": false,
          "clickable": false,
          "index": 0,
         ...****
Clone this wiki locally