Forum Discussion
XNW
4 years agoHonored Guest
Meta Avatar SDK with Obb file
Recently, our team started to use obb file as the apk file is getting bigger and bigger. After using obb, our meta avatar doesn't load correctly, and we get these errors: [ovrAvatar2 native] AssetL...
michal-vrisch
4 years agoHonored Guest
OK i was able to workaround the problem with a small hack..
The avatarSDK expects to find the folders assets/Oculus and assets/SampleAssets inside of the apk. When using .obb files this folders are placed inside the .obb file so the sdk cannot find them anymore. We workarounded this problem by putting this file into the .apk again after building it in unity.
1) So first we built the project without .obb support. Renamed the .apk to .zip, opened it and copied the two folders: assets/Oculus and assets/SampleAssets to some other directory.
2) We built the project with .obb support.
3) We decompiled the .apk using "apktool d ourprojectname.apk"
4) We copied the two folders back to the expected locations inside of the decompiled .apk: assets/Oculus and assets/SampleAssets
5) We rebuild the apk using "apktool b ourprojectname.apk"
6) we resigned the .apk using "apksigner sign --ks ourkeystorename.keystore ourprojectname.apk"
This is not a very clean solution and the folders assets/Oculus and assets/SampleAssets will be inside of the .apk and inside of the .obb but we finally are able to use the new avatarsystem together with .obb files.
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device
Other Meta Support
Related Content
- 3 months ago
- 12 months ago
- 2 months ago
- 7 months ago