Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

RCS groundwork: integrate Constellation/Asterism with IID and key-state fixes - #3924

Draft
superportalmisha wants to merge 55 commits into
microg:masterfrom
superportalmisha:rcs-emulator-validation
Draft

superportalmisha wants to merge 55 commits into
microg:masterfrom
superportalmisha:rcs-emulator-validation

Conversation

@superportalmisha

Copy link
Copy Markdown

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

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.
  • Android 15 / API 35 / ARM64 AOSP emulator: 9 tests passed, 0 failures.
  • Tests exercise Android main-thread IID failure propagation, SharedPreferences/EC-key acknowledgement, IID callbacks with injected credentials, and failed/empty IID rejection before mocked GPNV requests.
  • Published head: 3618f5f4c6811fc650ac02a2ee17b33d2e1ff85b.
  • Exact tested source tree: 68230a5863b43dd42d82980f2fdb8dbfc9661c34. The published head has this same tree; its history preserves the original authors.
  • Test APK SHA-256: a309430ec45c7950d3f45b613137a55e45dbd5ff2b088391fd32db9044c5ffc4.

Reproduce on a running API 35 AOSP emulator with JDK 17 and the Android SDK:

GRADLE_MICROG_VERSION_WITHOUT_GIT=1 ./gradlew :play-services-constellation-core:assembleDebugAndroidTest
adb install -t play-services-constellation/core/build/outputs/apk/androidTest/debug/play-services-constellation-core-debug-androidTest.apk
adb shell am instrument -w -r org.microg.gms.constellation.core.test/androidx.test.runner.AndroidJUnitRunner

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

opstic and others added 25 commits April 6, 2026 02:30
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants