when I try to connect to our Oppo A72 (Android 10) I get the following error:
Failed to set global device setting "enable_gpu_debug_layers" to value "1".
This happens with both opengl and vulkan.
Any idea what might be the cause? This is being deployed from unity and unitys own profiling etc. works fine.
Thanks in advance!
Oppo tend to customize the developer settings, so it's not standard Android.
In "Settings > Developer Options" do you have a toggle for "Enable GPU debug layers"? Make sure that it is enabled.
Thanks for coming back to me! One step further!I now get this:While installing the application-level tracing components: Failed to set global device setting "gpu_debug_app" to value "com.DefaultCompany.shader_profile". (Setting is currently unset.)
I can actually set it in the dev options but it doesn't seem to make a difference.
i tried it with oneplus 8, same problem. now i am not surprised because, both of them have the same parent company and they probably don't want you tinkering around. lol
Some Oppo devices definitely work - the two Oppo devices I have here (R15 and Reno3 Pro) both work once the right settings in developer mode are tweaked.
i see, may be i am doing something wrong. i'll dig deeper
Hello, could you try setting the device settings manually using ADB, and then post the output? For example:
adb shell settings put global enable_gpu_debug_layers 1
adb shell settings put global gpu_debug_app com.DefaultCompany.shader_profile
thanks! This has put me onto the right track.I got this error:Security exception: Permission denial: writing to settings requires:android.permission.WRITE_SECURE_SETTINGS
"In Developer Options, scroll (all the way) down until u find Disable Permission Monitoring
Disable Permission Monitoring
and turn it on."
fromhttps://stackoverflow.com/questions/52079343/how-can-i-use-adb-to-grant-permission-without-rootresolved the issue for me.Thanks!seb
Thanks for confirming the workaround - we'll get this written up as a FAQ entry for the tools.
View all questions in Graphics and Gaming forum