summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorHoward Chen <howardsoc@google.com>2021-05-17 19:02:39 +0800
committerHoward Chen <howardsoc@google.com>2021-05-25 02:01:17 +0000
commiteed1312a77aa5041a71e7ec27ab2e266c3be6083 (patch)
tree9d33c009dc159bb00a2d7d407278ee978471c2d1 /rs/java/android/renderscript/ProgramFragmentFixedFunction.java
parentbd5c79d216abcd92a0b233d425a7abe553432ab2 (diff)
Corrupt the PersistentDataBlock payload explicitly in factory reset
The current formatPartitionLocked only sets the data length to zero and leave the payload unchanged. If the client side ignores the header and read the payload directly, it still has the chance to read old data. This CL corrupts the payload explicitly in formatPartitionLocked. Bug: 185369514 Test: \ 1. Flash device, wipe 2. Go through SUW with a google account. Set a PIN. 3. Factory Reset through Settings. 4. In SUW, when setting up an account (or copy from an old device), it should not ask for the previous PIN. Merged-In: Ib60c68e3e91a4f0a7fd4e86b462091995bbe4fe2 Change-Id: Ib60c68e3e91a4f0a7fd4e86b462091995bbe4fe2
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions