flakeforever / device_xiaomi_mondrian

Warning: always rebase
24 stars 10 forks source link

vendor.img #8

Closed Fauxly closed 8 months ago

Fauxly commented 8 months ago

Hi

tell me how to unpack and repack vendor.img? tnx

flakeforever commented 8 months ago

https://github.com/affggh/NH4RomTool.git I use this one, it's great. Only an issue with packaging of ext4. So you can use packaging of erofs.

Fauxly commented 8 months ago

tnx bro!!!

flakeforever commented 8 months ago

After packaging, you still need to manually repair vbmeta.

For example: avbtool add_hashtree_footer --image vendor.img --partition_name vendor --partition_size 1621893120 --key ~/android/lineage/external/avb/test/data/testkey_rsa4096.pem --hash_algorithm sha256 --fec_num_roots 2 --prop_from_file com.android.build.vendor.fingerprint:prop/fingerprint.prop --prop_from_file com.android.build.vendor.os_version:prop/os_version.prop --prop_from_file com.android.build.vendor.security_patch:prop/security_patch.prop

Fauxly commented 8 months ago

Hi need help IMG_20240115_195033.jpg

which ones should you choose?