Make your own Android SDK that includes the @hide interface

Source: Internet
Author: User

Android systems have some system-level applications that are deeply coupled to the framework code and rely on @hide interfaces in very many classes when compiling. How does this kind of application compile? First we need to make a copy of the SDK including the Hide interface, such as the following (in android4.2.2 version number for example):
1. Download the 4.2.2SDK package and take it from the \SDK\PLATFORMS\ANDROID-17 folder to the Android.jar.
2. From the compilation Environment Out/target/common/obj/java_libraries/framework_intermediates/folder channel Classes-full-debug.jar
3. Decompression Android.jar, Method: first renamed to Android.zip, and then extracted to the local directory with WinRAR. Unzip the Classes-full-debug.jar. Method and Android.jar the same as the pressure.


4. Copy all the files in the Classes-full-debug.zip package to the corresponding directory in the Android.zip. The Android.zip directory is then packaged as a android.jar.

The Android.jar generated at this time is the SDK package that includes all the @hide interfaces.


I have already made a Android.jar package that 4.2.2 includes the Hide interface. Click to download http://download.csdn.net/detail/rambomatrix/7657107

Make your own Android SDK that includes the @hide interface

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.