> 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


64 pagesV  1 2 3 4 5 6 > »  
 
REPLY
> Boot & Recovery Repack for Windows | Disassembly / assembly of boot.img and recovery.img under Windows
michfood
Message#1
08.12.12, 16:41
Guru
*********
[offline]

Group: Friendssavagemessiahzine.com
Messages 4146
Check in: 07.10.09

Reputation:-  745  +

Boot & Recovery Repack for Windows download


version: 4.0

Last update of the program in the header:27.01.2015

Attached Image
more screenshots
Attached Image
Attached Image

winXP - NOT SUPPORTED !!! - I don’t even have such distributions anymore, all the hardware you have will easily work on win7, don’t be the first thing in retrogrades ...
Short description:
Parses, assembles boot and recovery WITHOUT installing third-party programs like CygWin or VM with Linux.

Description:
Utility for unpacking / packing boot.img or recovery.img under WINDOWS!

From now on, there is no need to install additional third-party programs like Cygwin or VM with ubunty to implement this essentially uncomplicated process. Connecting the phone and carrying out any manipulations with it are also not required (unlike the previous method).

All executable files (half * .exe from Cyqwin) are in the daddy bin + 2 batch files.
A bit of theory and in general about the process of creation.
A lot of theory and process of creation
As you know, boot (recovery is the same) consists of several parts:
- header
- kernel header
- kernel
- ramdisk_header
- ramdisk
Actually only ramdisk understands - in it folder structure and executable files. The rest does not understand. Generally no way.
Ramdisk is a gzip archive within which a cpio archive within which folders and files.

Those. disassembly process is as follows:
- we look for offset for all blocks
- cut the file into pieces
- ramdisk is unpacked with 2 different archivers.
The reverse process is similar, but you still need to insert a new size of the new ramdisk into ramdisk_header.
There were a lot of problems.
1. Absence of tools in windows (commands from command.com) - no commands for finding offset, working with HEX, splitting / gluing files, searching inside files, etc. etc. not there. In general, it has long been known to all. In Linux, they are - and in Windows - no.
Therefore, third-party utilities were involved, as well as partially utilities from cygwin - for example, find, dd, cpio, gzip and also one universal utility for windows - the Swiss File Knife - A Command Line Tools Collection.http://stahlforce.com/dev/swiss-file-knife.html
By itself, all this works as he wants and linking with a batch file is not easy, but ...
2. The main ambush because of which it was impossible to rebuild the boot under windows earlier - when working with cpio and gz archives, symlinks (symliink) were lost as well as (!) Rights. If the symlinks managed to be repaired almost immediately (cpio from cygwin as opposed to third-party archivers with cpio support) perfectly stores and restores them, then there was a complete ambush with the rights ... moreover, I found a very interesting point almost by accident.
The rights to the files and folders from the rmdisk directory remained as they were needed, but the rights to the rmdisk folder were NOT saved during packaging. In my case, the function "find." Was used to create the archive. - which displays a list of files inside the directory - and it’s necessary that the root folder also participates in the process - although it’s not in the archive !!!
Picture
and is displayed in the cpio archive as a dot bl ... with rights ... that's when I saw it - I tried to make a chmod on the folder directly in cygwin - and a wonderful miracle - the boot was loaded and the body turned on! Then, without thinking twice, I pulled the chmod out of the penguin and pasted it into the script.
How does it work in windows - I hz to be honest. I think that the level of NTFS.
Well, in general, that's something like that ....

Requirements:
- to boot.img structurehttp://android-dls.com/wiki/index.php?titl...ack_Boot_Images
- to Windows - at least XP and file system type - NTFS
- installed Java JRE or JDK (or maybe it is not needed ...)

Phones on which it turned out to pack boot.img:
Standart:
Samsung Galaxy S i9001, S III, Note II
HTC Evo, Desire V
MTK:
- until I come across such that I do not understand
How to use:
1. disassembly - use the img file on unpack.bat (for whom MTK is for MTK_unpack, who doesn’t have MTK for STD_unpack)
2. assembly - the mouse will pull the folder with the files after disassembly on the pack.bat batch file (for whom MTK is on MTK_pack, who does not have MTK on STD_pack)
If not working and there is a problem
- immediately lay out the screenshot + boot.img (recovery).
If you do not need such a method - do not lay out ... but then there is nothing to unsubscribe here ...

