Repository navigation
Conversation
…CBOR inner key extraction, and add _build/soong cipd patch
…MD.4 CBOR inner key extraction
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR adds the Android 17 (
26Q2-release/ SDK 37) Key Testing Patches and backports the lab-requested key-dumping updates to Android 16 (25Q2-release/ SDK 36):SyntheticPasswordManagerZeroization Control (dumpsys lock_settings --clear)adb shell dumpsys lock_settingscontinues to print recorded KMD.3 key buffers non-destructively.adb shell dumpsys lock_settings --clear(also acceptsclearor-c) outputs the current state once, overwrites all storedbyte[]key buffers with0x00(Arrays.fill), sets all references tonull, resetsmKMDsecdisProtectorId = 0, and permanently blocks further debug buffer re-assignment until the next reboot (mKMDZeroized = true).storeKMDKey()/storeKMDSecdiscardable(), zeroizing any previous buffer before replacement to prevent residual copies on the Java heap.voldCBOR Inner Key Extraction (system/vold/KeyStorage.cpp)EncryptedKeyBlobV1/#6.16(Cose_Encrypt0)) inretrieveKey()and logs only the extracted inner key bytes (stripping the shared CBOR header/characteristics overhead) for keys such as/data/misc/vold/user_keys/ce/0/current.*keybuffer untouched so storage decryption behavior is unaffected.26Q2-release) Full Patch Setniap-cc/KeyTestingPatches/Android17/coveringsystem/vold,external/wpa_supplicant_8,system/security/keystore2,frameworks/base/services/.../locksettings,README.md, and an optional local workstation build workaround (_build/soong/ui/build/cipd.go.patch, not applicable to Android 16).