Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,779,383 Members 50,893 Now Online
XDA Developers Android and Mobile Development Forum

[TOOL] Blob tools (Unpack/Repack)

Tip us?
 
rayman
Old
#1  
Recognized Developer - OP
Thanks Meter 1089
Posts: 248
Join Date: May 2008

 
DONATE TO ME
Default [TOOL] Blob tools (Unpack/Repack)

Hey guys

Here are the tools used for the new root by Bumble-Bee & me!

https://github.com/AndroidRoot/BlobTools

The tools can unpack and repack blobs. Since the blob header is still not fully understood, repacking requires the original header from an existing blob file!

It is able to pack any number of partitions in a single blob (given it fits in the staging partition of course..around 500MB is the limit). The tool should be selfexplanatory from the output it gives if run without parameters, but I'll be happy to elaborate if needed.

Enjoy!

-RaYmAn
DO NOT PRIVATE MSG, EMAIL, TRACK ME DOWN ON FACEBOOK OR ANYTHING ELSE.

Sony Xperia Z (Stock!)
ASUS Transformer Prime (CM10.1)
Notion Ink Adam LCD/3G (AOSP ICS)

NvFlash for B70+ Devices
NvFlash: TF201 | TF300 I TF700
The Following 28 Users Say Thank You to rayman For This Useful Post: [ Click to Expand ]
 
Fab985
Old
#2  
Fab985's Avatar
Retired Recognized Developer
Thanks Meter 177
Posts: 798
Join Date: Jun 2008
Location: Battipaglia
I'm trying to use this tool, but i need instruction
WaterBear ROM Project


  • Samsung Galaxy S III
  • HTC EVO 3D
  • HTC Desire S
  • Sony Ericsson x10 mini
  • [Discontinued]LG Optimus 3D
  • [Discontinued] HTC HD2 (WM + WP7 + Android SD)
  • [Discontinued] HTC Pro 2

ITALIAN SUPPORT ON HDBLOG.IT
 
rayman
Old
#3  
Recognized Developer - OP
Thanks Meter 1089
Posts: 248
Join Date: May 2008

 
DONATE TO ME
Quote:
Originally Posted by Fab985 View Post
I'm trying to use this tool, but i need instruction
heh. Fair enough
First compile the tool (obviously)

[TO UNPACK]
Code:
./blobunpack /path/to/blob
This creates a number of files, in particular a blobname.HEADER file which contains the header of the blob (As mentioned in previous post). The remaining files are named the same as the partitions on the device, e.g. blob.LNX (boot.img) or blob.SOS (Recovery) or even blob.APP (system.img)

[TO PACK]
You need the blobname.HEADER file from the unpack step at this point.
If you want to make a blob with e.g. just boot.img you do the following:
Code:
./blobpack blobname.HEADER outputfile LNX boot.img
The above commands places the boot.img in the LNX partition using the previously extracted HEADER and creates a blob in "outputfile" ready to flash =P

If you wanted to create a blob with boot.img and recovery, you'd do
Code:
./blobpack blobname.HEADER outputfile LNX boot.img SOS recovery.img

I hope this helps
DO NOT PRIVATE MSG, EMAIL, TRACK ME DOWN ON FACEBOOK OR ANYTHING ELSE.

Sony Xperia Z (Stock!)
ASUS Transformer Prime (CM10.1)
Notion Ink Adam LCD/3G (AOSP ICS)

NvFlash for B70+ Devices
NvFlash: TF201 | TF300 I TF700
The Following User Says Thank You to rayman For This Useful Post: [ Click to Expand ]
 
Fab985
Old
#4  
Fab985's Avatar
Retired Recognized Developer
Thanks Meter 177
Posts: 798
Join Date: Jun 2008
Location: Battipaglia
Default Thanks!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Nice work, thank you for the instructions
i've successfully unpacked the rom now
WaterBear ROM Project


  • Samsung Galaxy S III
  • HTC EVO 3D
  • HTC Desire S
  • Sony Ericsson x10 mini
  • [Discontinued]LG Optimus 3D
  • [Discontinued] HTC HD2 (WM + WP7 + Android SD)
  • [Discontinued] HTC Pro 2

ITALIAN SUPPORT ON HDBLOG.IT
 
kevcube
Old
#5  
Junior Member
Thanks Meter 0
Posts: 15
Join Date: Feb 2010
It kinda just makes unexplained files, can we have any sort of tutorial as to how we might go about extracting them?
 
seshmaru
Old
#6  
Senior Member
Thanks Meter 353
Posts: 1,251
Join Date: Aug 2009
Quote:
Originally Posted by kevcube View Post
It kinda just makes unexplained files, can we have any sort of tutorial as to how we might go about extracting them?
I guess you suck at reading more than 1 post.
 
rayman
Old
#7  
Recognized Developer - OP
Thanks Meter 1089
Posts: 248
Join Date: May 2008

 
DONATE TO ME
Quote:
Originally Posted by kevcube View Post
It kinda just makes unexplained files, can we have any sort of tutorial as to how we might go about extracting them?
  • blob.HEADER - Header stuff (ignore it)
  • blob.APP - system.img
  • blob.LNX - boot.img
  • blob.SOS - recovery.img (e.g. regular boot.img)
  • blob.EBT - bootloader.bin (ignore)

The system.img is ext4 and can be mounted as a loop fs in linux.
The rest of the files..well..If you don't know how to extract them, you have no use of these blob tools (*hint* http://github.com/AndroidRoot/BootTools)
DO NOT PRIVATE MSG, EMAIL, TRACK ME DOWN ON FACEBOOK OR ANYTHING ELSE.

Sony Xperia Z (Stock!)
ASUS Transformer Prime (CM10.1)
Notion Ink Adam LCD/3G (AOSP ICS)

NvFlash for B70+ Devices
NvFlash: TF201 | TF300 I TF700
The Following User Says Thank You to rayman For This Useful Post: [ Click to Expand ]
 
kevcube
Old
(Last edited by kevcube; 14th May 2011 at 09:51 PM.)
#8  
Junior Member
Thanks Meter 0
Posts: 15
Join Date: Feb 2010
Well that was kinda embarassing. I didn't feel like booting into ubuntu so I compiled and ran those tools in cygwin, and I didn't read the entirety of your explanation post.

To think I'm one of those people who gets really angry when I see others make that mistake..

Edit - just so you know I wasn't asking what to do with the source code, or how to get a blob. I just needed to know that whole ext4 image thing, and how it related to the blob.APP stuff.
 
ivan.volosyuk
Old
#9  
Senior Member
Thanks Meter 43
Posts: 127
Join Date: Dec 2010
Great thanks for the utility! I've just moved from TW SKU to US flashing LNX and APP from clockworkmod/adb.
 
Blades
Old
(Last edited by Blades; 30th May 2011 at 06:51 AM.)
#10  
Senior Member
Thanks Meter 214
Posts: 700
Join Date: Aug 2008
So it seems the header (at least by terms of mdsum, not hex) changed for the 3.1 update.. Also 'unblobs' and has a blob.PT file, as in.. partition table..

LNX, EBT, SOS, APP, GP1, USP, MSC, CAC, PER, YTU, UDA, GPT, PT, BAK,

they also have some HSPA+ additions for their 3G/GSM model

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes