Jump to content


Photo

Extracting UPDATE.APP HELP

- - - - -

  • Please log in to reply
32 replies to this topic

#1
Gary_J_Wright

Gary_J_Wright

    Enthusiast

  • Members
  • PipPipPip
  • 230 posts
  • Gender:Male
  • Location:Norwich Norfolk UK
  • Devices:Zte Blade III, Lumia 530
  • Twitter:@Gary_J_Wright
this is a script that can extract update.app for G300 originally by Mcspoon then zebadger and Qiwu Haung

Need help with modifying this perl script for windows, that extracts update.app,
you need active perl for windows installed to use
cant quite get it to extract properly and crap @ perl and my linux hard drive is down so cant dual boot into linux to use

trying to get it to complete with out errors


plus im on the beer tonight, so not a good combo.....Attached File  split_update.zip   2.2KB   337 downloads

Edited by Gary_J_Wright, 07 July 2012 - 11:13 PM.

  • 0
Posted Image

#2
tillaz

tillaz

    Hardcore

  • Developer Team
  • PipPipPipPipPipPip
  • 5,877 posts
  • Gender:Male
  • Location:Rockstar North
  • Interests:Time & Space
  • Devices:Moto X
what errors are you getting CRC ?

this is how i done it (post #22)
http://www.modaco.co...26/page__st__20

i just ignored the crc errors, and after extracting the system.img and boot.img everything seems ok

  • 0

#3
Dazzozo

Dazzozo

    Hardcore

  • Developer Team
  • PipPipPipPipPipPip
  • 3,319 posts
  • Gender:Male
  • Location:York, UK
  • Devices:Crescent, G300, Y300, Nexus 5
  • Twitter:@Dazzozo
Are you extracting B926?

  • 0
Like my work? Give me rep!

Like my work a lot? Donate! Remember to leave your forum name if you want to be credited!

#4
Gary_J_Wright

Gary_J_Wright

    Enthusiast

  • Members
  • PipPipPip
  • 230 posts
  • Gender:Male
  • Location:Norwich Norfolk UK
  • Devices:Zte Blade III, Lumia 530
  • Twitter:@Gary_J_Wright

Are you extracting B926?


yes to b926 and i think i removed the crc check from perl script, get a unknown file error when complete

the resulting system.img wont unpack with unyaffs (as you can do with a CWM backup) says it may be corrupted

  • 0
Posted Image

#5
Gary_J_Wright

Gary_J_Wright

    Enthusiast

  • Members
  • PipPipPip
  • 230 posts
  • Gender:Male
  • Location:Norwich Norfolk UK
  • Devices:Zte Blade III, Lumia 530
  • Twitter:@Gary_J_Wright

what errors are you getting CRC ?

this is how i done it (post #22)
http://www.modaco.co...26/page__st__20

i just ignored the crc errors, and after extracting the system.img and boot.img everything seems ok


i will try that way lol I just used the syntax i found via google, probably less alcohol would help to....

Edited by Gary_J_Wright, 08 July 2012 - 12:31 AM.

  • 0
Posted Image

#6
Dazzozo

Dazzozo

    Hardcore

  • Developer Team
  • PipPipPipPipPipPip
  • 3,319 posts
  • Gender:Male
  • Location:York, UK
  • Devices:Crescent, G300, Y300, Nexus 5
  • Twitter:@Dazzozo
You can't extract B926 with unyaffs2 as it isn't a yaffs2 image. It's an ext4 image. As much as we'd like, unyaffs2 isn't the ultimate solution to every Android image.

  • 1
Like my work? Give me rep!

Like my work a lot? Donate! Remember to leave your forum name if you want to be credited!

#7
Gary_J_Wright

Gary_J_Wright

    Enthusiast

  • Members
  • PipPipPip
  • 230 posts
  • Gender:Male
  • Location:Norwich Norfolk UK
  • Devices:Zte Blade III, Lumia 530
  • Twitter:@Gary_J_Wright

You can't extract B926 with unyaffs2 as it isn't a yaffs2 image. It's an ext4 image. As much as we'd like, unyaffs2 isn't the ultimate solution to every Android image.


okay i see more research and less alcohol!!! :unsure: used diskinternasl linux reader for windows to mount the ext4.img and to extract /save file structure - sorted!

Edited by Gary_J_Wright, 08 July 2012 - 01:07 AM.

  • 0
Posted Image

#8
sej7278

sej7278

    Hardcore

  • Members
  • PipPipPipPipPipPip
  • 1,647 posts
  • Gender:Male
  • Devices:ZTE Blade
if its ext4 then you could mount it on linux using just a loop:
mount -t ext4 -o loop ext4.img /mnt

if you're getting "unknown file" its just that that file doesn't exist in %fileHash which is quite likely, and not a problem i'd say.

you don't need to rename the file, just pass it in as an argument:
./split_update.pl UPDATA.APP

i just had a poke at it and oddly enough split_update.pl gives me "Unrecognised file format. Wrong identifier." but split_updata.pl doesn't, even though the code for doing that bit doesn't differ (maybe its windoze line wrappings or something).

i end up with this lot, most of the unknown_file's just seem to be huawei version strings (e.g. U8818V100R001C17B926 and U8815V100R001C00B924)

$ file *
AMSSMBN.img:	   x86 boot sector, mkdosfs boot message display, code offset 0x3c, OEM-ID " mkdosfs", sectors/cluster 8, root entries 512, Media descriptor 0xf8, sectors/FAT 130, heads 64, sectors 266240 (volumes > 32 MB) , serial number 0x7a0a34fb, label: "		   ", FAT (16 bit)
appsboothd.mbn:	data
boot.img:		  data
boot_versions.txt: data
cust.img:		  Linux rev 1.0 ext4 filesystem data (extents) (large files)
file01.mbn:		Hitachi SH big-endian COFF object, not stripped
file02.mbn:		data
file04.mbn:		data
file05.mbn:		data
file07.mbn:		data
file18.mbn:		data
file20.mbn:		data
file21.mbn:		Tower32/800 68020
recovery.img:	  data
system.img:		Linux rev 1.0 ext4 filesystem data (extents) (large files)
unknown_file.0:	x86 boot sector; partition 1: ID=0x4d, active, starthead 0, startsector 1, 40 sectors; partition 2: ID=0x45, starthead 0, startsector 41, 600 sectors; partition 3: ID=0xc, starthead 0, startsector 641, 266240 sectors; partition 4: ID=0x5, starthead 0, startsector 266881, 0 sectors, code offset 0x0
unknown_file.1:	ASCII text, with CRLF line terminators
unknown_file.10:   ASCII text, with CRLF line terminators
unknown_file.2:	data
unknown_file.3:	ASCII text, with CRLF line terminators
unknown_file.4:	data
unknown_file.5:	data
unknown_file.6:	DOS executable (device driver)
unknown_file.7:	data
unknown_file.8:	DBase 3 index file
unknown_file.9:	ASCII text, with CRLF line terminators
userdata.img:	  Linux rev 1.0 ext4 filesystem data (extents) (large files)
version.txt:	   data

Edited by sej7278, 08 July 2012 - 02:06 PM.

  • 1

#9
Dazzozo

Dazzozo

    Hardcore

  • Developer Team
  • PipPipPipPipPipPip
  • 3,319 posts
  • Gender:Male
  • Location:York, UK
  • Devices:Crescent, G300, Y300, Nexus 5
  • Twitter:@Dazzozo
How is it typical of Huawei? This isn't Huawei's code. Read the comments at the top, it was clearly added by the guy who wrote the script.

  • 0
Like my work? Give me rep!

Like my work a lot? Donate! Remember to leave your forum name if you want to be credited!

#10
Davidoff59

Davidoff59

    Hardcore

  • Members
  • PipPipPipPipPipPip
  • 2,317 posts
  • Gender:Male
  • Devices:Orange San Francisco, G300
I was going to say that I thought the code was tweaked on other phones so we could identify what each individual file was so the same will need doing for this script.

  • 0

#11
Gary_J_Wright

Gary_J_Wright

    Enthusiast

  • Members
  • PipPipPip
  • 230 posts
  • Gender:Male
  • Location:Norwich Norfolk UK
  • Devices:Zte Blade III, Lumia 530
  • Twitter:@Gary_J_Wright
Dont worrry used tillaz version ignored the crc and extracted the ext4.img and saved file structure - sorted - shame i missed tillaz post it would of saved me a hour or so!

  • 0
Posted Image

#12
tcpaulh

tcpaulh

    Hardcore

  • Members
  • PipPipPipPipPipPip
  • 1,004 posts
  • Gender:Male
  • Devices:Coolpad F1, Moto G, G300
  • Twitter:@tcpaulh
Which of these remain a mystery:-

AMSSMBN.img 22,760,448
appsboothd.mbn 40
boot.img 4,462,592
boot_versions.txt 40
cust.img 41,943,040
file01.mbn 80
file02.mbn 40
file04.mbn 9,508
file05.mbn 641,424
file07.mbn 40
file18.mbn 128
file20.mbn 40
file21.mbn 38,962
recovery.img 5,146,624
system.img 396,361,728
unknown_file.0 405
unknown_file.1 24,576
unknown_file.10 20
unknown_file.2 145,844
unknown_file.3 25
unknown_file.4 3,145,728
unknown_file.5 3,145,728
unknown_file.6 768,000
unknown_file.7 3,864,000
unknown_file.8 205,108
unknown_file.9 330
userdata.img 155,189,248


  • 0

How To Provide Error Logs

 

There's a problem on KitKat with text wrap / reflow not working. Issue raised here. Please Star and Reply if you think it's a stupid regression


#13
Dazzozo

Dazzozo

    Hardcore

  • Developer Team
  • PipPipPipPipPipPip
  • 3,319 posts
  • Gender:Male
  • Location:York, UK
  • Devices:Crescent, G300, Y300, Nexus 5
  • Twitter:@Dazzozo
unknown_files :P

  • 0
Like my work? Give me rep!

Like my work a lot? Donate! Remember to leave your forum name if you want to be credited!

#14
tcpaulh

tcpaulh

    Hardcore

  • Members
  • PipPipPipPipPipPip
  • 1,004 posts
  • Gender:Male
  • Devices:Coolpad F1, Moto G, G300
  • Twitter:@tcpaulh
;-) So we know what eg file01.mbn is?

  • 0

How To Provide Error Logs

 

There's a problem on KitKat with text wrap / reflow not working. Issue raised here. Please Star and Reply if you think it's a stupid regression


#15
da2401

da2401

    Newbie

  • Members
  • Pip
  • 10 posts
Some of the 40-byte-files are identical - those are the 'HD'-files .. (Hardware Description, or Hardware Device, just guessing)

Here is a list of what those file could be ...

file01.mbn -> HD-file
file02.mbn -> HD-file
file04.mbn -> could be QCSBL_CFGDATA
file05.mbn -> imho the extracting / flashing / controlling program
file07.mbn -> HD-File
file18.mbn -> MD5_RSA
file20.mbn -> HD-File
file21.mbn -> ADSP ?
unknown_file.0 -> OEMSBL_Version-List (list of upgradeable Versions)
unknown_file.1 -> another Config-File (?)
unknown_file.10 -> AMSS-Version
unknown_file.2 -> QC_SystemBootloader (?)
unknown_file.3 -> OEMSBL_Version
unknown_file.4 -> MODEM_ST1
unknown_file.5 -> MODEM_ST2
unknown_file.6 -> Boot-Splashlogo (RAW565 480x800)
unknown_file.7 -> Install-Pictures (Updateing 1/2, Installing 2/2, one RAW565, 480 width, 4025 height)
unknown_file.8 -> fastboot (?)
unknown_file.9 -> AMSS_Version_List

  • 1

#16
tcpaulh

tcpaulh

    Hardcore

  • Members
  • PipPipPipPipPipPip
  • 1,004 posts
  • Gender:Male
  • Devices:Coolpad F1, Moto G, G300
  • Twitter:@tcpaulh
da2401, that's great thanks.

BTW, there's (unfinished?) repacker code at https://github.com/terrex/unupdatapp courtesy of terrex found at http://www.modaco.co...l/page__st__180

  • 0

How To Provide Error Logs

 

There's a problem on KitKat with text wrap / reflow not working. Issue raised here. Please Star and Reply if you think it's a stupid regression


#17
b4da55

b4da55

    Addict

  • Members
  • PipPipPipPipPip
  • 919 posts
will this be able to change caseband/version check?

  • 0

#18
tcpaulh

tcpaulh

    Hardcore

  • Members
  • PipPipPipPipPipPip
  • 1,004 posts
  • Gender:Male
  • Devices:Coolpad F1, Moto G, G300
  • Twitter:@tcpaulh

will this be able to change caseband/version check?

Potentially, yes. Not sure how far along it is. Signature checking may still need disabling.

  • 0

How To Provide Error Logs

 

There's a problem on KitKat with text wrap / reflow not working. Issue raised here. Please Star and Reply if you think it's a stupid regression


#19
b4da55

b4da55

    Addict

  • Members
  • PipPipPipPipPip
  • 919 posts
that would be awesome.


keep up the good work

  • 0

#20
da2401

da2401

    Newbie

  • Members
  • Pip
  • 10 posts
Also interesting: http://www.scribd.co...ading-procedure

Those 40-Byte-HD-files are header binaries, but I still don't know what they good for.

  • 1




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users