What does debug mode mean when connecting usb. Application for USB debugging on a tablet

Mode USB debugging is a feature of the Android operating system that is designed for application developers. However, quite often it is necessary and ordinary users. Typically, the need to enable this mode appears when the installation is not original firmware or data backup.

IN this material we will look at two ways to enable USB debugging mode on Android phone or tablet. The first method is the main one; it works on most modern devices. The second method will be relevant for devices with older versions of Android.

Basic Method to Enable USB Debugging Mode on Android

First, we will describe the main way to enable USB debugging mode on Android. This method works on all Android devices with Android versions such as 4.0, 5.0, 6.0 and 7.0. If you have Android with the original shell from Google, then you will have everything as in the screenshots below. If you have a different shell, for example, a shell from the manufacturer, then there may be slight differences. But, in general, everything is almost the same.

Step No. 1. Enable developer mode.

So, in order to enable USB debugging mode on Android, you first need. To do this, open the Android settings, scroll through them to the very end, and open the “About phone” section there (well, or the “About tablet” section, if you have Tablet PC, not the phone).

After opening the “About phone” section, you need to scroll through all the settings again to the very end. There will be a line called "Build Number". In order to enable developer mode, you need to quickly click several times in a row on the line with information about the build number.

After 5-10 quick clicks, a message will appear stating that you have become a developer. This means that a “For Developers” section has appeared in the settings and you can now enable USB debugging mode.

If developer mode has already been enabled, then you will see a message that “you are already a developer” and you do not need to enable anything, this also means that the “For Developers” section is active and can be opened.

Step #2: Enable USB Debugging Mode.

Once developer mode is enabled, you can proceed to enable USB debugging mode. To do this, return to the main Android settings menu and scroll to the very end of the list. Now, next to the “About phone” section, the “For Developers” section should appear. It is in this section that the USB debugging mode is located, so feel free to open it.

In the “For Developers” section, you need to scroll through the settings a little in order to get to the “Debugging” block.

Here, at the very top of the “Debugging” settings block, there will be a function called “USB Debugging”. Turn it on and debug mode will work.

Enable USB Debugging Mode on Old Versions of Android

If you have an Android phone with old version Android, for example, Android 2.0, then in your case the USB debugging mode will be turned on completely differently. In older versions of Android, to do this, you need to open the settings, go to the “Applications” section, and then open the “Development” section.

After this, you need to enable USB debugging and confirm the change in settings by clicking on the “Yes” button.

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 shift 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 be more PTP mode, but it's only suitable for photos that could 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.

IN Android settings There are no other parameters 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. Enter modem mode and disable WLAN access point. 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. Also, sometimes a factory reset helps, but before you do it, be sure to back up your data as it will delete your data. 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 Windows devices 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 context menu called by click right click by "Start". In more 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 w3bsit3-dns.com, but if there is nothing, try installing 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, the computer displays a message about the inability to start the device due to incomplete or damaged settings, then 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 the AirDroid application on your phone and access the 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’s 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

When people purchase a mobile device on Android platform, then in most cases they follow fashion, not realizing how much the capabilities of the new device are superior to their previous phone. Most often, owners of new smartphones or tablets use only 10% of all features electronic device. The so-called USB debugging mode, or USB Debugging.

This mode will be interesting for both professionals and ordinary owners, because... allows you to make the following actions(Adb utility (Android Debug Bridge) is also required debug bridge Android), from Android composition SDK):

Make a copy required folder or a partition from the smartphone’s memory on Personal Computer;
- transfer any file from your computer to your smartphone;
- install Android applications;
- commit backup applications;
- reflash your smartphone;
- restore the operation of the electronic mobile device;
- acquire root rights for the Android system.

For clear example Once the USB debugging mode is activated, it will be possible to perform all manipulations on ZTE smartphone V880H with established by the manufacturer mobile operating system Android 4.2.1 Jelly Bean.

To do this you need to follow a few simple steps.

1. Go to “Menu”, find the “Settings” application icon.

2. After that, tap the “Settings” item and find the “For Developers” sub-item.

3. You need to go to this sub-item, select the name “Debugging for USB” from those suggested in it and activate it by checking the box next to it.

4. The next step will be taken by the system, which will ask the user the question “Allow USB debugging?” and write below an explanation of the essence of this mode. You will need to confirm “OK” or click on the word “Cancel”.

5. If “OK” is selected, the USB debugging mode will be enabled and the check mark next to its name will light up.

