android-source-search

Fetches AOSP and AndroidX source code via Gitiles, GitHub raw URLs, and MCP tools.

1|Updated Jun 1, 2026
One-click install
npx skills add https://github.com/chmonya-inc/dnd-manager --skill android-source-search-chmonya-inc
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: android-source-search
Source: https://github.com/chmonya-inc/dnd-manager/tree/main/.agents/skills/android-source-search
Command: npx skills add https://github.com/chmonya-inc/dnd-manager --skill android-source-search-chmonya-inc

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Public Android documentation often omits internal implementation details such as @hide APIs, default attribute values, and system service behavior, forcing developers to read the actual platform source code to answer technical questions. ## Core Features & Use Cases - Dual source tree access: Fetches AOSP framework internals from android.googlesource.com (Gitiles) and AndroidX/Jetpack libraries from GitHub raw URLs, with correct URL formats for each. - MCP tool integration: Prefers android-source-explorer MCP tools for class lookup, method reading, hierarchy inspection, and regex search when available, falling back to WebFetch and gh CLI otherwise. - Path inference and search strategy: Maps fully qualified class names to repository paths and provides directory listing via gh api when the exact path is unknown. - Use Case: You need the default value of a View attribute or the signature of a @hide method in ActivityManagerService. The skill infers the path under platform/frameworks/base and fetches the current source from Gitiles. ## Quick Start Fetch the current AOSP source for android.view.ViewGroup and show me its @hide methods.

Frequently Asked Questions about android-source-search

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I read AOSP framework source code programmatically?▼

Fetch files from android.googlesource.com using Gitiles URLs, appending ?format=TEXT for base64-encoded raw content. Infer paths from package names, for example android.view.ViewGroup maps to core/java/android/view/ViewGroup.java under platform/frameworks/base.

How to fetch AndroidX library source from GitHub?▼

Use raw.githubusercontent.com URLs with the androidx-main branch for file content, and the gh api repos/androidx/androidx/contents endpoint for directory listings when the exact path is unknown.

Can I use WebFetch on cs.android.com to search Android source?▼

No, cs.android.com is a JavaScript single-page application, so automated fetching returns no usable results. Use it only as a human search UI to find file paths, then fetch content via Gitiles or GitHub raw URLs.

Where do I find @hide APIs and internal Android constants?▼

@hide methods and internal constants live in AOSP, primarily under platform/frameworks/base in core/java/android/ and services/core/java/. Fetch the current source from Gitiles rather than trusting training data, since line numbers change frequently.

Why does fetching AndroidX from android.googlesource.com fail?▼

AndroidX is not hosted on android.googlesource.com; it lives in the androidx/androidx GitHub repository. Use raw.githubusercontent.com for file content and gh api for directory listings instead.