Unknown sources have to be enabled and F-Droid bundled in the ROM cannot be updated - "No versions with compatible signature".
I bundled F-Droid Privileged Extension and F-Droid client with my clean AOSP ROM. F-Droid cannot update itself and when I install an app through F-Droid it's not installed automatically, but I have to enable Unknown Sources and go through the standard Package Installer process. I suspect this is because it's resigned in the build process.
Please instruct me how to bundle it with the ROM so that it can update itself and please update privileged-extension's README.md so that any user attempting to install AOSP (this is the only way) on their device can bundle F-Droid with help of only this documentation (I could do it if need be).
Android.mk I used (I tried
LOCAL_CERTIFICATE := presigned and not specifying this
LOCAL_CERTIFICATE, but these resulted in build errors):
LOCAL_PATH := $(call my-dir) include $(CLEAR_VARS) LOCAL_MODULE := F-Droid LOCAL_SRC_FILES := F-Droid.apk LOCAL_MODULE_CLASS := APPS LOCAL_CERTIFICATE := $(DEFAULT_SYSTEM_DEV_CERTIFICATE) include $(BUILD_PREBUILT)
packages/apps/F-Droid$ ls Android.mk F-Droid.apk
Privileged Extension manifest:
<?xml version="1.0" encoding="UTF-8"?> <manifest> <remote name="fdroid" fetch="https://gitlab.com/fdroid/" /> <project path="packages/apps/F-DroidPrivilegedExtension" name="privileged-extension.git" remote="fdroid" revision="refs/tags/0.2.8" /> </manifest>
Following lines added to build/make/target/product/core.mk:
PRODUCT_PACKAGES += \ F-Droid \ F-DroidPrivilegedExtension \
source build/envsetup.sh lunch make