Can't open openCL libarary

I am an Android developer. I made an app, and tried to open libopenCL.so library with dlopen in native code, but it does not open. It worked on the Galaxy S10, but not on the S20. I checked that libOpenCL.so is in the system/vendor/lib64 folder.
The correct model is SM-G981N and the serial number is R3CN40GJZNL.

Hello,
In ideal case this issue should not happen. Try to check the issue on the latest software version of Galaxy S20. If the issue is specific and consistent then submit a support request

Thank you very much, useful :heart_eyes:

It might have a different name, in my case when compiling with gcc, the library I have to link is libGLES_mali.so found in /system/lib/egl (for my SM-G532F though). I’m not sure if yours will be the same.

It’s an old question, but I bumped in a similar pb today. So in case someone finds this thread from a Google search: my issue (and maybe yours) was that since Android 12, we need to alter the Manifest to request the OpenCL library:

<uses-native-library android:name="libOpenCL.so" android:required="false" />