FORUMS

Unpacker Kitchen for Android(UKA)

15 posts
Thanks Meter: 8
 
By blackeangel, Junior Member on 24th April 2020, 10:23 AM
Post Reply Email Thread
version: 4.9.4

Last update of the program in the header: 04/06/2020

Developer: kory-vadim

For the program to function, root privileges are required.

Install: flash as Magisk module

Short description:
Unpacking, assembling and converting system (vendor) {. Img} {. New.dat} {. New.dat.br}, mounting raw.images, gluing the system.img broken into parts into a single image (from the firmware for Qfil), unpacking payload.bin, repackaging boot (recovery) .img, extracting file_contexts from boot.img (android <= 8.1), and converting file_contexts.bin on the phone.

Description:
To unpack images, you can use a phone with android 5+.
The system make_ext4fs is used from the phone’s firmware, so on a phone with android 6+ (or better 7), you can collect system.img images from android 5+.
We need root rights, busybox (needed before UKA version: 4.4 inclusive) and enough space for the images themselves and unpacking them in ./data.
Before flashing versions 4.6, 4.7, delete the old version and flash the corresponding archive via twrp.
In the kitchen there is a utility AIK - Android Image Kitchen for repacking boot (recovery) .img.
If, for some reason, you do not want to flash AIK-mobile (or, for example: already installed), then delete the file "AIK.Mobile.Installer.v3.4.zip" from the archive and flash "unpack-android_new_4.6. zip "without this file.
After flashing, install the terminal emulator (if it is not already installed), and check the box for UTF-8 in its settings.

To start the kitchen, in the terminal enter:
su
menu

Go to the item: "Extract file_contexts", and select the subitem: "Install configuration", if this is not done, then the conversion file_contexts.bin -> file_contexts will not work.
You need to run the configuration installation only once.
*In version 4.5 and above it should work without applying this item.

And then enter the numbers corresponding to the desired action.

To extract file_contexts, put boot.img in the folder: /data/local/UnpackerContexts.
To unpack .img images, you need to put system.img or vendor.img in the folder: /data/local/UnpackerSystem, and select the .img file (no more than 5) for unpacking.
When unpacking, the folders will be deleted: "system", or "vendor"; files: * _fs_config and * _pack.sh from the previous unpacking.
To build the image, copy the received file_contexts to the folder: /data/local/UnpackerSystem, if for some reason it will not be in the folder, then the assembly will be performed with file_contexts obtained when unpacking the image.
If files or folders were added to the disassembled image, then before assembling it, you must enter everything added into fs_config, and only then collect it.
If there are spaces in the names of folders or files in the unpacked image, then make_ex4fs will not collect such an image until you rename the files and correct the entries in fs_config.
Therefore, adding folders and files with spaces to the unpacked image is also not possible.
In version 4.6, the write assistant in fs_config is added.
If you just deleted something, then you do not need to edit fs_config.
Also in the collected folder must be present symlinks.
Well, in terms of context, Selinux will also need to be watched, depending on what was added.
To unpack or convert .dat, .br and in other cases, you will be prompted to enter the path to the folder where the image is located (in the same folder should be system (vendor) .transfer.list).
When converting and assembling in .dat, look behind the phone screen, because in some cases you need to enter a number corresponding to the version of the android, the image being collected.

There is a choice of compression ratio for converting * .new.dat to br.
To reduce the conversion time, compression can be selected 3-5 (maximum 7).

To unpack boot (recovery) .img, put the file in the folder: /data/local/AIK-mobile, and select the file in the menu: "unzip boot"
For packaging, use the item: "pack boot".
The collected file will be located in the folder: /data/local/AIK-mobile with the name boot-output.img.
To clean the working folder, also use the corresponding item. Source and output files will not be deleted.
AIK-mobile can be completely removed from the phone directly from the menu.

To mount, use the corresponding menu item, and the raw image must be located in the folder: /data/local/UnpackerSystem.
Do not forget to unmount the image.
To remove the kitchen from the phone, go to the corresponding menu item and confirm the removal,
after confirmation, the phone will be overloaded in twrp, and after working out the script, it will be loaded into the system.

