keystore_client shared library

Add a libkeystore_client.so library for clients to use.

Add const-correctness to the keystore.cpp classes.

Increase maximum arguments for future work.

Change-Id: Ia22f8b893aea3115a7b4a0543ad392c17c8528f2
diff --git a/keystore/Android.mk b/keystore/Android.mk
index 4fcd7bb..d0ab19d 100644
--- a/keystore/Android.mk
+++ b/keystore/Android.mk
@@ -30,3 +30,11 @@
 LOCAL_MODULE := keystore_cli
 LOCAL_MODULE_TAGS := debug
 include $(BUILD_EXECUTABLE)
+
+# Library for keystore clients
+include $(CLEAR_VARS)
+LOCAL_SRC_FILES := keystore_client.cpp
+LOCAL_SHARED_LIBRARIES := libcutils
+LOCAL_MODULE := libkeystore_client
+LOCAL_MODULE_TAGS := optional
+include $(BUILD_SHARED_LIBRARY)
\ No newline at end of file