- ubireader
- mkfs.ubifs and ubinize (search, how to install it)
unpack system.oob
sudo ./ubireader_extract_images.py system.oob -o system_u
cd ./system_u/system.ubi/
Now you will get file with .ubifs
- rootfs folder provided in this repo is for checking files only.
- You have to extract img-1620013534_vol-rootfs.ubifs manually for any modifications
We need to modify "img-396211929_vol-rootfs.ubifs"
unpack ubifs
sudo ./ubireader_extract_files.py -k -w -o ./rootfs img-1620013534_vol-rootfs.ubifs
repack .ubifs
sudo /usr/sbin/mkfs.ubifs -m 4096 -e 253952 -c 261 -x lzo -f 8 -k r5 -p 1 -l 4 -r ./rootfs/ img-1620013534_0.ubifs
Repack to img
sudo /usr/sbin/ubinize -p 262144 -m 4096 -O 4096 -s 4096 -x 1 -Q 1620013534 -o System_test.img img-1620013534.ini