KRYAKOZABRA - right mouse click on the title of the window, select the font - TT (any)
In the paths to the working folders, there MUST NOT BE RUSSIAN AND CHINESE LETTERS !!! Gaps And other !!!


Developer: michfood


Download:
version: 4.0 Attached fileBoot_Recovery_Repack_Util_v4_win7-8_x64.rar (2.53 MB)


Previous versions:

K
The utility is no longer supported by the developer.
Claims, wishes, etc. are not considered.
Use as is.


Post has been editedSlav_nsk - 06.06.16, 19:12
Reason for editing: + from AutoVaZ
Nitrooxid
Message#2
08.12.12, 19:21
Dark side
*********
[offline]

Group: Honorary Gameday
Messages 5248
Check in: 27.12.08
Xiaomi Mi 5 Prime

Reputation:-  1774  +

Archives are compressed by different archivers. Accordingly, not everyone will understand .. A live example:
Screenshot
Attached Image


--------------------
Apple Macbook Air 13.3 2014 128GB High Sierra 10.13 \ Arch Linux
Apple iPod Touch 5 16GB iOS 9.3.5 jailbreak \ iOS 6.0
Xiaomi Mi 5 (64 GB), Xiaomi Redmi Note 3 Pro Special Edition
Winner of the 6th Prizesavagemessiahzine.comin the nomination "Master 2011"
michfood
Message#3
08.12.12, 19:30
Guru
*********
[offline]

Group: Friendssavagemessiahzine.com
Messages 4146
Check in: 07.10.09

Reputation:-  745  +

pliz lay out your boot - I'll see


--------------------
without a signature
michfood
Message#4
09.12.12, 10:10
Guru
*********
[offline]

Group: Friendssavagemessiahzine.com
Messages 4146
Check in: 07.10.09

Reputation:-  745  +

NitroOxid @ 12/08/2012, 20:21*
Archives are compressed by different archivers. Accordingly, not everyone will understand .. A live example:

I understood what the jamb: rofl:
- I did not hurry to put batch file for STD - standard phones, not for the Chinese.
so request to all - download the archive

for disassembling MTK (China) - we use MTK - and for the rest of the models - STD

so that everything is in order, do not panic ahead of time;)

Post has been editedmichfood - 09.12.12, 10:14


--------------------
without a signature
michfood
Message#5
09.12.12, 10:23
Guru
*********
[offline]

Group: Friendssavagemessiahzine.com
Messages 4146
Check in: 07.10.09

Reputation:-  745  +

SGS III - everything went well:

Attached images
Attached ImageAttached Image


Post has been editedmichfood - 09.12.12, 10:24


--------------------
without a signature
Nitrooxid
Message#6
09.12.12, 17:40
Dark side
*********
[offline]

Group: Honorary Gameday
Messages 5248
Check in: 27.12.08
Xiaomi Mi 5 Prime

Reputation:-  1774  +

Almost better, but no. Already have 1 file, was previously empty)
Screenshot
Attached Image

And a sandwich.
Attached fileboot.zip(5.78 MB)


--------------------
Apple Macbook Air 13.3 2014 128GB High Sierra 10.13 \ Arch Linux
Apple iPod Touch 5 16GB iOS 9.3.5 jailbreak \ iOS 6.0
Xiaomi Mi 5 (64 GB), Xiaomi Redmi Note 3 Pro Special Edition
Winner of the 6th Prizesavagemessiahzine.comin the nomination "Master 2011"
michfood
Message#7
09.12.12, 18:34
Guru
*********
[offline]

Group: Friendssavagemessiahzine.com
Messages 4146
Check in: 07.10.09

Reputation:-  745  +

Nitrooxid
What phone are we dealing with now?

Post has been editedmichfood - 09.12.12, 18:36


--------------------
without a signature
Nitrooxid
Message#8
09.12.12, 18:40
Dark side
*********
[offline]

Group: Honorary Gameday
Messages 5248
Check in: 27.12.08
Xiaomi Mi 5 Prime

Reputation:-  1774  +

michfood,
Galaxy S i9000. I say, many kernels are packed with different archivers ..


