Repository navigation
RCS groundwork: integrate Constellation/Asterism with IID and key-state fixes - #3924
Draft
superportalmisha wants to merge 55 commits into
Draft
superportalmisha wants to merge 55 commits into
superportalmisha wants to merge 55 commits into
Conversation
InstanceID failures could be suppressed into an empty string. The empty credential was then exposed as a successful getIidToken response, signed, and included in a GetVerifiedPhoneNumbers request. Propagate InstanceID failures to the existing error handlers and reject empty credentials before reading the FID, signing, building IIDTokenAuth, or executing GPNV. Regression tests cover exceptions, empty credentials, and the valid request path. PR microg#3388 handles IID failures in a different Constellation implementation. This change applies equivalent error semantics plus explicit empty-token and GPNV guards to the microg#3359 architecture.
A regenerated EC key was allowed to inherit the previous key's server acknowledgement. Validate stored key material before reading that state, and reset it atomically whenever key material is generated. Add instrumentation coverage for corrupt and valid stored key pairs.
Stage credited Constellation IID and key-ack fixes
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.
In the pending Constellation implementation, an Instance ID failure can become an empty credential, and regenerated EC keys can retain a stale server-acknowledgement flag. This draft combines the existing RCS provisioning services with the existing corrections for those failures, as an emulator-validated integration snapshot.
Scope and attribution
play-services-constellation#3359 and Implementplay-services-asterism#3360, carried from Asterism head2a680646cbfaf3a4a484bd4dc8f53c21404c8c4b.36c967bee691093dc810eb50d0ac1756f634baf9.The original commit authors are preserved. The source changes are existing contributors' work; this draft assembles and records validation of that work.
Executed validation
:play-services-constellation-core:assembleDebugAndroidTest: BUILD SUCCESSFUL.3618f5f4c6811fc650ac02a2ee17b33d2e1ff85b.68230a5863b43dd42d82980f2fdb8dbfc9661c34. The published head has this same tree; its history preserves the original authors.a309430ec45c7950d3f45b613137a55e45dbd5ff2b088391fd32db9044c5ffc4.Reproduce on a running API 35 AOSP emulator with JDK 17 and the Android SDK:
Remaining validation
Google Messages activation, Google backend/attestation acceptance, real-SIM verification, carrier TS.43 exchange, RCS send/receive, and locked physical bootloader operation remain unverified. The complete microG APK and generated merge result were not built. The nine tests do not cover Binder transport, caller/signature permission gates, or Asterism consent.
This is a draft related to #2994, with no claim that the bounty's acceptance requirements have been met. Prepared with Codex assistance.
rcs-emulator-test-results.txt