From 19ddae2d15e513e18eb1556c468cd94bd197685b Mon Sep 17 00:00:00 2001 From: oSumAtrIX Date: Thu, 15 Aug 2024 07:39:00 +0200 Subject: [PATCH] fix(YouTube - GmsCore support): Fix notifications not working by using the correct permissions Regression had been introduced in 24528e0a6eec17ce0a3c52f8862585933615ad28. This commit reverts this. --- .../shared/misc/gms/BaseGmsCoreSupportResourcePatch.kt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/kotlin/app/revanced/patches/shared/misc/gms/BaseGmsCoreSupportResourcePatch.kt b/src/main/kotlin/app/revanced/patches/shared/misc/gms/BaseGmsCoreSupportResourcePatch.kt index d36c1b1e5..5d7f44ca9 100644 --- a/src/main/kotlin/app/revanced/patches/shared/misc/gms/BaseGmsCoreSupportResourcePatch.kt +++ b/src/main/kotlin/app/revanced/patches/shared/misc/gms/BaseGmsCoreSupportResourcePatch.kt @@ -101,8 +101,8 @@ abstract class BaseGmsCoreSupportResourcePatch( "android:authorities=\"$fromPackageName" to "android:authorities=\"$packageName", "$fromPackageName.permission.C2D_MESSAGE" to "$packageName.permission.C2D_MESSAGE", "$fromPackageName.DYNAMIC_RECEIVER_NOT_EXPORTED_PERMISSION" to "$packageName.DYNAMIC_RECEIVER_NOT_EXPORTED_PERMISSION", - "com.google.android.c2dm" to "$packageName.android.c2dm", - "com.google.android.libraries.photos.api.mars" to "$packageName.android.apps.photos.api.mars", + "com.google.android.c2dm" to "$gmsCoreVendorGroupId.android.c2dm", + "com.google.android.libraries.photos.api.mars" to "$gmsCoreVendorGroupId.android.apps.photos.api.mars", "" to "", ) @@ -110,9 +110,9 @@ abstract class BaseGmsCoreSupportResourcePatch( transformations.entries.fold(get("AndroidManifest.xml", false).readText()) { acc, (from, to) -> acc.replace( from, - to + to, ) - } + }, ) }