DeviceSettings: utils.java: Fix readValue function