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