--------------------
Apple Macbook Air 13.3 2014 128GB High Sierra 10.13 \ Arch Linux
Apple iPod Touch 5 16GB iOS 9.3.5 jailbreak \ iOS 6.0
Xiaomi Mi 5 (64 GB), Xiaomi Redmi Note 3 Pro Special Edition
Winner of the 6th Prizesavagemessiahzine.comin the nomination "Master 2011"
michfood
Message#9
09.12.12, 19:00
Guru
*********
[offline]

Group: Friendssavagemessiahzine.com
Messages 4146
Check in: 07.10.09

Reputation:-  745  +

Nitrooxid
Well, perhaps you are right. then my script will work with standard kernels - as written here:
http://android-dls.com/wiki/index.php?titl...ack_Boot_Images


--------------------
without a signature
booroondook
Message#10
10.12.12, 17:11
Engineer in a green hat
*********
[offline]

Group: Friendssavagemessiahzine.com
Messages 7636
Check in: 22.12.06
Blackview BV9600 Pro

Reputation:-  1051  +

I checked for the sake of interest the reassembly of the boot from the tablet on the MTK6575.
Disassembled. Alarmed by the transformation of the expected symlinks into certain files with the "system" attribute and containing text representations of symlinks (rmdisk / res -> / system / res and rmdisk / sbin / ueventd -> ../init).
Well, okay - I think when assembling, he will make them back normal symlinks.
To check, I decided to reassembled boot.img (I did not change anything - I just disassembled it) to disassemble it with "traditional" utilities under Linux.
The result - does not understand. The rmdisk folder is empty.
Here is some log
# ./unpack.sh
Unpacking ...
1 + 0 records in
1 + 0 records out
3205120 bytes (3.2 MB) copied, 0.0203701 s, 157 MB / s
1564 + 0 records in
1564 + 0 records out
3203072 bytes (3,2 MB) copied, 0,0289232 s, 111 MB / s
0 + 1 records in
0 + 1 records out
505856 bytes (506 kB) copied, 0.00323252 s, 156 MB / s
dd: invalid number `'
dd: invalid number `'
gzip: ./ramdisk_no_header.gz: No such file or directory
./unpack.sh: line 21: ../ramdisk_no_header: No such file or directory
Done!

But the parsing script (for reference)
echo "Unpacking ..."

KER = $ (hexdump -C boot.img | grep "KERNEL" | cut --fields = 3-10 -d '');
NUMKER = $ (od -A d -t x1 boot.img | grep "$ KER" | cut -f1 -d '');

REC = $ (hexdump -C boot.img | grep "ROOTFS" | cut --fields = 3-10 -d '');
NUMREC = $ (od -A d -t x1 boot.img | grep "$ REC" | cut -f1 -d '');

dd if = boot.img of = kernel bs = $ NUMREC count = 1
dd if = kernel of = kernel_no_header bs = $ NUMKER skip = 1

dd if = boot.img of = ramdisk bs = $ NUMREC skip = 1
NUMRAM = $ (od -A d -t x1 ramdisk | grep "1f 8b 08 00" | cut -f1 -d '');

dd if = ramdisk of = ram_header bs = $ NUMRAM count = 1
dd if = ramdisk of = ramdisk_no_header.gz bs = $ NUMRAM skip = 1

gunzip ./ramdisk_no_header.gz
mkdir rmdisk
cd rmdisk
cpio -i <../ramdisk_no_header

echo "Done!"

So for now I will not risk sewing the boot after such a reassembly.

Post has been editedbooroondook - 10.12.12, 17:18


--------------------
WBR, booroondook
Correctly asked question - already half the answer
michfood
Message#11
10.12.12, 17:13
Guru
*********
[offline]

Group: Friendssavagemessiahzine.com
Messages 4146
Check in: 07.10.09

Reputation:-  745  +

Booth in the studio as they say ...

although not necessary - I know the reason.
In standard scripts, it is worth checking for the presence of the gz header of the "1F8B0800" archive - although this is not quite true, but in 90% it is.
however, the header is "1F8B08" - without zeros.
when building my script it puts the following heading: "1F8B0808" - and, accordingly, not seeing the standard script 00, I consider it erroneous to unpack it.
Maybe it's the gzip version that is being used. It is necessary to think, although this does not affect the performance in the phone.

ps - if someone tells me why packers make different headers - I will be grateful - and try to match the standard scripts for the line (although gzip is used from the cygwin kit, which in its environment makes the header with zeros)

