How to Access Controls for USB Restricted Mode in iOS 12 - MacRumors
Skip to Content

How to Access Controls for USB Restricted Mode in iOS 12

by

iOS 12 includes a new feature called USB Restricted Mode, which is designed to make your iPhone and iPad immune to certain hacking techniques used by law enforcement and other potentially malicious entities to gain access to an iOS device.

There are some iPhone access methods that use a USB connection, downloading data from your iPhone (or iPad) through the Lightning connector to crack the passcode.

usbrestrictedmodedefault
iOS 12 prevents this by disabling data access to the Lightning port if it's been more than an hour since your iOS device was last unlocked.

This feature is enabled by default, but there are some situations where you might want to turn it off, such as when using CarPlay to drive long distances when you might not be able to unlock your iPhone for a few hours. Here's how to access the setting:

  1. Open the Settings app.
  2. Choose Touch ID & Passcode or Face ID & Passcode, depending on the device.
  3. Enter your passcode to access the settings. usbrestrictedmodepasscode
  4. Scroll down to the bottom of the app where it says "USB Accessories."
  5. Leave it toggled off to disable access to your iOS device if you want it to refuse USB connections if it's been more than an hour since the iPhone or iPad was unlocked.
  6. Toggle it on if you want USB accessories to be able to connect even if it's been more than an hour since the iPhone or iPad was unlocked. usbrestrictedmodedeactivated

Most people are going to want to leave this toggle in its default off position for extra protection.

In normal usage, most of us unlock our iPhones every hour or two, and if you do need to plug your iPhone or iPad into a computer to access it, you can just enter your passcode to allow data access if it's been over an hour since the iPhone was last unlocked.

Right now, in the iOS 12 beta, these USB restrictions do appear to shut down access to a wired CarPlay interface after an hour, so that's one exception where people might want to turn this setting on to disable the restrictions on the USB port. From the iOS 12 beta notes:

"If you use iPod Accessory Protocol (iAP) USB accessories over the Lightning connector (such as CarPlay, assistive devices, charging accessories, or storage carts) or you connect to a Mac or PC you might need to unlock your device to recognize the accessory."

Note: Even if data access to USB port has been disabled because it's been over an hour since an iPhone was last unlocked, it continues to be able to charge through a standard Lightning cable because the power connection is not disabled.

Related Forum: iOS 12

Top Rated Comments

Porco Avatar
108 months ago
This is good, but why an hour? Why not a user-definable time period, or at least a few options? Hopefully Apple will offer more options in a future update.
Score: 9 Votes (Like | Disagree)
108 months ago
This is great, but I would love an option to have USB Restricted mode enabled all the time, even when the device is unlocked.

When travelling I see people charging their phones off random USB ports all the time - in stores, shopping centre charging stations, hostels, buses, trains etc. Providing a USB port or even a lighting connector is becoming more and more common (as opposed to a power outlet). And I know of at least one person who has had malware installed on their device in SE Asia from connecting their device to an untrustworthy USB port.

I guess this is a pretty niche issue, but still, would be nice to prevent anything from establishing a connection to my phone even when it's unlocked. Or perhaps something like what happens when you plug your phone into a new computer and it asks you if you want to trust it, but in this case, it would ask the same question for any new accessory if it attempts to do anything other than provide power.

For now I'll continue to charge via a power outlet for peace of mind.
Score: 7 Votes (Like | Disagree)
108 months ago
It’s a shame that there can’t be trusted devices that can get around the lock, like our own computers or cars.
Score: 5 Votes (Like | Disagree)
B4U Avatar
108 months ago
Please kindly re-post these tips again when iOS 12 is actually released.
Score: 4 Votes (Like | Disagree)
CarlJ Avatar
108 months ago
I guess this is a pretty niche issue, but still, would be nice to prevent anything from establishing a connection to my phone even when it's unlocked. Or perhaps something like what happens when you plug your phone into a new computer and it asks you if you want to trust it, but in this case, it would ask the same question for any new accessory if it attempts to do anything other than provide power.

For now I'll continue to charge via a power outlet for peace of mind.
Agreed that it would be nice to disallow any data interaction with any device not previously used, unless/until the user has confirmed via password. A settable time limit for locking down the port would also be useful. In the meantime, if you need to charge from random USB sources, something like this could help ('http://syncstop.com').
Score: 3 Votes (Like | Disagree)
108 months ago
“law enforcement and other potentially malicious entities”


I see what you did there. And I LOLed.
Score: 2 Votes (Like | Disagree)

Popular Stories

iOS 26 Battery Glass Feature

Three Years of 80% Charge Limits on iPhone: The Results

Tuesday October 6, 2026 12:59 pm PDT by
Since 2023, Apple's newer iPhones have had an 80 percent charge limit for those who want to extend battery lifespan. Charging to 80 percent instead of 100 percent is supposed to put less stress on the battery, improving longevity. For the last three years, I've used that setting on my iPhone. I started with the iPhone 15 Pro Max, then did the iPhone 16 Pro Max, and most recently, the iPhone...
MagSafe 3 Cable Midnight Feature

Apple Releases MagSafe 3 Charging Cable Firmware Update

Monday October 5, 2026 5:59 am PDT by
For the first time since February 2023, Apple has released a firmware update for the MagSafe 3 charging cable for the MacBook Pro and MacBook Air. Specifically, Apple last week released firmware version 3.2.0 for the USB-C to MagSafe 3 Cable. The previous firmware version for the cable was 3.1.12. It is unclear what is included in the latest firmware, as Apple does not publish release...
Prime Big Deal Days 25 Red and Green

Amazon Launches Prime Day Discounts on AirPods, iPad, MacBook Air, and More

Sunday October 4, 2026 9:15 am PDT by
Earlier this week, we began tracking early Prime Day deals on Apple-related accessories, and now Amazon has introduced major early deals on Apple products as well. This includes AirPods, iPads, MacBooks, and more, all available at some of the lowest prices of the year so far. Note: MacRumors is an affiliate partner with Amazon. When you click a link and make a purchase, we may receive a small...
Latest Stories
The Best Anker Prime Day Deals: Score Big on MagSafe Chargers and More
The Best Anker Prime Day Deals: Score Big on MagSafe Chargers and More
6 minutes ago
12 New Things to Expect From Apple in October
12 New Things to Expect From Apple in October
13 minutes ago
Prime Day Offers Best TV Prices of the Year From Samsung, Sony, and More
Prime Day Offers Best TV Prices of the Year From Samsung, Sony, and More
47 minutes ago
First Look at LG's Smart Home Products Made With Apple
First Look at LG's Smart Home Products Made With Apple
1 hour ago
Apple Watch Ultra 3 and Ultra 4 See Record Discounts During Prime Day
Apple Watch Ultra 3 and Ultra 4 See Record Discounts During Prime Day
2 hours ago
Apple Drops Intel Macs From Magic Mouse/Trackpad Compatibility Lists
Apple Drops Intel Macs From Magic Mouse/Trackpad Compatibility Lists
2 hours ago
Apple Reportedly Waiting on Samsung for Ultimate Bezel-Free iPhone Display
Apple Reportedly Waiting on Samsung for Ultimate Bezel-Free iPhone Display
3 hours ago
Apple's Own Home Security Camera Still Coming Next Year
Apple's Own Home Security Camera Still Coming Next Year
4 hours ago
Unfolded iPhone Duo Lets You Preview Documents in a Two-Page Layout
Unfolded iPhone Duo Lets You Preview Documents in a Two-Page Layout
5 hours ago
Formula 1 Coverage on Apple TV to Get Dolby Atmos Later This Month
Formula 1 Coverage on Apple TV to Get Dolby Atmos Later This Month
6 hours ago
LG Making Doorbell, Lock, and Cameras for Apple's Home Hub
LG Making Doorbell, Lock, and Cameras for Apple's Home Hub
17 hours ago
Apple to Report Q4 2026 Earnings on November 2
Apple to Report Q4 2026 Earnings on November 2
17 hours ago
Three Years of 80% Charge Limits on iPhone: The Results
Three Years of 80% Charge Limits on iPhone: The Results
19 hours ago
macOS 27.2 Further Hints at MacBook With Touch-Enabled OLED Display
macOS 27.2 Further Hints at MacBook With Touch-Enabled OLED Display
21 hours ago
The 15 Best Apple Deals Under $200 for Prime Day
The 15 Best Apple Deals Under $200 for Prime Day
21 hours ago
AirPods Pro 3 and AirPods Max 2 Get Big Price Drops for Prime Day
AirPods Pro 3 and AirPods Max 2 Get Big Price Drops for Prime Day
22 hours ago
Apple Releases Second Public Betas of iOS 27.2 and macOS Golden Gate 27.2
Apple Releases Second Public Betas of iOS 27.2 and macOS Golden Gate 27.2
22 hours ago
'Crossy Road Rush' Launching Exclusively on Apple Arcade in November
'Crossy Road Rush' Launching Exclusively on Apple Arcade in November
22 hours ago
Apple Watch Series 9 vs. Series 12 Buyer's Guide: Is It Worth Upgrading?
Apple Watch Series 9 vs. Series 12 Buyer's Guide: Is It Worth Upgrading?
23 hours ago
Prime Day Savings: TVs, Headphones, Chargers, and Other Tech Accessories
Prime Day Savings: TVs, Headphones, Chargers, and Other Tech Accessories
23 hours ago
Apple TV 4K Rumored to Support Four HomePods for Surround Sound
Apple TV 4K Rumored to Support Four HomePods for Surround Sound
1 day ago
iPhone 18 Pro and Duo Were Once Planned With 16GB RAM, Leaker Says
iPhone 18 Pro and Duo Were Once Planned With 16GB RAM, Leaker Says
1 day ago
Apple's Entire Mac Lineup Gets Massive Discounts for Prime Day
Apple's Entire Mac Lineup Gets Massive Discounts for Prime Day
1 day ago
Prime Day iPad Deals Include Low Prices on iPad Air, iPad Mini, and More
Prime Day iPad Deals Include Low Prices on iPad Air, iPad Mini, and More
1 day ago
Apple's $634 Million Apple Watch Patent Bill Just Got Even Bigger
Apple's $634 Million Apple Watch Patent Bill Just Got Even Bigger
1 day ago
Amazon Prime Big Deal Days Offers Major Discounts on AirPods, iPads, and Much More
Amazon Prime Big Deal Days Offers Major Discounts on AirPods, iPads, and Much More
2 hours ago
Microsoft OneDrive to Drop Support for These iPhone Models
Microsoft OneDrive to Drop Support for These iPhone Models
1 day ago
HomePod Mini Waits Reach Eight Weeks Ahead of Rumored Refresh
HomePod Mini Waits Reach Eight Weeks Ahead of Rumored Refresh
1 day ago
Apple Music Is Getting a New Logo
Apple Music Is Getting a New Logo
1 day ago
Apple Quietly Boosts Email Feature for iCloud+ Subscribers
Apple Quietly Boosts Email Feature for iCloud+ Subscribers
8 hours ago