There are several windows tools for repacking:
4PDA: https://www.mediafire.com/file/6zsu98mk ... 2.zip/file
even v3 available but could not finde anymore...
This one another: https://www.mediafire.com/file/oybbiv1d ... 5.zip/file
[TOOL] Android 9.0 partition repack tool's
- em3ka
- Moderator
- Posts: 1831
- Joined: Sun Jul 15, 2018 11:43 am
- Has thanked: 108 times
- Been thanked: 370 times
Mini-kitchen for the first, second and third levels of working with .img firmware:
Changelog
SPOILER_SHOW
- Added third level of unpacking / packaging (boot, recovery, logo, devicetree)
- Added the ability to create full ota zip (fota) from level1 (Java is required).
- Added the ability to create full ota zip (fota) from level1 (Java is required).
Instructions (translated):
Level 1
SPOILER_SHOW
Kitchenette to work with the first level of Amlogic firmware
-------------------------------------------------- -----
Instructions:
1) to unpack the firmware, take the UBT Image (.img) file and put it in the in folder.
If the name is confusing, rename it to something simple for example ax95.img
2) click _unpack_level1.bat
3) in the level1 folder, replace / edit the files:
aml_sdc_burn.UBOOT- bootloader, file 1
DDR.USB - bootloader, file 2.change simultaneously with f.1
boot.PARTITION - kernel
_aml_dtb.PARTITION - kernel settings file
recovery.PARTITION - recovery
logo.PARTITION - logo (sometimes depends on the bootloader).
odm.PARTITION -
product.PARTITION -
system.PARTITION -
vendor.PARTITION - These 4 sections contain the system files.
4) click _pack_level1.bat, in the out folder we take the finished img file.
to create a full OTA, click _pack_level1_fota.bat
5) Enjoy.
-------------------------------------------------- -----
Instructions:
1) to unpack the firmware, take the UBT Image (.img) file and put it in the in folder.
If the name is confusing, rename it to something simple for example ax95.img
2) click _unpack_level1.bat
3) in the level1 folder, replace / edit the files:
aml_sdc_burn.UBOOT- bootloader, file 1
DDR.USB - bootloader, file 2.change simultaneously with f.1
boot.PARTITION - kernel
_aml_dtb.PARTITION - kernel settings file
recovery.PARTITION - recovery
logo.PARTITION - logo (sometimes depends on the bootloader).
odm.PARTITION -
product.PARTITION -
system.PARTITION -
vendor.PARTITION - These 4 sections contain the system files.
4) click _pack_level1.bat, in the out folder we take the finished img file.
to create a full OTA, click _pack_level1_fota.bat
5) Enjoy.
Level 2
SPOILER_SHOW
Kitchenette for working with the second level of firmware Amlogic
-------------------------------------------------- ------
Instructions:
1) to work with the second level, you must unpack level 1 (see level1.txt)
2) click _unpack_level2.bat
3) in the level2 folder, replace / edit the files in the folders:
system - the system section
vendor - the vendor section
product - product section
odm - odm section
If you add new files or folders that require special rights
(by default, new files and folders are assigned privileges 0644 and 0755 during packing)
then register these rights in the * _fs_config files.
* _File_contexts files are needed to register SELinux privileges
And * _size files set the size of this or that partition.
4) click _pack_level2.bat
to create a full OTA, click _pack_level1_fota.bat
5) then pack level 1 (click _pack_level1.bat, see level1.txt)
6) Enjoy.
-------------------------------------------------- ------
Instructions:
1) to work with the second level, you must unpack level 1 (see level1.txt)
2) click _unpack_level2.bat
3) in the level2 folder, replace / edit the files in the folders:
system - the system section
vendor - the vendor section
product - product section
odm - odm section
If you add new files or folders that require special rights
(by default, new files and folders are assigned privileges 0644 and 0755 during packing)
then register these rights in the * _fs_config files.
* _File_contexts files are needed to register SELinux privileges
And * _size files set the size of this or that partition.
4) click _pack_level2.bat
to create a full OTA, click _pack_level1_fota.bat
5) then pack level 1 (click _pack_level1.bat, see level1.txt)
6) Enjoy.
Level 3
SPOILER_SHOW
Kitchenette to work with the third level of firmware Amlogic
-------------------------------------------------- ------
Instructions:
1) to work with the third level, you must unpack level 1 (see level1.txt)
2) click _unpack_level3.bat
3) in the level3 folder, replace / edit the files in the folders:
boot - boot partition (kernel)
recovery - recovery section
logo - logo section
devtree - devicetree section
4) click _pack_level3.bat
5) then pack level 1 (click _pack_level1.bat, see level1.txt)
to create a full OTA, click _pack_level1_fota.bat
6) Enjoy.
-------------------------------------------------- ------
Instructions:
1) to work with the third level, you must unpack level 1 (see level1.txt)
2) click _unpack_level3.bat
3) in the level3 folder, replace / edit the files in the folders:
boot - boot partition (kernel)
recovery - recovery section
logo - logo section
devtree - devicetree section
4) click _pack_level3.bat
5) then pack level 1 (click _pack_level1.bat, see level1.txt)
to create a full OTA, click _pack_level1_fota.bat
6) Enjoy.
You do not have the required permissions to view the files attached to this post.
-
- Posts: 1
- Joined: Sun Mar 07, 2021 10:44 am
VTX Kitchen V4 is out:
https://yadi.sk/d/YznWZd4QPyYwyw
Source 4PDA/Youtube : https://www.youtube.com/watch?v=V3pTNZ1d03Q
modEDIT:
2021-03-20, link updated
https://drive.google.com/file/d/1TC9vBS ... sCRBDYVXar
https://yadi.sk/d/YznWZd4QPyYwyw
Source 4PDA/Youtube : https://www.youtube.com/watch?v=V3pTNZ1d03Q
modEDIT:
2021-03-20, link updated
https://drive.google.com/file/d/1TC9vBS ... sCRBDYVXar
- em3ka
- Moderator
- Posts: 1831
- Joined: Sun Jul 15, 2018 11:43 am
- Has thanked: 108 times
- Been thanked: 370 times
The kitchen has been updated to v5 - removed the aosp2atv patch (now it is in a separate project*), made it fully compatible with x86 + minor fixes.

by XVortex [4PDA.ru], *Yandex Disk
You do not have the required permissions to view the files attached to this post.
-
- Verified Member
- Posts: 11
- Joined: Thu Jan 06, 2022 12:22 pm
-
- Posts: 5
- Joined: Thu Oct 29, 2020 8:52 am
While repacking the image size is almost reduced upto 2gb while I'm just replacing the remote file in vendor/etcsoldiaz wrote: ↑Fri Jan 22, 2021 7:19 pm There are several windows tools for repacking:
4PDA: https://www.mediafire.com/file/6zsu98mk ... 2.zip/file
even v3 available but could not finde anymore...
This one another: https://www.mediafire.com/file/oybbiv1d ... p/file<div class="open_grepper_editor" title="Edit & Save To Grepper"></div>