r/androiddev • u/Pleasant_Set_3182 • Aug 16 '26
Discussion The risks of sharing your opensource Android app's public repo before releasing it into the app store
We are working on an open source project which has an Android app client. As you know, the path to approval is tedious with the Google Play store, but that doesn't mean that people shouldn't be able to enjoy your app... so why not put the codebase on GitHub?
After some of the horror stories I've read... about people essentially hijacking your codebase, and presenting it as their own... we are now reluctant, and don't want to share the opensource project until we actually release the (free) app on the play store.
Is this a valid concern to have? or is this something which occurs only on other platforms?
15
u/AltruisticAct8211 Aug 16 '26
Well, releasing your source code to the public means that anyone can read, modify, and compile it.
You can add a license but you won't go anywhere with that unless you have a strong legal team at your company.
Also, I assume your app does contact a backend and has secret keys. These are yours only and shouldn't ever be hardcoded anywhere in the codebase nor commit history.
I suggest that you just release the apk on github releases and not to share the entire codebase if it's not been under serious verification and pen testing for vulnerabilities.
I'm not saying to not release the source code, I'm against that as I love complete transparency but company work is usually proprietary...
Edit: If you're releasing the source code anyways then refer to paragraphs 4 and 5.
12
u/Livio63 Aug 16 '26
I wonder why you would publish source code before release: just wait for release approval in Google Play store and then make public codebase on Github.
1
u/Spikatrix Aug 16 '26
There's no difference between open sourcing the code now or after the release. Use an appropriate licence for your project and you're good to go.
2
u/hellosakamoto Aug 17 '26
There are always people who steal because they know you literally can do nothing about it. If you provide the source code, you should reasonably expect your whatever licence can't be enforced unless you have the global legal resources.
Also as a victim myself, even they don't copy the exact code, it is now still easy to use GenAI to steal by looking at your code and then refactor it to become something a bit different at code level.
Everything you put online can't be privately owned
1
u/devbitsxyz Aug 17 '26
If the project is definitely going to be open source, I'd probably just ship the official app first and open the repo afterwards.
Not because that prevents cloning — it doesn't. I'd just avoid creating an unnecessary race where someone can publish your own app before you've established the official package, Play listing and release history.
I wouldn't wait months for traction either. Once the official app is live, you've established where the project comes from and I'd open the source as planned.
I'd also keep the product identity separate from the code. Open source doesn't necessarily mean your name, logo and branding need to be freely reusable. Someone legitimately forking your project is very different from someone presenting their fork as the official app.
For me it's really about sequencing. If you've already waited this long to build the product, waiting a little longer for Play approval seems like a small cost to remove an unnecessary risk.