How to start hierarchy viewing with Nexus One

I am trying to debug an Android application for nexus one using a hierarchy viewer. I start the hierarchy view on the desktop. In the "Devices" section, I see my phone, but when I click "Start server", I see 'version = 2 protocol = 2 version = 2' on the terminal when I start viewing the hierarchy.

But nothing happens, the Download Hierarchy remains disabled.

Could you tell me how I can get the viewer to work with the hierarchy?

+4
source share
3 answers

Or include ViewServer in your application. You can then use the hierarchy viewer on any device. But only for your own application.

https://github.com/romainguy/ViewServer

Version 12 ADT is required.

+14
source

From Mark Murphy book :

Please note that you cannot use the HierarchyViewer with an Android production device (e.g. T-Mobile G1)

Although, I was able to run HierarchyViewer on my phone after installing an unmanaged ROM and rooting it. I think this will void the warranty.

+6
source

You will need to unlock the bootloader and run it. Running a hierarchical view as a whole is well worth the time.

+1
source

All Articles