What is USB debugging. Connection in USB storage mode. Editing the main configuration file

In the Android settings, you probably found the mysterious “USB Debugging” item, but does everyone know what this mode is for and how to enable it correctly on different Android versions OS?

Why is debugging needed?

Initially, this mode was provided exclusively for developers of applications or services for Android. Using debugging, they gained access to the “internals” operating system.

But subsequently, more and more cases began to occur when “ordinary” users also needed the debugging mode. It’s just that the developers created automated tools for obtaining root (), restoring a smartphone, modifying the OS, which required a debugging mode.

Despite the menacing name, activating this mode is quite simple.

How to enable debugging

For Android 4.1 and earlier: When the developer menu is visible:

IN earlier versions Android options developer are available in explicit and open form. Just open system settings. In different versions, the developer options section may be located in different places: V general list, in the “Applications” section, in the main menu.

Select “USB Debugging” and check the box there. You will see a warning pop-up; just click "OK".

There is no need to reboot your smartphone to activate this mode.

What to do if the required section is not visible?

In Android versions starting from 4.2.2, debug mode (as well as other developer options) is not shown in the menu. However, there is a way to open them easily:

  • Open the Settings menu and the General tab
  • Find the "About Device" section
  • Open the “Software Information” item in it.
  • Find the line “Build number” in it and tap on it 7 times
  • After the notification about receiving developer status appears, return to the “General” section
  • Find the “Developer Options” item that appears.
  • Find in this section the line " USB Debugging" and check the box there
  • Exit the menu

Congratulations, you can now access your device via your computer!

Cases when debugging saves

Anyone Android user There are situations when debugging is desperately needed. It’s good that you used the instructions from the previous section and activated it. Now you can:

  • Get root access on your smartphone/tablet using special applications for computer. Debugging enabled is required for this.
  • Retrieve data from a device whose display is not working. We devoted a separate article to this problem.
  • Restore your device if it won't boot. To do this you need to use special utilities, which for different devices and chipsets may vary. Look for more detailed information specifically about your model.
  • Work with the command line on your computer to quickly copy files, install an application or a whole set of applications at once, change access rights to a particular file. To do this, the ADB program (Android) must be installed on your computer Debug Bridge), which allows you to issue commands to the Android environment on the connected device. For her there is like GUI, and the set console commands, which are given via the command line.

All in all, if you want to get the most out of the functionality of your Android tablet or smartphone, the debugging mode will be extremely useful for you.

If the computer does not see Android via USB, then you will not be able to download photos, videos or music, install applications not from Play Market, flash the device. And this is very bad, because the functionality of the phone is not fully revealed due to some stupid error.

Someone might argue that you can flash a phone without a USB connection, but for transferring files there is Wi-Fi, instant messengers, cloud storage, and finally email. But I just can’t refuse a USB connection, I constantly carry the cable with me and consider it one of the most convenient ways data transfer.

Checking the cable and port

Before you go into your phone settings, install drivers and curse the day you bought this Android, check the cable and USB port. I was once very surprised that the computer stopped identifying the smartphone, which it had previously seen perfectly well. It turned out that the cat liked the cable and chewed it through. From this situation I drew two conclusions: the wires must be put away in a box and inspected before connecting. The cat did not draw any conclusions. If no kinks, bites, breaks or other mechanical damage are found on the wire, check the USB port. Try connecting to a different connector or inserting another device into the same port - for example, a mouse.

If Windows XP is installed on your computer, then urgently look for an opportunity to upgrade to at least “seven”. But first you can just install MTP protocol so that XP learns to work with Android. The trick is that when the first version of Android appeared, Microsoft released already Windows 7. Therefore, there is no MTP protocol in XP, and you have to install it separately. You can download MTP

If the computer detects any other device, but the phone categorically does not want to see it, then it’s time to move the focus to Android settings and connection features. Yes, there is a possibility mechanical damage microUSB connector on the phone, but I haven’t encountered this yet. If you have something broken, you will most likely notice it.

