os-issue-tracker icon indicating copy to clipboard operation
os-issue-tracker copied to clipboard

`AndroidKeyStore` access to `EncryptedPref` fails on GOS but not stock android

Open nuke-web3 opened this issue 1 year ago • 4 comments

  • Android Version 14 (last patch Feb 5th 24)
  • Pixel 6

A (closed source) application in development works as expected from launch to close, but once initial user data is set, and the app restarted, recovery of data from EncryptedPref fails.

Here is a MRE app for the bug: GraphineTest.zip. It works fine on stock droid (on a different device), but not on GOS.

nuke-web3 avatar Feb 13 '24 19:02 nuke-web3

It works fine on stock droid (on a different device)

Are you testing Android 14 QPR1 on the other device? It's not a 1:1 comparison otherwise.

thestinger avatar Feb 13 '24 20:02 thestinger

working with @NukeManDan - the other device(s) are a Pixel 7 and Pixel 8 both with the latest Google stock Android.

I'll attach a stack trace of the issue occurring on Graphine OS but not reproducible on those other devices. repro_stacktrace.txt

dpasirst avatar Feb 13 '24 20:02 dpasirst

Oh wait. I just installed the latest Google security update and the problem seems reproducible now on the stock Android.

dpasirst avatar Feb 13 '24 20:02 dpasirst

follow-up for those interested: https://issuetracker.google.com/issues/325120862

dpasirst avatar Feb 13 '24 23:02 dpasirst