Apple introduced a new security feature, dubbed USB Restricted Mode, designed to protect your devices against USB accessories used by forensics experts and law enforcement agencies to analyze iPhone or iPad. The feature disables the data connection of the iPhones Lightning port after a specific interval of time but it doesnt interrupt the charging process. Experts from ElcomSoft have found a way to reset the countdown timer and bypass the defense mechanism. A cheap $39 Lightning to USB Camera adapter could be used to bypass the security feature.”]
Source: https://securityaffairs.co/wordpress/74332/hacking/usb-restricted-mode-bypass.html

