F-Droid Privileged Extension
With the privileged extension, F-Droid can make use of system permissions to install, update and remove applications on its own.
Instead of installing the OTA zip file from recovery, now you can install the module from Magisk systemlessly, which means it won't permanently overwrite your system files.
The module is kept up to date via GitHub Actions.
Installation
You don't have to install F-Droid first.
Download the zip file or build your own module, then install it from Magisk and reboot. The F-Droid app with the privileged extension will appear on your phone.
Alternatively, you can install the module via Androidacy Module Manager from the official Androidacy repository.
Build
Simply run:
$ ./create_mod.sh
Troubleshooting
In some cases, network access of system apps may get disabled by default. Follow these steps to make it work:
Settings -> Apps -> F-Droid -> Mobile data & Wi-Fi -> Allow network access