0

I have downloaded the sample app for Encrypting JSON store using FIPS from IBM Worklight 6.0 Getting started modules. Using the available PDF, I added all the necessary files in the Android project and I modified the src java file as per the instruction provided by the PDF.

When checking my application in Emulator, I am unable to initialize my JSON Store, and the error showing in Logcat is

Unable to create JSON directory. 

After that, I tried to check my application using Android Device. Everything is working fine, I am able to create, store and encrypt the JSON Store using FIPS, in logcat it is showing FIPSEnabled = true.

But the problem is, when previously I have created a JSON Store, I was able to see the JSON store using DDMS view, but now I am not able to check the file. Now I want to see where the JSON Store file is available and if it is truly encrypted using FIPS. What is the way to do that?

4

1 回答 1

1

JSONStore 使用的数据库文件将在此处:

/data/data/com.[app-name]/databases/wljsonstore

替换[app-name]为您的 Worklight Hybrid Android 应用程序的名称。

该信息的来源是IBM InfoCenter

您需要设备上的读取权限才能访问该文件,因为 Android 通常意味着您需要具有root 访问权限

在撰写本文时,如果您在 Android v4.4 上使用 JSONStore,您可能会遇到问题,请在此处阅读更多内容。IBM Worklight 开发团队目前正致力于在 Android v4.4 上支持 JSONStore。

于 2013-12-03T15:22:48.677 回答