sodcalculator

10 Tech How-To

Unlock iPhone USB Accessories Without Password

Guide 10-36890 · Updated · Step by step

If you’ve forgotten your iPhone passcode and your device is locked, you’ll see a prompt saying “Unlock iPhone to Use Accessories” when you plug in a USB device like a charger, computer, or car stereo. This guide explains how to allow USB accessories to connect when you’re locked out, using the built-in USB Restricted Mode settings. You’ll need your iPhone, the USB accessory, and possibly a computer with iTunes or Finder for the last-resort method.

What You’ll Need

  • Your iPhone (with the forgotten passcode)
  • The USB accessory you want to use (charger, computer, car, etc.)
  • A computer with the latest version of iTunes (Windows) or Finder (macOS Catalina or later) – only for the recovery method
  • A USB cable that works with your iPhone

Step-by-Step

  1. Connect the USB accessory to your iPhone. Plug the accessory into your iPhone’s Lightning or USB-C port. A pop-up will appear on the screen saying “Unlock iPhone to Use Accessories.”
  2. Tap “Allow” on the lock screen. If your iPhone is running iOS 11.4.1 or later, you’ll see this option. Tapping “Allow” temporarily enables USB access for that specific connection. However, if you don’t remember your passcode, you cannot unlock the phone to confirm. The “Allow” button only appears after you’ve entered your passcode at least once since the last reboot.
  3. If you haven’t entered your passcode since restart, plug into power first. If your iPhone was recently restarted, USB accessories are blocked until you unlock the phone once. In that case, plug the iPhone into a wall charger (not a computer) and wait for the lock screen to show the “Emergency” and “Cancel” buttons. Enter any passcode attempt (even wrong) to trigger the “Unlock iPhone to Use Accessories” prompt on the next USB connection.
  4. Use the “Trust This Computer” prompt (if connected to a computer). When you connect to a computer, you’ll see “Trust This Computer?” – tap “Trust” if you can. But if you can’t unlock, you won’t be able to tap it. So this step only works if you know the passcode.
  5. If you cannot unlock at all, use Recovery Mode to erase the iPhone. This is the only way to regain access when you’ve forgotten the passcode. Connect your iPhone to a computer, put it into recovery mode (see steps below), and restore it. This will delete the passcode and all data on the device.
  6. After the restore, set up your iPhone as new. You’ll be able to use USB accessories normally again, but you’ll lose all data unless you have a backup.

Common Mistakes

  • Thinking “Allow” works without unlocking. The “Allow” button doesn’t bypass the passcode; it only works after you’ve unlocked the phone at least once since the last restart.
  • Plugging into a computer before unlocking. If you’ve never unlocked after a reboot, the computer won’t recognize the iPhone, and the “Trust” prompt won’t appear. Always try a wall charger first.
  • Forgetting that USB Restricted Mode is automatic. iOS automatically blocks USB accessories after an hour of being locked, unless you’ve connected an accessory recently. This is a security feature, not a bug.
  • Attempting to guess the passcode repeatedly. After too many wrong attempts, your iPhone will be disabled for increasing time periods, and eventually you’ll be forced to erase it.

Tips

  • Use a wall charger for basic charging. Charging via a wall adapter doesn’t require unlocking – it always works, even if USB accessories are blocked.
  • If you have a Mac or PC with iTunes, you can back up your iPhone before restoring. But if you can’t unlock, you can’t back up. So always back up regularly before you forget your passcode.
  • Consider using a password manager. To avoid future lockouts, store your passcode in a secure password manager.
  • Use Face ID or Touch ID to unlock quickly. If you have biometrics enabled, you can unlock with your face or fingerprint, which also enables USB accessories.

Troubleshooting

No prompt appears when connecting a USB accessory. First, make sure your iPhone is powered on and the screen is awake. Try a different cable or port. If you’re using a computer, try a different USB port. Also, check if your iPhone is in “Do Not Disturb” or silent mode – it doesn’t affect the prompt, but it might be off-screen. If the phone is disabled (shows “iPhone is disabled, try again in X minutes”), you’ll need to wait or restore.

The “Allow” button is grayed out. This happens when you haven’t unlocked the phone since the last restart. You must unlock once (even with a wrong passcode) to enable the button. If you can’t, you’ll need to restore.

Your computer says “iPhone is locked” and won’t sync. That’s expected. You can’t sync or transfer files without unlocking. The only fix is to restore the device, which erases it.

You’ve tried many passcodes and now the iPhone is disabled. Stop trying. Wait for the disabled timer to expire, or connect to a computer and restore. If you have an iCloud backup, you can restore from that after erasing.

Frequently Asked Questions

Can I bypass the passcode to use USB accessories without erasing? No. Apple’s security measures prevent any bypass. The only way to regain full access is to erase the iPhone via recovery mode, which removes the passcode.

Will connecting to a computer erase my data? Only if you choose to restore. If you just connect, it won’t erase anything, but you can’t access the data without unlocking.

Does the “Allow” button work for car stereos? Yes, it works for any USB accessory, but again, you need to unlock the phone first. If you haven’t unlocked since reboot, it won’t work.

Can I use Siri to unlock the phone? No, Siri is disabled on the lock screen unless you’ve enabled “Siri when locked” in settings, and even then, Siri can’t bypass the passcode.

How long does USB Restricted Mode last? It activates after an hour of being locked. If you connect an accessory within that hour, it may work, but after that, you’ll need to unlock.

What if I have a backup on iCloud? After restoring, you can restore from iCloud backup, but the passcode will still be required if the backup is encrypted with a passcode. You’ll need to know that passcode.

Related

General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.

More in this bed

The whole Tech How-To bed →