How to open the FIPS enabled json data's in worklight App

152 views Asked by At

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?

1

There are 1 answers

0
cnandreu On

The database file that JSONStore uses will be here:

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

Replace [app-name] with the name of your Worklight Hybrid Android application.

The source of that information is IBM InfoCenter.

You will need read permission on the device to access that file, for Android usually means you need to have root access.

As of time of writing, if you're using JSONStore on Android v4.4 you may run into issues, read more here. The IBM Worklight development team is currently working on supporting JSONStore on Android v4.4.