Governed Hidden API JAR Generation
I created a CI pipeline that does the merging automatically and produces framework JARs in an audited form:
https://gitlab.com/IndiTheo/aosp-hidden-framework-apis
Thanks for sharing your pipeline! 🙌 For what it's worth, the repo now also ships an in-repo CLI, hiddenjar, that automates the merge end-to-end from a running emulator or device:
./cli/hiddenjar build --api <level>
# or via Gradle:
./gradlew buildHiddenJar -Papi=<level>
Unlike the old approach it merges the whole $BOOTCLASSPATH (including mainline/APEX modules such as Wi‑Fi, Bluetooth, connectivity and media), not just framework.jar, and it verifies the result actually compiles a hidden API before finishing. Details: the README section “Build Your Own Custom android.jar (CLI)” and docs/BUILD_CUSTOM_ANDROID_JAR_FROM_EMULATOR.md.
Closing as the in-repo tooling now covers this — your CI approach remains a great option for audited/reproducible builds.