WHEN THE GLASS IS GONE

The screen is broken.
The data is not.

A phone with a dead display is usually a working computer you have lost the controls to. First preserve the copies that may already exist; then give it a usable display, audio, or a temporary replacement screen so you can unlock it yourself.

Find your case → What to buy

Your own device · Nothing here bypasses a lock · No exploit, no brute force

READ THIS FIRST

You cannot use ADB to turn on ADB.

If USB debugging is switched off, adb cannot reach the phone at all — no typing, no tapping, no screenshots. That is deliberate. If a computer could enable debugging without somebody agreeing on the handset, every stolen phone would be an open book. So the first job is never software: it is getting a working display and pointer in front of the phone, so you can flip that switch yourself.

THREE QUESTIONS, ONE PATH

Work out which case you are in.

The answer changes completely depending on what still works. Check these in order — the first "yes" is your route.

CASE A

Debugging is already on

Plug the phone in and run adb devices on the computer. If it prints your serial followed by device, you are done looking — skip to Already on. If it prints unauthorized, the phone is showing a permission dialog you must accept, which needs a display.

CASE B

Part of the screen still shows

Cracked but partly lit, or the display works and only touch is dead. A USB-C OTG adapter and any wired mouse gives you a pointer. Cheapest route by far. See OTG mouse.

CASE C

The display shows nothing at all

Black, shattered beyond reading, or the panel is dead. First check the copies that may already exist, then try USB-C video even if the phone is not Samsung. If it has no video output, use the no-display paths.

ON THE COMPUTER, NOT THE PHONE

Install the toolkit while you wait.

Everything below runs on the computer the phone will be plugged into. One line, no sudo, on Linux or macOS, or in a WSL terminal on Windows. Nothing here touches the phone.

curl -fsSL https://raw.githubusercontent.com/nikolareljin/android-device-rescue-kit/main/install.sh | bash

It installs into your home directory and gives you one command, adrescue. Start with adrescue probe, which says immediately whether the phone has already authorised this computer. Full notes, including Windows USB passthrough, are in the installation guide.

CASE A

Debugging already on: drive it from the computer.

If adb devices reports device, the broken glass stops mattering. You can see the phone and control it entirely from your keyboard.

Run adrescue probe first. It immediately reports whether the phone has already authorised this computer; it never changes any phone setting. If it says unauthorized, accept the RSA prompt on the phone before continuing.

The best tool for this is scrcpy, which mirrors the screen into a window and passes your mouse and keyboard through. It is free, open source, and does this one job well:

scrcpy

Without it, the raw commands do the same thing more slowly:

adb exec-out screencap -p > screen.png
adb shell input text 1234
adb shell input keyevent 66
adb shell input tap 540 1200

Take a screenshot, look at it on the computer, work out where to tap, tap it, screenshot again. Tedious, but it works with no extra hardware. input text types your own passcode; keyevent 66 is Enter.

Nothing here guesses or bypasses a passcode. You supply one you already know, exactly as if you were tapping it in.

CASE C — THE ONE THAT USUALLY WORKS

Give the phone a monitor.

Many Android phones can output video through their USB-C port. Connect one to a monitor or TV, add a mouse, and the whole phone appears on the big screen — lock screen included. From there you unlock it and enable USB debugging by hand.

Will your phone do it?

The feature is DisplayPort Alt Mode over USB-C. It is not universal. Not having Samsung DeX does not mean the phone cannot show a picture: DeX is Samsung's desktop interface, while other phones can simply mirror their screen. Check the exact model's manufacturer specifications, then try a known-good cable or powered hub.

The procedure

  1. Charge the phone first. Driving a display eats battery, and a hub that passes power through solves this. If you have no powered hub, start above 50%.
  2. Connect the phone to the monitor. USB-C to HDMI cable straight into the TV or monitor, or a USB-C hub with an HDMI port. Switch the monitor to that input.
  3. Watch for a picture. On a Samsung, DeX usually starts on its own and the monitor shows a desktop. On other phones you normally get a mirror of the phone screen. If nothing appears after ten seconds, try the other end of the cable, a different HDMI port, and then a different adapter — cheap adapters that only carry charge are common.
  4. Add a mouse. Plug a wired USB mouse into the hub, or into the phone through a USB-C OTG adapter. A pointer appears. A keyboard is optional but makes typing a passcode far easier.
  5. Unlock the phone on the big screen with the mouse, or by typing the passcode on the keyboard.
  6. Enable developer options and USB debugging — the taps are in the next section.
  7. Connect the phone to your computer and accept the Allow USB debugging? dialog when it appears on the monitor. Tick Always allow from this computer.
  8. Confirm on the computer:
