I am working on AAOS custom image and looking for a solution on how to bundle native libraries into an Android library (AAR)
The libraries are the result of the soong build system and need to be included in the Android AAR file (android_library). When building an Android library with Android Studio, it is straightforward to accomplish this by adding all shared native libraries under jniLibs.
For Android.bp, I have come across android_library_import, java_genrule, soong_zip, make_slim_aar, and so on. But, none of them is working.
Are there any examples or solutions? Any comments would be appreciated.