Modify the Android.jar itself to include the hidden API

Source: Internet
Author: User

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

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.