Jump to content

Repacking UPDATA.APP part 2


Recommended Posts

Guest dee098
Posted (edited)

remember this post about repacking UPDATA.APP ?

i've had some progress on it and decided to create a new post about it (that one was not updated for a long time).

so, here is the idea :

RecordId  :  55 AA 5A A5                                       U.Z.
HeaderSize: F8 00 00 00 ....
Always 1 : 01 00 00 00 ....
HardwareID: 48 57 55 38 32 32 30 FF HWU8220.
File Seq : 00 00 00 F2 ....
File Size : 00 B0 04 00 ....
File Date : 32 30 31 30 2E 30 34 2E 31 39 00 00 00 00 00 00 2010.04.19......
File Time : 31 34 2E 35 30 2E 35 30 00 00 00 00 00 00 00 00 14.50.50........
Input? : 49 4E 50 55 54 00 00 00 00 00 00 00 00 00 00 00 INPUT...........
Blank? : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
Something2: D2 B7 00 10 ....
Blank? : 00 00 ..
Checksum : 08 04 08 04 08 04 08 04 08 04 08 04 08 04 08 04 ................
Checksum : 08 04 08 04 08 04 08 04 08 04 08 04 08 04 08 04 ................
Checksum : 08 04 08 04 08 04 08 04 08 04 08 04 08 04 08 04 ................
Checksum : 08 04 08 04 08 04 08 04 08 04 C3 28 C8 B2 B4 69 ...........(...i
Checksum : 9A 1D 31 34 B7 11 38 A4 08 04 08 04 08 04 08 04 ..14..8.........
Checksum : 08 04 08 04 08 04 08 04 08 04 08 04 08 04 08 04 ................
Checksum : 08 04 08 04 08 04 08 04 08 04 08 04 08 04 08 04 ................
Checksum : 08 04 08 04 08 04 08 04 08 04 08 04 08 04 08 04 ................
Checksum : 08 04 08 04 08 04 08 04 08 04 08 04 08 04 08 04 ................
Checksum : 08 04 08 04 08 04 ......[/codebox]

guys had problem with defying Something2 . The first 2 bytes of Something2 is CRC for headers first 0x62 bytes . If you'll replace D2 B7 with zeroes in it and calculate CRC for the header - you'll get D2 B7.

the other 2 bytes supposed to be block size (0x0100= 4K block)

keeping this in mind - i've managed to pass through any modifications in headers.

now there is another problem:

when phone uploads UPDATA.APP , at first it checks headers integrity and data parts integrity. then it combines all data parts together and rechecks it with md5 or something like it.

i've managed to write some code on unpacking/repacking huawei .app files (and some more useful stuff for other huawei phones). If interested - can post it here...

exe to play with ---crc16.exe

Some buttons disabled (for others not android Huawei phones) .

Instruction:

UppFile -Unpack and repack *.UPP File(simple extractor).

data file - Fix header for modified extracted content

Thm File - (some theme unpacker for not Android base phone)

bmp2row - convert bmp,png,jpg to raw565 format (boot screen and other).

Edited by dee098
Guest Sh4d0w940
Posted

It would be great if you could share your code, but a warning might be needed because we don't know what happens if you flash edited updata.app files.

On the other side it could be very helpfull to be able to flash your own updata.app files because they can change way more than zips through recovery.

Sh4d0w940

Guest TJ Style
Posted

There is good news for the unpacking and repacking the *.APP

keep in the good work bro..

Guest TJ Style
Posted

I will try your tool, and give you report :-)

thank you..

Guest TJ Style
Posted

still failed when flash after repacking :D

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.