android-source-search

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

Updated Jul 1, 2026
One-click install
npx skills add https://github.com/w0lzard/Wolzard-s-Marketplace --skill android-source-search-w0lzard
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: android-source-search
Source: https://github.com/w0lzard/Wolzard-s-Marketplace/tree/main/plugins/personal-skills/skills/android-source-search
Command: npx skills add https://github.com/w0lzard/Wolzard-s-Marketplace --skill android-source-search-w0lzard

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Public Android documentation often omits implementation details, @hide APIs, and internal constants, forcing developers to read platform and library source directly — but knowing where and how to fetch that source is non-trivial. ## Core Features & Use Cases - Dual-source access strategy: Fetches AOSP framework internals via Gitiles (android.googlesource.com) and AndroidX/Jetpack source via GitHub raw URLs, with correct URL formats for each. - MCP tool preference: Prioritizes android-source-explorer MCP tools (class lookup, method search, hierarchy, go-to-definition) for sub-10ms local source queries when available. - Path inference and search guidance: Maps fully qualified class names to repo paths and provides fallback search strategies 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 — this Skill fetches the exact current source from the correct repository instead of relying on stale training data. ## Quick Start Fetch the current AOSP source for android.view.ViewGroup and show me how it handles child measure calls.

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, e.g. android.view.ViewGroup maps to core/java/android/view/ViewGroup.java in platform/frameworks/base.

How to fetch AndroidX library source code 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 that blocks automated fetching, so WebFetch returns no usable results. Use it only as a human search UI to find paths, then fetch content via Gitiles or GitHub raw URLs.

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

@hide APIs and internal constants live in AOSP, primarily in platform/frameworks/base under core/java/android/ and services/core/java/. Fetch the current source via Gitiles rather than trusting training data, since these internals change between releases.

What are the limitations of fetching Android source this way?

Line numbers and file contents change frequently across branches, so always fetch current source rather than relying on memorized locations. AndroidX is not hosted on android.googlesource.com, and github.com HTML pages should be avoided in favor of raw URLs.