Is fc.setHidden(condition) Java supported for EHS6T? | Telit Cinterion IoT Developer Community
August 28, 2020 - 3:55am, 2381 views
Hi,
I am trying to hide a file for program-only access as a project.
I am using the FileConnector fc.setHidden(true) function in Java.
It does not have the effect I thought it would; I check the status afterwards and it says isHidden() = false.
Can anyone please shed some light as to whether this function is supported for the Cinterion modules?
Thanks.
N.
Hello,
If setting hidden status does not have effect, this means that the file system does not support this setting unfortunatelly. I can't see this explicit information in the API but there's a note "If hidden files are not supported on the referenced file system, this method always returns false."
Regards,
Bartłomiej
Hi Bartlomiej,
Thanks yes it seems it was not supported after all. I test by manually attempting it on file just before manually moving it to the FFS. The hidden attribute toggles to off immediately.
Is there any other way you can suggest that file hiding works for Gemalto modules?
Or is it a proprietary firmware access privilege to Cinterion module only?
I'm thinking of trying file encryption instead or devising some other method.
Thanks again
Nick.
Hello,
I'm afraid that there is no way for the customer application to hide a file on the file system. File encryption could be a way to secure the file contents. For storing some small amount of text data it is also possible to use record store API. The data is available for MIDlet but not visible on the file system as a file. It is also possible to forbid external access to the file system with the use of customer keystore. You can find more in the Java User's Guide document for the module.
Best regards,
Bartłomiej
Will do. Thank you again.