How to get your files off an Android phone with a broken screen – for free


Android ADB

Jack Wallen/ZDNET

Follow ZDNET: Add us as a preferred source on Google.


ZDNET’s key takeaways

  • As long as your Android phone can power on, you can extract files from it.
  • Using the command-line ADB tool gives you plenty of power.
  • ADB is free and can be used on Linux, MacOS, and Windows.

Have you ever dropped your phone and realized, as it fell in slow motion to the concrete below, that something bad was about to happen?

You pick up the device to see a spiderweb of cracks running across the display. No matter how you touch the screen, the phone simply won’t react.

Gasp! What do you do? 

You’ll do one of three things: take it to a repair shop, attempt to fix it yourself, or get a new phone. If your screen is shattered, you probably can’t even turn on Repair Mode.

Also: I’ve used Android Auto with Gemini for 2 months now – it’s transformed my drives in 4 ways

But what if you need to get some files off that device immediately? Maybe your resume was on that phone, and a recruiter has requested a copy tout de suite. How do you pull off that little feat?

You have options. First, if you have access to a MacBook, iMac, or Mac Studio, you could use MacDroid to retrieve that file. If you don’t have access to an Apple device, you may have to turn to ADB, which stands for Android Debug Bridge, a command-line tool that enables you to communicate with and control your device from a computer.

Sounds a bit daunting? I’ll show you how to use this tool.

ADB can be installed on Linux, MacOS, and Windows, and it works the same across all three platforms. I’m going to install it on Pop!_OS Linux, then walk you through the commands to grab that file from your phone.

Are you ready for this?

How to install ADB

I’m going to demonstrate this on a Ubuntu-based Linux distribution. If you use MacOS or Windows, you can download and install the Android SDK. You can also download the source file for the SDK from that same site, but I want to show you an easier way.

First, open your terminal window app on Linux.


Show more

From the terminal window, issue the following command to install the necessary software:


Show more

sudo apt-get install adb android-tools-adb android-tools-fastboot -y

You then have to enable Developer Options on your Android device. This is done by opening Settings, going to “About phone,” scrolling to the bottom of the page, and tapping “Build number” seven times, at which point you should see a notification indicating that you are now a developer.

Fun times.


Show more

Go to Settings > “Developer options” and look for USB Debugging. Tap the On/Off slider for USB Debugging until it’s in the On position.


Show more

Android ADB

You have to enable USB debugging; otherwise, ADB won’t be able to see your phone.

Screenshot by Jack Wallen/ZDNET

Plug your phone into your computer.


Show more

Back at the terminal window, issue the command:


Show more

adb devices

You should see something like this in the output:

List of devices attached

47081FDAP003XV device

Also: How to enter Safe Mode on your Android phone – and when’s the right time to do it

Congratulations, ADB can see your device. Now, let me show you how to download that file onto your PC.

Downloading a file with ADB

It’s actually quite simple. The only caveat is that you have to know where your file is stored on your device. 

Let’s say the file is named resume.pdf and is stored in the Documents folder, which should be something like this:

/storage/emulated/0/Documents

To download that file to the Documents folder on your PC, the command would be:

adb pull /storage/emulated/0/Documents/resume.pdf ~/Documents

And that’s it!

But what do you do if you don’t know the file’s location? ADB has you covered. Issue the command:

adb shell ls

This will print out a list of all the directories on your phone. You could then issue:

adb shell ls storage

You should see:

emulated

self

Issue the command:

adb shell ls storage/emulated

You should see something like:

0

11

obb

You see where this goes. Keep searching with the adb shell ls command until you find the exact location of your file, and then pull it to your PC. 

Also: How to turn on Private DNS Mode on Android – and why it’s a must for security

You can view the entire list of ADB commands on Linux with the command:

man adb

Congratulations, you now know how to grab files from an Android phone, so long as that device can power on.





Source link

Leave a Reply

Subscribe to Our Newsletter

Get our latest articles delivered straight to your inbox. No spam, we promise.

Recent Reviews






Google is experimenting with a new policy restricting the amount of free storage provided to some accounts. New Google accounts (including new Gmail accounts) created in certain regions will be limited to 5GB of free storage when they’re first set up. That’s only one-third of the amount of storage that has been typically offered. There is a way of increasing the amount of free storage you get when setting up a new account, though: you can unlock it by linking your phone number.

When approached for comment by Android Authority, a Google spokesperson confirmed that the new policy was being tested to “help us continue to provide a high-quality storage service to our users, while encouraging users to improve their account security and data recovery.” The statement didn’t clarify which regions the policy is being tested in, nor for how long the testing period will last.

Notably, a Google One Help support page about account storage has been updated to state that each Google account contains “up to 15 GB of storage”, as noted by 9to5Google. Previously, the page didn’t say “up to”; it simply stated that accounts come with 15 GB of storage. So far, the experiment doesn’t appear to stretch to pre-existing accounts.

Per a screenshot shared by Reddit user Sungusungu on R/DeGoogle (a subreddit dedicated to finding alternatives to Google services and products) Google is collecting phone numbers to make sure that the full 15 GB of storage is only redeemed once per person. Of course, that’s easily evaded by using a burner phone to set up multiple accounts, should you want to. The pop-up directs users to a webpage to learn more about storage management. However, at the time of writing, the link redirects to the help center landing page instead.

How to link your Google account with a phone number

If you’re in the process of setting up a new Google account in an impacted region, then you might be prompted with the option of unlocking an extra 10 GB of storage using your phone number via a simple pop-up menu. If so, you can go ahead and follow those steps. However, if you want to link your phone number with a pre-existing Google account, then here’s what you need to do. Using your computer, you need to:

  1. Open your browser and head to myaccount.google.com, then navigate to “Security and sign in” on the left-hand toolbar. This should open a list of security options.

  2. Select “Use your phone to sign in” and then “Set it up”. 

  3. Add a phone number using the “Recovery phone” option.

  4. Follow the on-screen steps to verify your number and finish linking it to your account.

Your options might look a little different if you already have a recovery number set up with your account.

Alternatively, you can connect a phone number to your Google account from your Android device, iPhone, or iPad. Much like on a computer, you connect your number by adding it as a recovery phone. First, head over to myaccount.google.com. Then select “Personal info”, followed by “Phone”. From there, you should be able to add or edit your phone number by navigating to the “Recovery phone” section.





Source link