Developers write better apps when they can read the source. Unfortunately, the sources for the Android framework and various Google Android libraries are scattered all over the web.
This pages aims to help developers find the sources they're looking for.
You can improve this page and help the Android community by opening an issue or a pull request 🙏.
- Most Jetpack libraries have sources available on cs.android.com in the androidx subproject.
- androidx.activity
- Startup
- Compose
- There's way more entries to add here.
- Developed directly on GitHub, browsable on cs.android.com.
- The git history starts at 2.0.0, 1.x sources are available here.
- Developed directly on GitHub.
- Available on android.googlesource.com on the
mirror-goog-studio-master-dev
branch.- 👎🔎 Not searchable online: googlesource.com is not indexed.
- Developed directly on GitHub.
- Available on cs.android.com
- View internals? See View.java.
- Activity lifecycle? See ActivityThead.java.
- Art Runtime? See class.cc.
- Start an emulator for the latest version.
- Run
adb pull /system/framework/framework.jar
. - Unzip
framework.jar
(contains dexes). - Use dex2jar to turn dexes into jars.
- Explore with jd-gui or IntelliJ (hack: add as a dependency)
- Available on cs.android.com on the
studio-master-dev
branch.- 👎🔎 Not searchable online: the
studio-master-dev
branch is not indexed.
- 👎🔎 Not searchable online: the
- Available on android.googlesource.com on the
mirror-goog-studio-master-dev
branch. - @jrodbx dumped the sources for each release on github.
- Sources for the Kotlin compiler and standard lib are on GitHub
- Play Services is not open source. I added this entry because people keep asking about it 😅.