Package 

Class DeviceConfig


  • 
    public class DeviceConfig
    
                        

    Class holding device configuration.

    Consists mainly of convenience methods for converting DST2 parameters to device configuration related properties.

    • Constructor Detail

    • Method Detail

      • isEmulator

         boolean isEmulator()

        Check if device is an emulator, i.e. most preferred supported ABI is x86 or x86_64

      • debugModeEnabled

         boolean debugModeEnabled()

        Reads debug mode parameter in dataset and returns accordingly.

      • demoModeEnabled

         boolean demoModeEnabled()

        Is demo mode enabled or not.

        Demo mode is encoded in feature enable parameter bit 19.

      • featureCheckEnabled

         boolean featureCheckEnabled()

        Is feature check enabled or not.

        Feature check enabled is encoded in feature enable parameter bit 17.

      • sensorCheckEnabled

         boolean sensorCheckEnabled()

        Is sensor check enabled or not.

        Sensor check enabled is encoded in feature enable parameter bit 18.

      • factoryModeActive

         boolean factoryModeActive()

        Device set to factory mode.

        Used mainly in Volvo production. This can be used to enable/disable functionality accordingto the production needs.

      • dataset2Updated

         boolean dataset2Updated()

        Check if DST2 have been updated from Android