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

Developer

resources

PrivLevel

The PrivLevel primitive is a legacy BREW privilege specifier. It takes a list of BREW privileges, which are defined in the AEEPLPrivs.bid file.

In Brew MP, the preferred method of assigning privileges is through the Applet primitive. The following PrivLevel primitive is typical:

PrivLevel { 
  AEEPRIVID_PLFile,
  AEEPRIVID_PLNetwork,, 
}

The following is a list of the available privileges.

Privilege Hex Value Description

AEEPRIVID_PLFile (formerly PL_FILE)

0x0001 The application has create and write access to files and databases.

AEEPRIVID_PLNetwork (formerly PL_NETWORK)

0x0002 The application has access to the functions in the INetMgr interface and the ISocket interface.

AEEPRIVID_PLTapi (formerly PL_TAPI)

0x0004 The application has access to telephony functionality.

AEEPRIVID_PLWeb (formerly PL_WEB)

0x0008

Allows an application to create IWeb objects. AEEPRIVID_NETWORK is a super-permission of AEEPRIVID_WEB. If you have AEEPRIVID_WEB, you can get IWeb. If you have AEEPRIVID_NETWORK you can get INetMgr/ISocket and IWeb.

AEEPRIVID_PLDownload (formerly PL_DOWNLOAD)

0x0020 The application has access to the IDownload interface, which contains functions for accessing Brew MP application download servers. (This privilege level is available only to carriers and device manufacturers.)

AEEPRIVID_PLSharedWrite (formerly PL_SHARED_WRITE)

0x0040 The application has access to the shared application directory, which allows applications to share files.

AEEPRIVID_PLPosLocation (formerly PL_POS_LOCATION)

0x0080 The application has access to position-location functionality.

AEEPRIVID_PLRinger (formerly PL_RINGER_WRITE)

0x0100

Allows the application to create IRingerMgr ringer tones. This privilege level is not needed to play ringer tones.

AEEPRIVID_PLAddrBook (formerly PL_ADDRBOOK)

0x0200 Allows the application to access the Address Book.

AEEPRIVID_PLSectorInfo (formerly PL_SECTORINFO)

0x0400 Allows the application to access IPOSDET_GETSectorInfo().

AEEPRIVID_PLSystem (formerly PL_SYSTEM)

0xFFFF

The application has all of the above privilege levels and additional functionality. (This privilege level is only available to carriers and device manufacturers.)

For more information about privilege levels refer to the AEE Privilege Levels topic in the Brew MP C API Reference , available within Brew MP SDK installation in the Documents folder, and on the Brew MP website,