obviously cops can't get into the phone if they don't know the code.
The device used by the Michigan State Police is a portable forensic system called the Cellebrite UFED that can suck data from a variety of devices, including multiple Android phones and Apple iOS devices such as the iPhone and iPad. The company did not immediately return phone calls, but according to Cellebrite's product description, the UFED can grab email, Web bookmarks, Web history, SIM data, cookies, notes, MMS, instant messages, Bluetooth devices, locations, journeys, GPS fixes, call logs, text messages, contacts and more
what the FUCK? This can't be legal. And I don't think it's legal for cops to search your phone just because you were arrested or they're doing a pull over search on the fly.