summaryrefslogtreecommitdiff
path: root/libs/androidfw/FileStream.cpp
diff options
context:
space:
mode:
author ThiƩbaud Weksteen <tweek@google.com> 2025-02-26 21:16:06 +1100
committer ThiƩbaud Weksteen <tweek@google.com> 2025-03-03 09:23:48 +1100
commitecdb0d311860325934444d0c08da7001268e9419 (patch)
tree66d03394ce44f0c651ecba9b092faebbe6ba6da5 /libs/androidfw/FileStream.cpp
parent9848646dac597100e682ba81094391065c68a2a6 (diff)
CertPinInstallReceiver: remove files at boot time
In commit 60fb1aa93e53, CertPinInstallReceiver was updated to be disabled when the platform flag was enabled. This prevents fresh devices from ever installing the pins file. However, the onReceive is not called unless the version available on the server is different from the current version (as recorded by ConfigUpdater). Devices upgrading would still have a lingering version of the pins. Add a clean up stage, ran at boot time, to remove the files previously installed. Test: Fresh install with flag disabled; check that pins file is available. Enable platform flag and reboot. The pins file and its metadata are gone. Bug: 391205997 Flag: com.android.server.flags.certpininstaller_removal Change-Id: I502369e21b5b66a1e413cac0298b0072a904bb2e
Diffstat (limited to 'libs/androidfw/FileStream.cpp')
0 files changed, 0 insertions, 0 deletions