How to Enable Usb On Phone

How to Enable Usb On Phone

As you know, the debugging mode via USB has recently been activated not only by developers, but also by ordinary users. Someone uses it to connect a computer mouse to the device, and someone uses it to transfer files from the phone. Everyone knows that a smartphone is a rather fragile device, so breaking a display on it is simple. In addition, a person may experience a system malfunction or breakdown. If any of this happened, it is simply impossible to put the device into the desired mode. Let’s figure out how to enable USB debugging on a locked Android phone.

Page navigation:

What is USB debugging for?

USB debugging is mainly used by developers to test applications, evaluate the stability of the operating system and check for failures. An ordinary person can also activate the mode in question to remove system programs from a smartphone or transfer files and folders. Details about the purpose of the function can be found below:

  • Obtaining root rights;
  • Installing another firmware or updating an existing one on the phone;
  • Recovering a device after a system failure or error;
  • Installation of special applications;
  • System capabilities management;

As you can see the mode is applied in all areas, both by ordinary people and developers. The phone can turn into a “brick” whenever you want, so everyone should know the principle of enabling USB debugging.

When this instruction comes in handy

The instructions below will come in handy if your smartphone or tablet has stopped working normally. Most often this happens due to a device crash, system failure or display damage. Note that for the successful completion of the manual, custom recovery must be installed on the phone.

Not many people know, but each Android device has a recovery menu that allows you to carry out various actions with your smartphone. For example, reset the phone to factory settings, remove viruses or update firmware. By default, each device is equipped with Stock Recovery, installed by the manufacturer from the factory. Some users install Custom Recovery, that is, a recovery menu containing a number of additional features. The most common types of custom recovery are TWRP and CWM.

If stock recovery is installed on your smartphone, then you should not be upset. The article will also consider a way to enable debugging by USB on almost any device. There is only one caveat. It is desirable to have a wireless USB mouse, as well as an OTG cable.

Enable USB debugging on a locked phone

Before proceeding to the manual itself, we note that the presented method requires a computer, as well as a MicroUSB cable. We recommend to be patient and attentive in order to prevent mistakes. The main thing is to follow the instructions of the manual step by step, and not to skip any steps.

Instructions for Android 5.1 and below

First of all, start the computer and load two files on it: “platform-tools.Zip” and “QtADB-cwm_edition.Zip”. Unpack the downloaded archives into the root folder of drive C. To do this, right-click on the file and select “Extract files“. In line “Extraction path»Specify the root folder of drive C, that is C: \. At the end, we start the procedure by pressing the “OK“.

Now in the root directory of drive C create a folder called “Sqlite3_Windows“.

It will need to unpack the archive “Sqlite3.Zip”, which is pre-downloaded to the computer. As in the previous case, right-click on the file, then select “Extract files“, Specify the path and start the process with the”OK“.

Read more:  How to Take a Screenshot on Xiaomi Phone

We return to the smartphone. It must be transferred to Recovery mode, which is done differently depending on the model and manufacturer:

  • Samsung At the same time, hold down the “Home”, The volume up key and the power button.
  • HTC Hold the power button and the volume down key.
  • At the same time, press the power button and volume up key.
  • Hold the power button and the volume up key.
  • Huawei and Honor. At the same time, hold down the power button and the volume down or up key (it all depends on the phone model).

After loading the smartphone in the desired mode, connect it to the computer. To do this, use a regular cable for charging. On pc run the QtADB program. Just go to the folder with the application and double-click to open the file “QtADB.Exe“.

If you need to specify the path to the ADB and AAPT utilities, then click on the “Overview“And select the folder”platform-tools“. It contains the necessary components for launching the program.

In the application, click on the tab “Advanced“And make sure that the partition is mounted / data completed successfully.

Now click on the “Files“And on the left side of the program open the folder”Sqlite3_Windows“, And in the right.”/data/data/com.Android.Providers.Settings/databases/“. Next, move the object “settings.Db»From the smartphone’s memory to the computer.

After completing the copying procedure, run the command prompt on the PC. To do this, open the “Start“And in the search enter”cmd“. Then open the first program from the search results. Now, one by one, we enter the following commands into the command line, after each of which we click on the “Enter“:

  • Cd C: \ Sqlite3_Windows;
  • Sqlite3 settings.Db;
  • Update secure set value = 1 where name = ’adb_enabled’ ;;
  • .Quit;

