CUPERTINO (CBSLA) — Apple is reportedly closing a loophole that allows locked iPhones to be accessed without their owners’ passcodes, disabling a method often used by law enforcement.

The New York Times reported Wednesday that an upcoming software update would partially disable the iPhone’s Lightning port — used for charging, transferring data and plugging in accessories like headphones — an hour after the phone is locked. An authorized user would have to unlock the phone in order to reactivate the data transfer capability, although charging the battery would still work as normal.

READ MORE: Whiting Ranch Wilderness Park In Orange County Closed Again Due To Mountain Lion Sightings

(Photo by Stephen Lam/Getty Images)

Law enforcement officers have previously exploited the Lightning-port loophole using services and devices sold by companies like Cellebrite and Grayshift, which rely on access to the port’s data-transfer capability. The FBI used a third-party tool in 2016 to unlock an iPhone belonging one of the two San Bernardino shooters, averting a legal showdown with Apple at the last minute.

READ MORE: Preliminary Magnitude 4.3 Earthquake Shakes Carson Area

Both Apple’s iOS and Google’s Android operating systems have included device encryption since 2014, and Apple has closed other security loopholes in the past, including disabling iPhones after a number of failed attempts to enter a correct passcode. However, the company has regularly cooperated with authorities’ requests to access users’ data stored on its online iCloud service.

MORE NEWS: County Health Officials Announce Order Requiring Proof Of Vaccination At Some Indoor And Outdoor Venues