Repository navigation
Conversation
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.
This PR adds the missing Google Play Services backends required for Google
Messages to complete RCS provisioning on microG: the Constellation
(phone-number verification) and Asterism (on-demand consent) services, plus the
DroidGuard and Instance ID fixes that provisioning depends on. It is fully
rootless and uses only standard Android APIs and microG's system-signature
permissions.
Closes #2994.
Motivation
Google Messages stalls during RCS setup because microG does not expose the
Constellation and Asterism services. Messages binds
com.google.android.gms.constellation.service.STARTandcom.google.android.gms.asterism.service.START, which previously resolved toDummyService, so phone-number verification and consent never complete.Provisioning also touches DroidGuard (VM cache/account reporting) and
InstanceID.requestToken(), both of which were incomplete.Changes
New modules
play-services-constellation— public AIDL + parcelable API.play-services-constellation/coreConstellationApiServiceimplementingIConstellationApiService.constellation.proto).registered SMS verifiers, challenge processor, auth manager, state store.
play-services-asterism— public AIDL + parcelable API.play-services-asterism/coreAsterismApiServiceimplementingIAsterismApiService.Service registration and dispatch
settings.gradle,play-services-core/build.gradle: include the new modulesand depend on their
coreprojects.AndroidManifest.xml: removed the Asterism/Constellation actions fromDummyService; each service now registers its own intent filter:com.google.android.gms.constellation.service.STARTcom.google.android.gms.asterism.service.STARTGmsServicealready definedCONSTELLATION (155)andASTERISM (199), so nodispatcher change was needed.
Settings and Phenotype
SettingsContract/SettingsProvider: newConstellationnamespace(verification enabled, last package, last-used timestamp, last successful).
PhenotypeService: Messages MLS provisioning flags(
bugle_phenotype__enableDownloadCertificatesForMlsProvisioning,bugle_phenotype__enableUploadKeyPackagesForMlsProvisioning) and the IMS flagRcsProvisioning__min_gmscore_version_for_upi_without_acs_fallback_met.SettingsFragment,nav_settings.xml,preferences_start.xml: "Phone numberverification" settings entry and navigation destination.
Permissions / self-check
SelfCheckFragmentnow requestsREAD_PHONE_NUMBERS,READ_SMS, andSEND_SMSin addition to phone-state and receive-SMS.DroidGuard fixes
DroidGuardVmCache: stock-compatibledg_cachedirectory and uppercaseVM cache keys (
HandleProxyFactory,NetworkHandleProxyFactory).AccountManager(GET_ACCOUNTS).DroidGuardInitReplytolerates partially-null init replies.Instance ID
InstanceID.requestToken()using the existing registration RPCinstead of throwing
UnsupportedOperationException.No stubs: Binder methods unpack parcels, run real logic, and return proper
result codes.
Verification
Built with JDK 17:
./gradlew :play-services-asterism:assembleDebug \ :play-services-constellation:assembleDebug \ :play-services-asterism-core:assembleDebug \ :play-services-constellation-core:assembleDebug \ :play-services-core:assembleVtmDefaultDebug ./gradlew :play-services-constellation-core:testDebugUnitTest \ :play-services-droidguard:test