Complete failure of the sensor on a broken screen of an Android smartphone instantly blocks access to the settings menu, making it impossible to manually enable USB debugging to save data or control the device via a computer.

However, physical damage to the display does not always mean a complete loss of control over the system. Android operating system is built on a flexible architecture that, under certain conditions, allows you to interact with the device through external peripheral devices. If the phone responds to charging or the display backlight works, there is a chance to restore control. In this article we will look at working methods, from connecting manipulators to using console utilities.

Before starting any manipulations, it is necessary to assess the extent of damage. If the matrix is ​​completely black and there are no signs of life, the methods described below may not work without first repairing the video output. But if there is an image, albeit with cracks, and the problem is only in the touchscreen, then the solution lies in the field of hardware expansion of ports or software intervention through ADB.

Using a USB OTG adapter and a computer mouse

The easiest and most reliable way to gain control of a smartphone with a non-working sensor is to connect a regular computer mouse. To do this you will need a special adapter called USB OTG (On-The-Go). This small cable allows you to turn your phone's charging port into a full-fledged USB host to which you can connect peripherals.

Most modern smartphones based on Android support this function out of the box. As soon as you connect the mouse via the OTG adapter, a cursor will appear on the device screen. This makes it possible to fully navigate the interface: open the notification shade, go to settings and activate the necessary options. You do not need to install anything, the system itself recognizes the input device.

⚠️ Attention: Some budget models or older devices may not support powering external accessories through the port. If the mouse does not light up and the cursor does not appear, try connecting the phone to the charger via an OTG splitter with additional power.

With the cursor on the screen, you can easily follow the path Settings → About phone → Build numberby clicking on it seven times to unlock the developer menu. After this, an item USB debuggingwill appear there, which can be activated with a regular mouse click. This is the safest method that does not require installing third-party software.

📊 What type of connector does your smartphone have?
Micro-USB
USB Type-C
Lightning (not Android)
I don’t know

Connecting a keyboard for navigation without a touchscreen

If you don’t have a mouse at hand, but have a regular USB keyboard, you can also connect it via an OTG adapter. Keyboard control can be even more effective for advanced users, as it allows you to use hotkeys to quickly navigate through the settings menu Android.

The main cursor and interface control keys are standardized. The arrows allow you to move focus between menu items, and the key Enter simulates a press (click). This is especially convenient if the screen is so broken that the mouse cursor is difficult to see or is covered by cracks.

  • 🖱️ Directional arrows - move focus across interface elements.
  • ✅ Enter key - confirmation of action (analogous to touch).
  • 🔙 Esc key - go back or close the menu.
  • 🏠 Home key - go to the main screen (does not work on all firmware).

Using the keyboard, you can quickly get to the developer section. Enter the word “debugging” in the settings search (if you have access to the search via the keyboard) or manually scroll through the menu. This method often helps out when the touchscreen works partially, but presses randomly on its own (“phantom clicks”), interfering with the normal operation of the mouse.

💡

If you have a wireless mouse or keyboard with a USB receiver, they are also connected via OTG. The radio channel does not require additional drivers on Android.

Connection method via a USB hub with simultaneous charging

One ​​of the main problems when using OTG is rapid battery drain. Connecting a mouse or keyboard consumes the phone's power, and if the recovery session takes too long, the device may turn off at the most inopportune moment. The solution to this problem is to use an active USB hub.

The active hub has its own port for connecting a power supply. The connection diagram is as follows: a mouse/keyboard is inserted into the hub, a charger is connected to the power port of the hub, and the hub itself is connected to the smartphone. Thus, you get full control over the device and simultaneously recharge the battery.

Adapter type Charging capability Mouse support Recommended scenario
Simple OTG cable No Yes Short-term operations
OTG with two ports Yes (passive) Yes Connecting a flash drive and charging
Active USB hub Yes (from the network) Yes Long-term work with data

Using a hub is critical if you plan to transfer large amounts of data to your computer after debugging is enabled. Stable power will prevent sudden shutdowns that could damage the file system. Make sure the power supply is supplying enough current, usually 5V/2A 5V/2A.

Remote control via Scrcpy and ADB

If you previously had USB debugging enabled but you just can't click the "Allow" button on the pop-up due to a broken screen, situation becomes more complicated. However, there is a utility Scrcpythat allows you to broadcast the phone screen to a computer and control it using the mouse and keyboard of a PC.

