mirror of
https://github.com/revanced/revanced-patches
synced 2025-01-07 15:25:50 +01:00
fix(youtube/microg-support): replace new permission
Signed-off-by: oSumAtrIX <johan.melkonyan1@web.de>
This commit is contained in:
parent
cd10e9f95d
commit
3d1cce5b4c
@ -14,7 +14,8 @@ internal object MicroGResourceHelper {
|
|||||||
* @param context The resource context.
|
* @param context The resource context.
|
||||||
* @param stringsHost The file which hosts the strings.
|
* @param stringsHost The file which hosts the strings.
|
||||||
*/
|
*/
|
||||||
fun addStrings(context: ResourceContext, stringsHost: String = "microg/host/values/strings.xml") = context.mergeStrings(stringsHost)
|
fun addStrings(context: ResourceContext, stringsHost: String = "microg/host/values/strings.xml") =
|
||||||
|
context.mergeStrings(stringsHost)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Patch the manifest to work with MicroG.
|
* Patch the manifest to work with MicroG.
|
||||||
@ -47,6 +48,9 @@ internal object MicroGResourceHelper {
|
|||||||
).replace(
|
).replace(
|
||||||
"$fromPackageName.permission.C2D_MESSAGE",
|
"$fromPackageName.permission.C2D_MESSAGE",
|
||||||
"$toPackageName.permission.C2D_MESSAGE"
|
"$toPackageName.permission.C2D_MESSAGE"
|
||||||
|
).replace(
|
||||||
|
"$fromPackageName.DYNAMIC_RECEIVER_NOT_EXPORTED_PERMISSION",
|
||||||
|
"$toPackageName.DYNAMIC_RECEIVER_NOT_EXPORTED_PERMISSION"
|
||||||
).replace(
|
).replace(
|
||||||
"com.google.android.c2dm",
|
"com.google.android.c2dm",
|
||||||
"${Constants.MICROG_VENDOR}.android.c2dm"
|
"${Constants.MICROG_VENDOR}.android.c2dm"
|
||||||
|
Loading…
Reference in New Issue
Block a user