Have you connected your smartphone to your computer, but it is not detected? Or does the phone simply not respond to the USB cable, although it is charging? The problem may not lie in a physical failure of the port, but in the Android software settings. Often, users are faced with the fact that The USB port seems to be “disabled” the device does not transfer files, is not recognized as a drive, or the computer displays the error “USB device not recognized.”
In this article we will look all possible reasonswhy the USB port can be “turned off” at the software level, and we will show 7 ways to activate it - from basic settings to hidden commands for advanced users. Important: if the port is physically damaged (for example, after a fall or moisture), software methods will not help - repairs will be required. But in 80% of cases, the problem is solved without visiting a service center.
We tested the instructions on devices with Android 10–14 (including Samsung One UI, Xiaomi MIUI, Realme UI and “pure” Android from Google). If your model is older, some menu items may be named differently - but the logic remains the same. For convenience, we have highlighted a unique method for enabling USB through the engineering menu (##4636##), which is rarely mentioned in standard guides.
1. Checking the physical connection and cable
Before delving into the settings, make sure that the problem is not in the hardware. The USB port may appear “disabled” due to the following reasons:
- 🔌 Bad contact —try gently cleaning the port with a toothpick (with your phone turned off!) or blow compressed air into it.
- 🔄 Faulty cable —use an original or certified USB cable (cheap ones often do not support data transfer).
- 💻 Problems with the computer's USB port —check on another PC or laptop.
- 🔋 Charging only mode —some phones by default block data transfer when connected to weak power sources (for example, USB hubs).
If after these manipulations the phone is still not detected, proceed to software methods. Please note: on some models (for example Samsung Galaxy S22+ or Google Pixel 7), when connecting to a new computer for the first time, you need to allow access through a pop-up window on the smartphone screen. If you missed it, simply disconnect and reconnect the cable.
⚠️ Attention: If, when connecting the cable, the phone starts to heat up and the port makes a crackling noise, disconnect it immediately! These are signs of a short circuit, and continued use may result in a fire.
2. Enabling data transfer through the notification curtain
The easiest way to activate the USB port is to use Notification panel. When you connect the cable to the computer, a notification should appear on the phone screen with the text Charging via USB or Connected as.... Click on it:
- Tap on the notification
Charging via USB(or similar). - In the window that opens, select
File transfer(MTP),Photo transfer(PTP) orUSB modem(if you need Internet). - Confirm your selection - now the computer should recognize the phone as a drive.
If this notification is not there, check:
- 📱 Is the screen unlocked — on some phones (for example, Xiaomi Redmi Note 12), the notification appears only after unlocking.
- 🔒 Are there USB restrictions in security policies (relevant for corporate devices).
- 🔄 Reboot both devices - sometimes it helps to reset temporary connection errors.
On Android 12+ the path may look like otherwise: Notification → USB connection → Use USB for → File transfer. If the item File transfer is not in the list, then it is blocked at the system level - read on.
Try a different cable|Connect to another PC USB port|Unlock phone screen|Reboot both devices|Check the “Charging via USB” notification-->
3. Setting up USB in the “For Developers” menu
If the standard method did not work, enable developer mode and check the USB settings. This method is especially useful if the phone is detected as an “Unknown device” or gives an error USB Device Not Recognized.
First activate the developer menu:
- Go to
Settings → About the phone(orAbout the device). - Find the item
Build number(orVersion MIUIon Xiaomi). - Tap on it 7 times in a row - the message “You have become a developer!” will appear.
Now return to the main settings menu and open a new section For Developers (on Samsung It may be called Developer Options).Scroll down and find:
- 🔧
USB Configuration default- selectFile transfer (MTP). - 🔄
USB debugging— turn on this switch (confirmation will be required on the phone screen). - 🔒
Cancel debugging authorization— click if you previously connected to this PC and now it is not recognized.
After the changes, disconnect and reconnect the cable. If the computer still does not see the phone, try update USB drivers on a PC (via Device Manager in Windows).
⚠️ Attention: On some firmware (for example, ColorOS from Oppo/Realme), the item Default USB configuration may be missing. In this case, use the method with the engineering menu (section 5).
4. Resetting USB and media cache settings
If the USB port previously worked, but suddenly stopped being detected, the problem may be damaged cache or lost settings. Try resetting them without completely flashing:
Method 1: Reset USB settings
- Go to
Settings → System > Reset restart the device.(orAdvanced → Reset). - Select
Reset USB settings(on some phones this item is hidden - use the search in settings). - Confirm the reset and reboot your device.
Method 2: Clear media cache and storage
- 📂 Open
Settings → Applications → Show all applications. - 🔍 Find
Media storage(orMedia Storage) and clickClear cache. - 🗃️ Do the same for the application
Files(orFiles by Google).
After cleaning, wait 1-2 minutes (the system will re-index the files) and connect the phone to the PC. If the problem was a cache conflict, the port should work.
| Method | When helps | Risks |
|---|---|---|
| Resetting USB settings | If the port worked previously, but is no longer detected after the update | Minimal (only connection settings are reset) |
| Clearing the cache media | For errors like “Device not recognized” or slow file transfer | No (the cache will be restored automatically) |
| Disable USB debugging | If the computer gives an ADB driver error | You will have to re-authorize the PC for debugging |
5. Enabling USB through the engineering menu (##4636##)
This method is suitable for experienced users and works even on phones with custom firmware. Engineering menu allows you to manually activate the USB port if it is blocked at the system level.
Instructions:
- Open the application
Phoneand enter the combination:##4636##. - In the menu that opens, select
Phone information(orPhone Information). - Scroll down to the block
USBand pressEnable USB(orEnable USB). - If there is an item
USB Configuration, selectMTP + ADB.
On some models (for example, Samsung Galaxy A54), the engineering menu may be called Service Mode and open through #0#. If the combination does not work, try:
- 🔢
##8255##- for devices. on Qualcomm. - 🔢
##36446337##—for some models Meizu.
Critical nuance: on phones with Android 13+, the engineering menu may be blocked by the manufacturer. In this case, use ADB commands (section 6).
What to do if the engineering menu does not open?
If combinations ##4636## do not work, which means the manufacturer has disabled access to the engineering menu in your firmware. Alternative options:
1. Use the application MTK Engineering Mode (for devices on Mediatek).
2. Try connecting via ADB (section 6).
3. Install custom recovery (for example, TWRP) and enable USB from there.
6. Activating USB via ADB commands (for advanced)
If all the previous methods did not work, try enabling the USB port via Android Debug Bridge (ADB). This requires a computer with drivers installed and USB debugging enabled.
Step 1: Installing ADB
- Download Platform Tools from the official Android website.
- Extract the archive into a folder
C:\platform-tools. - Open
Command Linein this folder (pressShift+ right mouse button →Open command window).
Step 2: Commands to enable USB
Connect your phone to the PC and enter one by one:
adb devices
(Your device should appear. If not, check the drivers or debugging authorization.)
adb shell settings put global usb_config mtp,adb
adb shell am broadcast -a android.hardware.usb.action.USB_STATE --es connected true
After completing the commands, reboot the phone. If the port still does not work, try resetting the USB settings via ADB:
adb shell settings delete global usb_config
These commands forcefully enable the mode MTP and simulate a USB connection. On some firmware (for example, LineageOS), an additional command may be required:
adb shell setprop persist.sys.usb.config mtp,adb
⚠️ Attention: Incorrect use of ADB can lead to malfunctions of the phone. Do not enter commands if you are not sure of their purpose!
1. Open Device Manager (Win + X).
2. Find the device with a yellow exclamation mark (usually in the section Other devices).
3. Right-click → Update driver → Search this computer → specify the folder with platform-tools.-->
7. Scan for viruses and reset to factory settings
If the USB port stops working after installing an application or visiting a suspicious site, the reason may be virusblocking connections. Run diagnostics:
- 🛡️ Install an antivirus (for example, Malwarebytes or Dr.Web Light) and scan the system.
- 📱 Check the list of installed applications for suspicious ones (in
Settings → Applications). - 🔄 Delete cache and application data
SettingsiStorage.
If viruses are not found, but the problem remains, run reset to factory settings (save important data first!):
- Go to
Settings → System → Reset. - Select
Delete all data (reset). - Confirm the action and wait reboot.
After the reset, the USB port should work normally. If not, the problem is most likely in hardware (damaged port, USB controller or cable).
Reset to factory settings - extreme measure. Before this, try all other methods, as you will lose all the data on the phone (photos, contacts, messages).
FAQ: Frequently asked questions about USB on Android
Why does the computer not see the phone via USB, although charging is in progress?
This is a typical situation when the USB port is working in mode Charging only. Try:
- Tap on the notification
Charging via USBand selectFile transfer. - Check the settings in the menu
For developers(section 3). - Use a different cable (some cables only support charging).
How to enable USB debugging if it is not in the menu developer?
On some firmwares (for example, EMUI from Huawei) item USB debugging may be hidden. To unlock it:
- Activate the developer menu (7 taps on
Build number). - Return to
Settings → Securityand findAdditional settings. - There may be a hidden item
USB debugging.
If this is not there, use the ADB command:
adb shell settings put global development_settings_enabled 1
Is it possible to turn on the USB port if the screen is broken?
Yes, but it is difficult. Options:
- 🖥️ Connect the phone to the PC and use
ADB(section 6). - 🔌 If the screen responds to touches, try blindly tapping on the notification area
USB charging(usually at the top of the screen). - 📱 Connect the mouse via the OTG adapter and control the phone with it.
If the screen completely inoperative, contact the service center.
Why does the USB port only work with some cables?
This is due to cable type and the supported protocols:
- 🔌 Charge only —cheap cables no data transfer.
- 📱 USB 2.0 vs 3.0 —Older cables (USB 2.0) may not support high-speed transfer on newer phones.
- ⚡ Quick Charge —Some cables are optimized for fast charging only.
Use the original cable or certified accessories (for example, Anker PowerLine).
How to check if the USB port is working on Android?
Carry out diagnostics:
- Connect the phone to a known working USB port of a PC with an original cable.
- Try different modes:
File transfer,Photo (PTP),USB modem. - Install the application USB Check from Google Play - it will show the port status.
- Check whether the phone is detected in
Device ManagerWindows (sectionPortable devices).
If none of the methods worked, the port is most likely physically damaged.