Show navigation Hide 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