We return to the program and move the edited file “settings.Db“Back to the smartphone’s memory. We confirm the replacement and disconnect the device from the computer. After completing the procedure, you can start the phone and make sure that USB debugging is activated on it.

Instructions for Android 6 and higher

If Android 6.0 and above is installed on your device, then the principle of actions is simpler. In general, just follow the steps in the steps:

  1. We connect the phone to the computer in recovery mode. Recall that a custom recovery must be installed on the smartphone.
  2. Download the QtADB file manager to the PC using the link above. After that, run it and verify that the partition is mounted / data was successful.
  3. Go to the section “Files“And on the right side of the program indicate the address”/ data / system / users / 0 /“.
  4. We find the file “settings_global.Xml»And using a text editor, open it. In it we find the line “adb_enabled“And change the parameter”value = “0 ″” on the “value = “1 ″“.

At the end, save all the changes and close the programs. We do the same with the smartphone: disconnect it from the computer and start it. If the instructions are followed correctly, USB debugging will be enabled.

Universal instruction without Recovery

The method presented below is suitable for the category of users who do not want to perform complex manipulations with the smartphone. Its main advantage is the lack of need for Custom Recovery. All you need is a few things: an OTG cable, a USB-connected computer mouse, and possibly a TV. If the touchscreen is not working, but the whole screen, go to this instruction:

  1. We connect one end of the OTG cable to the smartphone, and the other connect to the mouse.
  2. Turn on the mouse and check the cursor on the screen.
  3. Using the mouse we go into the settings.
  4. Go to the section “About phone»And several times click on the build number or firmware version. As a result, a tab for developers should appear.
  5. We go to the tab “Advanced settings“, And then to the section”For developers“.
  6. We translate the slider near the item “Debug byUSB»To the right and confirm the inclusion of the regime.
Read more:  How To Open The Back Cover Of A Honor Smartphone

If the screen is broken and nothing is visible on it, then you need to configure the broadcast image from the device’s display to the TV. Read how to connect the phone to the TV in one of our articles. After that, go to the necessary sections to activate debugging via USB.

Sometimes it becomes necessary to disconnect USB ports on a computer or laptop in order to restrict access by connecting flash drives, hard drives and other USB devices. Disconnecting the USB ports will help prevent the connection of any drives that can be used to steal important information or cause a virus to infect your computer and spread malware on your local network.

Restricting access to USB ports

Consider 7 ways, with which you can block USB ports:

  1. Disconnecting USB via BIOS settings
  2. Change registry settings for USB devices
  3. Disabling USB ports in Device Manager
  4. Uninstalling USB controller drivers
  5. Using Microsoft Fix It 50061
  6. Using additional programs
  7. Physical disconnection of USB ports

1. Disabling USB ports through BIOS settings

  1. Enter BIOS settings.
  2. Disable all items related to the USB controller (for example, USB Controller or Legacy USB Support).
  3. After you have made these changes, you need to save the settings and exit the BIOS. This is usually done using the key F10.
  4. Restart your computer and make sure that the USB ports are disconnected.

2. Turning USB drives on and off using the registry editor

If disabling via BIOS does not suit you, you can block access directly to Windows itself using the registry.

  1. Open the start menu. Run, enter the command “regedit“And click OK to open the registry editor.
  2. Go to the next section.

Click “OK”, close the registry editor and restart the computer.

! The above method only works with the installed driver of the USB controller. If, for security reasons, the driver has not been installed, the “Start” parameter can be automatically reset to “3” when the user plugs in a USB drive and Windows installs the driver.

3. Disabling USB ports in the device manager

  1. Right-click on the “A computer“And select” Properties “in the context menu. A window will open in the left part of which you need to click on the link “device Manager“.
  2. In the device manager tree, find the item “USB controllers“And open it.
  3. Disable controllers by right-clicking and selecting the “Disable” menu item.

4. Removing USB controller drivers

Alternatively, you can simply uninstall the USB controller driver to disable ports. But the disadvantage of this method is that when a user connects a USB drive, Windows will check for drivers and if they are absent, it will offer to install the driver. This in turn will open access to the USB device.

