fix(YouTube - GmsCore support): Fix notifications not working by using the correct permissions

Regression had been introduced in 24528e0a6e. This commit reverts this.
This commit is contained in:
oSumAtrIX 2024-08-15 07:39:00 +02:00
parent 345e514a81
commit 19ddae2d15
No known key found for this signature in database
GPG key ID: A9B3094ACDB604B4

View file

@ -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",
"</queries>" to "<package android:name=\"$gmsCoreVendorGroupId.android.gms\"/></queries>",
)
@ -110,9 +110,9 @@ abstract class BaseGmsCoreSupportResourcePatch(
transformations.entries.fold(get("AndroidManifest.xml", false).readText()) { acc, (from, to) ->
acc.replace(
from,
to
to,
)
}
},
)
}