Post has been editedmichfood - 10.12.12, 20:52


--------------------
without a signature
Dreamer ...
Message#12
10.12.12, 19:09
Professional Dreamer
*********
[online]

Group: Developers
Messages 11518
Check in: 04.04.07
Xiaomi Redmi Note 4X Snapdragon 4/64

Reputation:-  1146  +

I use CygWin + kitchen not the first year, but with the analysis of the boot for MTK there have always been problems ...
I'll try your solution :-)


--------------------
Dell Streak 7 WiFI ->Google Nexus 7 (2012) SlimKat 4.4.4
S.V.D.
Message#13
11.12.12, 02:06
Old resident
*******
[online]

Group: Friendssavagemessiahzine.com
Messages 838
Check in: 27.02.08
Sony Xperia Z1

Reputation:-  181  +

For Galaxy Note does not understand. What, however, naturally. There, the core and recovery are molded into a single img and all the standard hooks known to me are erased. By long digging by the Hexeditor and studying all the manes, I determined approximately where each part of the core begins and ends, but I could not cut it off from the recovery.


--------------------
michfood
Message#14
11.12.12, 08:36
Guru
*********
[offline]

Group: Friendssavagemessiahzine.com
Messages 4146
Check in: 07.10.09

Reputation:-  745  +

I have a request to those who do not get it - just for the sake of interest - to lay out the max known information about the buta's structure and how to repack it, for example, under a line, and myselfboot, because it’s hard to look for a separate boot from different phones, but I’d like to try to help


--------------------
without a signature
michfood
Message#15
11.12.12, 08:45
Guru
*********
[offline]

Group: Friendssavagemessiahzine.com
Messages 4146
Check in: 07.10.09

Reputation:-  745  +

S.V.D.,
Galaxy Note II - disassembled without problems.
stock core from firmware 3.0.1

Attached Image


--------------------
without a signature
Pebba
Message#16
11.12.12, 16:48
Local
*****
[offline]

Group: Friendssavagemessiahzine.com
Messages 217
Check in: 26.12.10
Xiaomi Mi A1 4/64

Reputation:-  5  +

QuestionspiceI have a Chinese to go into the recovery, you must turn off the bodies to turn on the CSS or charging after seeing the battery hold down the "+" and turn on


Attention the question with the help of this program is it possible to make it so that without CSS I went into the recovery - just turned it off, squeezed + and turn it on and then it comes in and the mod factor !!
michfood
Message#17
11.12.12, 16:50
Guru
*********
[offline]

Group: Friendssavagemessiahzine.com
Messages 4146
Check in: 07.10.09

Reputation:-  745  +

can not. with it, you can only disassemble and reassemble the img file


ps - 124 downloaded, two thanks to the reputation - and the rest did not get something?

Post has been editedmichfood - 11.12.12, 16:52


--------------------
without a signature
Pebba
Message#18
11.12.12, 16:53
Local
*****
[offline]

Group: Friendssavagemessiahzine.com
Messages 217
Check in: 26.12.10
Xiaomi Mi A1 4/64

Reputation:-  5  +

michfoodBut maybe there is some other program for this?:
michfood
Message#19
11.12.12, 16:57
Guru
*********
[offline]

Group: Friendssavagemessiahzine.com
Messages 4146
Check in: 07.10.09

Reputation:-  745  +

It's not about the prog, but the fact that some recoveries check the availability of power or the current battery charge - if these conditions are not met - it is not included in the recove.
usually not at all, but as always variations are possible
Made to ensure that when firmware update.zip the battery suddenly did not sit down and the body was not worn


--------------------
without a signature
Pebba
Message#20
11.12.12, 17:01
Local
*****
[offline]

Group: Friendssavagemessiahzine.com
Messages 217
Check in: 26.12.10
Xiaomi Mi A1 4/64

Reputation:-  5  +

Ok, but you can make it so that the combination + and the inclusion were not included in the mode factor but in the recovery ???

thank
michfood
Message#21
11.12.12, 17:04
Guru
*********
[offline]

Group: Friendssavagemessiahzine.com
Messages 4146
Check in: 07.10.09

Reputation:-  745  +

it is also impossible :) - this is all as "sewn" and does not change


--------------------
without a signature

64 pagesV  1 2 3 4 5 6 > » 


 mobile version    Now: 04/04/19 06:40