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
109 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)
109 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)
109 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
109 months ago
Please kindly re-post these tips again when iOS 12 is actually released.
Score: 4 Votes (Like | Disagree)
CarlJ Avatar
109 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)
109 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

Apple 2026 Black Friday Event Hero

Apple Announces 2026 Black Friday Event, Here's What You Can Get

Thursday November 19, 2026 9:11 am PST by
Apple's annual four-day Black Friday through Cyber Monday shopping event is returning on Friday, November 27 through Monday, November 30 in many countries, including the United States, Canada, Australia, New Zealand, France, Germany, Italy, Spain, the United Kingdom, Belgium, the Netherlands, Sweden, Thailand, and others. In the U.S., Apple's terms and conditions say the promotion begins on...
apple design award 2025

Apple Announces 2025 Design Award Winners Ahead of WWDC 2025

Tuesday June 3, 2025 10:14 am PDT by
As we wait for WWDC to kick off next Monday, Apple today announced the winners of its annual Apple Design Awards, recognizing apps and games for their innovation, ingenuity, and technical achievement. The 2025 Apple Design Award winners are listed below, with one app and one game selected per category: Delight and Fun - CapWords (App) and Balatro (Game) Innovation - Play (App) and PBJ -...
Apple Support Community

Tomorrow Marks the End of a 28-Year Era at Apple

Thursday November 19, 2026 7:08 am PST by
Apple previously announced that the Apple Support Community discussion forums for user-to-user tech support will be permanently closing this Friday, November 20. The forums have existed in some form for 28 years. It is the end of an era. It is our understanding that the forums will eventually be removed entirely, meaning that existing posts will no longer be visible. However, it is not clear ...
Latest Stories
Siri AI Settlement: Here's How Much Apple Will Pay You
Siri AI Settlement: Here's How Much Apple Will Pay You
6 minutes ago
RIP, Apple Support Community
RIP, Apple Support Community
27 minutes ago
Apple Black Friday Deals Available Now: AirPods, Apple Watches, MacBooks, and More
Apple Black Friday Deals Available Now: AirPods, Apple Watches, MacBooks, and More
2 hours ago
Top Stories: iPhone Duo Face Unlock, HomeView Tidbits, and More
Top Stories: iPhone Duo Face Unlock, HomeView Tidbits, and More
3 hours ago
Siri Recap Hands-On: Private, But Not Very Useful
Siri Recap Hands-On: Private, But Not Very Useful
19 hours ago
Save on Headphones This Black Friday With Major Deals on Beats, Sony, Soundcore, and More
Save on Headphones This Black Friday With Major Deals on Beats, Sony, Soundcore, and More
22 hours ago
MacRumors Giveaway: Win a 512GB OLED iPad Mini and a Year of Astropad Workbench
MacRumors Giveaway: Win a 512GB OLED iPad Mini and a Year of Astropad Workbench
23 hours ago
The MacRumors Show: What's Next for iPhone Duo?
The MacRumors Show: What's Next for iPhone Duo?
1 day ago
Anker's Black Friday Steals: The Lowest Prices Yet on MagSafe Favorites
Anker's Black Friday Steals: The Lowest Prices Yet on MagSafe Favorites
1 day ago
Microsoft to Retire 'To Do' Apps Next Year
Microsoft to Retire 'To Do' Apps Next Year
1 day ago
First Look at iPhone Air 2 and iPhone 18 Revealed By Dummy Models
First Look at iPhone Air 2 and iPhone 18 Revealed By Dummy Models
1 day ago
WhatsApp Raises Group Chat Limit to 1,500 Members
WhatsApp Raises Group Chat Limit to 1,500 Members
1 day ago
MacBook Pro Black Friday Deals Are Here: Get Up to $250 Off M6 and PROLED XDR
MacBook Pro Black Friday Deals Are Here: Get Up to $250 Off M6 and PROLED XDR
2 days ago
Apple is Building an AI Agent That Can Use Apps and Code
Apple is Building an AI Agent That Can Use Apps and Code
2 days ago
Black Friday Deal: Apple TV Streaming Service for $6.99/Month
Black Friday Deal: Apple TV Streaming Service for $6.99/Month
2 days ago
AirPods Black Friday Deals Hit Pro 3 at $179 and Max 2 at $429
AirPods Black Friday Deals Hit Pro 3 at $179 and Max 2 at $429
2 days ago
Second iOS 27.3 and macOS Golden Gate 27.3 Public Betas Now Available
Second iOS 27.3 and macOS Golden Gate 27.3 Public Betas Now Available
2 days ago
Google's Gemini Can Now Control Apps on Your Mac
Google's Gemini Can Now Control Apps on Your Mac
2 days ago
iPhone Duo vs. Samsung Galaxy Z Fold8: Which is Better?
iPhone Duo vs. Samsung Galaxy Z Fold8: Which is Better?
2 days ago
Apple Executive in Charge of iPhone's Camera App Reportedly Retires
Apple Executive in Charge of iPhone's Camera App Reportedly Retires
2 days ago
Apple Announces 2026 Black Friday Event, Here's What You Can Get
Apple Announces 2026 Black Friday Event, Here's What You Can Get
2 days ago
Sonos Black Friday Sale Takes Up to 25% Off Speakers, Soundbars, and More
Sonos Black Friday Sale Takes Up to 25% Off Speakers, Soundbars, and More
2 days ago
Apple TV to Stream Female 'F1 Academy' Races in U.S. Starting in 2027
Apple TV to Stream Female 'F1 Academy' Races in U.S. Starting in 2027
2 days ago
Tomorrow Marks the End of a 28-Year Era at Apple
Tomorrow Marks the End of a 28-Year Era at Apple
2 days ago
Amazon Takes $200 Off Every Apple Studio Display for Black Friday
Amazon Takes $200 Off Every Apple Studio Display for Black Friday
2 days ago
UK Loses Secrecy Fight Over Apple 'Backdoor' Order
UK Loses Secrecy Fight Over Apple 'Backdoor' Order
2 days ago
Beats 360 Black Friday Deal Arrives With Massive $100 Discount on Amazon
Beats 360 Black Friday Deal Arrives With Massive $100 Discount on Amazon
2 days ago
Apple Music Radio Now Reaches Over 50 Million Monthly Listeners
Apple Music Radio Now Reaches Over 50 Million Monthly Listeners
2 days ago
Future Macs Could Get Brighter, Longer-Lasting OLED Displays in 2030
Future Macs Could Get Brighter, Longer-Lasting OLED Displays in 2030
2 days ago
Apple Faces 'Planned Obsolescence' Trial Over iPhone Repairs
Apple Faces 'Planned Obsolescence' Trial Over iPhone Repairs
2 days ago