OpenXR-SDK-Source icon indicating copy to clipboard operation
OpenXR-SDK-Source copied to clipboard

Android: loader can't find libopenxr_forwardloader.so library as it is inside .apk

Open OpilkiInside opened this issue 4 months ago • 5 comments

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.

OpilkiInside avatar Feb 24 '24 18:02 OpilkiInside