Skip to content

Commit c64757f

Browse files
committed
fix(YouTube - GmsCore support): Fix notifications not working by using the correct permissions
Regression had been introduced in 1af65de. This commit reverts this.
1 parent 58b6f1f commit c64757f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/main/kotlin/app/revanced/patches/shared/misc/gms/BaseGmsCoreSupportResourcePatch.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -101,18 +101,18 @@ abstract class BaseGmsCoreSupportResourcePatch(
101101
"android:authorities=\"$fromPackageName" to "android:authorities=\"$packageName",
102102
"$fromPackageName.permission.C2D_MESSAGE" to "$packageName.permission.C2D_MESSAGE",
103103
"$fromPackageName.DYNAMIC_RECEIVER_NOT_EXPORTED_PERMISSION" to "$packageName.DYNAMIC_RECEIVER_NOT_EXPORTED_PERMISSION",
104-
"com.google.android.c2dm" to "$packageName.android.c2dm",
105-
"com.google.android.libraries.photos.api.mars" to "$packageName.android.apps.photos.api.mars",
104+
"com.google.android.c2dm" to "$gmsCoreVendorGroupId.android.c2dm",
105+
"com.google.android.libraries.photos.api.mars" to "$gmsCoreVendorGroupId.android.apps.photos.api.mars",
106106
"</queries>" to "<package android:name=\"$gmsCoreVendorGroupId.android.gms\"/></queries>",
107107
)
108108

109109
get("AndroidManifest.xml", false).writeText(
110110
transformations.entries.fold(get("AndroidManifest.xml", false).readText()) { acc, (from, to) ->
111111
acc.replace(
112112
from,
113-
to
113+
to,
114114
)
115-
}
115+
},
116116
)
117117
}
118118

0 commit comments

Comments
 (0)