I have been trying to include .so library as part of my app in AOSP. It can be done with Android.mk. Below is Android.mk of my application in pacakges/app directory :
LOCAL_PATH := $(call my-dir) include $(CLEAR_VARS)
LOCAL_MODULE_TAGS := optional
LOCAL_SRC_FILES := $(call all-java-files-under, src)
LOCAL_PACKAGE_NAME := OpentokSample
LOCAL_CERTIFICATE:= platform
LOCAL_JNI_SHARED_LIBRARIES=libopentok
include $(BUILD_PACKAGE)
include $(call all-makefiles-under,$(LOCAL_PATH))
And below is Android.mk to include libopentok.so :
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE := libopentok
LOCAL_PREBUILT_LIBS := opentok.so
include $(BUILD_SHARED_LIBRARY)
But this doesn't help ?