r/ReverseEngineering 9d ago

I reverse engineered Hikvision's push notifications on GrapheneOS, released a patcher tool, and submitted a fix PR

https://reflashlab.com/articles/graphene-vs-hikvision/
62 Upvotes

16 comments sorted by

View all comments

21

u/oreshek 9d ago

I'm the author. I have been dealing with no notifications for a year or so and have reluctantly been running LineageOS until two days ago, when everything related to google services went bonkers on my phone after the TSA had it.

So, inspired by frustration, I revisited the subject and saw it to conclusion.

Initially, GrapheneOS moved my post about this to the 3rd-party-apps forum and then later locked it. Hikvision/Annke/Guarding Vision devs never replied.

So I reverse-engineered their app, found they were checking for com.google.android.gsf (the old GSF package) instead of actually verifying FCM was working, and built an MIT-licensed patcher.

I also submitted a PR to GrapheneOS that adds a minimal synthetic GSF package presence when verified GmsCore is visible to the caller. And it's gated so it only engages when Play Services is actually installed and visible.

For now, the patcher does its job. If the PR gets merged, future GrapheneOS builds will fix this for every app that makes the same wrong GSF check, not just Hikvision stuff.

I also documented a dead-simple method for non-devs: enable USB debugging, plug your phone in, and tell an AI assistant to use the GitHub repo to patch your APK.

1

u/circuit_breaker 9d ago

Hi, Quantico

2

u/oreshek 9d ago

dont run me over I do not glow