Skip to content

Add a SHA1 hash header to the FCM request#93

Open
moons-14 wants to merge 1 commit intoleonboe1:mainfrom
moons-14:cert_sha1
Open

Add a SHA1 hash header to the FCM request#93
moons-14 wants to merge 1 commit intoleonboe1:mainfrom
moons-14:cert_sha1

Conversation

@moons-14
Copy link

@moons-14 moons-14 commented Feb 6, 2026

This change is to circumvent the Error API_KEY_ANDROID_APP_BLOCKED issue.
It appears Google has added SHA1 restrictions for Firebase authentication. This error can be avoided by adding the following headers to the request within fcmregister.py:

  • X-Android-Package: com.google.android.apps.adm (Package ID)
  • X-Android-Cert: 38918a453d07199354f8b19af05ec6562ced5788 (SHA1 hash of APK certificate fingerprints)

The SHA1 hash can be confirmed from pages like the following:
https://www.apkmirror.com/apk/google-inc/find-my-device/googles-find-hub-find-my-device-3-1-485-2-release/googles-find-hub-find-my-device-3-1-485-2-2-android-apk-download/#safeDownload

Copy link

@smhc smhc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes are needed to restore functionality.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants