Skip to content

Most visited

Recently visited

navigation

Device Setup for Hierarchy Viewer

To run Hierarchy Viewer, you must enable Developer Options on your mobile device and perform some setup on your computer.

Configuring Devices

  1. Enable Developer Options on your mobile device.

  2. Depending on the type of device you have, do one of the following:
    • If you have a locked device running Android 4.0 or lower, follow the instructions for installing and configuring ViewServer.
    • If you have an unlocked device running Android 4.0 or lower, no further configuration is needed.
    • If you have a device running Android 4.1 or higher, you must set an environment variable on your development machine. For more information, see Setting the ANDROID_HVPROTO variable

Setting the ANDROID_HVPROTO variable

Windows

  1. Click My Computer > Property > Advanced > Environment Variables.
  2. Click New.
  3. In variables name put: ANDROID_HVPROTO
  4. In variable value put: ddm
  5. Click OK<./li>

Mac

  1. Edit ~/.bash_profile
  2. Add:
    #Hierarchy Viewer Variable
    export ANDROID_HVPROTO=ddm
  3. source ~/.bash_profile

Linux

  1. Edit ~/.bash_profile
  2. Add:
    #Hierarchy Viewer Variable
    export ANDROID_HVPROTO=ddm
  3. source ~/.bash_profile
This site uses cookies to store your preferences for site-specific language and display options.

Hooray!

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.

Take a one-minute survey?
Help us improve Android tools and documentation.