code: private void buildDeviceData(Context context) throws JSONException {
          device = new JSONObject();
          device.put("device", Build.DEVICE);
          device.put("brand", Build.BRAND);
  
          Object windowService = context.getSystemService(Context.WINDOW_SERVICE);
          if (windowService instanceof WindowManager) {
              Display display = ((WindowManager)windowService).getDefaultDisplay();
              device.put("resolution", display.getWidth() + "x" + display.getHeight());
              device.put("orientation", display.getOrientation());
          }
          device.put("display", Build.DISPLAY);
          device.put("manufacturer", Build.MANUFACTURER);
          device.put("model", Build.MODEL);
          device.put("product", Build.PRODUCT);
          device.put("build.type", Build.TYPE);
          device.put("android.version", Build.VERSION.SDK_INT);
      }
docs: Adds the device data to the report.
  @param context
  @throws JSONException if the device data cannot be added