This repository based on rain2wood/erofs
- Linux running kernel 5.4 or up (check with
uname -r
) - python2.7
- Debian:
sudo apt install python2
- Arch Linux:
yay -S python2-bin
- Debian:
git clone -b main https://github.com/natsumerinchan/vendor_dlkm_repacker.git
cd ./vendor_dlkm_repacker
sudo mkdir /mnt/vendor_dlkm
sudo mount ./vendor_dlkm.img /mnt/vendor_dlkm -o loop
sudo cp -r /mnt/vendor_dlkm ./vendor_dlkm
sudo umount /mnt/vendor_dlkm
sudo rm -rf /mnt/vendor_dlkm
sudo chmod -R 777 ./vendor_dlkm
// Repack vendor_dlkm.img
sudo bash ./repack_dlkm vendor_dlkm
adb reboot fastboot
fastboot flash vendor_dlkm ./vendor_dlkm-ext4.img
And all those I forgot to mention.