How microg/gmscore works
microG Services is an Android compatibility framework that implements Google Play Services APIs so dependent apps can run without Play Services. The principal flow is an app making a service request, microG brokering it to an API-specific service, and that service returning a result through the compatibility protocol. The tree also shows major auth, location, ads, Cast, FIDO, nearby, wearable, and Play Store-style services. Relationships among unsampled services are not asserted; the graph emphasizes the sampled broker and explicitly documented product purpose.
Main entry points: BaseService.java Service broker base · GoogleLocationManagerService.kt Location service · PackageUtils.java Caller verification · FirebaseAuthService.kt Firebase authentication
Components 27
Service framework
- Service broker base
play-services-base/core/src/main/java/org/microg/gms/BaseService.java - Service registry
play-services-basement/src/main/java/org/microg/gms/common/GmsService.java - Chimera service API
play-services-chimera-core/src/main/java/com/google/android/chimera/Service.java - Caller verification
play-services-base/core/src/main/java/org/microg/gms/common/PackageUtils.java - Device profile
play-services-base/core/src/main/kotlin/org/microg/gms/profile/Build.kt
Compatibility protocol
- Service request
play-services-basement/src/main/java/com/google/android/gms/common/internal/GetServiceRequest.java - Connection metadata
play-services-basement/src/main/java/com/google/android/gms/common/internal/ConnectionInfo.java - API features
play-services-basement/src/main/java/com/google/android/gms/common/Feature.java - Operation status
play-services-basement/src/main/java/com/google/android/gms/common/api/Status.java - Status codes
play-services-basement/src/main/java/com/google/android/gms/common/api/CommonStatusCodes.java - Parcelable base
play-services-basement/src/main/java/com/google/android/gms/common/internal/safeparcel/AbstractSafeParcelable.java - Parcelable contract
play-services-basement/src/main/java/com/google/android/gms/common/internal/safeparcel/SafeParcelable.java - Parcel creator
play-services-basement/src/main/java/com/google/android/gms/common/internal/safeparcel/SafeParcelableCreatorAndWriter.java - Debug formatting
play-services-basement/src/main/java/org/microg/gms/utils/ToStringHelper.java
Identity and security
- Firebase authentication
firebase-auth/core/src/main/kotlin/org/microg/gms/firebase/auth/FirebaseAuthService.kt - Identity Toolkit client
firebase-auth/core/src/main/kotlin/org/microg/gms/firebase/auth/IdentityToolkitClient.kt - Key retrieval
play-services-core/src/main/kotlin/org/microg/gms/auth/folsom/KeyRetrievalService.kt - FIDO2 services
play-services-fido/core/src/main/kotlin/org/microg/gms/fido/core/regular/Fido2AppService.kt
Device services
- Location service
play-services-location/core/src/main/kotlin/org/microg/gms/location/manager/GoogleLocationManagerService.kt - Network location
play-services-location/core/provider/src/main/kotlin/org/microg/gms/location/network/NetworkLocationService.kt - Cast controller
play-services-cast/core/src/main/java/org/microg/gms/cast/CastDeviceControllerService.java - Exposure notification
play-services-nearby/core/src/main/kotlin/org/microg/gms/nearby/exposurenotification/AdvertiserService.kt
App ecosystem
- Advertising services
play-services-ads/core/src/main/kotlin/org/microg/gms/ads/AdRequestService.kt - Advertising identifier
play-services-ads-identifier/core/src/main/kotlin/org/microg/gms/ads/identifier/AdvertisingIdService.kt - Wearable services
play-services-wearable/core/src/main/java/org/microg/gms/wearable/WearableService.java - Split installation
vending-app/src/main/kotlin/com/google/android/finsky/splitinstallservice/SplitInstallManager.kt
Other components
- Compatible app
Connections 18
- Compatible app → Service broker base: uses framework
README.md - Service broker base → Service request: handles request
play-services-base/core/src/main/java/org/microg/gms/BaseService.java - Service broker base → Service registry: registers services
play-services-base/core/src/main/java/org/microg/gms/BaseService.java - Service broker base → Caller verification: verifies caller
- Location service → Caller verification: checks caller
play-services-location/core/src/main/kotlin/org/microg/gms/location/manager/GoogleLocationManagerService.kt - Location service → Service broker base: extends broker
play-services-location/core/src/main/kotlin/org/microg/gms/location/manager/GoogleLocationManagerService.kt - Location service → Connection metadata: returns metadata
play-services-location/core/src/main/kotlin/org/microg/gms/location/manager/GoogleLocationManagerService.kt - Identity Toolkit client → Firebase authentication: serves auth requests
firebase-auth/core/src/main/kotlin/org/microg/gms/firebase/auth/FirebaseAuthService.kt - Key retrieval → Service broker base: extends broker
play-services-core/src/main/kotlin/org/microg/gms/auth/folsom/KeyRetrievalService.kt - Location service → Network location: uses provider
- Compatible app → Firebase authentication: requests identity APIs
- Compatible app → Location service: requests location APIs
- Compatible app → Cast controller: requests casting APIs
- Compatible app → Exposure notification: requests nearby APIs
- Compatible app → Advertising services: requests ad APIs
- Compatible app → FIDO2 services: requests FIDO APIs
- Compatible app → Wearable services: requests wearable APIs
- Compatible app → Split installation: requests install APIs