Hi mdespault,
I tried to run Mali Graphics Debugger (MGD) on our side and managed to get it working. You weren’t that far off!
First step, from the MGD package you downloaded you need to copy the whole “android-non-root” folder to your engine installation folder under “Engine/Build/Android/Java/”. You will need to work on a version of the engine from source, see Epic’s guide for that.
Next, you will need to edit the Android.mk file under “Engine/Build/Android/Java/jni/” to add this line at the end, include $(LOCAL_PATH)/…/android-non-root/MGD.mk. It should look like this:
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE := UE4
LOCAL_SRC_FILES := $(TARGET_ARCH_ABI)/libUE4.so
include $(PREBUILT_SHARED_LIBRARY)
include $(LOCAL_PATH)/../android-non-root/MGD.mk
After that you will need to edit your java main GameActivity located inside “Engine/Build/Android/Java/src/com/epicgames/ue4/” to add the MGD library loader. For that, just locate your onCreate function and add the following code just after the super call.
try {
System.loadLibrary("MGD");
}
catch( UnsatisfiedLinkError e ){
Log.debug( "libMGD not loaded" );
}
Finally, install the MGD daemon on your phone using the following command while being in the android-non-root folder:
adb install -r MGDDaemon.apk
Now before running your app you will need to run this command from your PC (please ensure that you device in visible by running adb devices first):
adb forward tcp:5002 tcp:5002
Run the MGD daemon application on your phone and activate the daemon itself:

Once activated you can connect to it from MGD, using the connect icon at the top:

You can now start your application and start debugging it. Please refer to the MGD manual for more in-depth information on how to use it.
If you have any other issue while setting up MGD, or while using it do not hesitate to reply on this thread or contact us directly on our forums at https://community.arm.com.