Separate the binder backend from android_engine
Create a pure virtual class "KeystoreBackend" which supplies the
crypto methods used by android_engine. Create a KestoreBackendBinder
class which implements the binder backend as a no-op change that
will allow future backends to be added.
Bug: 34603782
Test: Compiles
Change-Id: I16620aba569bd53290145b2b30242c4888106d0a
diff --git a/keystore-engine/Android.mk b/keystore-engine/Android.mk
index 6d6abe0..955508b 100644
--- a/keystore-engine/Android.mk
+++ b/keystore-engine/Android.mk
@@ -19,7 +19,8 @@
LOCAL_MODULE := libkeystore-engine
LOCAL_SRC_FILES := \
- android_engine.cpp
+ android_engine.cpp \
+ keystore_backend_binder.cpp
LOCAL_MODULE_TAGS := optional
LOCAL_CFLAGS := -fvisibility=hidden -Wall -Werror