Skip to content

SailfishOS-miatoll/droid-system-miatoll

Repository files navigation

This repo contains extracted files from latest avalible LineageOS 18.1

Extraction process

  1. Unzip fw
  2. Unpack it with brotli
  3. Use sdat2img to get img files
  4. 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/
  1. 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