The APIs could do this, if someone chose to use them this way (it’s also notionally just a passkey, so, why?), but this also doesn’t address the threat model: a customer sold a counterfeit device with a pre installed trojan will still be compromised this way.
It would be a nice middle-ground: initial changes to device root trust require communicating with Google's cloud.
That way you can audit any given device's hardware identifiers against an immutable record of cloud-mandatory [initial] trust change operations.
>... but this also doesn’t address the threat model: a customer sold a counterfeit device with a pre installed trojan will still be compromised this way.
Your average user gets stern warnings that their device is probably compromised, maybe even automatic disablement short of hoops only a power user could perform. Win/win.
These hoops have to exist out of band (ie - physically go to the government office/bank) or on a second pre-trusted device, since the device is compromised and cannot be trusted. Existing Android RATs frequently use the accessibility APIs to dismiss, manipulate, and suppress push notifications and nag screens.
Could always give the trusted enclave control over the display if it doesn't already have it. Or worse, audio and display subsystems.
I suppose the threat here is bad actors jumping through said power user hoops themselves and then handing over the device to average users. Mandatory biometrics to detect ownership changes doesn't fully solve that if the user being duped is present during setup, though.
It's almost like lack of technology literacy and shitty carrier customer service practices of just handing over phones that users aren't expected to factory reset immediately might be the actual issue.
Instead, a closed ecosystem of locked-down garbage is foisted upon all of us.