1#!/bin/bash 2cd $ANDROID_BUILD_TOP/frameworks/base/packages/SystemUI/plugin 3# Clear out anything old. 4rm -rf /tmp/plugin_classes/ 5mkdir /tmp/plugin_classes 6 7# Compile the jar 8javac -cp $ANDROID_BUILD_TOP/out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/classes.jar:$ANDROID_BUILD_TOP/out/target/common/obj/JAVA_LIBRARIES/core-all_intermediates/classes.jar `find ../plugin*/src -name *.java` -d /tmp/plugin_classes/ 9echo "" >> /tmp/plugin_classes/manifest.txt 10jar cvfm SystemUIPluginLib.jar /tmp/plugin_classes/manifest.txt -C /tmp/plugin_classes . 11 12# Place the jar and update the latest 13mv SystemUIPluginLib.jar ./SystemUIPluginLib-`date +%m-%d-%Y`.jar 14rm SystemUIPluginLib-latest.jar 15ln -s SystemUIPluginLib-`date +%m-%d-%Y`.jar SystemUIPluginLib-latest.jar 16