把framework中@hide
的方法或者类打到jar中方便使用ANDROID_BUILD_TOP=$(pwd)
rm -r sdk/sdk_full
mkdir sdk/sdk_full
echo "start copy jar files"
cp out/target/common/obj/JAVA_LIBRARIES/android.test.runner_intermediates/classes.jar sdk/sdk_full/test-classe.jar
cp out/target/common/obj/JAVA_LIBRARIES/core_intermediates/classes.jar sdk/sdk_full/core-classes.jar
cp out/target/common/obj/JAVA_LIBRARIES/ext_intermediates/classes.jar sdk/sdk_full/ext-classes.jar
cp out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/classes.jar sdk/sdk_full/framework-classes.jar
cp out/target/common/obj/JAVA_LIBRARIES/android-common_intermediates/classes.jar sdk/sdk_full/common-classes.jar
cp out/target/common/obj/JAVA_LIBRARIES/com.android.phone.common_intermediates/classes.jar sdk/sdk_full/phone-classes.jar
cp out/target/common/obj/JAVA_LIBRARIES/pm_intermediates/classes.jar sdk/sdk_full/pm-classes.jar
cp out/target/common/obj/JAVA_LIBRARIES/com.android.vcard_intermediates/classes.jar sdk/sdk_full/vcard-classes.jar
cp out/target/common/obj/JAVA_LIBRARIES/calendar-common_intermediates/classes.jar sdk/sdk_full/calendarcommon-classes.jar
cp out/target/common/obj/JAVA_LIBRARIES/filterfw_intermediates/classes.jar sdk/sdk_full/filterfw-classes.jar
echo "copy jar files ok!!!"
cd $ANDROID_BUILD_TOP/sdk/sdk_full/
echo "start jar xvf all jar"
jar xvf test-classe.jar
jar xvf core-classes.jar
jar xvf ext-classes.jar
jar xvf framework-classes.jar
jar xvf common-classes.jar
jar xvf phone-classes.jar
jar xvf pm-classes.jar
jar xvf vcard-classes.jar
jar xvf calendarcommon-classes.jar
jar xvf filterfw-classes.jar
echo "jar xvf all jar ok!!!"
echo "del all jar"
rm *.jar
echo "start cvf all jar"
jar cvf ./android-full.jar *
echo " create full sdk successfully!!! "
cd $ANDROID_BUILD_TOP
把上面的脚本放到源码根目录执行一下就好了