For this method to work, you must install the package on your computer Android SDK Platform-tools. After connecting the phone to the PC with a cable, launch the command line in the folder with the utility. If the device is detected, you will see its serial number. The command to start the broadcast looks simple.

scrcpy --no-audio

After launch, a window with an image of the smartphone screen will appear on the computer monitor. You can click on this window and the actions will be transferred to your phone. This is an ideal way to confirm debugging permission if required, or to simply copy files without touching the damaged device itself.

What to do if Scrcpy says "device unauthorized"?

If you see an unauthorized device message and the screen is so broken that you can't click "OK", try connecting your phone to the same computer it was previously connected to. Sometimes the system remembers the RSA key fingerprint and allows the connection automatically without asking for confirmation.

⚠️ Attention: The Scrcpy method works ONLY if USB debugging has already been enabled previously. It is impossible to enable it for the first time without access to the screen through this method, since confirmation is required on the device itself.

This tool is the de facto standard for developers and service engineers. It provides minimal latency and high image quality. If you don't have a graphical shell installed for ADB, using the command line may seem complicated, but the results are worth it.

Using ADB debug commands to emulate touches

For advanced users who don't want or can't use a mouse, there is the option of emulating touches directly through the console. The utility ADB (Android Debug Bridge) allows you to send input commands that simulate finger touches at certain screen coordinates.

This method requires knowledge of the approximate location of elements on the screen. You will have to experimentally select the X and Y coordinates for the desired buttons. First, check the connection with the device with the command adb devices. If the device is visible, you can proceed to sending commands.

The command syntax for simulating a touch is as follows:

adb shell input tap X Y

Where X and Y are the coordinates of a point on the screen in pixels. For example, to click on the center of the screen with a resolution 1920×1080, the command will be adb shell input tap 960 540. You can use this technique to sequentially open settings and activate debugging if you know the layout of your firmware menu.

💡

The input tap command allows you to click anywhere on the screen, but requires exact knowledge of the coordinates. For swipes, use the command input swipe X1 Y1 X2 Y2.

You can also use the command adb shell input keyevent to press hardware buttons. For example, the code 3 corresponds to the “Home” button, and the code 4 corresponds to the “Back” button. This helps to navigate the system without knowing the exact coordinates of the buttons on the screen.

Hardware solutions and service connectors

In cases where software methods do not help, but data is needed urgently, you have to turn to hardware solutions. Some service centers use special boxes and programmers that connect to test points on the phone board, allowing you to read data directly from the memory chip or enable diagnostic mode.

There are also universal test displays that technicians connect to the smartphone board instead of a broken screen. This allows you to temporarily get a full image and a working sensor to enable debugging, make a backup copy, or unlock the device. This is the most reliable, but also the most expensive option.

  • 🔌 Connecting a test monitor via HDMI (for phones with video output support).
  • 🛠️ Temporary replacement of the touchscreen in a service center to access data.
  • 💾 Direct memory reading (Chip-off) - last resort if the power controller is damaged.

Some flagship models Samsung or Huawei support image output to an external monitor via USB-C. If you have a USB-C to HDMI adapter, you can connect your phone to your TV. The image will appear on the big screen, and if you have a mouse connected through the same hub, you will be able to control the phone while looking at the TV.

⚠️ Attention: Image output via HDMI does not work on all models. Typically, only flagship devices have this feature. Budget smartphones often do not have a video output, even if the USB Type-C port is visually suitable.

Frequently asked questions about restoring access (FAQ)

Is it possible to enable USB debugging if the phone does not turn on at all?

No, if the phone does not turn on (black screen, no vibration, no response for charging), software methods are powerless. The power circuit needs to be repaired or the battery replaced before attempting to access data.

Will the mouse work via OTG on a locked screen?

Yes, the cursor will appear, but you will not be able to enter a pattern or PIN code with the mouse, since the input field often does not support this type of navigation. However, you can try to enter the code if you have a USB keyboard with a numeric keypad.

Will connecting to a computer delete my data?

No, simply connecting a cable or mouse will not delete the data. However, if you decide to do a Hard Reset through the Recovery Menu, all data will be lost. Be careful when navigating.

Why does the computer not see the phone when connected with a cable?

If debugging is not enabled, the phone can only be detected as a charger. An on-screen confirmation is required to transfer data. Try the mouse method via OTG to change the USB mode from “Charge Only” to “File Transfer”.

Is there a risk of damaging the phone when connecting third-party devices?

When using certified OTG adapters, the risk is minimal. Poor quality cables can cause a power surge, so avoid cheap no-name accessories when working with important devices.