Help with self hosted F-Droid Repo and split APKs

Hello gurus,

Need help with specifics. I have recently hosted my own private f-droid repo, to host and share apps with a very small group of family users. It is running great, I can install apps from it.

Except for a week now, I’m puzzled on how to add split APKs, and what do I need to change and how exactly in the meta data.

Exact Use case:

  1. I have downloaded an app from play store, and it comes in split APK with a icon file.
  2. So there are 6 apk files and one png file.
  3. Usually in the past I have used programs like SAI to install them.
  4. Here, I’m trying to use my new F-Droid Repo to list and install them
  5. I added all 7 files (apk and png) to the /repo folder
  6. Ran fdroid update --create-metadata
  7. it went through and then when I refreshed the repo on my phone, the app showed up.
  8. But looks like it only listed the main app (com.appanme.xyz) … so when I try to install it, I get the erorr “INSTALL_FAILED_MISSING_SPLIT”.
  9. So I can see that the app size matches the apk size of main apk.
  10. Learnt that I have to add somehow information about split apk in the metadata stub file created for this app.

After reading and searching, I just haven’t been able to find a method to setup the metadata which would say… Hey this app has these many apks and this icon.

Could one of the gurus here help with exactly how to structure the metadata, run fdroid update again, so it shows up properly? Please?

Thank you,
Keith

Split APKs are not supported.

Oh ok. Well then I have to just merge the split apks, make a fat one, and host it.
I guess signatures won’t be an issue, as this is personal repo.

Ok follow up question.

Is there a way I can place packages in sub-directories in the /fdroid/repo folder? I tried it, for example /fdroid/repo/com.app.package/ but fdroid update --create-metadata didn’t pick them up at all.

Thanks

no, not really: FLOSS.social

no, why do you need that?

So I can have visibility in a directory structure to all the packages. Just better visibility from a file browsing perspective, unless there is a different way?

And sorry you link to FLOSS social didn’t work. What did you mean by “no, not really”?

why do you care about that? Use the Client, it will do the right thing

fixed link: 9Lukas5 🚂 🐧: „Orrrrrr 🙄🙈🥲 ✅ optimzed Dockerfile¹ for final ima…“ - MastodonTech.de

Ahh ok, yes, I understood already that it will have to be manually updated, but at the very least I can select and update the app.

Well hoping at some point F-Droid can support split apks. Such an awesome platform, and makes it so easy to use on my lineageOS device.

Off topic, and if you know the answer great. Any place you would direct me for a self hosted app store, or a fork, which could do split apks? I don’t intend to build apps, just host them and have the family members use that play store to install them.

no, since F-Droid 1.19 on Android 12+, autoupdates are available

Maybe Aurora Store | F-Droid - Free and Open Source Android App Repository can, but it’s not self hosted but… from Google

Yep, Aurora is not self hostable.
Ok thank you. Appreciate the engagement on this.

Accrescent can handle split apks, but I don’t know if it can be self-hosted.