> Attention!

New threads need to be created only inroot partition! In the future, they will be processed by moderators.

If you posted a new version of the program, please notify the moderator by clicking the "Complaint" button on your message.

Catalog of Android programs



В®Unpacker Kitchen for Android (UKA). | Repacking and mounting images on the phone.



Rep: (1098)
Unpacker Kitchen for Android (UKA).
version: 4.9.4

Last update of the program in the header:06.04.2020

Attached Image

Screenshots
Attached Image
Attached Image
Attached Image

For the operation of the program requires root user rights.

Short description:
Unpacking, assembly and conversion system (vendor) {. Img} {. New.dat} {. New.dat.br}, mounting raw.obrazov, gluing system.img broken into pieces in a single image (of EEPROM under Qfil), unpacking payload.bin, repacking boot (recovery) .img, extraction of file_contexts boot.img (android<= 8.1), and converting file_contexts.bin on the phone.

Description:
To unpack the images, you can use the phone with Android 5+.
The system make_ext4fs from the phone firmware is used, so on the phone with android 6+ (or better than 7), you can collect system.img images from android 5+.

Root rights are needed, busybox (needed before UKA version: 4.4 inclusive) and enough space for the images themselves and their unpacking in ./data.
Before firmware versions 4.6, 4.7, delete the old version and flash the corresponding archive through twrp.
In the kitchen there is a utilityВ®AIK - Android Image Kitchen (Post 1Senderman1 # 41149591)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, set the terminal emulator (if not already installed):Android Terminal Emulator (Post CONTRA S # 4295285)And its settings tick to UTF-8.

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


Go to the item: "Extract file_contexts", and select the sub-item: "Setting the configuration", if this is not done, then the file_contexts.bin conversion will not work ->file_contexts.
It is necessary to start installation of configuration only once.
In version 4.5 and above should work without the use of this item.

And then enter the numbers corresponding to the desired action.

To extract the 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 decompression.
To build an image, copy the resulting file_contexts to the folder: / data / local / UnpackerSystem, if for some reason it is not in the folder, then the assembly will be done with the file_contexts obtained when unpacking the image.
If files or folders were added to the disassembled image, then before assembling it is necessary, all added should be entered in fs_config, and only then be collected.
If there are spaces in the folder or file names in the unpacked image, then make_ex4fs will not build such an image until you rename the files and fix the entries in fs_config.
Therefore, it is also impossible to add folders and files with spaces to the unpacked image.
In version 4.6 a recording assistant has been added to fs_config.
If you just deleted something, you do not need to edit fs_config.
Also in the folder must be present symlinks.
Well, in contexts, 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 (system (vendor) .transfer.list should be located in the same folder).
When converting and building in .dat, look behind the phone screen, because in some cases you need to enter a number corresponding to the version of the android of the image being assembled.

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

To unpack the boot (recovery) .img, put the file in the folder: / data / local / AIK-mobile, and select the file in the menu: "unpack boot"
For packaging, use the item: "pack boot".
The collected file will be located in the folder: / data / local / AIK-mobile named boot-output.img.
To clear 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.

If the image is mounted and the mounted folder is empty, then with super su installed, in its settings we do this:
Attached Image

with magisk set like this:
В®Unpacker Kitchen for Android (UKA). (Post blackeangel # 82343910)

To remove the kitchen from the phone, go to the appropriate menu item and confirm the deletion,
after confirmation, the phone will be overloaded in twrp, and after the script has been worked out it will be loaded into the system.
Read also changes in versions.

For errors and suggestions, write to the topic or QMS.

Russian interface: Yes

Developer: kory-vadim

Download:
version: 4.9.4 Attached fileunpack-android_4.9.4.zip (66.06 MB)


Changes in version: 4.3
Some changes in the scripts.
Now file_contexts is automatically created for an image that is unpacked, which means it can be used only to build the same image.
The system (vendor) _file_contexts and system (vendor) _fs_config files will be located in the folder: / data / local / UnpackerSystem / config, if necessary, they can also be edited, moved, and renamed is not necessary.
The image will be assembled with the file_contexts obtained during unpacking.
To build with file_contexts, obtained from boot.img, you need as before to put it in the folder: / data / local / UnpackerSystem.
After assembly or unpacking, the third-party file_contexts will be removed.
Files from: / data / local / UnpackerSystem / config, as well as the "system" or "vendor" folders from: / data / local / UnpackerSystem, are only deleted after unpacking the next image.

Screenshots of version 4.3
Attached Image
Attached Image

Changes in version: 4.4
Some changes in the scripts.
Added system.img splicing from individual images (from Qfil firmware).
For splicing, put all system_xx and rawprogram0.xml or rawprogram_unsparse.xml in the folder: / data / local / UnpackerQfil.
Select "Menu: Unpacking .img">"Glue the image from the firmware under Qfil".
You will get "system.raw.img" in the folder: / data / local / UnpackerQfil. Then you can perform actions as with the usual .img.

Changes in version: 4.5
Installed busybox is not needed (if there are problems without it, write to the topic).
Updated Aik-mobile to version 3.3.
Added unpacking payload.bin. For unpacking, put payload.bin in the folder: / data / local / UnpackerPayload, in the menu select: Unpacking .img ->Unpack payload.bin and wait patiently, because unpacking takes a long time.
Added selection of the assembly sparse.img or raw.img, and the choice of assembly with the original size of the image, or with the introduction of its size.
Changed the installation script.

Changes in version: 4.6
Added entry assistant in fs_config. Updated Aik-mobile, broli, fewer items in some menus, changed some scripts.
В®Unpacker Kitchen for Android (UKA). (Post kory-vadim # 81677054)

Changes in version: 4.7
Fixed bugs when unpacking, converting and other fixes in scripts.
Because of:
If there are spaces in the folder or file names in the unpacked image, then make_ex4fs will not build such an image until you rename the files and fix the entries in fs_config.
Therefore, it is also impossible to add folders and files with spaces to the unpacked image.

Added automatic replacement of spaces in file names (if there is of course), correction of records in fs_config, file_contexts with underscores when unpacking an image.
Just in case, paths to files with spaces are stored in /data/local/UnpackerSystem/config/xxx_space.txt
It is better to flash, after removing the installed one.

Changes in version 4.8
Universal version, ie without a difference there make_ext4fs or not.
To save space in the / data, added the ability to uncompress and mount * .img images from any folder (you need to enter the path), and while unpacking .dat, .br, .img image will be in the same folder as the files: .dat, .br.
Assembling sparse-image is produced directly in the sparse, without conversion, ie, as in the past in a version for phones with make_ext4fs.
Added symlinks recovery, ie at any time to restore the symbolic links that were in the way when unpacking. Menu item: Assembling .img ->Restoring symbolic links.
Updated AIK-mobile to version 3.6, it ramdisk.img 96mb.

Changes in version: 4.9.1
Correction of image collection with android 9-10.


Past versions
version: 4.2 Attached fileunpack-android_4.2.zip (42.35 MB)
version: 4.3 Attached fileunpack-android_4.3.zip (42.36 MB)
version: 4.4 Attached fileunpack-android_4.4.zip (42.1 MB)
version: 4.5 Attached fileunpack-android_4.5.zip (60.45 MB)
version: 4.6 Attached fileunpack-android_4.6_new.zip (60.44 MB)
version: 4.7 Attached fileunpack-android_4.7.zip (60.44 MB)
Version: 4.7_make_andr9 Attached fileunpack-android_4.7_make_andr9.zip (61.88 MB)
version: 4.8 Attached fileunpack-android_4.8.zip (63.11 MB)
version: 4.9 Attached fileunpack-android_4.9.zip (63.95 MB)
version: 4.9.2 Attached fileunpack-android_4.9.2.zip (66.06 MB)
version: 4.9.3 Attached fileunpack-android_4.9.3.zip (66.06 MB)
.

Thanks:


Post has been editedkory-vadim - 22.04.20, 14:41
Reason for editing: Version 4.9.4



Rep: (1098)
Made an archive, can someone come in handy:
Unpacking, converting, assembling system (vendor) .new.dat.br, system (vendor) .new.dat and system (vendor) .img, and also extracting file_contexts.bin and converting it on your phone
The system make_ext4fs is used, so on the phone with android 6+ (or better 7), you can collect system.img images from android 5+.

Version 4.0:
----------------------------------------

Attached fileunpack-android_4.0.zip(15.35 MB)

Added menu.
You need root, busybox and enough space for the images themselves and their unpacking in ./data.
Extract the file "sdat2img-android_4.0.zip" from the archive and flash it via TV.
After the archive is flashed and loaded into the system, install a terminal emulator and run the install_sef.sh file in it:
if, for example, we put it on / sdcard, then enter:
su
sh /sdcard/install_sef.sh

In the terminal settings, tick the UTF-8.
To start, in the terminal enter:
su
menu

And then enter the numbers corresponding to the desired action.
Attached Image
Attached Image

To extract the 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.
If files or folders were added to the disassembled image, then before assembling it is necessary, all added should be entered in fs_config, and only then be collected.
If something is simply deleted or replaced with the same name, then fs_config does not need to be edited.
Also in the folder must be present symlinks.
Well, in contexts, 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.
When converting and building in .dat, look behind the phone screen, because in some cases you need to enter a number corresponding to the version of the android of the image being assembled.

Version 4.1:
---------------------------------------

Attached fileunpack-android_4.1.zip(42.35 MB)

Attached Image
Attached Image


Flash unpack-android_4.1.zip archive via twrp.

Running the install_sef.sh file is listed in the menu, under the item: Extract file_contexts; subparagraph: Configuration setting.
You need to run only once.
Added selection of .img files (no more than 5) for unpacking in the / data / local / UnpackerSystem folder
When unpacking, the folders will be deleted: "system", or "vendor"; Files: * _fs_config and * _pack.sh from the previous decompression.
Added selection of compression level for converting * .new.dat to br.
To reduce the conversion time, compression can be chosen 3-5 (maximum 7).
Added AIK-mobile.
To unpack, put the file in the folder: / data / local / AIK-mobile, in the menu: "unpack boot" select the file.
For packaging, use the item: "pack boot".
The collected file will be located in the folder: / data / local / AIK-mobile named boot-output.img.
To clear 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.
If, for some reason, you do not want to flash AIK-mobile, then delete the file "AIK.Mobile.Installer.v3.2.zip" from the archive, and flash "unpack-android_4.1.zip" without this file.

Version 4.2:
---------------------------------------

Attached fileunpack-android_4.2.zip(42.35 MB)

Added mounting of raw images * .img in folder: / data / local / name of raw image without extension .img.
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.
Added complete removal of unpack-android from the menu.
After confirming the deletion, the phone will be overloaded in twrp, and deletion will take place.

Post has been editedkory-vadim - 02.05.18, 13:01
Reason for editing: New version 4.2



Rep: (1762)
kory-vadim @ 03/10/18, 08:42*
Convert and unpack system.new.dat.br, system.new.dat and system.img, and also extract file_contexts.bin and convert it to your phone

Chic python toolkit: good: what the doctor ordered: D everything plows clearly: ok:

Shl ... maybe someone will be useful: after porting, editing and running on the body, I'm not worried with the assembly back to .dat and dat.br, but I do it easier ->Backup in the System section tvrp, obtained by system.ext4.win, I change to system.ext4.tar, then I create a .zip with normal compression with this structure ->folder / META-INF with a working binary and installation script, boot.img image, / system folder in it system.ext4.tar
In the updater-script I prescribe this:
ifelse (is_mounted ("/ system"), unmount ("/ system"));
show_progress (0.750000, 0);
ui_print ("Unpacking and setup system ...");
package_extract_dir ("system", "/ tmp / install / bin / system");
run_program ("/ sbin / busybox", "mount", "/ system");
run_program ("/ sbin / busybox", "tar", "-xvf", "/tmp/install/bin/system/system.ext4.tar", "-C", "/ system");
show_progress (0.050000, 5);
ui_print ("Flash kernel ...");
package_extract_file ("boot.img", "/ dev / block / bootdevice / by-name / boot");
show_progress (0.200000, 10);
set_progress (1.000000);

In the build, usually mnu has a complete mince: root, busibox, / su.d, scripts .sh, etc., etc: D on folders and files: D



Rep: (252)
Good day.
kory-vadim @ 03/10/18, 7:42*
Update version 4.0:
----------------------------------------
unpack-android_4.0.zip (

Please tell me, the installation went without errors, busybox is installed (BusyBox v1.27.2.YDS (2017-09-06 15:16:56 UTC) multi-call binary.), But when you enter in the terminal
"su
menu "
- is displayed:
screen
Attached Image

is it possible to change the version of busybox? / or ..

P.S.
android 5.1


Post has been editedoil1846 - 11.04.18, 21:33
Reason for editing: P.S



Rep: (1098)
* oil1846,
Ticked in the terminal settings on UTF-8 set?



Rep: (252)
kory-vadim @ 04/11/18, 21:36*
Tick ​​in terminal settings on UTF-8
Thank! Galku set, everything works!



Rep: (252)
kory-vadim @ 03/10/18, 7:42*
/ data / local / UnpackerSystem

Tell me please, is it possible to transfer the "whole conversion process" to an external sd card, and / or, with the possibility of choosing a storage location?
There is not enough space in the phone memory ..
Do not want to do redevelopment.



Rep: (1762)
kory-vadim @ 03/10/18, 08:42*
And then enter the numbers corresponding to the desired action.
пїЅ#

handsome: D at mnu on line 15.1 and CosmicOS 3.5 plows great: ok:



Rep: (17)
* kory-vadim And in this way you can connect only the device on which you can enter the fastboot with the keys? (There is a choice of Recovery, Fastboot, Normal download) or any?



Rep: (1098)
* LG_L7_P705 ,
There is no difference how you get into the fastboot.



Rep: (1762)
* kory-vadim Comrade there is a small request: rolleyes:
It would be great if, when choosing a conversion action in .br, it would be possible to choose compression options, otherwise something weak shakes by default, here is a screen of a ported moose build, for example: the original is on the left, my build is right after editing, and From the system / deleted about 250MB of a lishka, in the vendor / only the substitution did libkov and configs, well, the build turns out more than the original - no ice somehow: D
Attached Image

Let it out longer, but I'd better have squeezed the 9th one)

Post has been editedNeuropapa - 20.04.18, 02:50



Rep: (1098)
* Neuropapa
Extract from the archive and drop it with the replacement in / data / local / binary, set the permissions to 755.
For now, to convert system.new.dat to .br did you to the test. Decide on the result of compression and elapsed time.
I think to limit the choice of maximum compression 7koy, because on 9ke just unrealistically long.
Attached filekonvert_system_dat_br.zip(522 bytes)


Post has been editedkory-vadim - 20.04.18, 09:28



Rep: (1762)
* kory-vadim
excellent: ok: today I will test it on the stock system.img, it weighs 3.49 gig in sparse: D let's see what the final result in .br is)

PS ... and another thing: to muddle some script (well, or better, Binari Python) with the ability to scan the correct system (vendor) folder and output a new fs_config file, because editing it with pens takes the most time to port the whole general It was then that your price toolkit didn’t have real-world auto-aerobatics) and so, then, mnu, you’ll find out your Unpacker and AIK kitchen for buta, which are basic for data / local builds)

Post has been editedNeuropapa - 20.04.18, 11:16



Rep: (1098)
* Neuropapa
AIK added himself to the menu, and I don’t know if others need it.
In order to get a normal new fs_config, you need to edit the mounted image, and still set the rights, prescribe Selinux contexts. So it seems to me easier to edit the default text fs_config.
Yes, and you need to edit fs_config, only if you add something, and if you just delete, or replace with the same name, then you do not need to edit.

Post has been editedkory-vadim - 20.04.18, 11:40



Rep: (1762)
kory-vadim @ 04/20/18 11:29*
I do not know if it is necessary for others.

need-believe me: yes2: I have eight bottles but only after repacking the AIK-ohm start) and the twrp ports are working at the output: D
kory-vadim @ 04/20/18 11:29*
if you simply delete, or replace with the same name, then you do not need to edit it.

here I am an old deer: lol: I spend 2 hours on cutting lines in the config file after deleting - thanks for saying: thank_you:



Rep: (1762)
kory-vadim @ 04/20/18 11:29*
easier to edit default text fs_config

not always) I have over 1000 Vendera libs on the camera in stock, you’ll get tired of writing to the config really) and I can’t set up a camera on the ports, as it’s on the drain: russian_ru:
... and yes, I mnu so usually: I disassembled the mounted system / drain in data / local / tmp, and in the working folder of Unpackera the mounted port, t.ch. substitution, addition, etc. with all the rights and contests it happens very quickly, well, here the autosocompleter fs_config-a would be useful)

Or rather, 1592 files on the camera: D
Attached Image


Post has been editedNeuropapa - 20.04.18, 12:23



Rep: (1098)
* Neuropapa
Well, not the same 1500 files to add. How many files on average add to a port that were not in stock?

Post has been editedkory-vadim - 20.04.18, 12:50



Rep: (1762)
How many files on average add to a port that were not in stock?

comrade, I port from clone, where custom developers are Indians who rivet new assemblies every week) repacking the boot and it starts working without troubles, but I’m saying that the camera would work as if I needed a global transplant from the drain of all components)



Rep: (1098)
* Neuropapa
Fs_config on the folder is not a problem to create, but it’s not a fact that after all the replacements, etc., the rights of the folders and files are correct.



Rep: (1762)
Fs_config on the folder is not a problem to create, but it’s not a fact that after all the replacements, etc., the rights of the folders and files are correct

Well here it is as they say - at your own peril and risk: D but if it is possible to create autoconfig - this is not bad, agree: yes:



Rep: (1098)
* Neuropapa
I have done the script for creating fs_config long ago, but for the mounted image, also for the folder, it can be used, but everything depends on the correctness of the established rights, and in the images of android 8+, a lot of new capitals. So there are a lot of nuances, but maybe I'll think of something.


Full version    

Help     rules

Time is now: 13/07/20, 14:38