I want to compile all the GUI LineageOS apps and release their APKs.
To make them installable on other Android OS, I need to change the app ID. Otherwise Android would attempt an upgrade and fail because of mismatching keys.
For example the LineageOS Clock
There are many many files that refer to com.android.deskclock
which I want to change to org.lineageos.deskclock
.
Do I just need to change this line? And can I leave all the others normal?
I think I got build failures when changing more, and I wonder if I would need to change all the lines (using sed or something)
I’m not seeing any build.gradle files so you wouldn’t need to change namespace in those.
It looks like there’s a build config file you might need to change but I’m unsure.
Ultimately you can pop open android studio and hit Ctrl+shift+R and replace all
com.android.deskclock
withorg.lineageos.deskclock
- that might be easiest. I’d do a Ctrl+shift+F fororg.lineageos.deskclock
first to be sure I don’t have any clashing namespace but I think you’re good.I don’t have an answer, but your idea seems quite cool.
Maybe it could be made available in f-droid, like how they provide Fennec fdroid?
True!
Submitting to F-Droid means they build the APKs themselves.
This could still mean they need a fork with a changed App ID. Or they could do that during the build process, reducing deduplication.
I think in fennec-fdroid’s case, they have scripts to automate the changes.
https://gitlab.com/relan/fennecbuild[email protected] might be helpful
Very interesting thanks!