so-source is a gradle plugin for querying which aar the so belongs to.
Available on Maven Central.
rootProject
build.gradle
buildscript {
dependencies {
classpath 'com.github.salmonocean:so-source:0.0.1'
}
}
Application
build.gradle
apply plugin : 'so-source'
./gradlew :app:soSourceForDebug
# the result is store at ./app/build/output/so_source_debug.txt