I have a file named index.html in assets folder. We are reading this file and writing it to BBD Secure storage using File class wrapper(FileOutputStream) provided by BBD.
Code for writing it to BBD secure storage,
com.good.gd.file.FileOutputStream("index.html").apply {
write(inputStream.readBytes())
close()
}
This is encrypting the file content and storing it inside app_data folder also the file name is encrypted by BBD secure storage.
We read the stored file as follows,
loadUrl(GDFileSystem.getAbsoluteEncryptedPath("index.html"))
The above code is able to locate the encrypted file which was stored earlier and when we tried to load this in BBDCordovaWebView we get net::ERR_ACCESS_DENIED