OpenXR-SDK-Source
OpenXR-SDK-Source copied to clipboard
Android: loader can't find libopenxr_forwardloader.so library as it is inside .apk
Some devices may include .so file inside apk. For example, on Quest 3 v62, the following path is reported by the broker:
/system/priv-app/VrDriver/VrDriver.apk!/lib/arm64-v8a/libopenxr_forwardloader.so
FileSysUtilsPathExists
won't be able to locate this file thus RuntimeManifestFile::CreateIfValid
will fail with does not appear to exist
message.
A simple fix would be to check if there's "!" symbol in the path, and just check the file before that symbol, essentially checking that /system/priv-app/VrDriver/VrDriver.apk
exists.