Enable USB debugging The method is suitable for many Android-devices OS and firmware:
Android Description of the problem:
It happens that for various reasons (the screen is broken, the touchscreen does not work, there is no possibility to connect a USB mouse), it is impossible to turn on USB debugging in the device. Faced with such a problem, I propose a solution and the necessary tools with which I managed to solve this problem.The main condition is that your device should already have a custom Recovery installed.
(CWM or TWRP), which will provide full root access to the device.There have been actions:
1. On the PC, unpack the root of the C: \ drive:platform-tools.zip
In the C: \ Sqlite3_Windows folder previously created in the root of the C: \ folder, unpack:Sqlite3.zip
2. Download the device to the recovery mode (using CWM or TWRP) and connect it to the PC.
3. Run QtADB.exe. If the program asks, then show her the path to adb.exe.
4. Press the "Advanced" button and make sure that the / data partition is mounted:
5. Press the "Files" button, in the left pane, open the C: / Sqlite3_Windows / folder and in the right pane / data/data/com.android.providers.settings/databases/ folder, then drag / copy the settings.db file from the right pane to the left:
6. On the PC, run the command line (cmd.exe) and execute the commands in turn:
cd C: \ Sqlite3_Windows (press the Enter button)
sqlite3 settings.db (press Enter)
update secure set value = 1 where name = 'adb_enabled'; (press the Enter button)
.quit (press Enter)
7.In the QtADB window, update the left panel and drag / copy the edited settings.db file to its place in the right panel with overwriting.
8. After the device is rebooted, it will be possible to work with it in the regular mode using the QtADB programs,Adb
, MyPhoneExplorer and others.Instructions for Android 6/7/8
Starting with Android 6, Google added a multi-user mode to the OS and increased security measures. In this regard, the system settings parameters stored in the Secure, System and Global tables werecarried over
from the settings.db database to separate xml files along the way/ data / system / users / 0 /
and now the procedure for enabling USB debugging using custom recovery is much simpler (sqlite3.exe for Windows is no longer required).
In the right panel of QtADB, go to the specified path, open with the text editor settings_global.xml, find the line with the name adb_enabled and set the value 1 (instead of 0) in the field value = "1"
p.s. If someone has other ways to solve this problem, you are welcome to share your experience!Post has been editedvitaly51370 - 29.02.20, 18:02
Reason for editing: Instructions for Android 6/7/8