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

iPhone SE 4 Vertical Camera Feature

iPhone SE 4 Rumored to Use Same Rear Chassis as iPhone 16

Friday July 19, 2024 7:16 am PDT by
Apple will adopt the same rear chassis manufacturing process for the iPhone SE 4 that it is using for the upcoming standard iPhone 16, claims a new rumor coming out of China. According to the Weibo-based leaker "Fixed Focus Digital," the backplate manufacturing process for the iPhone SE 4 is "exactly the same" as the standard model in Apple's upcoming iPhone 16 lineup, which is expected to...
iPhone 16 Pro Sizes Feature

iPhone 16 Series Is Just Two Months Away: Everything We Know

Monday July 15, 2024 4:44 am PDT by
Apple typically releases its new iPhone series around mid-September, which means we are about two months out from the launch of the iPhone 16. Like the iPhone 15 series, this year's lineup is expected to stick with four models – iPhone 16, iPhone 16 Plus, iPhone 16 Pro, and iPhone 16 Pro Max – although there are plenty of design differences and new features to take into account. To bring ...
bsod

Crowdstrike Says Global IT Outage Impacting Windows PCs, But Mac and Linux Hosts Not Affected

Friday July 19, 2024 3:12 am PDT by
A widespread system failure is currently affecting numerous Windows devices globally, causing critical boot failures across various industries, including banks, rail networks, airlines, retailers, broadcasters, healthcare, and many more sectors. The issue, manifesting as a Blue Screen of Death (BSOD), is preventing computers from starting up properly and forcing them into continuous recovery...
iphone 14 lineup

Cellebrite Unable to Unlock iPhones on iOS 17.4 or Later, Leak Reveals

Thursday July 18, 2024 4:18 am PDT by
Israel-based mobile forensics company Cellebrite is unable to unlock iPhones running iOS 17.4 or later, according to leaked documents verified by 404 Media. The documents provide a rare glimpse into the capabilities of the company's mobile forensics tools and highlight the ongoing security improvements in Apple's latest devices. The leaked "Cellebrite iOS Support Matrix" obtained by 404 Media...
Apple Watch Series 9

2024 Apple Watch Lineup: Key Changes We're Expecting

Tuesday July 16, 2024 7:59 am PDT by
Apple is seemingly planning a rework of the Apple Watch lineup for 2024, according to a range of reports from over the past year. Here's everything we know so far. Apple is expected to continue to offer three different Apple Watch models in five casing sizes, but the various display sizes will allegedly grow by up to 12% and the casings will get taller. Based on all of the latest rumors,...
tinypod apple watch

TinyPod Turns Your Apple Watch Into an iPod

Wednesday July 17, 2024 3:18 pm PDT by
If you have an old Apple Watch and you're not sure what to do with it, a new product called TinyPod might be the answer. Priced at $79, the TinyPod is a silicone case with a built-in scroll wheel that houses the Apple Watch chassis. When an Apple Watch is placed inside the TinyPod, the click wheel on the case is able to be used to scroll through the Apple Watch interface. The feature works...