Connect the device to a host computer using a USB-C cable.
When transferring files or debugging, ensure only one USB connection to the device exists. For example, do not dock the device or attach an expansion back if using a USB cable.
Go to
Settings
.
On Android 11, touch
System
Advanced
Developer options
.
Touch
System
Developer options
.
On Android 13, touch
System
Developer options
.
Slide the
USB debugging
switch to the
ON
position.
If the device and host computer are connected for the first time, the
Allow USB debugging?
dialog box with the
Always allow from this computer
check box displays. Select the check box, if required.