mirror of
https://github.com/revanced/revanced-patches
synced 2025-01-19 10:17:32 +01:00
fix(YouTube - GmsCore support): Fix notifications not working by using the correct permissions
Regression had been introduced in 24528e0a6eec17ce0a3c52f8862585933615ad28. This commit reverts this.
This commit is contained in:
parent
345e514a81
commit
19ddae2d15
@ -101,8 +101,8 @@ abstract class BaseGmsCoreSupportResourcePatch(
|
|||||||
"android:authorities=\"$fromPackageName" to "android:authorities=\"$packageName",
|
"android:authorities=\"$fromPackageName" to "android:authorities=\"$packageName",
|
||||||
"$fromPackageName.permission.C2D_MESSAGE" to "$packageName.permission.C2D_MESSAGE",
|
"$fromPackageName.permission.C2D_MESSAGE" to "$packageName.permission.C2D_MESSAGE",
|
||||||
"$fromPackageName.DYNAMIC_RECEIVER_NOT_EXPORTED_PERMISSION" to "$packageName.DYNAMIC_RECEIVER_NOT_EXPORTED_PERMISSION",
|
"$fromPackageName.DYNAMIC_RECEIVER_NOT_EXPORTED_PERMISSION" to "$packageName.DYNAMIC_RECEIVER_NOT_EXPORTED_PERMISSION",
|
||||||
"com.google.android.c2dm" to "$packageName.android.c2dm",
|
"com.google.android.c2dm" to "$gmsCoreVendorGroupId.android.c2dm",
|
||||||
"com.google.android.libraries.photos.api.mars" to "$packageName.android.apps.photos.api.mars",
|
"com.google.android.libraries.photos.api.mars" to "$gmsCoreVendorGroupId.android.apps.photos.api.mars",
|
||||||
"</queries>" to "<package android:name=\"$gmsCoreVendorGroupId.android.gms\"/></queries>",
|
"</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) ->
|
transformations.entries.fold(get("AndroidManifest.xml", false).readText()) { acc, (from, to) ->
|
||||||
acc.replace(
|
acc.replace(
|
||||||
from,
|
from,
|
||||||
to
|
to,
|
||||||
)
|
)
|
||||||
}
|
},
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user