@Override
  public Response safeHandle(HttpRequest request) throws JSONException {
    JSONObject payload = getPayload(request);
    int percentage = payload.getInt("brightness");

    float brightness = percentage / 100f;
    TouchScreen touch = getSelendroidDriver(request).getTouch();
    touch.setBrightness(brightness);

    return new SelendroidResponse(getSessionId(request), "");
  }
Allow the device's screen to be turned on or off.
selendroid-server/src/main/java/io/selendroid/server/handler/SetScreenState.java