Added setBrightness in device util.