Skip to content

A custom "Sources for Android 34" package built from the Android 14 SDK Platform source code

Notifications You must be signed in to change notification settings

ni554n/sources-for-android-sdk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Sources for Android SDK

Latest API Download Package Total number of downloads

The Sources for Android SDK package provides instant access to the documentation and source code of system framework in Android Studio. Without this package, documentations will be loaded from network, and system classes has to be decompiled when you ctrl + click on them to view the source.

Unfortunately, this package does not become available during the Developer Preview, which slows down debugging and development while test-driving the upcoming compileSdkVersion. This GitHub Actions workflow can build that package from a developing branch of the SDK platform source repo.

This package can also be updated normally using the SDK updater when the official version becomes available. But my recommendation is to uninstall this package from the SDK Manager first; otherwise it takes a long time to install the update due to the patching mechanism of SDK update.

You can enable GitHub Release Watch to get notified when a new build gets released on this repo.

Usage

  1. Download the package from Releases and extract the android-34 folder from the package
  2. Move the extracted folder into the Android SDK Location's /sources directory.
  3. Restart Android Studio.

Build it Yourself

  1. Fork this repo on GitHub.
  2. Create a new token with No expiration.
  3. Go to the Repo Actions Secrets and add the generated token named as PAT.
  4. Now go to the Build Android SDK Sources Package Workflow and select Run workflow dropdown menu.
  5. Pick and enter a Platform Source Branch Name from the Google Android Source Repo, API Level and Version Name (optional).

    API Level should be Integer only. Builds with String levels like UpsideDownCake don't get recognized in Android Studio.

  6. Run the workflow and wait for the package to appear on the Releases.

Acknowledgements

Based on the build instructions from this gist.

Information

Author: Nissan Ahmed (@ni554n)

Donate: PayPal