Enable usb on android 4.2 2. Turn on USB debugging on Android yourself. What is OEM Factory Unlock

There are many ways to get root access to your phone, but almost all of them require you to enable usb debugging. There are also many other operations that need to be enabled. You can learn more about what USB debugging is, why you need it and how to enable it from this article.

So what is this option for?

This function is required to test the operation of applications and services of the Android operating system. This service is called ADB. To check and configure applications, this service supports many service functions that are not needed and even unnecessary in the normal operation of a smartphone, which is why this option is enabled separately.

So how do you enable USB debugging?

Although we have one operating system - Android, this option can be located in many different places, therefore let's describe them all so that you don't have any difficulties with enabling this function on any device.

  1. We go along the path: Menu - Settings - Development - Debugging via USB and mark this item with a tick.
  2. The item is located at: Menu - Settings - For Developers - Debugging via USB - tick this item.
  3. We go along the path: Menu - Settings - Applications - Debugging via USB - mark this item with a tick.
  4. Menu - Settings - More - Developer options - USB debugging - put a daw in front of this item.
  5. Most likely option. We follow the path Menu - Settings - About device - look for the item "Build number" and press it several times until the message "Mode for developers is enabled" appears. After that, we return to the settings and go to the For Developers item, where, in fact, we mark the “USB Debugging” checkbox.






Further actions


After enabling this option, you will have full control over the device from your computer. At the first connection, after which a confirmation dialog will appear on the gadget's screen, you will be asked whether you trust the computer from which the control will be performed or not. It is worth ticking the box "Always allow debugging from this computer", so as not to bother yourself in the future every time you connect the device to the computer. Now you have full access to the operating system, and you can perform any action and enter any commands available under the ADB protocol.

But what if you followed the instructions, but the device is not detected by the computer?


First of all, you need to check if the drivers are installed on your device and, if necessary, install or update them. Also, in order to avoid glitches, it is worth unlocking the device and connecting it only to the USB 2.0 interface, since some problems are possible with 3.0.
If you have done everything correctly, but the connection with the computer is still not established, then you should change the method of connecting to the computer. To do this, reconnect the device using a USB cable, pull out the shutter and click on the USB connection item, and then select the PTP mode. If, in this case, nothing works, or you simply do not have a USB cable at hand, but there is a Wi-Fi network, then you can try using it.

Connecting a device using WI-Fi

First you need to get an IP address and the port of your gadget that is connected to the Wi-Fi network. This can be done using the ADB Wireless program, which is available completely free on Google Play. After launching this application, click on the red button, which turns into green, then the connection will start. Below you can see some service information.

After that, on the computer, press the Start + R combination, in the window that appears, write cmd and press Enter. A command prompt window will appear, in which you will need to enter adb connect "device IP address and connection port". Now you can take full advantage of the ADB protocol.

A few more words about ADB

Adb is a console application for PC through which you can debug Android gadgets or emulators. Works according to the client-server scheme. On first startup, a system service is created that listens for commands that are sent to port 5037 (subject to change). ADB will allow you to:

  • Work with logs;
  • View the list of connected devices;
  • Copy files;
  • Install applications;
  • Work with the data section;
  • Work with different scripts;
  • Manage various hidden OS options.

ADB you can download together with the SDK, but if you are not a developer (which is more likely the case, because a developer would hardly read these lines), then you better download adb separately, because the full package weighs quite a lot.

Many people ask how to enable (or, on the contrary, disable) "USB debugging" in Android 4.2 and 4.4.

In theory, "USB debugging" is enabled here:

Settings -\u003e Applications -\u003e Development -\u003e USB debugging (set flag).

However, starting with Android 4.2, the Development menu item is initially missing. However, it can be turned on.

You need to go to Settings -\u003e About phone (or About tablet) and tap 7 times on the item "Build number". If everything works out, they will tell you that you have become a developer, and you will have a corresponding menu item.

And if you quickly click on the line "Android version" 7 times, you will see interesting things.

After turning on the USB debugging mode, you can work with the device using the ADB utility. After that, such opportunities as viewing debug messages, installing and removing programs using ADB and other useful things will become available. Also, some methods of getting root privileges require enabling USB debugging. However, the enabled USB debugging mode will prevent you from accessing the tablet memory like a simple flash drive.

At the same time we will solve and problem with writing to external sd card.

How I got tired of this eternal "cry of Yaroslavna" about the problems with writing files to an external sd-card for Android 4.4 and advice from sofa experts about the obligatory application of the patch, rutting and other things. Lord, what cretins live in this world. In fact, everything is simple and logical: starting with Android 4.4 non-system applications are prohibited from writing to someone else's folder, and in your own, respectively, you can. At the same time - you will laugh - "own" folder is recognized simply by the NAME of the folder, which must match the name of the application. Simple and tasteful.