6. Now the owner will be able to perform the manipulations described above with his device. It should be remembered that they will definitely need the ADB utility (Android Debug Bridge).

So, USB debugging mode is activated, and the user can expand the capabilities of his Android device, which will now become a truly necessary assistant for its owner.



Android is easy to use, but it contains a lot hidden functions For experienced users. Many of them are hidden in the Developer Options menu. As the name suggests, these features are vital for developers developing apps on Android, but they also have benefits for the average user.

One of the most famous features Android developer is USB Debugging. You may have seen this in Settings and wondered if you should enable it. Let's see what this mode is for and whether you need it.

What is USB Debugging?

In short, USB debugging allows an Android device to communicate with a PC under Android control SDK for using advanced operations.

When you develop Android apps, you need to install the development kit software for Android (SDK) on PC. The SDK includes a set of tools that are vital for any developer, such as a debugger for troubleshooting code problems. Libraries are another key component of the SDK.

This allows developers to do general functions without the need to re-encode them. For example, Android has a built-in printing feature, so when writing an application you don't have to come up with new way print. You simply call the built-in method included in the library when you need to do it.

You can do a lot with Android from the device itself. But developers need more options, especially when collecting detailed error logs. It would be a huge pain to find and move these files manually from the device, so they use the tools built into Android Studio And Android SDK to make them painless.

Enabling USB debugging allows your phone to communicate with your PC so you can take advantage of these tools.

What is USB debugging used for?

Without USB debugging, you can't send any advanced commands to your phone using a USB cable. The most common reason for enabling USB debugging is because developers are running applications on their devices for testing.

Whenever you create new version of your app in Android Studio and want to test it, you can copy it to your connected device in just a few clicks. After assembly, it will launch and immediately appear on your device. It's faster than downloading APK file and installing it manually.

Non-developers usually enable USB debugging to get root rights (super user access or root access) on their phones. Root access varies by device, but most methods involve the program you run from your desktop. Once you enable USB debugging and connect your phone, you can use the root tool to send root instructions to your mobile device without even touching it. Installing a custom ROM involves a similar process.

You will also need to enable USB debugging to use Android commands Debug Bridge (ADB). They allow you to install APKs located on your PC onto your phone, move files back and forth, and view device logs for debugging errors. ADB Commands And fast loading can also be saved to your device even if you can't turn it on normally.

In older versions Android USB Debugging used for some other functions. The most notable of these was taking a screenshot via USB. This was before Android had a standard command for taking a screenshot. Now you just need to hold down your device's button combination (usually: Power and Volume Down) to capture a screenshot - this has eliminated this method.

How to enable USB debugging?

On modern devices On Android, you'll find USB debugging in the Developer Options menu, which is hidden by default. To unlock it, open Settings and scroll down to About Phone. Scroll down the page and you will see an entry with the build number. Tap it a few times and you'll see a notification telling you that you're now a developer.

Go back to Settings and scroll down to the bottom of About Phone. You will see new entry, developer options. Tap it and look for USB Debugging under the Debugging heading. Click on the slider to enable it and confirm Android warning that you understand what this function is for.

That's it - now you just need to connect your phone to your PC using a USB cable. When you do this, you will see a prompt on your phone asking if you want to enable USB debugging for this specific computer. This is a security feature designed to keep your device safe from attacks.

Is USB Debugging Safe?

In theory, with USB debugging enabled, connecting your phone to a public charging port could cause problems. If someone has access to the port, they can steal information from your device or install malicious applications. This is why Android displays a confirmation prompt, so you shouldn't connect to a computer you don't trust. However, an unsuspecting user may accept the invitation without understanding what it is.

Additionally, enabling USB debugging will allow you to manage your device if you lose it. Anyone who finds it can connect your device to their computer and issue commands to it through ADB without knowing your PIN code.

If you don't use ADB regularly and don't connect your Android device to your computer all the time, you shouldn't leave USB debugging enabled all the time. It's okay to turn it on for a few days while you're working on something, but there's no need to turn it on when you're not using it regularly.

How to use USB debugging?

We took a look at what USB debugging does and what you can use it for. So this feature allows you to access advanced Android functions when connected to a PC. USB debugging is vital for developers, but still contains some useful tricks for advanced users. While you should be prepared to turn it on when necessary, I recommend turning it off when you're not using it to increase the security of your device.

Do you have USB debugging enabled or disabled on your phone? What do you use it for? Tell us about it in the comments!

