This repo contains extracted files from latest avalible LineageOS 18.1
- Unzip fw
- Unpack it with brotli
- Use sdat2img to get img files
- Mount them in apropriate tree:
mkdir system/
sudo mount ~/images/system.img system/
sudo mount ~/images/vendor.img system/vendor/
sudo mount ~/images/system_ext.img system/system_ext/
sudo mount ~/images/product.img system/product/
- Run extraction script
sudo -E ./droid-system-device/helpers/copy_tree.sh ./system/ rpm/droid-system-miatoll.spec
I had to run it as root due apex partition permissions.
Since I ran it as root, I also had to package it into sfossdk as root and then restore zypper db permissions) Restore permissions using
sudo -E sb2 -t $VENDOR-$DEVICE-$PORT_ARCH -m sdk-install -R chmod 755 /var/lib/rpm/__db.001
sudo rm /home/antonix/.mb2.lock