
Preventing it from going into USB restricted mode
No doubt that's an accidental loophole that will Apple will fix in a future update (probably 12.0, unless there's a really good reason to do an 11.4.2)
Even if the fix isn't perfect yet it is a big improvement and makes things harder for cops trying to illegally snoop people's phones. It also helps with USB security - i.e. the attacks talked about a few years ago where a miscreant could build a USB "charger" that secretly makes a data connection to a phone, since once USB restricted mode is entered a USB device is only good for charging, nothing else.