Skip to content
This repository has been archived by the owner on Apr 11, 2024. It is now read-only.

Latest commit

 

History

History
67 lines (40 loc) · 1.27 KB

README.md

File metadata and controls

67 lines (40 loc) · 1.27 KB

Vendor_dlkm Repacker

This repository based on rain2wood/erofs

Prerequisites

  • Linux running kernel 5.4 or up (check with uname -r)
  • python2.7
    • Debian: sudo apt install python2
    • Arch Linux: yay -S python2-bin

How to use

Clone this repo

git clone -b main https://github.com/natsumerinchan/vendor_dlkm_repacker.git

cd ./vendor_dlkm_repacker

Copy your offical vendor_dlkm.img into vendor_dlkm_repacker folder

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

Now you can modify vendor_dlkm

// Repack vendor_dlkm.img

sudo bash ./repack_dlkm vendor_dlkm

You can flash vendor_dlkm-ext4.img to your device now.

adb reboot fastboot

fastboot flash vendor_dlkm ./vendor_dlkm-ext4.img

Credits and Thanks

rain2wood

Amack

Erfan Abdi

Velosh

Piraterex

Xiaoxindada

And all those I forgot to mention.