Skip to content

Commit 45d4dff

Browse files
committed
Add service to list, fix unknown service behavior
1 parent b7717e5 commit 45d4dff

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

play-services-basement/src/main/java/org/microg/gms/common/GmsService.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ public enum GmsService {
101101
WORK_ACCOUNT(120),
102102
AD_CACHE(123, "com.google.android.gms.ads.service.CACHE"),
103103
DYNAMIC_LINKS(131, "com.google.firebase.dynamiclinks.service.START"),
104+
IDENTITY_SIGN_IN(212, "com.google.android.gms.auth.api.identity.service.signin.START"),
104105
NEARBY_EXPOSURE(236, "com.google.android.gms.nearby.exposurenotification.START"),
105106
;
106107

play-services-core/src/main/kotlin/org/microg/gms/chimera/ServiceProvider.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class ServiceProvider : ContentProvider() {
3030
when (method) {
3131
"serviceIntentCall" -> {
3232
val serviceAction = extras?.getString("serviceActionBundleKey") ?: return null
33-
val ourServiceAction = GmsService.byAction(serviceAction)?.takeIf { it.SERVICE_ID > 0 }?.ACTION
33+
val ourServiceAction = GmsService.byAction(serviceAction)?.takeIf { it.SERVICE_ID > 0 }?.ACTION ?: serviceAction
3434
val context = context!!
3535
val intent = Intent(ourServiceAction).apply { `package` = context.packageName }
3636
val resolveInfo = context.packageManager.resolveService(intent, 0)

0 commit comments

Comments
 (0)