EldoS | Feel safer!

Software components for data protection, secure storage and transfer

SolFSStream constructor in Android

Also by EldoS: CallbackDisk
Create virtual disks backed by memory or custom location, expose disk images as disks and more.
Posted: 12/16/2013 02:04:16
by Jaege Kim (Basic support level)
Joined: 12/15/2013
Posts: 6

I have some questions.

Recently, I have downloaded the Solid File System library for Android applications from here.
SolFS (Application edition) for Android (ZIP archive) - Version 5.0.128 (744 Kb) . Released on 21 November 2013. )

In API description((https://www.eldos.com/documentation/solfs/app/ref_cl_storagestream_mtd_create.html) , there are two kinds of SolFSStream constructor like below.

    SolFSStream( SolFSStorage storage, String fileName, String fileMode )

    SolFSStream(SolFS.SolFSStorage storage, String fileName, boolean createNew, boolean readEnabled, boolean writeEnabled, boolean shareDenyRead, boolean shareDenyWrite, String password, SolFSEncryption encryption, long reserved, SolFSCompression compression, long compressionLevel, long pagesPerCluster )

My first question is about fileMode.
There is no explanation about fileMode parameter. How can I use this parameter? Please let me know.

The Second is about SolFS.SolFSStorage storage.
According to API description, there must be SolFS.SolFSStorage storage parameter in the first field of SolFSStream constructor.

But, the constructor in eldos.solfs.jar file is like below.
SolFSStream(fileName, createNew, readEnabled, writeEnabled, shareDenyRead, shareDenyWrite, password, encryption, reseved, compression, compressionLevel, pagesPerCluster)

So, I have tried to open files using FSStream API, but SolFSException occurred.

12-16 16:58:58.569: W/System.err(24573): eldos.solfs.SolFSException: Invalid parameter in function call
12-16 16:58:58.569: W/System.err(24573):    at eldos.solfs.SolFSStream.StorageCreateFileCompressed(Native Method)
12-16 16:58:58.574: W/System.err(24573):    at eldos.solfs.SolFSStream.internalCreate(SolFSStream.java:183)
12-16 16:58:58.574: W/System.err(24573):    at eldos.solfs.SolFSStream.<init>(SolFSStream.java:166)
12-16 16:58:58.574: W/System.err(24573):    at com.example.testdexproject.testApplication.testSolidFS(testApplication.java:100)
12-16 16:58:58.574: W/System.err(24573):    at com.example.testdexproject.testApplication.onCreate(testApplication.java:52)
12-16 16:58:58.574: W/System.err(24573):    at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1014)
12-16 16:58:58.579: W/System.err(24573):    at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4228)
12-16 16:58:58.579: W/System.err(24573):    at android.app.ActivityThread.access$1300(ActivityThread.java:140)
12-16 16:58:58.579: W/System.err(24573):    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1287)
12-16 16:58:58.579: W/System.err(24573):    at android.os.Handler.dispatchMessage(Handler.java:99)
12-16 16:58:58.579: W/System.err(24573):    at android.os.Looper.loop(Looper.java:137)
12-16 16:58:58.584: W/System.err(24573):    at android.app.ActivityThread.main(ActivityThread.java:4898)
12-16 16:58:58.584: W/System.err(24573):    at java.lang.reflect.Method.invokeNative(Native Method)
12-16 16:58:58.584: W/System.err(24573):    at java.lang.reflect.Method.invoke(Method.java:511)
12-16 16:58:58.584: W/System.err(24573):    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1006)
12-16 16:58:58.584: W/System.err(24573):    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:773)
12-16 16:58:58.589: W/System.err(24573):    at dalvik.system.NativeStart.main(Native Method)

I would like to deal with this issue as soon as possible, could you please help me out?
Posted: 12/16/2013 02:18:00
by Eugene Mayevski (EldoS Corp.)

FileMode is the equivalent to C++ one: http://www.cplusplus.com/reference/cstdio/fopen/

As for the second case - looks like this needs fixing. We will do this ASAP (within several days).

Sincerely yours
Eugene Mayevski



Topic viewed 2804 times

Number of guests: 1, registered members: 0, in total hidden: 0


Back to top

As of July 15, 2016 EldoS Corporation will operate as a division of /n software inc. For more information, please read the announcement.

Got it!