Screenshots(Gdrive): https://drive.google.com/folderview?...cDp-Anp0vAj_VU

Download(Gdrive): https://drive.google.com/file/d/1-nO...w?usp=drivesdk

MOD EDIT: Link removed
The Following 3 Users Say Thank You to blackeangel For This Useful Post: [ View ] Gift blackeangel Ad-Free
10th May 2020, 01:14 AM |#2  
chelghouf's Avatar
Junior Member
Thanks Meter: 6
 
More
UKA
Hello πŸ–πŸ»
First thank you for the great work 🏻
After downloading version 4.9.2 I found it perfect for Android ROMs modification without the need for a computer .. But it needed translation, so work began on that then I decided to add a feature to save and rebuild the ROM currently installed on the device .. This feature is tested on one device " MediaTek treble enabled " .. and on two Android systems 9 And 10 and works perfectly this feature helped me a lot to repack and share the ROM after debugging it or adding new features .. Sorry I don't have other devices to confirm the effectiveness of this feature, but the script is designed to support most versions of Android and many devices when possible .. I'm glad if you accept to add and develop this feature in the next updates .. Thank you.

This is my modded version

https://www.mediafire.com/download/x9doxd3nnd0h2ja

This is the video showing how it works

https://www.mediafire.com/download/qchspnzniikg1gw

https://ibb.co/0QjG7S8

https://ibb.co/XxJ8FPp
The Following User Says Thank You to chelghouf For This Useful Post: [ View ] Gift chelghouf Ad-Free
13th May 2020, 10:16 PM |#3  
Member
Flag Kano
Thanks Meter: 11
 
More
[QUOTE=chelghouf;82526649]Hello πŸ–πŸ»
First thank you for the great work 🏻
After downloading version 4.9.2 I found it perfect for Android ROMs modification without the need for a computer .. But it needed translation, so work began on that then I decided to add a feature to save and rebuild the ROM currently installed on the device .. This feature is tested on one device " MediaTek treble enabled " .. and on two Android systems 9 And 10 and works perfectly this feature helped me a lot to repack and share the ROM after debugging it or adding new features .. Sorry I don't have other devices to confirm the effectiveness of this feature, but the script is designed to support most versions of Android and many devices when possible .. I'm glad if you accept to add and develop this feature in the next updates .. Thank you.

This is my modded version

https://www.mediafire.com/download/x9doxd3nnd0h2ja

This is the video showing how it works

https://www.mediafire.com/download/qchspnzniikg1gw

https://ibb.co/0QjG7S8

https://ibb.co/XxJ8FPp[/QUOTE

I am having issues in using your modded version.
Please kindly guide me on how to set it up.
14th May 2020, 02:10 AM |#4  
chelghouf's Avatar
Junior Member
Thanks Meter: 6
 
More
What type of issues !

If you followed the video then, try to type menu in place of arkm, else be more specific please.

---------- Post added at 01:10 AM ---------- Previous post was at 12:49 AM ----------

This is a small update a feature removes kitchen binary files from the new build while extracting backup for sar and non sar devices.

I can't post links yet so replace @ with media fire home link

@/download/pq5obfcqhb18hpi

tested and confirmed working on 2 treble mtk devices running android 9 and 10 gsi ROMs and device stock ROM android 8.1


Previous link removed !

This is a small update

4.9.2.3
Added support for some kirin devices

@/download/o1ga3o1v4v13a0c
The Following User Says Thank You to chelghouf For This Useful Post: [ View ] Gift chelghouf Ad-Free
15th May 2020, 08:07 AM |#5  
Member
Flag Kano
Thanks Meter: 11
 
More
Quote:
Originally Posted by chelghouf

What type of issues !

If you followed the video then, try to type menu in place of arkm, else be more specific please.

---------- Post added at 01:10 AM ---------- Previous post was at 12:49 AM ----------

This is a small update a feature removes kitchen binary files from the new build while extracting backup for sar and non sar devices.

I can't post links yet so replace @ with media fire home link

@/download/pq5obfcqhb18hpi

