F-Droid privileged extension installation (auto update)

Go to

https://f-droid.org/en/packages/org.fdroid.fdroid.privileged.ota/

download the latest package and do gpg signature verification

tmp=$(mktemp -d) && cd $tmp
wget https://f-droid.org/repo/org.fdroid.fdroid.privileged.ota_2110.zip
unzip org.fdroid.fdroid.privileged.ota_2110.zip

Activate ADB root shell under developer settings on your phone.
Install the packages

adb root
adb remount
adb push F-DroidPrivilegedExtension.apk /system/priv-app/
adb push 80-fdroid.sh /system/addon.d/
adb push permissions_org.fdroid.fdroid.privileged.xml /system/etc/permissions/

Install normal user space F-Droid and reboot your phone.

Done.

You should be able to see “Automatically install updates” in F-Droid settings.

Don’t forget to disable ADB root shell again.