android-api-diff
Skill by gkd-kit
Inspects Android framework Java and AIDL APIs across AOSP versions with the android-api-diff CLI. Built for Android developers who need API signatures, availability by version, or hidden-API access code.
Install android-api-diff
Built from the published package, never by AI.
git clone --depth 1 https://github.com/gkd-kit/gkd /tmp/gkd && mkdir -p ~/.claude/skills && cp -r /tmp/gkd/.agents/skills/android-api-diff ~/.claude/skills/android-api-diffRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/gkd-kit/gkd /tmp/gkd && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/gkd/.agents/skills/android-api-diff ~/.gemini/antigravity-cli/skills/android-api-diffAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill tells an AI assistant how to use the android-api-diff CLI to inspect Android framework Java and AIDL APIs across versions. It covers finding an API across AOSP repositories, fetching the full content of a tagged source file, comparing signatures and availability by Android version, and explaining missing APIs.
It also explains how to generate Java hidden-API access code, choose a constant access strategy, and prewarm the local query cache when the user asks. The CLI keeps its default JSON output. The skill is aimed at developers working on Android framework or hidden-API code in a Git or Gradle project.
Written from the project's SKILL.md and checked against it.
What it can do
- searchFinds candidate repository and path for an API or file across AOSP repositories.
- sourceReturns the complete content of an exact repository, path and tag.
- queryShows signatures, version ranges, availability and missing reasons for an API.
- generateGenerates Java hidden-API access code for a given reference.
- preloadPrewarms the local query cache for several APIs when explicitly requested.
- Constant access strategyGuides choosing reflection, interface stub, consistent constant or implementing-class stub.
What you need
- npm, to install the android-api-diff CLI
- A Git or Gradle project root, for the skill install command
Try asking
- Which Android versions have ActivityThread.currentApplication, and what is its signature?
- Generate Java hidden-API access code for IActivityManager.getTasks with min SDK 28.
- Fetch the full source of UserInfo.java from platform/frameworks/base at android-17.0.0_r1.
Good to know
- Unknown and ambiguous results are not evidence that an API is absent.
- The bundled index holds audited snapshots, not every release tag.
- Code generation rejects incomplete or ambiguous histories.
- The CLI does not retry failed fetches itself; its network layer already retries transient errors.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: .agents/skills/android-api-diff/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md9 KB -
agents/openai.yaml219 B
Alternatives to android-api-diff
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
android-api-diff: common questions
Can it confirm that an Android API does not exist in a version?
Not from unknown or ambiguous results, which the source says are not evidence of absence. Range endpoints are the first or last tag checked in the current snapshot.
Does generate evaluate constant expressions?
No. It does not evaluate expressions, so 0x1 and (1 << 0) are treated as different. Unsupported cases fall back to RemapStub.value().
When does preload run?
Only when the user explicitly asks to preload several APIs. The skill does not prewarm the cache on its own.
How do I install android-api-diff?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is android-api-diff free?
The code is published under the GPL-3.0 licence. The service it connects to may have its own pricing.
Is android-api-diff safe to use?
It scores 91 of 100. Grades: maintenance A, licence C, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to android-api-diff?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