tested and confirmed working on 2 treble mtk devices running android 9 and 10 gsi ROMs and device stock ROM android 8.1


Previous link removed !

This is a small update

4.9.2.3
Added support for some kirin devices

@/download/o1ga3o1v4v13a0c

Thank you so much. It works flawlessly. Kudos Bro
The Following User Says Thank You to micosal For This Useful Post: [ View ] Gift micosal Ad-Free
22nd May 2020, 06:45 AM |#6  
Senior Member
Thanks Meter: 55
 
More
Quote:
Originally Posted by chelghouf

What type of issues !

If you followed the video then, try to type menu in place of arkm, else be more specific please.

---------- Post added at 01:10 AM ---------- Previous post was at 12:49 AM ----------

This is a small update a feature removes kitchen binary files from the new build while extracting backup for sar and non sar devices.

I can't post links yet so replace @ with media fire home link

@/download/pq5obfcqhb18hpi

tested and confirmed working on 2 treble mtk devices running android 9 and 10 gsi ROMs and device stock ROM android 8.1


Previous link removed !

This is a small update

4.9.2.3
Added support for some kirin devices

@/download/o1ga3o1v4v13a0c

Link not working
Today, 03:51 AM |#7  
chelghouf's Avatar
Junior Member
Thanks Meter: 6
 
More
Quote:
Originally Posted by Rathore89

Link not working

@/download/9o1t3hlgh4duied

Replace @ with media fire home link
The Following User Says Thank You to chelghouf For This Useful Post: [ View ] Gift chelghouf Ad-Free
Today, 07:38 AM |#8  
Senior Member
Thanks Meter: 55
 
More
Quote:
Originally Posted by chelghouf

@/download/9o1t3hlgh4duied

Replace @ with media fire home link

Dev all runs well except option 13 , kitchen not able backup vender . In my device (zuk z2 ) vender is as /factory.

Thanks
The Following User Says Thank You to Rathore89 For This Useful Post: [ View ] Gift Rathore89 Ad-Free
Today, 10:38 AM |#9  
chelghouf's Avatar
Junior Member
Thanks Meter: 6
 
More
Quote:
Originally Posted by Rathore89

Dev all runs well except option 13 , kitchen not able backup vender . In my device (zuk z2 ) vender is as /factory.

Thanks

Thanks for feedback , It's fixed i'll give you a link when upload finish

---------- Post added at 09:38 AM ---------- Previous post was at 09:03 AM ----------

Quote:
Originally Posted by Rathore89

Dev all runs well except option 13 , kitchen not able backup vender . In my device (zuk z2 ) vender is as /factory.

Thanks

@/download/pmzfg8kvdk7to1n

This is a small fix for zuk z2 pro and plus and there is no problem to flash the final rom build.
But if you want your vendor file output name like this "factory.new.dat.br" then you have to wait.
The Following User Says Thank You to chelghouf For This Useful Post: [ View ] Gift chelghouf Ad-Free
Today, 11:05 AM |#10  
Senior Member
Thanks Meter: 55
 
More
Quote:
Originally Posted by chelghouf

Thanks for feedback , It's fixed i'll give you a link when upload finish

---------- Post added at 09:38 AM ---------- Previous post was at 09:03 AM ----------



@/download/pmzfg8kvdk7to1n

This is a small fix for zuk z2 pro and plus and there is no problem to flash the final rom build.
But if you want your vendor file output name like this "factory.new.dat.br" then you have to wait.

All custom roms(z2+) shows "vendor.new.dat.br" in zip, only they unpack in /factory partition .
The Following User Says Thank You to Rathore89 For This Useful Post: [ View ] Gift Rathore89 Ad-Free
Today, 11:21 AM |#11  
chelghouf's Avatar
Junior Member
Thanks Meter: 6
 
More
Quote:
Originally Posted by Rathore89

All custom roms(z2+) shows "vendor.new.dat.br" in zip, only they unpack in /factory partition .

Good, i had no idea, i hope it has been fixed.
The Following User Says Thank You to chelghouf For This Useful Post: [ View ] Gift chelghouf Ad-Free
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes