PowerVR Graphics SDK tools explained: A quickstart guide for running PVRTrace on Android

Share on linkedin
Share on twitter
Share on facebook
Share on google

This blog post intends to be a replacement for the “PVRTrace.Quick Start Guide for Android Rooted” document included in the latest PowerVR Graphics SDK v3.2. My article aims to better reflect the current content of this SDK and get you up to speed with PVRTrace on Android in just a few minutes.


Notice that a device with a PowerVR GPU is not needed in order to trace the graphics API calls. On the other hand, we don’t usually test our tools on non-PowerVR devices.

If your target device cannot be rooted just check this older blog post of mine on PVRTrace and rootless recording on Android.

(Recommended) Further reading

Step 1: Installing PVRHub

PVRHub is the Android application used to install the PVRTrace recording libraries in our device. It can be installed using ADB.

adb install /path/to/PowerVR_SDK/PVRHub/Android_armeabi_armeabi-v7a_x86_mips/PVRHub.apk

Step 2: Installing the PVRTrace recording libraries in the device

The installation can be done both manually (adb push) or by using PVRHub. The manual installation is out of the scope of this blog post, you can find the detailed instructions in the PVRTrace User Manual.

PVRTrace on Android - step 1

Simply click the “Install” (A) button.

Step 3: Tracing an application

Click on “Trace an application…” (B)

PVRTrace on Android - step 2

and choose the app of your choice (C).

PVRTrace on Android - step 3

The logcat output should display something like:

I/ActivityManager(247): Displayed com.powervr.OGLES2Water/.OGLES2Water: +337ms
I/PVRTrace(I)(3818): The current working directory is /
I/PVRTrace(I)(3818): Config file found: /data/data/com.powervr.PVRHub/pvrtrace.cfg
I/PVRTrace(I)(3818): Config File HostEs1LibPath:
I/PVRTrace(I)(3818): Config File HostEs2LibPath:
I/PVRTrace(I)(3818): Config File HostEs3LibPath:
I/PVRTrace(I)(3818): Processes excluded from recording: com.powervr.PVRHub
I/PVRTrace(I)(3818): Processes included for recording: com.powervr.OGLES2Water;
I/PVRTrace(I)(3818): Recorder enabled for current process: com.powervr.OGLES2Water
I/PVRTrace(I)(3818): Opening trace file to record:
D/libEGL(3818): loaded /vendor/lib/egl/libEGL_PVRTRACE.so
I/PVRTrace(I)(3818): Loading host library
I/PVRTrace(I)(3818): Host library
'/system/vendor/lib/egl/libEGL_POWERVR_SGX540_120.so' loaded
I/PVRTrace(I)(3818): Loading host library
I/PVRTrace(I)(3818): Host library
'/system/vendor/lib/egl/libGLESv1_CM_POWERVR_SGX540_120.so' loaded
I/PVRTrace(I)(3818): Loading host library
I/PVRTrace(I)(3818): Host library
'/system/vendor/lib/egl/libGLESv2_POWERVR_SGX540_120.so' loaded
D/libEGL(3818): loaded /vendor/lib/egl/libGLESv1_CM_PVRTRACE.so
D/libEGL(3818): loaded /vendor/lib/egl/libGLESv2_PVRTRACE.so
I/com.powervr.OGLES2Water(3818): PVRShell: EGL 1.4 initialized
I/PVRTrace(I)(3818): Recording... Current frame: 1
I/PVRTrace(I)(3818): Recording... Current frame: 2
I/PVRTrace(I)(3818): Recording... Current frame: 3
I/PVRTrace(I)(3818): Recording... Current frame: 4
I/PVRTrace(I)(3818): Recording... Current frame: 5
I/PVRTrace(I)(3818): Recording... Current frame: 6
I/PVRTrace(I)(3818): Recording... Current frame: 7

Congratulations, you are now tracing all API calls! Let your app run for as many frames as you consider necessary.

PVRTrace on Android - step 4

Step 4: Getting the trace back from the device

Due to a known bug, PVRHub does not change the recorded trace file permissions so in order to pull it you’ll need to manually change the permissions:

adb shell "su -c chmod 7777 /data/data/com.powervr.PVRHub/recordings/com.powervr.OGLES2Water.pvrt"

Then you can pull it back:

adb pull /data/data/com.powervr.PVRHub/recordings/com.powervr.OGLES2Water.pvrt

You can change the name and location of the recording from the “Options” menu. Notice that writing to the SD card requires the permission:

<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>


Now you are all set up and ready to analyse the trace using the PVRTrace GUI. As you’ve seen, it only takes a couple of minutes. We are preparing similar quickstart tutorials for other tools so if you have any questions or requests, please use the comment section to let us know. Make sure you follow us on Twitter (@PowerVRInsider) and come back to our blog for more articles from the PowerVR Developer Technology team.


4 thoughts on “PowerVR Graphics SDK tools explained: A quickstart guide for running PVRTrace on Android”

  1. Hi there,
    Step 2 killed my Phone. (Now it stays freezed on Splash-Screen)
    What happened? I just pressed “Install” in the PvrHub-App.
    If it helps:
    -> I had an Wiko Bloom Mobile Phone with Android Kitkat (4.4.2)

  2. Hi,
    Using latest PowerVR SDK (v3.3) while I try to manually install PVRHub package I get the following error:
    Parsing error – Problem parsing package
    Device details:
    Android 2.3.5
    PowerVR SGX 540
    EGL Version 1.4 build

Please leave a comment below

Comment policy: We love comments and appreciate the time that readers spend to share ideas and give feedback. However, all comments are manually moderated and those deemed to be spam or solely promotional will be deleted. We respect your privacy and will not publish your personal details.

Search by Tag

Search for posts by tag.

Search by Author

Search for posts by one of our authors.

Featured posts
Popular posts

Blog Contact

If you have any enquiries regarding any of our blog posts, please contact:

United Kingdom

Tel: +44 (0)1923 260 511

Related blog articles

Product and event round-up from the experts in GPU and AI

It’s certainly been a busy few months for Imagination. Towards the latter end of last year, we released a raft of new products and initiatives, and a new CEO took the helm giving us real momentum for 2019. At the

How AI is conducting the future of music technology

“We tend to think of technological advances as destroying what’s gone before, but that doesn’t usually happen. This could lead to a different way of making music.” – Jarvis Cocker, former Pulp frontman, solo artist, writer and broadcaster In recent

Why you should join Imagination at Embedded World 2019

Our technology is focussed entirely on offering SoC manufacturers low power, high-performance options for building groundbreaking products in a range of markets, from automotive to smart devices such as smart speakers to the latest smartphones. Embedded World is one of

Stay up-to-date with Imagination

Sign up to receive the latest news and product updates from Imagination straight to your inbox.

  • This field is for validation purposes and should be left unchanged.