No matter how advanced a smartphone is, it is still a dependent device. In many cases, to work with mobile device a personal computer is still required. In particular, when it comes to mobile development or restoring the device after unsuccessful firmware. For example, if the gadget fails, to reinstall the system you will need a cable (via USB) connection from the smartphone to the PC. In order for the computer to detect your phone or tablet, the device is put into debugging mode. In this article we will try to tell you how to enable USB debugging on Android and what else it might be needed for.

What is USB debugging - why is it needed?

If you don't hit technical features, then debug mode (this mode is also called debug mode) is a feature of Android gadgets created for testing new software products. Developers use it to evaluate the performance of their applications.

USB debugging allows you to perform the following tasks:

  1. Testing and verifying applications before releasing them to the Play Market.
  2. Obtaining ROOT rights (hacking) of a mobile device.
  3. Copying files from the root directory of the operating system.
  4. Installing software from third party sources.
  5. Installation unofficial firmware Android.
  6. Creation backup copies devices (data archiving).

Debugging mode can be used to restore the firmware if, for example, it does not work correctly or the phone stops turning on.

How to enable USB debugging mode on Android

Enabling USB debugging from a phone or tablet is done through the settings menu. This option is usually found in the developer options or accessibility menu.

Often this menu item is hidden so that ordinary users cannot switch to debugging mode and do not disrupt the operation of the system. Typically, famous manufacturers like Samsung or HTC resort to this, while Chinese manufacturers allow you to enable USB debugging mode on your smartphone without any questions asked.

If you own a device from Samsung or any other major brand that hides debugging access, then you will have to do the following:

  • Open system settings.
  • Go to the “About phone” submenu.
  • Click on the system build number until the device switches you to developer status.
  • In the new status, you can again try to go to the section with options for developers and enable USB debugging.

Enable USB debugging via computer

This method will be useful for those users whose devices for some reason do not have a touchscreen, the screen is broken, or there is no way to connect a USB mouse.

Often, to switch to debugging mode, you need to connect your smartphone or tablet to your computer. To do this you will have to use a nearby additional tools and be patient.

So, to go to this mode You need to do the following via your computer ( this method Suitable for all versions of Android, including 5.0, 6.0, 7.0 and higher):

  • First you need to download the Platform-Tools and QtADB-CWM files (this is Recovery files to restore devices).
  • Move these files to root directory computer to drive C.
  • Download the Sqlite3 archive and move it to the Sqlite3_Windows directory on drive C (you need to create it yourself).
  • We put the gadget into recovery mode and connect it to the computer.
  • Run the previously downloaded QtADB.exe file.
  • After opening the program, find the Advanced sub-item there and make sure that data folder was connected to the computer. The command line in the application will respond with Ready.
  • Then open the “Files” submenu. It is divided into two separate file manager. In the left FM we open the Sqlite3_Windows directory, which was created before, and in the right FM we open the /data/data/com.andoid.providers.settings/databases directory in Android.
  • Find the settings.db file in the right FM and drag it to the left.
  • Then open the Start menu, select Run and enter cmd there.
  • Will start command line Windows.
  • You need to enter the following commands one by one:

cd C:\Sqlite3_Windows (to activate the command, press “Enter”)

sqlite3 settings.db (to activate the command, press “Enter”)

update secure set value=1 where name=‘adb_enabled’ (to activate the command, press “Enter”)

Quit (to activate the command, press “Enter”)

  • Go back to the QtADB application and update the data in the left panel.
  • After updating, drag the settings.db file back to right side, where he was before.
  • The program will ask if you need to replace existing file– we agree.
  • That's all. The phone can be used in debugging mode.

What should I do if, after enabling USB debugging, the device is still not detected?

Unfortunately, USB debugging does not always work. Often, even after switching to this mode, the device does not function properly in it. Why might this happen and what measures should be taken to solve the problem?

  • Make sure you have the correct one installed Android driver Debug Bridge. It can be found on Google's dedicated website. operating system Android. For different devices Different sets of drivers are available. If there is no specific driver for your device, then you can use a universal one.
  • Make sure your device is recognized by your computer. If the cable or port is damaged, then the device may not be displayed in the system at all, and, naturally, there can be no talk of any debugging mode in this case.
  • USB debugging may not work properly on devices running unofficial firmware.

Conclusion

That's all, actually. Now you know how to enable USB debugging mode on Android. As you can see, if you strictly follow the instructions, then performing this procedure is not so difficult. The main thing is not to get lost and download everything in advance necessary files. In most cases, the methods described above are only needed by developers and testers, but there are situations in which ordinary users also have to work with this mode, so it is better to familiarize yourself with how to enable it.