You can back up an Android phone to your PC even if you don't remember your lock screen password

A forgotten password doesn't lock you out of backing up your data. If your phone is already connected to a PC you've used before, or if you can unlock it through your Google account, you have working paths forward. The method depends on whether your phone will respond to your Google credentials or whether you need to use a PC that your phone already trusts.

The fastest route is usually signing in with your Google account on the phone itself — this works even when you've forgotten your pattern, PIN, or password. If that's not an option, you can use Android Debug Bridge (ADB) on a Windows or Mac computer to back up your data without unlocking the phone, provided your phone has USB debugging enabled or you can enable it.

Key Takeaways

  • If you remember your Google account password, you can unlock your phone through your Google account and then back up normally through Settings or Google Drive.
  • Android Debug Bridge (ADB) lets you back up your phone through a PC without entering your lock screen password, but requires USB debugging to be turned on beforeli>
  • You must physically connect your phone to the PC with a USB cable and confirm the connection on the phone itself for any backup method to work.
  • If your phone has never been connected to your PC before and USB debugging is off, you may not be able to back up without resetting the phone.
  • Google account recovery through your phone's lock screen is the simplest method if you have access to your email or phone number associated with that account.

Unlocking your phone through your Google account

After several failed password attempts, Android shows a "Forgot password?" link on your lock screen. Tap it and enter the email address and password for the Google account linked to your phone. If you get in this way, your phone is fully unlocked and you can back up normally.

Go to Settings > Google > Manage your Google Account > Backup tab. Toggle on Backup to Google One (or Backup by Google One depending on your Android version). This backs up your contacts, calendar, photos, messages, and app data to your Google account. You can also manually back up to Google Drive by opening the Drive app, tapping your profile picture, and selecting Settings > Backup.

This method works on any Android phone and doesn't require a PC at all — your data goes to Google's servers and you can restore it to any Android phone later by signing in with the same account.

Using Android Debug Bridge if you have USB debugging on

Android Debug Bridge (ADB) is a command-line tool that lets your PC communicate with your phone at a low level, bypassing the lock screen. If USB debugging was already turned on before you forgot your password, you can use ADB to back up your phone's data without unlocking it.

First, download the Android SDK Platform Tools from Google's official site (search "Android SDK Platform Tools download"). Extract the folder to a known location on your PC — for example, C:\android-sdk-tools on Windows or ~/android-sdk-tools on Mac. Connect your phone to your PC with a USB cable. On your phone, you should see a prompt asking whether to allow USB debugging from this computer — tap Allow or OK. If you don't see this prompt, USB debugging is not enabled and this method won't work.

On Windows, open Command Prompt in the Platform Tools folder by holding Shift and right-clicking inside the extracted folder, then selecting Open command window here. On Mac, open Terminal and type cd ~/android-sdk-tools (or wherever you extracted it). Type adb backup -all -f backup.ab and press Enter. Your phone will show a backup screen — tap Back up my data. The backup file (backup.ab) will save to your Platform Tools folder. This file contains your apps, settings, and data but not your photos or videos.

Backing up photos and files through USB if the lock screen is off

If your phone's lock screen is off or you've disabled it temporarily, you can copy photos, videos, and documents directly to your PC through the USB connection. Connect your phone to your PC with a USB cable. On your phone, swipe down from the top and tap the USB notification, then select File Transfer or MTP (Media Transfer Protocol).

On Windows, open File Explorer and look for your phone under This PC. On Mac, download and install Android File Transfer, then open it — your phone will appear as a device. Navigate to DCIM for photos and videos, or Documents for files. Drag and drop them to a folder on your PC. This method only copies files, not app data or settings, but it's the fastest way to preserve your photos and documents if you can't unlock the phone.

What to do if USB debugging is off and you can't unlock the phone

If USB debugging was never turned on and you can't access your Google account, your options narrow. Some phones allow you to enable USB debugging from the lock screen if you have the right combination of taps or if you can access Emergency mode, but this varies by manufacturer and Android version.

Contact your phone's manufacturer (Samsung, Google, OnePlus, etc.) with proof of ownership — usually your receipt or the phone's IMEI number, which you can find by dialing *#06# on the phone itself. They can sometimes remotely enable USB debugging or walk you through a manufacturer-specific recovery process. If that doesn't work, you may need to perform a factory reset through Recovery mode, which erases all data on the phone but lets you set it up fresh. Instructions for entering Recovery mode vary by phone — search "[Your phone model] recovery mode" for the exact key combination.

Preventing this situation in the future

Once you've backed up your data and regained access to your phone, turn on automatic backups so you don't lose data again. Go to Settings > Google > Manage your Google Account > Backup and toggle on Backup to Google One. This runs automatically whenever your phone is plugged in and connected to Wi-Fi.

Write down your Google account password and store it somewhere safe — not on your phone. If you use a password manager like Bitwarden or 1Password, store it there. Enable two-factor authentication on your Google account so that even if someone learns your password, they can't sign in without your phone. Finally, connect your phone to your PC regularly and enable USB debugging in Settings > Developer Options (tap Build Number seven times in About Phone to unlock Developer Options). This ensures that if you forget your password again, you'll have a working backup method.

Frequently Asked Questions

Can I back up my phone if I've never connected it to this PC before?

Only if USB debugging is already on or if you can unlock the phone through your Google account. If both are off and you can't unlock the lock screen, your PC won't recognize the phone as a trusted device and you won't be able to use ADB. Your only option then is to contact your phone's manufacturer or perform a factory reset.

Will backing up through ADB include my photos and videos?

No. The ADB backup command backs up apps, settings, and app data, but not photos or videos stored in your phone's camera folder. To back up photos, you need to either unlock the phone and use Google Photos, or enable File Transfer mode and copy them manually to your PC.

What's the difference between backing up to Google and backing up to my PC?

Google backups store your data on Google's servers and work across any Android phone — you can restore to a different phone by signing in with your account. PC backups create a file on your computer that you can only restore to the same phone or through specialized tools. Google backups are easier, but PC backups give you a local copy you control.

If I reset my phone to unlock it, will I lose everything?

Yes. A factory reset erases all data on the phone. Only do this if you've already backed up your data through one of the methods above, or if you're willing to lose everything. After the reset, you can sign in with your Google account and restore your backed-up data.

How long does an ADB backup take?

It depends on how much data you have, but typically 5 to 15 minutes for a phone with several apps and settings. Keep your phone plugged in and don't disconnect the USB cable until the backup finishes — the command prompt will show a completion message when it's done.