adb devices

When that prints your serial and device, the phone is reachable and the rest of this toolkit works normally. You can unplug the monitor at that point — scrcpy will show you the screen from now on.

On a Samsung the monitor may show the DeX desktop rather than the phone's own layout. Both reach Settings; the menus sit in different places. If DeX confuses you, look for a way to switch to Screen mirroring in the DeX notification.

WHEN HDMI STAYS BLACK

Protect the photos first; do not try to defeat the lock.

If the phone boots but has no usable panel and no USB-C video output, there is no universal cable, PC program, or button sequence that can enable USB debugging on a new computer. Modern Android protects the files with the lock-screen credential. These are the realistic recovery paths, in the order worth trying.

1 · Look for copies that already left the phone

  1. Keep the phone powered, cool, and on its usual Wi-Fi. Do not reboot it unnecessarily. If Google Photos backup was already enabled, it can continue uploading after the phone is unlocked; sign in from another device at Google Photos and save what is already there. Check the account's storage quota and the newest upload date.
  2. Check other services already configured on this phone: the manufacturer's gallery cloud, OneDrive camera upload, Dropbox, Amazon Photos, a NAS app, or a messaging app's media backup. This is a read-only check from another signed-in device; do not use remote erase or reset features.
  3. Keep any evidence of what is missing. Compare the most recent photo/video date in the cloud with the last known date on the phone. That tells a repair shop exactly what still needs recovering.

Cloud backup only helps if it was enabled before the break and the phone can get online. Never assume an empty cloud library means the on-phone files are gone.

2 · Check for a removable microSD card

Power the phone off only if its manual says the card can be removed safely while powered. Remove a portable microSD card, put it in a quality card reader, and copy it read-only first to a computer or a second drive. Look for DCIM, Pictures, Movies, and app media folders. Do not format or let the computer "fix" the card.

If Android had set up the card as internal/adopted storage, it is encrypted for that phone and a reader will not expose the photos. Put it back in the original phone and proceed with another route.

3 · Use an accessibility path only if it was already available

A wired keyboard and USB audio adapter through a powered hub can make a previously configured screen reader usable without a panel. If the owner had enabled the Android accessibility volume-key shortcut, holding both volume keys — or pressing Ctrl + Alt + Z on an attached keyboard — can start its assigned service. TalkBack then speaks focused controls, and the owner can unlock and navigate Settings with the keyboard.

This is not a reliable blind recipe: manufacturers vary, the shortcut has to have been enabled, and a first-use confirmation may still need a display. Use it only when the owner recognizes TalkBack and can follow its audio; otherwise go directly to a temporary-screen repair. Android documents the shortcut and its keyboard equivalent in its accessibility-shortcut guide.

4 · Ask for a data-preserving, temporary screen repair

This is usually the best answer for a booting phone with neither video-out nor an existing accessibility route. Ask a reputable repair shop to connect a known-good compatible display/digitizer, or repair the display path without replacing the mainboard, factory-resetting, flashing, unlocking the bootloader, or accepting any wipe prompt. Be explicit that the sole goal is to unlock the phone yourself, enable USB debugging, and run adrescue photos before any permanent repair.

Bring the passcode yourself; do not disclose it. Stay present while the phone is unlocked. If the shop says a reset, bootloader unlock, firmware flash, or board swap is required, stop and get a second opinion—those actions can make the original encrypted data unavailable.

Once you regain control

  1. Unlock with the owner's credential.
  2. Enable Developer options and USB debugging as described in Turning on USB debugging; accept the RSA prompt for the backup computer.
  3. Immediately run adrescue photos /mnt/rescue/photos. It verifies each copied photo and video against the device.
  4. Make a second copy of the completed backup before attempting any repair, update, or troubleshooting.

CASE B — THE CHEAP ONE

