Code Monkey home page Code Monkey logo

android-jar-with-hidden-api's Introduction

Android Jar With Hidden API

NOTE: Tested with API 29, Android 10, Android Studio 3.6 and Gradle 6.2.

This repo contains the steps to generate an android.jar with access to AOSP's hidden APIs. You can use the already modified android.jar, use the script to create a custom one or simply do manually the steps.

How to generate a custom android.jar using the Script

The script requires unzip to be installed (obviously also java to use the jar tool). You will have to pass the path of the folder where the original android.jar is contained and your AOSP path (previously built to generate all the framework files).

How to generate a custom android.jar manually

Steps to generate an android.jar with access to AOSP hidden API

  • Uncompress the original android.jar from your SDK directory (/home/user/Android/Sdk/platforms/android-XX/android.jar where XX is your SDK API version) into a new folder, for example a folder called new_android_jar.

  • Uncompress the content of classes-header.jar located in /your_path/aosp/out/target/common/obj/JAVA_LIBRARIES/framework_intermediates into the same folder as android.jar (new_android_jar in this case).

  • Then generate a new android.jar using the following command: jar cvf android.jar -C new_android_jar/ .

  • Place the new android.jar into the same folder as the previous one (instead of overriding the original one, rename it in case something fails).

android-jar-with-hidden-api's People

Contributors

jetpackduba avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.