android-hidden-api icon indicating copy to clipboard operation
android-hidden-api copied to clipboard

Governed Hidden API JAR Generation

Open IndiTheo opened this issue 7 months ago • 1 comments

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

IndiTheo avatar Apr 25 '26 18:04 IndiTheo

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.

anggrayudi avatar Jul 11 '26 20:07 anggrayudi