HACKER Q&A
📣 mahathu

Has anyone successfully recovered photos from a broken Android phone?


The topic of data recovery from broken phones seems to be a prime target from SEO optimised blogspam so I'm posting here in hopes that someone had a similar issue in the past and may be able to help me out.

I am tasked with restoring some photos from a Huawei P30 that has a broken screen/touchpad. The photos were stored on the device directly, unfortunately not on an SD card or on a cloud provider. The phone does still turn on (it vibrates when plugged into a power outlet and shows up on Windows). However, it's only showing an installer for HiSuite (which did not help), not the file system. USB debugging is enabled.

Things I tried so far and didn't work:

- shining a flashlight at the screen to see if only the backlight is broken (it seems the whole screen is done for) - eyeballing it and trying to blindly enter the passcode - connecting phone to external monitor and keyboard via USB-C -> HDMI (monitor stays black)

Is there anything that may still have a chance of working short of replacing the screen to unlock the phone? Thanks and happy holidays.


  👤 AussieWog93 Accepted Answer ✓
If USB Debugging is enabled, you should be fine.

The first thing you'll need is Google's platform tools, as well as a compatible ADB driver for your device if you're on Windows.

Then, you can use `adb pull` to copy data from the phone's filesystem to Windows.

Edit: another commenter rightly pointed out that this might not work when your phone is locked.

A quick search found some really interesting tools in this thread here (srcpy especially seems amazing!): https://stackoverflow.com/questions/29072501/how-to-unlock-a...


👤 david_allison
Unlocking the phone will resolve the issue (once you have ADB access, you're golden). A USB keyboard + numpad can enter a PIN, the issue is finding the key combination to press 'enter'.

* See if you can turn on talkback (typically pressing both volume buttons for 3 seconds, 2 times). This should provide you with enough information about what's happening on the screen to unlock it.

* Once you have the phone unlocked, connect to a bluetooth keyboard. This will free up the USB port for ADB

* You need to accept a confirmation dialog to pair via ADB

EDIT: `adb shell` may be able to input keypresses with an unverified device. My normal device isn't recognised at all over USB currently so I can't test.


👤 0x53
This is how I did it. I borrow a phone that was the exact same model as mine, then hooked up a usb keyboard and memorized the exact series of steps needed to launch a remote screen viewing program. One thing that made this easier was using the google play store to remotely install the screen viewing program. Then I typed out the exact series of key presses that I needed to turn it on. Took me like 4 tries to type in the lock screen password and get the screen mirroring started.

👤 CommanderData
Yes. Phone was encrypted and so was the sd. I tried everything like adb, tapping hoping I'd mount as usb, remote deployment of some type of remote software, hdmi output (I think at the time I spent money on a hub too) but nothing worked, this continued over months.

I decided it'd be cheaper and save time to just buy a new screen. I thought of doing it myself but decided against it because my photos were too valuable. Everything only cost me about £45.

Had a local guy fit the thing for me and in the end I also had a working phone. Moral of the story for me was to set up my Google services so they sync my photos.

Fun fact, oled screens aren't as expensive as I thought and some repair shops won't let you supply a screen either.


👤 giancarlostoro
I almost want to suggest to find the cheapest version of the same phone or finding the cheapest screen for it somewhere. Then replacing the screen just long enough to get the files out. This is also a valuable lesson on why you backup things.

👤 rukshn
I plugged in a mouse with a usb to micro usb / usbc adapter to my broken Huwawei Nova 2i

This gives a cursor (yes a windows like cursor) on your phone screen that you can move and click which imitates the touch.

I selected my files and sent it over to my computer with WiFi direct. I had to install a 3rd party app on my phone to act it as a server so I can connect from my computer and download.

There are plenty of apps like that on the play store. But I don’t know what I’d have done if the screen was completely broken.

In my case the screen was heavily cracked and touch wasn’t working but it was viewable.


👤 maremmano
You should try something like this:

https://www.amazon.it/gp/product/B08C741R65/ref=ppx_yo_dt_b_...

Not all USB-C -> HDMI connectors work properly. This works with Huawei P20 Pro

I suggest this before going with the USB debugging way (using the android console and tools)


👤 izacus
Phone storage on Android has been encrypted for years, so recovering it without unlocking the phone isn't really possible. Since you said USB-C to HDMI adapter doesn't work, you'll need to fix the screen to decrypt the storage and make a backup.

👤 melony
Assuming your phone's standard IOs and UIs are truly borked, if you can find an electronics engineer, ask them if they are familiar with JTAG. If your version of Android is old enough, you can pluck out the data unencrypted by soldering directly to the chip debug pins.

Something like

https://www.martview-forum.com/threads/repair-boot-huawei-p3...

Or

https://forum.gsmhosting.com/vbb/f672/huawei-p30-lite-mar-lx...


👤 simne
Most smartphones now have USBOTG, mean, limited usb host, so You could try to connect ordinary usb mouse with simple cheap connector "microusb otg" or in Your case, "USB-C otg", and it will emulate touchscreen (just appear mouse coursor and than interface will work very like Apple single-button mouse interface, sure multitouch gestures will not work, or attached to other buttons/dial).

You only need somehow turn on smartphone, so it will boot system and show SYSTEM login/lock screen.

BTW I'm not sure, what You talked about "pin code". I mean, classically, smartphone boot Android, and it have running usb-otg drivers, etc. But exists "feature-phones", like samsungs with "secure-boot" included directly into SoC, so it's boot loader have some interactivity with very limited interface (like grub), and it does not have usb drivers/etc. I usually avoid such interfaces, prefer to use less secure, but more reliable stock Android.

Other options need to do some things before crash - install app, install alternative boot, activate developer mode, backup all to cloud.

Good luck!


👤 Larrikin
It won't help if your screen is totally dead but I got a hairline fracture in an old Sony phone that made the touch part stop working. When I took it in to the shop I learned if you plug in a corded mouse to the charging port of an Android phone, a mouse will show on screen.

Everything on my phone was already backed up but it did let me wipe the phone completely. Nice feature that I'm sure most people never even think to use.


👤 nneonneo
If you can run adb shell, you should also be able to run sendevent, which lets you inject touch events into the screen. Coupled with screencap to capture screen contents, you have a way to fully remote control your phone from a connected computer.

Ages ago, I implemented a really simple program to screenshot the screen periodically and inject touch events via adb shell commands: https://github.com/nneonneo/android_remote_control. I used this successfully to recover all of the data off of a OnePlus with a broken touchscreen. I believe scrcpy, linked in other threads, is probably a better supported and more mature implementation of this idea, so you should probably try that first. Nevertheless, my little project should demonstrate that it’s possible to implement this kind of control without too much coding effort.


👤 lordnacho
The screen might not be expensive. I got quoted about 30 quid once for an old Honor View 10, which I was surprised about.

👤 throwaway554785
I recovered my partner's photos and notes from her Samsung phone when she dropped it and the screen broke.

Spoilers: I had to replace the screen.

I had already flashed Lineage OS on it, but this was not helpful.

I first tried to mount the userdata via ADB shell (via LineageOS Recovery or another recovery), but was unable to. AIUI, the recoveries don't have support for Samsung encryption.

Second attempt was to try to boot to GUI, then control the GUI over ADB using scrcpy. This required USB debugging enabled, but I was unable to enable this.

Final attempt was to buy a replacement screen, and follow a YouTube video to replace it.

This was new to me, but it worked. I needed a kit of mobile phone repair prying tools ($15), the screen ($100) and patience.

I've since enabled backups on my partner's phone. :)


