* solder the wires directly to a [https://www.adafruit.com/product/1826 microUSB type B plug] (note: the solder pads are very small, so it can be difficult to get just right. If you plan to use this method, order multiple plugs, in case you need to start over.)
usb- c based cables ===
Usb- c has 24 pins compared to the 5 pins in microUSB. For most device models it is simply not known how to create a serial debugging cable, since there are so many possible combinations for how wires and resistors should be connected.
For recent Samsung devices with
usb- c it is not known how to create a serial debugging cable. However, the RX and TX pins on the main board have been identified for the [[Samsung_Galaxy_A5_2017_(samsung-a5y17lte)#UART_cable|a5y17lte]], and photos of the main board on other devices ( galaxy S8, S9 and probably others) reveal that the same set of pads are available there as well. Accessing these means prying the device open, and soldering onto truly tiny pads. Do not risk it unless you are sure you need it (and can afford to accidentally destroy your device ..) .
=== Soldering a connector on your device ===