The authors of applications that have a brain have taken this into account for a long time and corrected everything. And for applications of headless hands-on authors (like Yandex developers, for example) the owner of the device has a head and hands. You have? Fine, I'll tell you now how to fix everything, using the example of fucking Yandex Maps:

1. First, we need to find out the key name (ID) of the application. We go to the #Google Play Store, open the page of the desired application and see this most key name (ID) in the address bar, in our case from “https: //play.google.co...d\u003dru.yandex.yandexmaps” is clear, that the name (ID) of the application is “ru.yandex.yandexmaps”

2. Create through the system file manager (which comes with the official firmware and can write and delete anything on the card anywhere) a folder for the data of our application in the format “/ storage / sdcard1 / Android / data / myappname” - in our case with cards Yandex will be “/storage/sdcard1/Android/data/ru.yandex.yandexmaps”.

3. Launch the application and specify the created folder in it, if necessary (in the case of Yandex cards, this is required) - restart the application.

4. We get profit - Yandex maps are downloaded and saved to an external flash card in the location we specified.

And so for any application - without any root!

At the same time, an ordinary (non-system) application cannot access other people's data - which, in theory, should make it very difficult to steal your data from you using spyware built into seemingly harmless utilities and games. Rutting and rolling a patch that removes this protection accordingly throws you back to the times of previous versions and leaves you without protection, so it's better not to indulge in this, but use the method I described.

In many instructions for getting root rights and modifying firmware, you need to enable USB debugging. What is USB Debugging and what it is for and how to enable it, you can learn from this article.

What is USB Debugging for?

USB debugging is used to use the service for debugging applications and devices on Android OS (check how the application and the system as a whole work and what failures occurred) which is called.

What is OEM Factory Unlock?

Starting with Android 5.0, many manufacturers began to implement an additional security mechanism against unauthorized changes to system partitions. As a result, the "OEM Factory Unlock" function was introduced into the "Developer Menu" section, when activated, you can flash third-party Recovery and custom firmwares.

Do not confuse OEM Factory Unlock with Bootloader unlock, which is required by many manufacturers - Xiaomi, HTC, Huawei, Google Pixel, Sony.

Android developer menu

« USB debugging"And" OEM Factory Unlock"Are all in one hidden section of Android settings, called" Developer Menu". To see this section, you need to follow a simple activation procedure.

How do I enable USB debugging?

In absolutely all Android devices, regardless of whether it is a smartphone or tablet, USB debugging is in Menu -> Settings

Possible location options

Despite that, USB debugging is in the settings, but the location options in the menu can be different and have several options for how to find it! Let's consider 6 possible options.

Option # 1 for Android 4.2 - Android 7.1:

Menu -\u003e Settings -\u003e About smartphone / About tablet -\u003e Build number and click on it about 7 - 10 times, then return to Settings -\u003e For Developers -\u003e

Option number 2.1 for Xiaomi (new MIUI versions)

Menu -\u003e Settings -\u003e About phone-\u003e MIUI version and click on it about 7-10 times, then go back to Settings -\u003e Advanced -\u003e For Developers -\u003e USB debugging - check the box.

Option number 2.2 for Xiaomi (old MIUI versions)

Menu -\u003e Settings -\u003e General -\u003e About smartphone / About tablet -\u003e Build number and click on it about 7 - 10 times, then return to Settings -\u003e For Developers -\u003e USB debugging - check the box.

Option # 3 for Android 8.X and higher:

On Android 8.0 and newer, the settings were slightly updated and now, to get to the developer menu and enable "USB debugging", you need to: go to System -\u003e About device (tablet / phone) -\u003e Click 5-7 times on Build number "and return back to System -\u003e Developer menu.

For Android versions 1.6 - 4.2

Option number 4:

Menu -\u003e Settings -\u003e Development -\u003e

Option number 5:

Menu -\u003e Settings -\u003e For Developers -\u003e USB debugging - check the box

Option number 6:

Menu -\u003e Settings -\u003e Applications -\u003e Development -\u003e USB Debugging (Android 2.2 - 3.0)

Option number 7:

Menu -\u003e Settings -\u003e More -\u003e Developer Options -\u003e USB Debugging - check the box

Option # 8 for Android 4.2 and higher:

Menu -\u003e Settings -\u003e System -\u003e About smartphone / About tablet -\u003e Build number and click on it about 7-10 times, then return to Settings -\u003e For Developers -\u003e Debugging via USB - check the box

After enabling USB Debugging, authorize your computer! (For Android 4.2 and above)

When you first connect to a computer and enter some command or get Root rights, you will be prompted to trust the computer to which Android is now connected! This request will appear on any new computer or laptop! Check the box and click OK.

USB debugging is enabled.

Is USB debugging enabled and Android device is not detected?

