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
88 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)
jasonsmith_88 Avatar
88 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)
allenvanhellen Avatar
88 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
88 months ago
Please kindly re-post these tips again when iOS 12 is actually released.
Score: 4 Votes (Like | Disagree)
CarlJ Avatar
88 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)
JRobinsonJr Avatar
88 months ago
... 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.
I know it's a lot to ask. Apple has a long history of baby-steps when implementing new features, but this just SCREAMS for a solution. When I'm already connected to a device, why would they remove access after an hour? So... Apple is telling me I have to disable a security feature to use the device when connected to other devices? Umm... can you say dumb?
Score: 2 Votes (Like | Disagree)

Popular Stories

iCloud General Feature Redux

iPhone Users Who Pay for iCloud Storage Receive a New Perk

Thursday March 20, 2025 12:01 am PDT by
If you pay for iCloud storage on your iPhone, Apple has a new perk for you, at no additional cost. The new perk is the ability to create invitations in the Apple Invites app for the iPhone, which launched in the App Store last month. In the Apple Invites app, iCloud+ subscribers can create invitations for any occasion, such as birthday parties, graduations, baby showers, and more. Anyone ...
iPhone 17 Pro Render Front Page Tech

iPhone 17 Pro Launching Later This Year With These 10 New Features

Sunday March 23, 2025 10:00 am PDT by
While the iPhone 17 Pro and iPhone 17 Pro Max are not expected to launch until September, there are already plenty of rumors about the devices. iPhone 17 Pro's alleged design via Front Page Tech Below, we recap key changes rumored for the iPhone 17 Pro models as of March 2025: Aluminum frame: iPhone 17 Pro models are rumored to have an aluminum frame, whereas the iPhone 15 Pro and iPhone...
Generic iOS 19 Feature Mock

iOS 19 Coming in June With These New Features

Thursday March 20, 2025 2:04 pm PDT by
While the first iOS 19 beta is still more than two months away, there are already plenty of rumors about the upcoming software update. Below, we recap the key iOS 19 rumors so far. visionOS-Like Design In January, the YouTube channel Front Page Tech revealed a redesigned Camera app that is allegedly planned for iOS 19. According to Front Page Tech host Jon Prosser, the Camera app...
iOS 18

Top 5 New Features Coming in iOS 18.4

Friday March 21, 2025 3:26 pm PDT by
We're not getting new Siri Apple Intelligence features in iOS 18.4 as expected, but the upcoming update does have quite a few new additions that will be worth upgrading for. We've rounded up the five best features to look forward to, and if you're not running the beta, you can expect to get access to these in early April. Priority Notifications If you have an iPhone or iPad that supports...
Windows Vista

Apple Might Be Having Its Windows Vista Moment, Says Analyst

Thursday March 20, 2025 6:52 am PDT by
Is Apple experiencing a "Vista-like drift into systemically poor execution?" That was a question posed by well-known technology analyst Benedict Evans, in a recent blog post covering Apple's innovation and execution, or seemingly lack thereof as of late. He is referring to Microsoft's Windows Vista operating system, which was widely criticized when it launched in 2007 due to software bugs,...
apple wallet drivers license feature iPhone 15 pro teal 1

Apple Says iPhone Driver's Licenses Coming to These 8 U.S. States, But Rollout Remains Slow

Wednesday March 19, 2025 6:55 am PDT by
In select U.S. states, residents can add their driver's license or state ID to the Wallet app on the iPhone and Apple Watch, providing a convenient and contactless way to display proof of identity or age at select airports and businesses, and in select apps. Unfortunately, this feature continues to roll out very slowly. It has been three and a half years since Apple first announced the...
airpods pro 2 gradient

AirPods Pro 3 Launch Now Just Months Away: Here's What We Know

Tuesday March 18, 2025 9:13 am PDT by
Despite being released over two years ago, Apple's AirPods Pro 2 continue to dominate the wireless earbud market. However, with the AirPods Pro 3 expected to launch in 2025, anyone thinking of buying Apple's premium earbuds may be wondering if the next generation is worth holding out for. Apart from their audio and noise-canceling performance, which are generally regarded as excellent for...
iPhone 17 Pro Render Front Page Tech

Latest iPhone 17 Pro Dummies Highlight Apple's New Part-Glass Design

Thursday March 20, 2025 5:27 am PDT by
Seasoned leaker Sonny Dickson has shared more dummy models of Apple's upcoming iPhone 17 series, with the latest lot revealing a noticeable shift in Apple's iPhone Pro model design that goes beyond the much-talked-about new rear camera bar. Dickson points out that the iPhone 17 Pro dummy models feature an outlined area on the back, beginning just below the camera module and extending to the...
airtag orange

Apple's Next Product is Likely an AirTag 2 With These New Features

Thursday March 20, 2025 2:30 pm PDT by
Following the introduction of the iPhone 16e, new iPads and Macs, and some new accessories over the past month, what will Apple's next product announcement be? Based on rumors, a second-generation AirTag item tracker is likely next up. Last year, Bloomberg's Mark Gurman reported that a new AirTag would be released around the middle of 2025. More recently, a leaker known as Kosutami claimed...