Android Hidden APIs is a library that provides access to Android hidden APIs and internal resources that Google deliberately hides from developers.
Google hides certain classes, methods, and resources in the Android framework because they may change between API versions. These hidden APIs exist in the `com.android.internal` package within `framework.jar` and in the `android.jar` file marked with `@hide` javadoc attributes. The tool solves the problem of accessing these internal APIs by providing a custom `android.jar` file that includes the hidden declarations, allowing developers to compile against them. It also ships a CLI tool called `hiddenjar` that generates a custom `android.jar` directly from a running Android emulator or device by extracting framework jars over ADB, converting DEX to class files, and merging them into the SDK's standard `android.jar`.
Developers who need to use undocumented Android internals should understand that hidden APIs carry stability risks since Google may change them without notice. The tool suits projects that have specific requirements for internal framework functionality and can tolerate that risk. The `hiddenjar` CLI is particularly valuable because it merges the entire bootclasspath including mainline and APEX modules, capturing hidden APIs that have moved out of `framework.jar` in newer Android versions.
The project maintains active development with regular updates to support new Android API levels. The tool includes comprehensive verification that generated jars actually compile hidden APIs before completing the build process. Documentation covers multiple usage paths including direct script execution and Gradle wrapper integration, with detailed flag options for customizing output location, target API level, and build behavior.