Hi,
MGD does not capture GLES calls. For Vulkan it works straitforward (had to copy libGLES_mali.so as a libVkLayerLayerMGD.so in app's folder to make it working)
When run mgddaemon on command line below error is printed
$ adb shell mgddaemon1528380971677: mgd_daemon[22207]: [22207]:INFO: Main: The MGD daemon is startingDaemon is version: D016Socket is: \0mgddaemon1528380971732: mgd_daemon[22207]: [22207]:INFO: DuplicateLibraryDetector: First interceptor loaded1528380971768: mgd_daemon[22207]: [22207]:INFO: PassThroughClApi: Found the following libraries for 'cl': {/vendor/lib/egl//libGLES_mali.so}1528380971769: mgd_daemon[22207]: [22207]:INFO: PassThroughEglApi: Found the following libraries for 'egl': {/vendor/lib/egl//libGLES_mali.so}1528380971770: mgd_daemon[22207]: [22207]:INFO: PassThroughGlesApi: Found the following libraries for 'gles': {/vendor/lib/egl//libGLES_mali.so}1528380971777: mgd_daemon[22207]: [22207]:ERROR: SocketMessagePort: Unable to connect socket: Unable to connect socket: errno = 1111528380971777: mgd_daemon[22207]: [22207]:WARNING: GatorConnection: Not connected to gatord, the application will run normally but Streamline will not collect annotations. To collect annotations, please verify you are running gatord 5.22 or later and that SELinux is disabled.1528380971779: mgd_daemon[22207]: [22207]:ERROR: Interceptor: MGD failed to read the process whitelist file: No reason provided. (Does the file exist & have correct permissions?)1528380971779: mgd_daemon[22207]: [22207]:ERROR: Interceptor: Unable to create message port - using null1528380971779: mgd_daemon[22207]: [22207]:INFO: MarshallerBase: Connecting to daemon. Sending header...1528380971779: mgd_daemon[22207]: [22207]:INFO: Interceptor: Interceptor loaded for 22207: mgddaemon1528380971779: mgd_daemon[22207]: [22207]:INFO: Interceptor: Not activating tracing1528380971779: mgd_daemon[22207]: [22207]:INFO: Interceptor: Shutdown1528380971779: mgd_daemon[22207]: [22207]:INFO: Interceptor: Host detached1528380971779: mgd_daemon[22207]: [22207]:INFO: Interceptor: API TRACING: Disabled1528380971779: mgd_daemon[22207]: [22207]:INFO: Interceptor: ASSET TRACKING: Enabled1528380971779: mgd_daemon[22207]: [22207]:INFO: Interceptor: API TRACING: Disabled1528380971779: mgd_daemon[22207]: [22207]:INFO: Interceptor: ASSET TRACKING: Disabled1528380971822: mgd_daemon[22207]: [22207]:DEBUG: DeviceInfo: GL_VENDOR = ARM, GL_RENDERER = Mali-CONFIDENTIAL, GL_VERSION = OpenGL ES 3.2 v1.r10p0-01rel0.aeed42a9dadf5852db6f84a6faf084b91528380971824: mgd_daemon[22207]: [22207]:INFO: HostConnection: Initializing host connection1528380971824: mgd_daemon[22207]: [22207]:INFO: InterceptorListener: Initializing interceptor listener1528380971824: mgd_daemon[22207]: [22207]:INFO: Daemon: Daemon initializing1528380971825: mgd_daemon[22207]: [22223]:INFO: InterceptorListener: Interceptor Listener waiting for connections1528380971825: mgd_daemon[22207]: [22222]:INFO: HostConnection: Host connection listening1528380971825: mgd_daemon[22207]: [22224]:INFO: Daemon: Daemon running1528380971825: mgd_daemon[22207]: [22224]:INFO: Daemon: Daemon is version: D016
I did setenforce 0 but it did not help. I followed the guidelines and tried various methods e.g. mv libGLES_mali.so from /system to /vendor and also putting in app's folder.
Can you explain the exact problem and if possible solution please.
community.arm.com/.../why-mgd-always-tells-root-interceptor-needs-update