Device Information

Principle

The Device Foundation Library provides access to the device information. This includes the architecture name and a unique identifier of the device for this architecture.

Dependencies

Installation

Device is an additional module. To enable it, the Device Information Pack module must be installed in your VEE Port:

microejPack("com.microej.pack.audio:audio-pack:1.0.0")

When installed, the Device Information Pack module can be configured.

In SDK 6, the configuration is done in the properties file configuration.properties of the VEE Port project.

All the properties names listed below must be prefixed by com.microej.runtime.device.. For example the architecture properties is defined by the com.microej.runtime.device.architecture property.

The list below describes the properties that can be defined in the configuration file:

  • architecture [optional, default value is “Virtual Device”]: Defines the value returned by the ej.util.Device.getArchitecture() method on the Simulator.

  • id.length [optional]: Defines the size of the ID returned by the ej.util.Device.getId() method on the Simulator.

Use

The Device API Module must be added to the project build file to use the Device Information library:

implementation("ej.api:device:1.0.2")