Android Hidden APIs

A library that provides access to Android hidden APIs and internal resources.
Under Apache License 2.0
By anggrayudi

java android api android-framework internal-resources

Android Hidden APIs

Android Hidden APIs are classes, methods and resources that Google hides from you because of stability reason.
These features are hidden because they may be changed on next API version.

The internal APIs are located in package and available in the framework.jar,
while the hidden APIs are located in the android.jar file with @hide javadoc attribute.
Now you know the difference. But I will refer to both as hidden APIs.

This repo contains custom android.jar which you can use to develop your app.
However, if you urgently need to create your own android.jar, I also share you the Krabby Patty
secret recipe here: Create Your Own Android Hidden APIs.

Use Custom android.jar

  1. Download custom android.jar from Google Drive.

  2. Go to <SDK location>/platforms/.

  3. Copy, paste and replace the downloaded hidden API file into this directory, e.g. android-30/android.jar.

  4. Change compileSdkVersion and targetSdkVersion to 30 (for example).

  5. Finally, rebuild your project.

Note: Higher compileSdkVersion and targetSdkVersion will be better.

Resources Helper

If you plan to use only Android internal resources rather than internal classes or methods, do:

dependencies {
implementation 'com.anggrayudi:android-hidden-api:30.0'

Here's some example of accessing internal resources:

String accept = InternalAccessor.getString("accept");
float sbar_height = InternalAccessor.getDimension("status_bar_height");
int notif_color = InternalAccessor.getColor("config_defaultNotificationColor");


If you have your own custom android.jar and want to add it to
Google Drive,
please create an issue. I will upload it.

Copyright 2015-2020 Anggrayudi Hardiannicko A.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
See the License for the specific language governing permissions and
limitations under the License.