I am trying to pack binary file that need to be executed during the game
In windows everything is easy since I can you fill path
but android…
I did managed to add the file to the obb but how can I easily run it ?
I can try to write code that unzips and changes permission but it looks wrong
AND in addition - every iteration requires repacking of the whole thing which last hours…
please help me with it - maybe I am doing all wrong, just need a simple way to get the file into place where I can run it and thats it
still stuck on this one , if anyone can help
I still seek an easy way to get binary available to run from device
best way I found yet is unzip it from obb file but it looks so bad practice and buggy so I prefer finding a better way
To pack a binary for Android, start by ensuring your code is compiled into an Android-compatible binary using the Android NDK (Native Development Kit). Use tools like CMake or ndk-build for cross-compilation. Once compiled, include the binary in the project’s jniLibs folder under the appropriate ABI (e.g., arm64-v8a, armeabi-v7a). Update your build.gradle file to package the binary into the APK. Test the binary within the app to ensure proper functionality. Finally, use Android Studio to build and sign the APK for distribution.
there is an option in project setting to add external binaries ( something like “extra folders to pack in obb” ) BUT I didnt find functionality to deploy them So I implemented self unzip and check if exist ( by ls ) I was expecting that the engine will provide API for this but didnt find such