1) extracted from the specified version of ROM to framework.jar2) decompression Framework.jar and ANDROID.JAR3 within the Android SDK) To framework.jar the solution out of something Android.jar, cover 4) RePack 5) with the new Android.jar to replace the original convenience, wrote a script to do the above work, Where solution Framework.jar Use the Dex2jar tool, please download and configure the environment variable #!/bin/shdex=$1ajar=$2out=$3d2j-dex2jar.sh $DEX-o FRAMEWORK-DEX.JARMV Framework-dex.jar framework-dex.zipunzip-d framework-dex FRAMEWORK-DEX.ZIPCP $AJAR android-sdk.zipunzip-d Android-sdk android-sdk.zipcp-r-F framework-dex/* android-sdk/cd android-sdkzip-r android-new.zip *cd. MV Android-sdk/android-new.zip android-new.zipmv Android-new.zip android-new.jarrm ANDROID-SDK.ZIPRM FRAMEWORK-DEX.ZIPRM-FR android-sdk/rm-fr framework-dex/mv android-new.jar $OUTecho "Done" is also very simple to use, Save the script as makesdk.sh and give the executable permission, and then use the $ makesdk.sh framework.jar Android.jar ~/desktop/After the execution is complete, You can see a file named Android-new.jar on your desktop, which is the SDK that contains the hidden API. Turn from http://www.udpwork.com/item/11149.html
Modify the Android.jar itself to include the hidden API