# HG changeset patch # User Thinker K.F. Li # Date 1259679326 -28800 # Node ID a5958244bcb860b7c62b00e55528b5dc80480dc5 # Parent a53fc3eff8f1b689feb9a87864e65e32fe4c3566 Make mbfly-java can be called by Android applications. mbfly-permissions.xml is a description that allows pacakge org.madbutterfly int mbfly-java.jar to be imported by Android applications. It is copied to /system/etc/permissions/ of devices. diff -r a53fc3eff8f1 -r a5958244bcb8 Android/java/Android.mk --- a/Android/java/Android.mk Tue Dec 01 22:55:26 2009 +0800 +++ b/Android/java/Android.mk Tue Dec 01 22:55:26 2009 +0800 @@ -15,9 +15,19 @@ include $(BUILD_JAVA_LIBRARY) -MBFLY_JAVA:= $(strip $(intermediates))/classes.jar -MADBUTTERFLY_ATREE:= $(strip $(LOCAL_PATH))/madbutterfly.atree +######################## +include $(CLEAR_VARS) + +LOCAL_MODULE := mbfly-permissions.xml + +LOCAL_MODULE_TAGS := user -ALL_SDK_FILES += $(MBFLY_JAVA) +LOCAL_MODULE_CLASS := ETC -ADDITIONAL_ATREE_FILES += $(MADBUTTERFLY_ATREE) +# This will install the file in /system/etc/permissions +# +LOCAL_MODULE_PATH := $(TARGET_OUT_ETC)/permissions + +LOCAL_SRC_FILES := $(LOCAL_MODULE) + +include $(BUILD_PREBUILT) diff -r a53fc3eff8f1 -r a5958244bcb8 Android/java/mbfly-permissions.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Android/java/mbfly-permissions.xml Tue Dec 01 22:55:26 2009 +0800 @@ -0,0 +1,6 @@ + + + + +