r/FlutterDev • • Oct 08 '26

Discussion Title: Found a public patch that cracks my Flutter app's subscription. How do other indie devs handle this?

I'm a solo dev with a small Flutter app (on-device AI, RevenueCat subscriptions + AdMob).

Last week Crashlytics showed a crash from a modified copy. I'd started logging the app's

installer as a custom key, and it showed MT Manager. Digging further, I found a public

ReVanced/Morphe-style patch set that unlocks premium (it rewrites RevenueCat's entitlement

checks), removes ads, and bypasses Play's license check.

A few things I learned:

- Logging the installer package as a Crashlytics custom key is a cheap way to spot modified copies.

- An older RevenueCat Android SDK shipped a -dontoptimize consumer rule, which turned R8

optimization off app-wide. Once I updated, R8's inlining/renaming seems to have broken

the patch, at least for now.

- I've filed a DMCA notice with GitHub.

Questions for people who've been through this:

  1. Is server-side entitlement checking (Play Integrity + RevenueCat REST) worth it at small scale?
  2. Did DMCA takedowns for patch repos actually work for you?
  3. Anything you wish you'd done earlier?
50 Upvotes

17 comments sorted by

46

u/krll-kov Oct 08 '26

Just forget about it, nobody from those who does not pay is going to purchase your app if you try to eliminate this, and you'll spend days on some useless protection that will be cracked in 30 minutes again. You could have spent that time on implementing something for your customers, not on something that you won't t have an income for

9

u/WestaAlger Oct 08 '26

Long time SWE but completely amateur Flutter hobbyist asking:

If the premium mode unlocked extra server capacity, wouldn’t it be a real risk of them running up a bill that they didn’t pay for?

Is the solution supposed to be that premium mode for server side functionality should be have its own authorization scheme? That sounds most intuitive for me, but do you know what that would actually look like in terms of RevenueCat and whatever other monetization tool? I haven’t yet touched RevenueCat myself so I don’t know.

9

u/krll-kov Oct 08 '26

That's server side protection, not a client side and it can not be bypassed with modifying your client. If it does then that's server side mistake

2

u/WestaAlger Oct 08 '26

Yes yes, just curious I guess whether RevenueCat does both client and server monetization tooling or what. I should probably read up on it but just made a comment here because it sparked the question.

3

u/markatlarge Oct 08 '26

yeah revenuecat does both. the patch only messes with the client sdk, so the app just thinks you're subscribed. but they also have a REST API + webhooks, so a backend can check with revenuecat directly and that can't be faked from the app.

for my app there's no server cost though, everything runs on the phone (that's kind of the whole point, nothing gets uploaded). so worst case it's just lost revenue. moving the premium check to a server is probably what i'll end up doing

4

u/driftwood_studio Oct 09 '26

> so worst case it's just lost revenue

Probably not even that. The people who go to this kind of trouble to steal access are never going to be paying customers, even if you lock the app down 100% successfully (which is impossible).

You're not losing any money. They were never, ever going to pay for your app in the first place.

It's a tough reality to accept, but it's basically true. The best thing you can do in response is to reframe it as "unpaid evangelists for your app". Someone saw enough value to go to the work of stealing it. They were never going to be a paying customer, but at least they might tell other people about it, people who might become paying customers.

10

u/huupoke12 Oct 09 '26 edited Oct 09 '26

Basically, for anything that involves server-side, you must always do and verify it on the server. Not verifying it is already a security issue. Never trust client inputs.

But for anything that's client side only, realistically, you can't prevent it completely. Even the most advanced anti-tampering software like Denuvo got cracked.

3

u/slightly_drifting Oct 09 '26

RASP + obfuscation + encryption + ssl pinning + server side validation.

In my experience, most security vendors charge you based on registered users.  DMCA’s takedowns are just fighting the hydra. Take one down and two more pop up. 

You already fucked yourself by putting clear code out in the wild. Now you need to refactor, recycle any certs and api keys, and then apply REAL protections, not just R8.

If I have your clear source code and an obfuscated copy, I can reverse the obfuscation on known parts, which is why you refactor. 

2

u/Curious-Leader-9111 Oct 08 '26

Never been through this but thanks for making me aware of this possibility. I'm now going to waste my weekend going over my code.

1

u/Reasonable-Job2425 Oct 08 '26

if premium is for functionality tha talready eists in ap and doesnt call any backend i afraid there is not much you can do regarding it , in backend requests you ask ask to send user id/rc id and check for entitement but local checks can be easily bypassed ,can just spin up glm 5.3 or deeseekv4 or other chiense ai models and write patches if i want to on my own apps or others.

1

u/Apprehensive-Fan8999 Oct 10 '26

Years ago, long before AI, I self published a series of paid Android apps. I was alerted to a few of them being on pirate sites by a lawyer fishing for clients to sue people for copyright infringement. I declined that route. I figured those people were free advertising, they were never going to pay for my app anyway, but there's a decent chance someone they showed wouldn't want to go through the hassle of the pirate version to save $1-5 total (one time charge) and I'd get a sale that way instead.

Basically, be sure any time you spend fighting these folks wouldn't be better used improving the app and gaining honest customers.

1

u/kosiarska Oct 12 '26

Big apps? Custom protection but it's very costly. Dexguard, Verimatrix and others.

For small apps you need to be creative but proguard is your best friend.

-6

u/the-walls_4_suckers Oct 08 '26

What do you do? Make your app actually worth paying for.