TSA aren't cops. I was referring to a traffic stop, where the default order from a cop when presented with something like this would be simply "give me your phone."
If the cop doesn't have a reader that can read this on his belt, he is not going to accept it anyway, just like they wouldn't accept a photo of an ID. They'd require the physical license.
If he has a reader on his belt, you would still not need to hand over the phone, you would just tap it on his reader, which would then prompt you to agree to share the specific fields from the driver license that he needs.
I mean yeah, of course they could still demand your phone, they can also demand you get out of the car, handcuff you, search the car and take anything they find on the most vaguely worded suspicions, but there's no technical solution for that problem.
Yes, they should verify the information with their reader. But many wouldn't.
I'm Ukrainian, we've got a government app called Дія, that contains a digital copy of ID card, driver's license and some other documents. The document is presented in text+photo form (which is obviously easy to fake) and in form of a QR code that has a TTL of 3 minutes. Police is supposed to scan the QR code with the same app on their phone and that will load a copy of the document from government server, which is a way to properly verify the document.
Still, on my last interaction with police, they just took a picture of my phone screen. It would take a bit of time to train all personnel on using digital documents.
If he has a reader on his belt, you would still not need to hand over the phone, you would just tap it on his reader, which would then prompt you to agree to share the specific fields from the driver license that he needs.
I mean yeah, of course they could still demand your phone, they can also demand you get out of the car, handcuff you, search the car and take anything they find on the most vaguely worded suspicions, but there's no technical solution for that problem.