android-hidden-api-r8
Skill by gkd-kit
Checks compatibility between Android hidden APIs and R8 when code adds or changes hidden interface or superclass implementations, system callbacks, or bytecode remapping. It also helps diagnose Release-only AbstractMethodError and removed-method failures.
Install android-hidden-api-r8
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-hidden-api-r8 ~/.claude/skills/android-hidden-api-r8Run 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-hidden-api-r8 ~/.gemini/antigravity-cli/skills/android-hidden-api-r8Antigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install android-hidden-api-r8 in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
android-hidden-api-r8 is an agent skill for checking whether Android hidden APIs and R8 work together. It applies when code adds or changes hidden interface or superclass implementations, system callbacks, bytecode remapping, or related module dependencies. It also covers Debug builds that pass while minified Release builds fail with AbstractMethodError, removed or renamed methods, or changed signatures.
Written from the project's SKILL.md and checked against it.
What it can do
- Identify the call contractSeparates system hidden API calls, direct project calls, and system callbacks through hidden interfaces or superclasses.
- Inspect actual R8 inputsTraces compilation classpaths and the R8 analysis inputs for the affected variant.
- Check keep rulesReviews annotations, AAR consumer rules, merged rules, and missing-type diagnostics.
- Choose a scoped fixSuggests generated callback keep rules or targeted @Keep before broader preservation.
- Validate with R8 enabledBuilds the affected variant with R8 on and checks the final DEX for required methods.
- Report results separatelyKeeps root-cause evidence, build results, and runtime validation as distinct reported items.
What you need
- An Android project that uses R8 minification
Try asking
- Why does my minified Release build throw AbstractMethodError but Debug works?
- Check whether my R8 keep rules cover this system callback implementation.
- Review how this module change affects hidden API compatibility with R8.
Good to know
- Does not cover ordinary UI, documentation, or unrelated code changes.
- Avoids broad audits unless requested or supported by evidence.
- Runtime fixes are not verified without build or device testing.
- Validation should avoid external publication side effects and stay within user authorization.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: .agents/skills/android-hidden-api-r8/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md7 KB -
references/failure-cases.md6 KB
Alternatives to android-hidden-api-r8
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-hidden-api-r8: common questions
What problem does this skill solve?
It helps find why code that works in Debug can fail in minified Release builds, such as with AbstractMethodError or removed methods. It focuses on hidden APIs, system callbacks, and R8 inputs.
Does it recommend disabling R8?
No. The source says keeping entire packages or disabling R8 is not the default fix.
Where does the upstream skill come from?
The source names lisonge/remap as the upstream repository for the android-hidden-api-r8 skill.
How do I install android-hidden-api-r8?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is android-hidden-api-r8 free?
The code is published under the GPL-3.0 licence. The service it connects to may have its own pricing.
Is android-hidden-api-r8 safe to use?
It scores 89 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-hidden-api-r8?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
