Skip to content

Commit

Permalink
add com.google.android.c2dm.permission.SEND permission declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
muhomorr authored and thestinger committed Oct 17, 2024
1 parent b9672a1 commit 3ba5444
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
8 changes: 8 additions & 0 deletions AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,14 @@
android:name="com.google.android.c2dm.permission.RECEIVE"
android:protectionLevel="normal" />

<!-- This permission is declared in GSF on regular Android. It was moved to GmsCompat app to
avoid the need to install GSF, which misbehaves on SDK 35+ due to signature mismatch between
itself and GmsCore (GSF and GmsCore use a sharedUid on regular Android) -->
<permission
android:name="com.google.android.c2dm.permission.SEND"
android:knownCerts="@array/gmscore_known_signers"
android:protectionLevel="internal|knownSigner" />

<application
android:name=".App"
android:label="@string/app_name"
Expand Down
7 changes: 7 additions & 0 deletions res/values/arrays.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<array name="gmscore_known_signers">
<item>7ce83c1b71f3d572fed04c8d40c5cb10ff75e6d87d9df6fbd53f0468c2905053</item>
<item>5f2391277b1dbd489000467e4c2fa6af802430080457dce2f618992e9dfb5402</item>
</array>
</resources>

0 comments on commit 3ba5444

Please sign in to comment.