• Kenny Root's avatar
    keystore: fix upgrades · cfeae072
    Kenny Root authored
    During an upgrade, a blob would be written out to disk. Whenever a blob
    is written to disk, it is encrypted in-place. After upgrade, keystore
    would attempt to use the blob, but get garbage instead of what it
    expected since it was encrypted.
    
    This moves the work of writing up a level so it can then re-read the
    blob after upgrade.
    
    Bug: 7249554
    Change-Id: I3946c5db1c2fc57ace476db04f792e3b82d1cb15
    cfeae072
keystore.cpp 54.6 KB