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

Developer

resources

Mapping Brew MP namespace names

OEMs are responsible for mapping Brew MP namespace names to their proper locations in their native file system in a1OEMFSPathMap.c and OEMefs.c. When mapping the Brew MP namespace names to the native file system, follow these guidelines:

  • AEEFS_SYS_DIR must not map to any type of removable media and must not be the same as, or any subdirectory of, AEEFS_MOD_DIR, AEEFS_SHARED_DIR, AEEFS_ADDRESS_DIR, or AEEFS_RINGERS_DIR.
  • AEEFS_MOD_DIR must not map to any type of removable media and must not be the same as, or any subdirectory of, AEEFS_SHARED_DIR, AEEFS_ADDRESS_DIR, or AEEFS_RINGERS_DIR. It is also recommended that AEEFS_MOD_DIR does not map to the same area as AEEFS_MIF_DIR.
  • AEEFS_MIF_DIR must not map to any type of removable media and must not be the same as, or any subdirectory of, AEEFS_SHARED_DIR, AEEFS_ADDRESS_DIR, or AEEFS_RINGERS_DIR. It is also recommended that AEEFS_MIF_DIR does not map to the same area as AEEFS_MOD_DIR.
  • AEEFS_SHARED_DIR must not map to any type of removable media and must not be the same as, or any subdirectory of, AEEFS_ADDRESS_DIR or AEEFS_RINGERS_DIR.
  • AEEFS_ADDRESS_DIR must not be the same as, or any subdirectory of, AEEFS_SHARED_DIR or AEEFS_RINGERS_DIR.
  • AEEFS_RINGERS_DIR must not map to any type of removable media and must not be the same as, or any subdirectory of, AEEFS_ADDRESS_DIR or AEEFS_SHARED_DIR.

Default Brew MP namespace mappings

The default Brew MP namespace mapping to device paths, shown in the table below, is defined in the function a1OEMGetFSPathMap() in a1OEMFSPathMap.c.

Note: It is recommended that the default namespace mapping to device paths be used.

Namespace

Device directory

Required definition

fs:/

/

None required

fs:/mif/

/mif/

None required

fs:/mod/

/mod/

None required

fs:/sys/

/sys/

None required

fs:/shared/

/shared/

None required

fs:/address/

/address/

None required

fs:/card0/

mmc1

FEATURE_MMC

fs:/card1/

mmc2

FEATURE_MMC

FEATURE_CPRM

fs:/~0x0103809c/

(fs:/mod/26108/)

usb1

FEATURE_USB_HOST FEATURE_USB_HOST_MASS_STORAGE

fs:/~0x0103809d/

(fs:/mod/26109/)

usb2

FEATURE_USB_HOST FEATURE_USB_HOST_MASS_STORAGE

MCF

The MCF provides a method to store media files in designated directories that can only be accessed by an authorized application. The directories for these MCF categories will be predefined on a device.

To port the MCF feature

  1. Include the entire const MIF file for MCF xxxxx_mif.c files under \build\ms in the makefile.
  2. Modify \platform\cs\src\oem\ a1OEMConstFiles.c by adding all the gxxxxx_MIF variables defined by xxxxx_mif.c in the gpOEMConstFiles[ ] array.

Description Locked / Unlocked File path const MIF file variable for gpOEMConstFiles[ ]

pictures

unlocked

fs:/mif/10888.mif

\build\ms\10888_mif.c

gMIF_10888_MIF

music

locked

fs:/mif/10889.mif

\build\ms\10889_mif.c

gMIF_10889_MIF

movie

unlocked

fs:/mif/10890.mif

\build\ms\10890_mif.c

gMIF_10890_MIF

theme

unlocked

fs:/mif/10891.mif

\build\ms\10891_mif.c

gMIF_10891_MIF

text

unlocked

fs:/mif/10892.mif

\build\ms\10892_mif.c

gMIF_10892_MIF

sound

locked

fs:/mif/16225.mif

\build\ms\16225_mif.c

gMIF_16225_MIF

sound

unlocked

fs:/mif/18067.mif

\build\ms\18067_mif.c

gMIF_18067_MIF

license

unlocked

fs:/mif/19240.mif

\build\ms\19240_mif.c

gMIF_19240_MIF

theme

locked

fs:/mif/19917.mif

\build\ms\19917_mif.c

gMIF_19917_MIF

text

locked

fs:/mif/19918.mif

\build\ms\19918_mif.c

gMIF_19918_MIF

pictures

locked

fs:/mif/19919.mif

\build\ms\19919_mif.c

gMIF_19919_MIF

music

unlocked

fs:/mif/19920.mif

\build\ms\19920_mif.c

gMIF_19920_MIF

movie

locked

fs:/mif/19922.mif

\build\ms\19922_mif.c

gMIF_19922_MIF

bookmark, links

locked

fs:/mif/19923.mif

\build\ms\19923_mif.c

gMIF_19923_MIF

bookmark, links

unlocked

fs:/mif/19924.mif

\build\ms\19924_mif.c

gMIF_19924_MIF

USB Host Mass Storage

USB Host Mass Storage (USBHMS) mappings provide access to USBHMS devices via the fs:/ Brew MP namespace. The devices are mapped to Brew MP module home directories so that ACL privileges can be applied to device access (similar to Brew MP module home directory access control). If FEATURE_USB_HOST_MASS_STORAGE and FEATURE_USB_HOST are defined, usb1 and usb2 mappings are defined.

To port the USBHMS feature

  1. Include the entire const MIF files for USBHMS xxxxx_mif.c files under \platform\brewmp\system\brewcore\src\oem\usbl\ in the makefile.
  2. Modify \platform\cs\src\oem\OEMConstFiles.c by adding all the gxxxxx_MIF variables defined by OEMUSBHMSMIF_xxxxx.c in the gpOEMConstFiles[ ] array.
  3. Ensure that FEATURE_USB_HOST_MASS_STORAGE and FEATURE_USB_HOST are defined.

The mapping to which the device mount points is in the file \src\OEM\a1OEMFSPathMap.c as OEMFS_UHMS1_DIR and OEMFS_UHMS2_DIR. If these are different on the device, they must be changed.

USB port Namespace const MIF file Variable for gpOEMConstFiles[ ]

USB 1

fs:/mif/26108.mif

\build\ms\26108_mif.c

gMIF_26108_MIF

USB 2

fs:/mif/26108.mif

\build\ms\26108_mif.c

gMIF_26109_MIF