@pndwal and others, any knowledge of the "under the hood" link between Play Integrity responses and Play Protect certification?
Did some experimenting on my Pixel 5, stock rooted TQ2A.230505, with USNF MOD 1.2:
- Disabled UNSF module, rebooted, confirmed Play Integrity reports fail of both BASIC and DEVICE labels. Play Store still reports "Device is certified", even though Play Integrity check in store dev options shows no labels
Seems Play Protect only checks periodically.
- Cleared Play Store cache. Still reports "Device is certified"
Not enough to force Play Store refresh.
- Cleared all Play Store data. Certification simply disappears, it does not explicitly say "Device is uncertified"
Forced Play Store refresh but any cached Play Protect measurements are too old... Play Store is waiting for a periodical Play Protect attestation check.
You should get an instant result by clearing Play Services data where Play Protect is still included, or by additionally clearing Google Play Protect Service app in late systems. (I still don't have this w/ A11 stock MIUI.)
- Enabled USNF module, rebooted. Confirmed pass of both BASIC and DEVICE labels. Play Store does not report certified.
Reboot most likely refreshes Play Protect cached measurements (triggers new attestation check), or USNF may may cause this with a Play Services refresh.
- Cleared Play Store data. Now reports "Device is certified"
Forced Play Store refresh and cached Play Protect measurements are fresh enough to be accepted.
---------
Play Store does take some time to catch up with gms attestation without intervention like G Pay/Wallet does (up to a week?), but clearing data seems to make it poll Play Protect service immediately... The Play Protect service was embedded in Google Play Services till recently but in late systems it's seperated out to new Google Play Protect Service app.
For me results have generally been instant, but I've also generally cleared Play Services data at the same time to refresh it's cached measurements (incl. Play Protect service); Play Store apparently waits for Play Protect to periodically refresh attestation results if its cached results are too old. Nb. if on a late system with seperate Google Play Protect Service app you'll also need to clear its data to get refreshed results.
For a long while after June 2022 (PI rollout) Play Protect service was still polling S/N ctsProfileMatch only... That's why many wondered why bank apps failed despite Play Protect returning 'Device is Certified' or wouldn't show in Store. (S/N ctsProfileMatch was passing with older USNF but many devices needed the later added fingerprint prop based mismatch in addition to bypass new fingerprint prop based hardware-backed verdict enforcement and pass PI deviceIntegrity... Devices launched with A13+ also need shipping level prop mismatch.) I'd say Google may have simply been waiting for some critical mass of bank apps to move Play Protect device certification result to PI deviceIntegrity. I'm not sure, but Play Integrity may have migrated also by now. Nb. Playstore correctly excludes apps based on several different criteria so displayed Play Protect device certification result is only one of several device compliance measurements that are actually known by Play Store.

PW