How iOS 16 Restricts USB Accessories When Locked

Apple’s iOS 16 includes a vital security feature called USB Restricted Mode, designed to safeguard user data by disabling data communication through the Lightning or USB-C port when the device is locked. This article explains how iOS 16 automatically blocks unauthorized hardware connections, the specific security threats it prevents, and how users can configure these settings on their iPhone.

What Is USB Restricted Mode?

USB Restricted Mode prevents wired accessories—such as external drives, accessories, and computer connections—from establishing a data connection with an iPhone while it is locked. When active, the physical port still allows the device to charge from power adapters, but it completely cuts off data transfer protocols until the correct passcode is entered.

How the Restriction Works in iOS 16

In iOS 16, the system monitors the lock state of the device and enforces the following protocols:

  • The One-Hour Timer: If your iPhone has been locked for more than one hour, iOS 16 automatically severs the data connection through the port. To connect a computer or an accessory afterward, you must first unlock the iPhone.
  • New Accessory Prompts: Even within the one-hour window, connecting certain accessories for the first time prompts an on-screen dialog asking you to unlock your iPhone to allow the accessory to connect.
  • Emergency Override Protections: If you invoke Emergency SOS (by pressing the side button and volume buttons), USB Restricted Mode activates immediately, bypassing the standard one-hour grace period to secure the device instantly.

The Security Threat: Forensic Extraction Tools

The primary reason Apple implements this restriction is to defeat brute-force passcode cracking hardware, such as tools developed by GrayKey and Cellebrite. Law enforcement agencies and bad actors use these specialized devices via physical cable connections to bypass iOS security limits. By cutting off the data lines at the hardware controller level, iOS 16 prevents these boxes from communicating with the operating system to guess passcodes repeatedly.

Additionally, the feature guards against "juice jacking"—a cyber attack where public USB charging kiosks covertly download data or install malware onto connected devices.

How to Manage the Setting

By default, iOS 16 enables this protection by disabling access to USB accessories when the screen is locked. You can verify or modify this configuration through the system settings:

  1. Open the Settings app on your iPhone.
  2. Tap Face ID & Passcode (or Touch ID & Passcode).
  3. Enter your device passcode.
  4. Scroll down to the Allow Access When Locked section.
  5. Locate USB Accessories.
  • Toggle Disabled (Default & Recommended): USB accessories cannot transfer data if your iPhone has been locked for over an hour.
  • Toggle Enabled: Accessories can connect to data at any time, even when the device remains locked indefinitely, significantly lowering your physical security.