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.

Top Rated Comments

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

airpodsinear 1

AirPods Save Woman's Life With Feature Everyone Should Know

Friday January 21, 2022 2:13 am PST by
Apple's AirPods have been credited with saving a woman's life after a potentially fatal fall, People reports. When a 60-year-old florist in New Jersey tripped and hit her head in her studio, she lost consciousness and awoke heavily bleeding. With nobody around to call for help, she realized she had her AirPods in, and used a "Hey Siri" command to call 911. An operator was able to stay on the ...
maxresdefault

Review: M1 Max MacBook Pro After Three Months

Wednesday January 19, 2022 11:30 am PST by
It's now been a few months since the M1 Pro and M1 Max MacBook Pro models launched in October, and MacRumors video editor Dan Barbera has been using one of the new machines since they debuted. Over on the MacRumors YouTube channel, Dan has shared a three month review of his MacBook Pro to see how it has held up over time and how it's changed his workflow. Subscribe to the MacRumors YouTube ...
iphone se 2020 top

New iPhone SE Likely to Launch in April Based on Production Timeframe

Wednesday January 19, 2022 6:44 am PST by
Apple suppliers will begin producing display panels for the third-generation iPhone SE this month, with final assembly of the device likely to start in March, according to information shared by display industry consultant Ross Young. Based on this production timeframe, Young believes the third-generation iPhone SE is likely to launch in the second half of April, or perhaps in early May at...
iphone 13 earpods

Apple to Stop Including EarPods With Every iPhone Sold in France From Next Week

Friday January 21, 2022 3:21 am PST by
Apple will no longer include EarPods with every iPhone sold in France, starting on January 24, according to a notice posted by a French carrier (via iGeneration). Apple was previously required to include EarPods in the box with the iPhone due to a French law that required every smartphone sold in the country to come with a "handsfree kit," but the law has now been changed in favor of reducing the ...
Spring 2022 Apple Products Feature

New iPad Air, Macs, and iPhone SE With 5G Likely to Be Announced at Apple Event This Spring

Thursday January 20, 2022 8:32 am PST by
Earlier this week, Bloomberg's Mark Gurman tweeted that Apple "will be holding a spring event" to announce a new iPhone SE and other hardware. In a recent edition of his newsletter, Gurman said the event is likely to occur in March or April. Gurman did not elaborate on what "other hardware" will be announced at Apple's purported spring event, but rumors suggest at least four products are...
peloton tv workout cardio

Apple Floated as Potential Buyer of Peloton

Friday January 21, 2022 6:11 am PST by
Following months of bleak news about Peloton's "precarious state," including the revelation that it has halted production of its bikes and treadmills, Apple is being floated as a potential buyer of Peloton's troubled fitness business. Yesterday, CNBC reported that Peloton will temporarily stop production of its connected fitness products due to a "significant reduction" in consumer demand, a ...
apple watch series 7 aluminum colors yellowbg

Apple Watch Charging Bug Fixed in watchOS 8.4 Release Candidate

Thursday January 20, 2022 4:01 pm PST by
The watchOS 8.4 release candidate that was seeded to developers and beta testers this morning addresses an ongoing bug that could cause some Apple Watch chargers not to work properly with the Apple Watch. Back in December, we reported on a growing number of charging issues that Apple Watch Series 7 owners were facing. Since watchOS 8.3, there have been a number of complaints about...
appleprivacyad cleaned

iOS 15 Patched Security Hole That Potentially Exposed Users' Private Apple ID Information to Third-Party Apps

Thursday January 20, 2022 3:32 am PST by
Apple patched two significant security vulnerabilities when it released iOS 15 that could have potentially exposed users' private Apple ID information and in-app search history to malicious third-party apps and allowed apps to override user Privacy preferences, Apple has revealed in a recent support document update. With most iOS, macOS, tvOS, and watchOS updates, Apple provides a list of...
safari icon blue banner

macOS Monterey 12.2 and iOS 15.3 Release Candidates Fix Safari Bug That Leaks Browsing Activity

Thursday January 20, 2022 1:30 pm PST by
The macOS Monterey 12.2 and iOS 15.3 release candidates that came out today appear to address a Safari bug that could cause your recent browsing history and details about your identity to be leaked to malicious entities. As shared last week by browser fingerprinting service FingerprintJS, there is an issue with the WebKit implementation of the IndexedDB JavaScript API. Any website that uses...