Installing Graphics Analyzer on webOS
webOS devices are based upon Linux and are capable of using Graphics Analyzer executables intended for that operating system. Ensure that you use binaries compiled for the architecture of the device in question (see Target Deliverables).
The installation steps are as follows:
- Make a directory on the device named /opt/graphics_analyzer.
Copy the following files into this new directory:
- libinterceptor.so (the Graphics Analyzer interceptor)
- aga-daemon (the Graphics Analyzer daemon process)
Create a new script named /opt/graphics_analyzer/aga-wrapper. This will apply the
Graphics Analyzer interceptor to arbitrary applications. Populate the script as follows:
#!/bin/sh MGD_LIBRARY_PATH=/usr/lib LD_PRELOAD=/usr/lib/libcbe.so:\ `dirname $0`/ga/libinterceptor.so:\ $LD_PRELOAD export MGD_LIBRARY_PATH LD_PRELOAD exec $0.bin "$@"
Create a new script named /etc/init/graphics_analyzer.conf. This will ensure that the
Graphics Analyzer daemon is launched at device boot. Populate the script as follows:
description "Launch the Graphics Analyzer daemon from Arm Ltd." start on started sam respawn script exec /opt/graphics_analyzer/aga-daemon > /var/log/aga-daemon.log 2>&1 end scriptNote: This script will direct the GA daemon's messages to /var/log/aga-daemon.log.
Edit the file /etc/luna-service2/ls-hubd.conf as follows:
- Locate the [Security] section.
- Change the Enabled key from true to false and save.
This will allow you to change executables on the device without a security fault being issued.