Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Verified Commit 45d4dffb authored by Marvin W.'s avatar Marvin W. 🐿️
Browse files

Add service to list, fix unknown service behavior

parent b7717e5d
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -101,6 +101,7 @@ public enum GmsService {
    WORK_ACCOUNT(120),
    AD_CACHE(123, "com.google.android.gms.ads.service.CACHE"),
    DYNAMIC_LINKS(131, "com.google.firebase.dynamiclinks.service.START"),
    IDENTITY_SIGN_IN(212, "com.google.android.gms.auth.api.identity.service.signin.START"),
    NEARBY_EXPOSURE(236, "com.google.android.gms.nearby.exposurenotification.START"),
    ;

+1 −1
Original line number Diff line number Diff line
@@ -30,7 +30,7 @@ class ServiceProvider : ContentProvider() {
        when (method) {
            "serviceIntentCall" -> {
                val serviceAction = extras?.getString("serviceActionBundleKey") ?: return null
                val ourServiceAction = GmsService.byAction(serviceAction)?.takeIf { it.SERVICE_ID > 0 }?.ACTION
                val ourServiceAction = GmsService.byAction(serviceAction)?.takeIf { it.SERVICE_ID > 0 }?.ACTION ?: serviceAction
                val context = context!!
                val intent = Intent(ourServiceAction).apply { `package` = context.packageName }
                val resolveInfo = context.packageManager.resolveService(intent, 0)