Back up important files before any big step such as a reset or restore. Don't download 'repair' programs suggested online; use only official tools from Microsoft, Apple, Google or your device maker. On work or school devices, ask your IT admin first.
Likely causes
- USB mode is set to charging only
- A charge-only or faulty cable
- A faulty USB port or outdated drivers on the computer
- Security or phone-assistant software on the computer
Steps you can try
Did that fix it?
Great! If the code comes back, repeat the same steps from the start.
If the steps didn't help, don't push further. See the help section below.
When to get help
If the phone is not detected on several computers with several cables, its USB port may be faulty; apply for service at a Xiaomi authorised service centre.
Differences between versions
A Mac cannot browse an Android phone over USB on its own and needs a separate file-transfer tool, which Xiaomi does not provide. You do not need USB debugging to copy files; leave it off.
Sources
This page is based on official sources from Microsoft, Apple, Google and other makers, written in our own words. Code meanings can differ between versions.