Make your own Android SDK with @hide interface

Source: Internet
Author: User
Android system There are some system-level applications and framework code coupling deeper, compile time depends on many classes inside the @hide interface, such applications how to compile it? First we need to make a copy of the SDK containing the Hide interface, as follows (for example, android4.2.2 version):
1. Download the 4.2.2SDK package and take it from the \SDK\PLATFORMS\ANDROID-17 directory to Android.jar.
2. From the compilation Environment out/target/common/obj/java_libraries/framework_intermediates/directory under the channel Classes-full-debug.jar
3. Unzip Android.jar, method: First Rename to Android.zip, then use WinRAR extract to local folder. Decompression Classes-full-debug.jar, method and pressure Android.jar the same.

4. Copy all the files in the Classes-full-debug.zip package to the corresponding folder in Android.zip, and then package the Android.zip folder as Android.jar again. The generated Android.jar is the SDK package that contains all the @hide interfaces.


I have already made a 4.2.2 containing the Hide interface Android.jar package, click to download http://download.csdn.net/detail/rambomatrix/7657107

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.