A mouse, if you can still see something.

If the display lights up at all — even a cracked corner — a USB mouse may be all you need. Android has supported pointers for years and needs no setup.

  1. Plug a USB-C OTG adapter into the phone.
  2. Plug any wired USB mouse into the adapter. A pointer appears on the phone's own screen within a second or two.
  3. Click and drag with the mouse exactly as you would touch. Right-click is Back.
  4. Add a keyboard through a hub if you need to type a long passcode.

This does nothing for a completely dark display — you still cannot see where the pointer is. In that case go to External display.

Many phones charge and take a mouse at the same time only through a powered hub. A plain OTG adapter occupies the port on its own.

THE SWITCH ITSELF

Turning on USB debugging.

Once you can see and click, this is the sequence. Wording varies a little by manufacturer and Android version.

  1. Open Settings.
  2. About phone. On a Samsung, then Software information.
  3. Tap Build number seven times. A counter appears; keep going until it says developer mode has been turned on.
  4. Enter the passcode if asked.
  5. Go back to Settings, then Developer options — usually near the bottom, or under System.
  6. Turn on USB debugging and confirm the warning.
  7. Connect the phone to your computer. A dialog asks Allow USB debugging? — tick Always allow from this computer and accept. That tick is what lets the phone work later without a screen.

While you are there and can still see the screen, consider also turning on Stay awake in Developer options. It keeps the display on while charging, which makes everything afterwards easier. This toolkit sets that same option temporarily during the steps that need you, and puts it back.

SAVE YOURSELF THE TIME

Things that sound like they would work, and do not.

Find My Device

Locates, rings, locks and erases. It cannot unlock a phone or show you its screen.

Recovery mode

Reachable with hardware buttons, but it runs a separate minimal system. It gives no ADB access to your installed Android and no way to enable debugging there.

Fastboot or Odin

Flashing tools. They cannot switch on a setting inside the running system, and unlocking a bootloader wipes the device — destroying exactly what you are trying to recover.

Wireless casting

Miracast, Smart View, Chromecast — all need you to start them from the phone's screen first. Circular, unless it was already set up before the break.

Wireless ADB

adb pair over Wi-Fi still requires USB debugging to be on and a pairing code read off the phone's display.

"Enable ADB" software or data-recovery dongles

A program cannot grant itself USB debugging or read a locked phone's encrypted storage. Treat claims that it can as a warning sign, especially if it asks for the passcode or a factory reset.

Bootloader unlock or flashing

These normally erase user data by design. Do not use fastboot, OEM unlocking, rooting, recovery flashing, or a firmware tool while photos are the priority.

A screen replacement first

Sometimes the right answer — but a shop may reset the device, and a swap can trip anti-theft protection. Pull your data off first if any of these routes work.

WHAT TO BUY

Four cheap things, and where to get them.

Nothing here is specialised or expensive. The links are searches, not individual listings — specific products go out of stock and their pages die, and a dead link in a recovery guide is worse than no link. Every search below lands on the right category in that shop.

1 · USB-C hub with HDMI and power — the one to buy if you buy one thing

HDMI out, at least one USB-A socket for the mouse, and pass-through charging so the phone does not flatten itself. Look for 4K 30Hz or better and PD or power delivery in the description.

2 · USB-C to HDMI cable — simpler, no charging

One cable, phone to monitor. Fine for a short session on a well-charged phone, and the cheapest way to find out whether your phone outputs video at all.

3 · USB-C OTG adapter — for the mouse-only route

A thumb-sized USB-C plug with a USB-A socket. Buy a two-pack; they are trivially cheap and easy to lose.

4 · A wired USB mouse, and optionally a keyboard

Any wired mouse works. Wired avoids a pairing dance you cannot see. A cheap wired keyboard makes entering a long passcode much easier.

Shop links are provided for convenience only. Nothing here is sponsored and no affiliate codes are used. Buy wherever you like — the important thing is the category, not the brand.

ONCE YOU ARE IN

Back up before anything else.

A phone reachable over ADB may not stay that way — batteries die, cables fail, and a cracked panel gets worse. Take the data off first, verify it, and only then think about repairs. Start with adrescue photos, which copies every photo and video and checks each one against the phone before it reports success.