this post was submitted on 07 Jul 2024
13 points (88.2% liked)

Ask Android

2042 readers
1 users here now

A place to ask your questions and seek help related to your Android device and the Android ecosystem.

Whether you're looking for app recommendations, phone buying advice, or want to explore rooting and tutorials, this is the place for you!

Rules
  1. Be descriptive: Help us help you by providing as many details as you can.
  2. Be patient: You're getting free help from Internet strangers, so you may have to wait for an answer.
  3. Be helpful: If someone asks you for more information, tell us what you can. If someone asks you for a screenshot, please provide one!
  4. Be nice: Treat others with respect, even if you don't agree with their advice. Accordingly, you should expect others to be nice to you as well. Report intentionally rude answers.
  5. No piracy: Sharing or discussing pirated content is strictly prohibited. Do not ask others for a paid app or about how to acquire one.
  6. No affiliate/marketing links: Posting affiliate links is not allowed.
  7. No URL shorteners: These can hide the true location of the page and lead people to malicious places.
  8. No lockscreen bypasses: Please do not comment, link, or assist with bypassing lock screens or factory reset protection.
  9. No cross-posting: Please take the time to make a proper post instead of cross-posting.
Other Communities

founded 1 year ago
MODERATORS
 

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)

top 5 comments
sorted by: hot top controversial new old
[–] huginn@feddit.it 2 points 1 week ago

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 with org.lineageos.deskclock - that might be easiest. I'd do a Ctrl+shift+F for org.lineageos.deskclock first to be sure I don't have any clashing namespace but I think you're good.

[–] Achyu@lemmy.sdf.org 1 points 1 week ago* (last edited 1 week ago) (1 children)

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?

[–] boredsquirrel@slrpnk.net 1 points 1 week ago (1 children)

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.

[–] Achyu@lemmy.sdf.org 1 points 1 week ago* (last edited 1 week ago) (1 children)

I think in fennec-fdroid's case, they have scripts to automate the changes.
https://gitlab.com/relan/fennecbuild

!fdroid@lemmy.ml might be helpful

[–] boredsquirrel@slrpnk.net 2 points 1 week ago

Very interesting thanks!