The first thing you need to believe is the presence of installed drivers to your computer or reinstall / update them. Details on installing drivers, as well as links to fresh drivers, can be found in the article - How. Another problem that Android is not detected is that it is in locked state - unlock your smartphone or tablet! Don't use the port USB 3.0, only USB 2.0 .

If you still can't install USB debugging with a computer, then you should try changing the way you connect to a PC. At the moment when you have already connected your smartphone or tablet to the PC, pull the upper information bar "curtain" down -\u003e select USB connection and activate PTP mode.

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

What is debugging for

Initially, this mode was intended exclusively for developers of applications or services for Android. With the help of debugging, they got access to the "internals" of the operating system.

But later, more and more cases began to occur when the debug mode is also needed by "simple" users. It's just that the developers created automated tools for getting root (), restoring a smartphone, modifying the OS that required a debug mode.

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

How to enable debugging

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

In early versions of Android, developer options are available explicitly and openly. Just open system preferences. In different versions, the developer options section may be located in different places: in the general list, in the Applications section, in the main menu.

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

You do not need to overload your smartphone to activate this mode.

What if the required section is not visible?

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

  • Open the settings menu and the "General" tab
  • Find the section "About device"
  • Open the item "Software Information" in it
  • Find the line "Build number" in it and tap on it 7 times
  • After the notification about obtaining the developer status appears, return to the "General" section
  • Find the "Developer options" item that appears in it
  • Find the line "USB debugging" in this section and put a tick there
  • Exit the menu

Congratulations, you now have access to your device via your computer!

Cases where debugging saves

Any Android user has a situation where debugging is desperate. It's good that you followed the instructions from the previous section and activated it. Now you can:

  • Get root access on your smartphone / tablet using special applications for your computer. For this, enabled debugging is required.
  • Retrieve data from a device that does not have a display. We devoted a separate article to this problem.
  • Recover device if it doesn't boot. To do this, you need to use special utilities, which may differ for different devices and chipsets. Look for more information specifically about your model.
  • Work with the command line on a 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 (Android Debug Bridge) program must be installed on the computer, which allows you to issue commands to the Android environment on the connected device. For it, there is both a graphical interface and a set of console commands that are sent through the command line.

In general, if you want to get the most out of the functionality of your Android tablet or smartphone, the debug mode will be extremely useful to you.

USB debugging is used by mobile app developers on all android platforms: 7.0 Nougat, 6.0 Marshmallow, 5.1 Lollipop, 5.0 Lollipop, 4.4W KitKat, 4.4, 4.3 Jelly Bean, 4.2, 4.2.1, 4.2.2, 4.1, 4.0, 4.0.3 , 4.0.4 Ice Cream Sandwich, 3.2 Honeycomb, 3.1, 3.0, 2.3, 2.3.3, 2.3.4 Gingerbread, 2.2 Froyo, 2.1 Eclair, 2.0.1, 2.0, 1.6 Donut, 1.5 Cupcake, 1.1 Banana Bread, 1.0 Apple Pie

This allows them to transfer files and even run some scripts directly from their phone, smartphone or tablet (plus many other features).

This mode was created to make it easier for the android to identify and interact with the computer when creating an application.

If you want to enable USB debugging mode, for example, in phones xiaomi mi5, samsung galaxy s3, htc, lenovo a536, lg g2, meizu, asus zenfone, miui, lenovo, fly, sony, alkatel, explay, note 2, miui 8 first you need to determine the version of android.

There is not much difference, but in newer versions, you will need to become a device developer first.

In the old, this function is already enabled and you only need to enable it. Let's take a closer look now and start with new versions.

How to enable USB debugging on Android 4.2 and higher

Starting from version 4.2 and higher, the USB setting is hidden, so let's make it visible at first.

To do this, scroll to the bottom of the screen until you see the line "About device" or "About phone" (depending on the version, in some phones there may even be "More" and "Basic").

After that, get to the parameter "Build number", and then, depending on the version, click on this parameter 7 times - until you see the message that you are a developer.

In newer versions, for example, android 6.0 and higher, you need to click on "Software Information" before that.

Now you will have the item "Build number" and you need to click on it 4 times until a message appears that the developer mode is enabled.

Now go back to settings. There is already a new item "Developer options" - click on it.

How to enable USB debugging on Android 4.1 - 3.0

If your Android phone is in the 3.0 - 4.1 range, enabling USB debugging is much easier. Just click the Settings button, go to Developer Options and select USB Debugging and then turn it on.

If there are some differences between you, they are so minimal that you can easily figure it out on your own. I do not provide pictures due to the lack of old versions.

Enabling USB debugging on Android 2.3 or earlier

If you are using android 2.3 or older version, you can enable USB debugging as follows: "Settings" -\u003e "Applications" -\u003e "Development -\u003e" USB debugging "

The steps are pretty simple, right? You can easily do it all quickly yourself, and if something does not work out comments for help. Good luck.