Resources | developer.brewmp.com Resources | developer.brewmp.com

Developer

resources

Privileges

All applications are granted Read access to the contents of their module directory. Write access to their module directory or any access to other parts of the Brew file system requires privileges. The following table describes the privileges that govern file system access.

Privilege level Header file Description

AEEPRIVID_PLFile

AEEPLPrivs.bid

Grants applications the privilege of accessing files and directories in the application module directory.

AEEPRIVID_PLSharedWrite

AEEPLPrivs.bid

Grants applications the write privilege for files and directories in the shared directory only.

AEECLSID_CARD0_ACCESS

CARD0_ACCESS.BID

Grants applications the privilege of accessing files and directories in the external memory storage.

AEEPRIVID_PFileSystemR

AEECFileSystem2.h

Grants applications the privilege of read-only access to files and directories in the application module directory. This applies to IFileSystem2.

AEEPRIVID_PFileSystemRW

AEECFileSystem2.h

Grants applications the privilege of read and write access to files and directories in the application module directory. This applies to IFileSystem2.

For more information on privileges, see the Resource File and Markup Reference in http://developer.brewmp.com/resources and the http://developer.brewmp.com/reference/api-all.

Sample - External storage access privilege

include "testapp.bid"
include "AEEPLPrivs.bid"
include "CARD0_ACCESS.BID"

-- Include Directory = C:\Temp\testapp

Applet { 
    appletid       =AEECLSID_testapp,
    resbaseid      =20,
    applethostid   =  0,
    type           =  0,
privs = {AEEPRIVID_PLFile,AEECLSID_CARD0_ACCESS},
}

ModRsc {
    name  ="IDS_STRING_20", 
    id    = 20,
    type  = 1,
    data  =EncStringRscData(0xFF, "testapp"),
}

ModRsc {
    name  ="IDS_STRING_6", 
    id    = 6,
    type  = 1,
    data  =EncStringRscData(0xFF, "test"),
}