Skip to content

LOVR Plugins and Android #768

Answered by bjornbytes
CounterParry asked this question in Q&A
Discussion options

You must be logged in to vote

If you are building with CMake, you can add the plugins to the plugins folder and LÖVR will build them along with the rest of the project and sign the final APK for you. If you've managed to get an Android CMake build working, that's probably the easiest way to do plugins on Android.

If you're trying to add plugins to an existing APK, it's probably possible but I haven't heard of anyone doing it yet. The process would be something like this:

  • Build the plugin for Android (aka ARM64/aarch64).
  • Add the file to the lib/arm64-v8a folder of the APK:
    • Unzip the APK and add the plugin file to lib/arm64-v8a. Then rezip.
    • Use aapt: aapt add lovr.apk lib/arm64-v8a/libmyplugin.so
  • Run zipalign on the…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by CounterParry
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants