Merge pull request #568 from openweave/feature/fix_linking_issue

Fix linking issue for WeaveSecuritySupport target in Android app
diff --git a/src/wrappers/jni/security-support/native/WeaveSecuritySupport.cpp b/src/wrappers/jni/security-support/native/WeaveSecuritySupport.cpp
index 598c66d..02f1546 100644
--- a/src/wrappers/jni/security-support/native/WeaveSecuritySupport.cpp
+++ b/src/wrappers/jni/security-support/native/WeaveSecuritySupport.cpp
@@ -134,3 +134,29 @@
 } // namespace SecuritySupport
 } // namespace Weave
 } // namespace nl
+
+namespace nl {
+namespace Weave {
+namespace Platform {
+namespace PersistedStorage {
+
+/*
+* Dummy implementations of PersistedStorage platform methods. These aren't
+* used in the context of the Java DeviceManager, but are required to satisfy
+* the linker.
+*/
+
+WEAVE_ERROR Read(const char *aKey, uint32_t &aValue)
+{
+  return WEAVE_ERROR_NOT_IMPLEMENTED;
+}
+
+WEAVE_ERROR Write(const char *aKey, uint32_t aValue)
+{
+  return WEAVE_ERROR_NOT_IMPLEMENTED;
+}
+
+} // PersistentStorage
+} // Platform
+} // Weave
+}