Unable to add to lineage system image
I am unable to add AuroraServices to LineageOS systems image. Steps to reproduce:
- Extracted systems.img with from payload.bin with payload_dumper
- Mounted systems.img as loop
- Copied AuroraServices.apk from AuroraServices-v1.1.1-ota.zip to /system/priv-app or /system/products/priv-app
- Copied com.aurora.services.xml from AuroraServices-v1.1.1-ota.zip to /system/etc/permissions or /system/products/etc/permissions
- Umount systems.img
- img2simg systems.img system.sparse.img
- fastboot flash system_a system.sparse.img
Unfortunately AuroraServices does not work when installed this way. The app crashes when started.
What is the correct way of adding AuroraServices to the system.img file of Lineage?