Most often, the inability to establish a connection between the computer and the phone is due to software errors. If none of the methods listed below resolve the problem, contact service center- it seems that the smartphone really needs repair.

Android setup

I came across two situations. The first phone required not only obtaining developer rights and enabling USB debugging, but also installing phone drivers on the computer. In the settings of the second smartphone, I did not find any parameters responsible for connecting via USB. They are not needed: the phone is perfectly detected by the computer, after which it offers to select a connection mode.

So, if you connected your smartphone, but nothing happened:

  1. Open Android Settings.
  2. Go to the section "About the phone"(may be called “About device”).
  3. Find build number(models) and click on this item until a notification appears that you will soon become a developer. Usually n press 7-10 times.

After you become a developer, you will see new section - "Developer Options". Inside it you will find a switch "USB Debugging", which needs to be moved to position "On".

Now try connecting your phone to your computer again. When connecting, a mode selection window should appear on the smartphone screen. The default setting on older versions of Android is “Charge Only”. If the window does not appear, slide it out of the notification shade.

To transfer files, you need to select media device (MTP) or storage mode. Among the options there will also be a PTP mode, but it is only suitable for photos that can just as easily be moved to MTP.

After selecting the appropriate mode in “Computer” on Windows, a media device will appear, the contents of which you can work with. Depending on the features of phone models and versions Android internal Memory and SD card can be displayed together or as separate drives. But this does not matter, the main thing is that they are displayed at all.

There are no other options in the Android settings that are responsible for connecting via USB, except for debugging. However, there are some peculiarities. For example, on Nexus smartphones need to unlock a password-protected screen or graphic key to allow the computer to access the contents of memory.

Also, USB connection cannot be established if tethering mode is enabled on Android. To check its status and disable it if necessary:

  1. Open Settings.
  2. In chapter "Network and Connections" click « Additional settings» or "More".
  3. Go to modem mode and disable the point WLAN access . If it is disabled, you do not need to do anything else.

Some manufacturers offer users special programs to control smartphones on a computer, but you can establish a simple connection via USB without this software. Utilities from manufacturers are needed not for the banal transfer of photos, but for performing more complex tasks: phone software updates via computer, device firmware, factory reset.

The reason that the computer does not see Android via USB may be an incorrectly installed or simply crooked custom firmware. In addition, sometimes resetting the settings helps, but before you do it, do not forget to do backup copy data as they will be deleted. The problem may disappear even after a normal reboot of the smartphone - keep this in mind.

Checking Energy Saving Settings

Windows is trying to save energy so that the same laptops can last longer on battery power. One of the saving factors is automatic shutdown USB ports. Sometimes this results in external devices not connecting at all. To check these settings and troubleshoot any deficiencies:

I haven't measured how much it affects the duration battery life a ban on automatically disabling ports, but there is no noticeable difference. But connection problems are eliminated external devices like Android phones.

Installing drivers

The first time you connect any device, Windows installs drivers for it. Often this process goes unnoticed and very quickly (as was the case with my second phone), so you may not even know that the smartphone software is on your computer. But it exists, which means it should work correctly.
  1. Connect your phone to your computer.
  2. Open device Manager. On Windows 10, the corresponding item is in the context menu, called up by right-clicking on “Start”. In earlier versions Windows Manager can be found in Control panels in viewing mode "Icons".
  3. Check everything USB controllers. If near one of them stands Exclamation point, then this indicates a problem with the software.

To make sure that it is the phone that is marked in the Manager, turn off USB cable. If the problematic controller disappears, then you have found the source of the problem. A smartphone without drivers may also appear in other sections: for example, among other or portable devices.

So, you discovered that something strange is happening with your phone drivers. What to do next?

  1. Connect your phone so it appears in Device Manager.
  2. Select it and delete it.
  3. Update the hardware configuration so that the computer detects the phone again and begins installing drivers.

You don't have to remove the device, just update the driver. Right click on the phone, select tab "Driver" and press "Update". Another option is to install it first and then install it again without touching the device itself.