👤 felixg3
I did exactly that with a usb-c dock connected to an android smartphone to operate the keyboard. It was good enough for unlocking it. The screen partially worked, it was good enough to bypass the Passcode. A mouse works, too.

👤 stefanos82
I personally use my USB cable, the same that charges my phone and plug it on my desktop computer (Linux) and access my Internal storage directly from there; that's really it!

👤 zdware
You mentioned USB debugging is enabled, any luck connecting up via ADB and poking around? If `adb shell` and trying to look at the filesystem doesn't work, maybe try this out to unlock the phone https://github.com/oberien/adb-remote-control

👤 greatjack613
If adb is enabled on the phone you can try using WebADB - https://webadb.com to pull data from the phone. It includes a file browser that allows you to see and pull files from the phone as well as a web based version of scrcpy.

👤 codingrightnow
Have you tried hooking it up to a dock and plugging in a monitor cable and keyboard/mouse?

👤 camhart
I had success buying a usb-c hub, that contained an hdmi output and 2x usb. This allowed me to use a monitor, keyboard, and mouse to use the device. Not all android phones support hdmi out though.

👤 badrabbit
I have done that but adb didn't work for me. I just a phone of the same model and moved the mainboard to the new phone. More expensive solution if others don't pan out.

👤 johnchristopher
While we are on the subject:

Is it easy/recommended to look into creating backup with borg ? Can I regularly backup up an android phone like I do with my laptop ?


👤 gricardo99
somewhat related, anyone have advice for data recovery from old external USB drives?

I have a couple western digital USB drives, about 10 years old. they show up as a drive when plugged into a Mac or windows laptop but they disconnect when trying to navigate the folders or open/copy files.


👤 greggarious
If you can get to a point you can read it as a generic usb mass storage, try Photorec.

👤 ThePowerOfFuet
Replace the display.

If the data is not worth the cost of the replacement display, walk away.


👤 mustafabisic1
Far from my expertise, but I had some luck with recovering some old photos from an Android which was factory reseted.

Used a common software.

Hopefully someone with more knowledge will pick it up and help you.