put back the old uteams cleanup, leaks and all, to worry about post-release since my attempt to use DeleteGear was running into the fact that that procedure does way more than just delete a gear. might need an explicit cleanup routine for both to call.
#Set the current path must be set like this because call all-subdir-makefiles changes LOCAL_PATH
JNI_DIR := $(call my-dir)
LOCAL_PATH := $(JNI_DIR)
include $(call all-subdir-makefiles)
include $(CLEAR_VARS)
include $(JNI_DIR)/../../../../misc/Android.mk
include $(JNI_DIR)/../../../frontlib/Android.mk