Automatically add a repository to the FDroid Client?

Hi F-Droid Enthusiasts!

I was just wondering whether it’s possible to add a repository to F-Droid without actually opening the App Activity and navigating all the way to the Add Repo screen and typing in the repo URL. Can I do it programmatically from somewhere else? What kind of permissions would I need to do that? I did a little bit of digging and found that in the file
there is binary log data of Database Operatons which include the operation of adding a repository. Can or should I just modify this file in order to add a repo? If yes, how?

Thank you!

1 Like provides one method, via “provisioning” files. The other way is to send an Intent to F-Droid from an app that includes the repo URL. That’ll put up the “Add Repo” prompt.

1 Like

Thank you again @hans ! I just tried the provisioning method and it looks like that also puts up the “Add Repo” prompt. Isn’t it somehow possible to silently add a repo to the F-Droid client without notifying the user? I want a certain repo to be included in the client by default. Is that possible with F-Droid?

Thanks again for your great help! :-)))


1 Like

For now adding repositories always involves displaying that “Add Repo” prompt. That’s because we want to make sure users don’t end up with repos they don’t trust.

I totally think that F-Droid should also support automatic provisions for Android Distributors. Because by using eg. LineageOS you implicitly trust that ROM. Not sure if this is the use-case you had in mind, but that’s a goal of my (currently halted) provisioning efforts.


This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.