First download the tools from the link below.
1. system.img
2. system.new.dat
1.Unpacking Repacking system.img
1. Paste your system.img in tools folder
2. Open cmd.exe
3. Type:
Code:
mkdir <your_folder_name> ImgExtactor <raw_sparse.img> system -i ex: ImgExtactor system.img system -i
5. Now edit the files in system folder as your convenience.
6. Now open properties of folder you have created see the size of folder.
7. Now lets pack the image back, open the minimized command window.
Code:
make_ext4fs -s -l <size_of_your_folder+100>M -a system <name_of_packing_image>.img <your_folder_name>/ ex: make_ext4fs -s -l 512M -a system my_new_system.img system/
2.Unpacking Repacking system.new.dat
1. Paste your system.new.dat, system.transfer.list and file_contexts in tools folder.
2. Open cmd.exe
3. Type:
Code:
sprs2ext system.transfer.list <name_of_system>.new.dat ex: sprs2ext system.transfer.list system.new.dat
Code:
mkdir <your_folder_name> ImgExtactor <raw_sparse.new.img> system -i ex: ImgExtactor system.img system -i
6. Edit the extracted files.
7. Open properties of the extracted folder and check the size of folder
7. Now open minimized command window.
Code:
make_ext4fs -T 0 -S file_contexts -l <size_of_folder+100>M -a system <name_of_packing_image>.img <your_folder_name>/ ex: make_ext4fs -T 0 -S file_contexts -I 512M -a system my_new_system.img system/
Code:
rimg2sdat <your_raw_image>.img ex: rimg2img my_new_system.img
CLICK HERE TO DOWNLOAD TOOLS
0 komentar:
Post a Comment