In the search box, select automatic detection. If you downloaded the phone driver from the official website, you can click "Search this computer" and indicate the path to the downloaded software file.

If you have chinese smartphone, then there may be another problem with it - the inability to find suitable driver in the Internet. They are often posted on forums like 4PDA, but if there is nothing, try installing a universal driver. It's called Universal Adb Driver and is designed to provide proper operation Android Debug Bridge and utilities for synchronizing PCs with Android devices. Versatility is not always good, but chances are that in the case of Chinese phone you can easily access the contents of memory.

Troubleshooting error code 19

If, when you connect your phone, your computer displays a message about the inability to start the device due to incomplete or damaged settings, you need to check system registry. But be careful: deleting the wrong entries can cause Windows to stop working.

After removing the setting, restart your computer and try connecting your phone again.

Alternative file transfer methods

If you cannot resolve the problem with the USB connection, and you need to transfer files right now, use one of the alternative methods.
  • Sync your data via Google Drive. For normal operation Android required Account Google, so you definitely have access to cloud storage. You can transfer files through other services – DropBox, OneDrive. I use Yandex.Disk.
  • Transfer files via email, messengers or social networks. I often add small files to Documents on VKontakte, and then download them to my computer.
  • Install on your phone AirDroid app and access memory through a browser on your computer.

You can come up with other options. For example, create FTP server on your phone or configure remote connection via TeamViewer. So USB is not the only option. But if wired connection is not installed, it is still worth looking at what the reason is and, if possible, eliminating it.

Also on the site:

The computer does not see Android via USB updated: February 7, 2018 by: Sergey

USB debugging mode - special function Android devices, needed mainly for developers. With its help, you can check the functionality of the application and test it in different situations. But debug mode is also useful for users. Let's consider why it can be useful, how to turn it on and off on Android devices.

Why do you need USB debugging mode on Android OS?

Debug mode allows users to:

  • Test the application being developed.
  • Get root access to your smartphone or tablet.
  • Copy and move files from your Android device to your computer.
  • Install a third-party (not from the Play Market) Android application downloaded to your computer.
  • Install different versions firmware for the device.
  • Restore a broken device.
  • Create a backup copy of files and applications.

In addition, in debug mode you can access system processes and also analyze changes in behavior random access memory, processor and other components.

How to enable USB debugging mode on your device

The “Enable USB Debugging” option is located in the “Developer Menu” (or “Developer Options”), which is hidden from users in Android versions above 4.2. But, again, some manufacturers decide to open access to the menu, others decide to hide it. For example, on Meizu smartphones the developer menu is always open and is located in the “ Special abilities", and on Samsung devices access to the menu is closed. It all depends not only on the company, but also on specific model devices.

So, if access to the developer menu is blocked on your device, do the following actions: In the device settings, open the “About device” tab and click on the “Build number” item until a notification appears that you have been assigned developer status and you can use a special menu.

Now go to this menu. Depending on the model, the menu entry may be located in different sections of the settings menu. Either in the device settings there may immediately be a section “For Developers” (“Developer Options”, “Developer Menu”), or it may be a subsection of the items “Accessibility”, “Other”, “More”, “Advanced Settings”.

When you enter the developer menu, check the box next to “Enable USB debugging” (or “USB debugging mode”). Usually this item comes first.

Where is the mode located in different versions of Android (photo gallery)

The developer menu is located in the “More” section. In Android 2.2–3.0, the “USB Debugging” item is located in the “Applications” section. In Android 4.2 and higher, the developer menu is moved to the “Settings” section

Video instruction: how to enable USB debugging mode on Android

How to enable USB debugging mode if this cannot be done from the device

There are ways to enable debugging mode even if this cannot be done on the device itself due to, for example, a broken screen, a broken touchscreen, or problems with the device as a whole.

The main condition: your device must already have a third-party Recovery installed - CWM or TWRP. This is necessary to be able to obtain full root access to the operating system.


After rebooting, you can work with your smartphone or tablet using QtADB, MyPhoneExplorer, ADB and others similar programs. That is, using USB debugging mode.

