The situation when the computer stops seeing the smartphone for debugging often takes developers and advanced users by surprise. It would seem that you have completed all the standard actions: turned on developer mode, activated the desired switch, but Android Debug Bridge (ADB) stubbornly does not respond to the connected device. The command line list is empty, or the system writes “unauthorized”, blocking any attempts to interact.
This problem can hide many reasons: from simple cable damage to conflicts between versions of platform tools. Google Constantly changes security policies, introducing new levels of protection that can block a connection without the user's explicit permission. Understanding exactly how USB protocol interacts with the operating system will help you quickly localize the failure.
In this article we will analyze in detail all possible debugging failure scenarios. You'll learn how to check connection integrity, update drivers, and bypass system restrictions that device manufacturers implement to protect data. We will go from physical diagnostics to complex manipulations with configuration files.
Physical diagnostics of cables and ports
The first thing to rule out is hardware problems. Often, users try to use cables designed solely for charging, which do not have wiring for data transfer. In such cases, the phone will receive power, but the computer will not be able to detect the presence of a new devices in the system. Check the specifications of your cable: for ADB to work fully, it requires support for the data transfer standard, and not just current.
Pay attention to the state of the USB port in the smartphone itself. Over time, dust and lint accumulate in the connector Micro-USB or Type-C which prevents tight contact of all contact groups. Even if charging is in progress, the contacts responsible for transmitting data may be dirty. Gently clean the connector using a non-metallic tool, such as a wooden toothpick.
It is also worth trying to connect the device to different ports on the computer. Ports on the front panel of the system unit often have extended cables inside the case, which can lead to voltage drop and unstable operation when transferring data. Connecting directly to the motherboard via the rear ports usually gives a more stable signal.
- 🔌 Use the original cable included in the package, as it is guaranteed to support data transfer protocols.
- 🔌 Try replacing the USB cable with a known good one that supports USB 2.0 or 3.0 standards.
- 🔌 Check the ports for oxidation or mechanical damage inside the connector.
Use a cable marked "Data" or "Sync", avoiding cheap analogues labeled "Charge only", which are often sold bundled with portable batteries.
Checking the USB connection mode settings
After physical connection, the smartphone defaults to the “Charge Only” mode. In this state the operating system Android hides the file system and disables debugging interfaces to protect against unauthorized access. You need to manually switch the USB port operating profile. To do this, lower the notification shade and find the “Charging via USB” notification.
Click on this notification to expand the mode selection menu. You will need to select the File Transfer (MTP) or Photo Transfer (PTP) option. It is in these modes that the necessary drivers are activated, which allow ADB to see the device. Without this step, the computer will only see the phone as a power source.
In some cases, especially on older versions of Android or custom firmware, you may need to select the "USB tethering" mode to initiate the connection, although this is rare. The main thing is to make sure that the “Charge only” mode is not selected. If the menu does not appear, try connecting the cable again after unlocking the smartphone screen.
⚠️ Attention: On some devices with MIUI or EMUI shells, the USB mode selection menu may not appear until USB debugging is enabled in the "For Developers" menu.
Activation of the hidden developer menu
Function Debugging is hidden from the eyes of the average user by default. To access it, you must activate the hidden menu. Find the "About phone" or "About device" section in the settings. You will need to find the "Build Number" line. Click on this line quickly 7 times in a row.
After a series of clicks, the system will ask you to enter the screen unlock password, if one is set. Upon successful input, you will see a pop-up notification that developer mode has been activated. Now in the main settings menu, usually in the "System" or "Advanced" section, a new item "For Developers" will appear.
Enter this menu and find the "USB Debugging" switch. Activate it. The system will issue a warning about potential security risks - confirm the action. It is this switch that opens the port for commands ADB. Without activating it, any further manipulations with the drivers are useless.
- 📱 Go to "Settings" → "About phone" and click on "Build number" 7 times.
- 📱 Go to the "For Developers" menu that appears in the main settings.
- 📱 Find and activate the toggle switch “USB debugging”, confirming the warning.
Without activating the developer menu and turning on the debugging toggle switch, the computer will not physically be able to send a single command to the device.
Installing and updating ADB drivers
Even if everything is configured correctly on the phone, the computer may not know how to work with the connected device. The Windows operating system often installs standard MTP drivers, which are not suitable for debugging. You need to install the package Android SDK Platform-Toolsthat contains the universal Google USB Driver.
If the device is detected as "Unknown Device" or "Android" with an exclamation mark in Device Manager, you will need to manually install the driver. Open Device Manager, find your device, right-click and select Update Driver. Specify the path to the folder with drivers from the SDK.
For devices from Samsung, Xiaomi or Huawei sometimes specific drivers are required that come bundled with their proprietary software (for example, Samsung Smart Switch or Mi PC Suite). Installing such software often automatically installs the necessary components for ADB. Make sure the driver version matches your OS architecture (x86 or x64).
adb devices
After installing the drivers, open a command prompt in the ADB tools folder and enter the command listed above. If the device serial number appears in the list, it means that the drivers are installed correctly.
| Manufacturer | Required driver / software | Installation features |
|---|---|---|
| Google Pixel / Nexus | Google USB Driver | Installed via SDK Manager |
| Samsung | Samsung USB Driver | Requires disabling the antivirus during installation |
| Xiaomi / Redmi | Universal ADB Driver | Often requires manual installation through the manager |
| Huawei / Honor | HiSuite Drivers | Included in the HiSuite app |
Authorization of an RSA key on the smartphone screen
One of the most common reasons why debugging does not work is the lack of computer authorization on the smartphone side. Starting with Android version 4.2.2, the RSA security system has been introduced. When you first connect to a new computer, a dialog box appears on the phone screen asking for permission to debug.
If you skipped this window or clicked "Cancel", the device will ignore all incoming ADB commands, marking the status as "unauthorized". The window may not reappear automatically. To call it again, try disconnecting and connecting the cable, first making sure that the screen is unlocked.
In the "For Developers" menu there is also a button "Cancel authorization for USB debugging." Click it to reset the list of trusted computers. Then reconnect the cable. The screen will ask you "Allow debugging?" Be sure to check the box "Always allow from this computer" and click "OK".
⚠️ Attention: If the dialog box does not appear, check whether the lock screen or memory cleaning application is blocking system notification pop-ups.
What to do if the authorization window does not appear?
Try change USB mode (for example, switch to PTP and back), unlock the screen or restart the device. Sometimes it helps to disable the "Charge only" mode in the developer menu, if such an item is available.
Version conflicts and resetting debugging settings
Sometimes the problem lies in the desynchronization of versions ADB on the computer and the debugging service on Android itself. If you are using a very old version of platform-tools, it may not support the new encryption protocols used in recent versions of Android. Download the current version of SDK Platform-Tools from the official developer website.
It is also worth checking if the “Charge Only” mode is enabled in the developer menu itself. Some firmwares have a separate "Default USB configuration" setting. Make sure there is no restriction blocking data transfer. Resetting debug settings in the same menu often helps solve software glitches.
If nothing helps, try starting the ADB server again. Close all apps that use ADB and run the sequence of commands to restart the daemon. This clears the connection cache and can eliminate stuck processes.
adb kill-serveradb start-server
adb devices
☑️ Actions if authorization fails
Specific problems of manufacturers (Xiaomi, Huawei)
Chinese manufacturers often implement additional levels of protection. For example, on devices Xiaomi with the MIUI shell, some ADB functions may require enabling the "USB debugging (Security Settings)" item. This item appears only after enabling basic debugging and requires confirmation via SMS or Mi account.
Devices Huawei may require enabling the "HDO" mode or installing specific certificates. Additionally, on some models you must manually allow installation of applications from unknown sources, even if you are just trying to run debugging. Carefully read all pop-up messages on your smartphone screen.
Ad blockers and antivirus apps installed on the phone itself can also block the creation of a local socket for debugging. Try temporarily disabling security software and checking the connection. This will help you understand whether a third-party application is causing the blocking.
- 🛡️ On Xiaomi, enable “USB debugging (Security Settings)” in the developer menu.
- 🛡️ On Huawei, check for HDO mode and allow the installation of unknown applications.
- 🛡️ Disable third-party antiviruses and ad blockers during diagnostics.
⚠️ Attention: Interfaces and menu item names may vary depending on the Android version and the specific device model. Always check the manufacturer's official instructions.
Frequently asked questions (FAQ)
Why does the computer make a connection sound, but ADB does not see the phone?
Most likely, drivers are installed only for charging or MTP, but not for debugging. Check the device manager: if there is "Android" with a yellow icon, you need to manually install the driver from SDK Platform-Tools. Also make sure that you have confirmed the RSA key on the phone screen.
Is it possible to debug over Wi-Fi without USB?
Yes, starting with Android 11, there is the possibility of wireless debugging. For the initial setup, you will still need a one-time USB connection to receive the pairing code, or use the QR code in the "Debugging over Wi-Fi" menu in the developer settings.
What to do if the device status "unauthorized" does not change?
Try to cancel authorization in the developer menu, turn off and on debugging. If it doesn’t help, restart both your phone and computer. Make sure that the system time on both devices is synchronized, as this affects security certificates.
Does debugging work if the screen is broken and the touchscreen does not work?
If debugging was previously enabled and the authorization of this computer was confirmed, yes. You will be able to control your phone through ADB commands or apps like Scrcpy. If there was no authorization, connecting the mouse via an OTG cable can help confirm access on the screen.