Add operating system to set_device_data