In the android system, there are many other modules which are depending on static av module. I suggest you build both static library and shared library. Even if you make a shared library, you should take care of the dependence. These changing may lead other problems.
And the codes looks like these:
include $(BUILD_STATIC_LIBRARY)
#appending this line for shared library
LOCAL_MODULE := xxx_shared
include $(BUILD_SHARED_LIBRARY)