To run Hierarchy Viewer, you must enable Developer Options on your mobile device and perform
some setup on your computer.
Configuring Devices
Enable Developer Options
on your mobile device.
- 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
- Click My Computer > Property > Advanced > Environment Variables.
- Click New.
- In variables name put:
ANDROID_HVPROTO
- In variable value put:
ddm
- Click OK<./li>
Mac
- Edit
~/.bash_profile
- Add:
#Hierarchy Viewer Variable
export ANDROID_HVPROTO=ddm
source ~/.bash_profile
Linux
- Edit
~/.bash_profile
- Add:
#Hierarchy Viewer Variable
export ANDROID_HVPROTO=ddm
source ~/.bash_profile
This site uses cookies to store your preferences for site-specific language and display options.
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.