I'm not sure how to download any stuff from GitLab (I'm exclusively using GitHub) and make a privileged app from it.
If this service will be available at f-droid.org, it would be way easier!
I use this project to add and remove apps from LOS (and /e/OS) builds):
https://github.com/sfX-android/android_vendor_extendrom. I have found it really useful and, once you've got your head round how it works, it's easy to use to add or remove apps (including `priv-apps`) to / from custom ROM builds.
It handles the download of the apps from wherever they are based (F-Droid, GitHub, GitLab, other web sites) and creation of the necessary makefiles.
- the list of available packages/apps is in
the file `repo/packages.txt`
- the downloads and makefile creation is done in the
file `get_prebuilts.sh`
- the needed environment variables are described in
the `README.md`. (I export them, make the necessary change to `/vendor/lineage/config/common.mk`, and call `get_prebuilts.sh` in an init script, rather than in a device-specific `vendorsetup.sh` or makefile)
The following lines in`repo/packages.txt` have all the needed information for Aurora Services
Code:
# Aurora Services
# Allow Aurora Store to install updates automatically
AuroraServices_v1.1.1.apk|https://gitlab.com/AuroraOSS/AuroraServices/uploads/c22e95975571e9db143567690777a56e/|priv-app|AuroraServices.apk;PRESIGNED|false||permissions_com.aurora.services.xml
The following is what is written to the generated `Android.mk` for Aurora services
Code:
include $(CLEAR_VARS)
LOCAL_MODULE := AuroraServices
LOCAL_MODULE_OWNER := extendrom
LOCAL_SRC_FILES := prebuilt/AuroraServices_v1.1.1.apk
LOCAL_CERTIFICATE := $(DEFAULT_SYSTEM_DEV_CERTIFICATE)
LOCAL_MODULE_TAGS := optional
LOCAL_MODULE_CLASS := APPS
LOCAL_DEX_PREOPT := false
LOCAL_MODULE_SUFFIX := .apk
LOCAL_PRIVILEGED_MODULE := true
LOCAL_REQUIRED_MODULES := permissions_com.aurora.services.xml
include $(BUILD_PREBUILT)
And the project owner, is really helpful, and happy to accept changes to add new target packages