5. Prevent users from connecting USB storage devices using an application from Microsoft

Another way to deny access to USB drives is to use Microsoft Fix It 50061 (http://support.Microsoft.com/kb/823732/en. The link may open near the fortress). The essence of this method is that 2 conditions for solving the problem are considered:

  • A USB drive has not yet been installed on the computer
  • USB device is already connected to the computer

In this article, we will not consider this method in detail, especially since you can study it in detail on the Microsoft website using the link above.

It should also be noted that this method is not suitable for all versions of Windows.

6. Using programs to disable / enable access to USB storage devices

There are many programs to prohibit access to USB ports. Consider one of them. The program USB Drive Disabler.

The program has a simple set of settings that allow you to prohibit / allow access to certain drives. USB Drive Disabler also allows you to configure alerts and access levels.

7. Disconnecting USB from the motherboard

Although physically disabling the USB ports on the motherboard is an almost impossible task, you can disable the ports located on the front or top of the computer case by disconnecting the cable that goes to the motherboard. This method will not completely block access to USB ports, but will reduce the likelihood of using drives by inexperienced users and those who are just too lazy to connect devices to the back of the system unit.

Read more:  How To Enable Song Lyrics In Apple Music

! Addition

Deny access to removable media through Group Policy Editor

In modern versions of Windows, it is possible to restrict access to removable storage devices (including USB-drives) using the local group policy editor.

  1. Run gpedit.Msc through the Run window (Win R).
  2. Go to the next branch “Computer configuration. Administrative Templates. System. Access to removable storage devices”
  3. On the right side of the screen, find the option “Removable drives: Prevent reading”.
  4. Activate this parameter (“Enable” position).

This section of the local group policy allows you to configure read, write, and execute access for different classes of removable media.

Now I will teach you how to connect an Android phone via USB to a computer as a drive and thus enable data transfer and transfer information without using a flash drive. Very comfortably.

P, blockquote 1,0,0,0,0.-

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

P, blockquote 2.0,0,0,0.-

Attention! You can ask your question to the specialist at the end of the article.

P, blockquote 3,0,1,0,0.-

  1. What is the MTP mode and where did the USB mode go
  2. Setting up the phone to PC via USB
  3. USB Drive Connection

What is the MTP mode and where did the USB mode go

Prior to Android 4.4 KitKat, it was possible to establish a USB connection as a USB flash drive. The PC saw the device as a removable disk and granted the same rights: the user could transfer files, format the drive and perform other actions.

P, blockquote 4.0,0,0,0.-

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

P, blockquote 5,0,0,0,0.-

Setting up the phone to PC via USB

To control the connection to the computer via USB, you must enable debugging. To do this, add the section “For Developers” to the Android settings (if it is not):

P, blockquote 6.0,0,0,0.-

  1. Open the settings.
  2. Go to the “About phone” or “About device” section.
  3. Find “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).

Click to enlarge

After the section for developers appears in the settings, you can enable USB debugging. The item is called so, so you only need to move the slider to the “On” position and confirm the permission.

P, blockquote 8,0,0,0,0.- Click to enlarge

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

P, blockquote 9,0,0,0,0.-

  • MTP. Transfer any files from a computer to a phone and vice versa.
  • PTP. Transfer photos, as well as transfer files that are not supported in MTP mode.
  • Only charging.

You can save any method or choose a different connection mode each time. When debugging is on, the computer will see the phone in any case.

P, blockquote 10,0,0,0,0.-

USB Drive Connection

If you cannot get used to working with a media player, return to using USB storage mode. For this you need:

P, blockquote 12,0,0,0,0.-

  • Root rights on Android.
  • Installed USB MASS STORAGE Enabler.

Using this method can damage system files. In this case, you will have to reflash Android.

P, blockquote 13,0,0,0,0.-

For Android to connect to the computer as a drive:

P, blockquote 14,0,0,0,0.-

  1. Launch USB MASS STORAGE Enabler.
  2. Grant superuser rights and agree to a change in Selinux.
  3. If the device is supported, the main application menu opens.
  4. Click Enable USB MASS STORAGE.

Increase p, blockquote 15,0,0,0,1.-

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. After completing the drive mode, go back to the application and disconnect the USB MASS STORAGE.