What to do if nothing works

To work with USB debugging, special ADB drivers are used (Android Debug Bridge, literally “bridge for Android debugging"), which can be downloaded from the Google website, Official page located at: https://developer.android.com/studio/index.html. Let's figure out what to do if ADB does not detect the device, why it is impossible to use USB debugging mode.

Make sure your mobile device is detected by your computer. For this:

  1. Check the USB cable for damage. Special attention Pay attention to strong bends and sections of the cable near the plugs where connecting wires often break. Try using a different cable to connect. If the problem really is due to physical defects, replace the cable.
  2. Try plugging the plug into a different USB port on your computer. It is advisable to use the ports on the back side system unit, since the rear ports are located directly on motherboard. The front USB ports are not always connected correctly, which is what causes the problem.
  3. Try connecting your Android device to another computer. Sometimes it happens that a particular PC incorrectly recognizes a smartphone or tablet and does not read the necessary data from it. If the device is recognized correctly on another computer, take your PC for repair and explain the problem, since the causes of problems may be different.
  4. Try disconnecting all USB devices from your computer. Some of them may prevent your smartphone or tablet from connecting normally to your PC.

Make sure you use official firmware device manufacturer. If you installed it on a smartphone or tablet third party firmware(such as CyanogenMod or similar), then USB debugging may not work correctly.

Make sure you have installed the correct ADB drivers. There are different versions of drivers for different devices. All of them are distributed according to smartphone and tablet models on the official website. There are also universal ADB drivers, but it is better to use them only if there is no one for your device separate driver, since with universal drivers There may be connection issues that can only be resolved by contacting Google Support.

For developers software It’s better to use the system rather than separate ADB drivers Android Studio, which can also be downloaded from the official website: developer.android.com. In Android Studio setup drivers occurs automatically, in addition, there is Android emulator for a computer, so USB debugging may not be necessary.

How to turn off USB debugging

To disable USB debugging mode on Android devices, open the Developer Menu and uncheck the Use USB Debugging option.

USB debugging mode - extremely useful tool not only for software developers, but also for ordinary users operating room Android systems. With its help you can install and reinstall firmware on your mobile devices, move files from a smartphone or tablet to a computer, download to Android third party applications. The ability to use USB debugging mode will also be useful in cases where the device has stopped working correctly, as it allows you to delve into system processes, which will help you find problems and malfunctions. In addition, USB debugging will help you gain root access to the device, which will significantly expand the capabilities of the operating system.

USB debugging allows you to use the service for debugging applications and devices on the Android OS: check how the application and system work, and what failures have occurred.

Enable USB Debugging

In all Android devices USB debugging is located in Menu > Settings, but the location options may vary, for example:

Menu > Settings > Development > USB Debugging (On) Menu > Settings > Applications > Development > USB Debugging (On) Menu > Settings > More > Developer Options > USB Debugging Menu > Settings > General > About smartphone/About tablet > Build number (click on it 7 - 10 times), then return to Settings > For Developers > USB Debugging (on)

After enabling USB debugging

Unlock your smartphone or tablet. Do not use USB 3.0 port, only USB 2.0 when connecting to a computer.

When the device connects to the computer for the first time, you will be asked to trust the computer: check the box and click OK. USB debugging is enabled.

Installing a USB Debugging Application

For debugging, the ADB program (Android Debug Bridge) is used. ADB is integral part Android SDK you need.

Download zip archive with the Android SDK, it contains the folder adt-bundle-windows-x86_64-20140702, which contains the SDK itself. Unpack it onto your computer. For example, we placed the folder in the root of drive C, i.e. the path to the SDK will be like this: C:\adt-bundle-windows-x86_64-20140702\

Make sure that the computer is connected to the Internet and launch the program located in the adt-bundle-windows-x86_64-20140702 folder SDK Manager.

If SDK Manager does not start, install Java SE.

After launching the SDK Manager program, the installation window will appear. We need to download and install

✓ Android SDK Platform-tools ✓ Android SDK Tools ✓ Google USB Driver package

We mark these three items on the list and uncheck all the others. Click “Install” and wait for the program to download the components.

USB drivers for 32 and 64 bit Windows will be downloaded to the folder C:\adt-bundle-windows-x86_64-20140702\extras\google\usb_driver (install them later if you don’t find them official drivers for your tablet or smartphone).

We connect our device to the computer - the computer will detect new equipment. We install drivers from the manufacturer’s website or from the folder where they were downloaded earlier (installation is done through the Task Manager> * Unknown device* > right button mouse > Update Driver Software.. > search for driver on PC > downloaded drivers).

After installing the drivers, a new “ADB Interface” device will appear in the device manager.

If the device is not identified in the manager as ADB Interface, check the drivers of your tablet or smartphone, turn off and on USB debugging mode, and reconnect the device to the PC.

Launching the ADB program

To Work with ADB program best through command Windows string. To open the command line, click “Start”, and in the “Search programs and files” input field, type cmd and press “Enter”.

To see what devices are connected to the computer, type the command:

C:\adt-bundle-windows-x86_64-20140702\sdk\platform-tools\adb.exe devices

The ADB program will display a list of devices connected to currently to the computer. If the device appears in command line, you can start debugging.

Debugging i2 Control V2.2 via USB

Enter (1):

C:\adt-bundle-windows-x86_64-20140702\sdk\platform-tools\adb.exe logcat

The command line will start displaying the log of your smartphone or tablet.

Stop logging by clicking Ctrl+C

Enter (2):

C:\adt-bundle-windows-x86_64-20140702\sdk\platform-tools\adb.exe logcat >log.txt

Now the log restarted using (1) will be saved in text file, located in C:\Users\*Username*\log.txt

Launch the i2 Control V2.2 application on your tablet or smartphone, run the log (1), perform the action whose log you want to save, stop logging by pressing Ctrl+C.

You can send the saved log to technical support, accompanying it with your project, description of the problem, model and firmware version of the tablet or smartphone on which the problem was detected.

In this article we will figure out how to connect Android to a computer/laptop via USB as a flash drive and be able to transfer information without using a classic flash drive.

This article is suitable for all brands that produce phones on Android 9/8/7/6: Samsung, HTC, Lenovo, LG, Sony, ZTE, Huawei, Meizu, Fly, Alcatel, Xiaomi, Nokia and others. We are not responsible for your actions.

Before Android 4.4 KitKat, it was possible to connect via USB as a flash drive. The PC saw the device as removable drive and provided the same rights: the user could also perform other actions.

Then in new versions of Android USB mode was replaced by MTP, in which only the data transfer function remained, and the same formatting did not work.

Setting up a USB connection

To manage the connection to a computer via USB, you need. To do this, add to the settings Android section“For developers” (if it doesn’t exist):

  1. Open settings.
  2. Go to the "About phone" or "About device" section.
  3. "Build number" or " MIUI version».
  4. Press (click) on this item until you see a message that you have become a developer (usually 7-10 clicks are enough).
Increase

After the developer section appears in the settings, you can enable USB debugging. The item is called that way, so you just need to move the slider to the “On” position and confirm the resolution.


Increase

Now you can connect the device to your computer via USB and select the operating mode. IN latest versions Android most used are:

  • MTP - transfer any files from computer to phone and vice versa.
  • PTP - transfer of photos, as well as transfer of files not supported in MTP mode.
  • Charging only.

Connecting in USB storage mode

If you can't get used to using the media player, go back to using USB storage mode. For this you will need:

This method may cause damage system files. In this case, you will have to reflash Android.

To connect Android to your computer as a drive:

  1. Launch USB MASS STORAGE Enabler.
  2. Grant superuser rights and agree to change how Selinux works.
  3. If the device is supported, the main application menu will open.
  4. Click "Enable USB MASS STORAGE".

Increase

Now, when connected to a PC, the phone or tablet will appear as a drive. To connect in MTP or PTP mode, just restart the device. Once you're done with mass storage mode, go back into the app and disable USB MASS STORAGE.