Skip to main content

[Update: Chromium too] You can now search through Android Open Source Project code

At the core of every flagship Android phone, underneath the layers of brand-specific and device-specific extras, lies the same open-source foundation of Android, the Android Open Source Project. To help us all better understand that foundation, Google has made it possible to browse and search through Android Open Source Project code in a way that makes sense.

Google breaks down complex projects like Android and Chromium into smaller individual Git repositories, with Android having over 1500 different open source repositories. To help make the code more accessible to those outside of Google, the company offers things like Chromium Code Search. As the name suggests, the tool gives you the option to search as well as browse through the Chromium code as though it were one large repository.

However, for the longest time, Android has been left out of the Code Search fun, leaving the community to rely upon third-party search tools like AndroidXRef. Today, that’s changing, as Google has officially unveiled the new Android Code Search website.

With Code Search, you can now easily dig in to learn more about any particular feature of Android, such as “Mainline Modules.” Most helpfully, some parts of Android Code Search also offer “cross-reference” support, meaning if you want to understand something you find in the code, you can click it to jump to where that code is defined.

In addition to the main Android Open Source Project code, the new Android Code Search can also help you peruse through the source code for AndroidX libraries like CameraX and the Kotlin-based Jetpack Compose.


Update 12/11: The new software used by Android Code Search is also coming soon to the Chromium repositories. Navigating to the existing Chromium Code Search page offers the option to try out a revamped website, which lets you specify searching by Chromium, Chromium OS, and Google’s GN build system.

Looking through the Android and Chromium Code Search pages, it appears they’re both powered by Google’s Cloud Source Repositories.


More on Android:

FTC: We use income earning auto affiliate links. More.

You’re reading 9to5Google — experts who break news about Google and its surrounding ecosystem, day after day. Be sure to check out our homepage for all the latest news, and follow 9to5Google on Twitter, Facebook, and LinkedIn to stay in the loop. Don’t know where to start? Check out our exclusive stories, reviews, how-tos, and subscribe to our YouTube channel

Check out 9to5Google on YouTube for more news:

Comments

Author

Avatar for Kyle Bradshaw Kyle Bradshaw

Kyle is an author and researcher for 9to5Google, with special interests in Made by Google products, Fuchsia, and uncovering new features.

Got a tip or want to chat? Twitter or Email. Kyle@9to5mac.com