It is the responsibility of the J2ME platform that the FileConnection APIs are deployed on to provide a security model supporting the security of the File Connection APIs. Specifically:
File access through the File Connection API may be restricted by an implementation of files within a public context and not deemed private or sensitive. This restriction is intended to protect users' files and data from both malicious and unintentional access. Implementations MUST NOT allow a File Connection to access MIDP RMS databases. Implementations SHOULD NOT allow access to files and directories that are private to another user’s private applications, files and directories system configuration files, and device and OS specific files and directories. In these situations, a java.lang.SecurityException is thrown from the Connector.open() method if the file, file system, or directory is not allowed to be accessed.