They literally ship off the shelf laptops and smartphones to the ISS.
They do modify them slightly to remove the lithium-ion batteries, which you do not want inside a space craft.
I think they replace them wit NiMH cells if the devices still need to be battery powered.