FORUMS

XDA Picks: Best Apps of the Week (July 25 – Aug 1)

Apps are at the front and center of any smartphone experience, and with over a … more

Voices Of XDA: Orbiting The Earth With Android

Editor’s note: This week’s feature has been written by forum … more

CloudPlayer: DIY HiFi Music Streaming Solution

In our Helpful Guide to Music Streaming Services, we mentioned several different services … more

Optimize Battery Life with This Useful App

Battery life is an important aspect of your smartphone, especially if you use it for more … more

[TOOL] Blob tools (Unpack/Repack)

248 posts
Thanks Meter: 1,102
 
Post Reply Subscribe to Thread Email Thread
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
The Following 29 Users Say Thank You to rayman For This Useful Post: [ View ]
 
 
12th May 2011, 09:52 AM |#2  
Fab985's Avatar
Retired Recognized Developer
Flag Battipaglia
Thanks Meter: 177
 
More
I'm trying to use this tool, but i need instruction
12th May 2011, 10:11 AM |#3  
OP Recognized Developer
Thanks Meter: 1,102
 
Donate to Me
More
Quote:
Originally Posted by Fab985

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
The Following User Says Thank You to rayman For This Useful Post: [ View ]
12th May 2011, 10:31 AM |#4  
Fab985's Avatar
Retired Recognized Developer
Flag Battipaglia
Thanks Meter: 177
 
More
Thanks!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Nice work, thank you for the instructions
i've successfully unpacked the rom now
14th May 2011, 12:54 AM |#5  
Junior Member
Thanks Meter: 0
 
More
It kinda just makes unexplained files, can we have any sort of tutorial as to how we might go about extracting them?
14th May 2011, 09:16 AM |#6  
Senior Member
Thanks Meter: 374
 
More
Quote:
Originally Posted by kevcube

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.
14th May 2011, 10:14 AM |#7  
OP Recognized Developer
Thanks Meter: 1,102
 
Donate to Me
More
Quote:
Originally Posted by kevcube

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)
The Following User Says Thank You to rayman For This Useful Post: [ View ]
14th May 2011, 09:47 PM |#8  
Junior Member
Thanks Meter: 0
 
More
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.
Last edited by kevcube; 14th May 2011 at 09:51 PM.
19th May 2011, 03:48 PM |#9  
Senior Member
Thanks Meter: 43
 
More
Great thanks for the utility! I've just moved from TW SKU to US flashing LNX and APP from clockworkmod/adb.
30th May 2011, 06:46 AM |#10  
Senior Member
Thanks Meter: 215
 
More
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
Last edited by Blades; 30th May 2011 at 06:51 AM.
30th May 2011, 09:38 AM |#11  
OP Recognized Developer
Thanks Meter: 1,102
 
Donate to Me
More
Quote:
Originally Posted by Blades

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

So when you say the header has changed, you simply mean it's md5sum has changed? That's expected as the header is not neccessarily static. As long as the *format* of the header is the same, everything is good =P

The previous (full) updates also had a blob.PT containing all those partitions. Most of them are generated/maintained automatically by the bootloader however...
The Following User Says Thank You to rayman For This Useful Post: [ View ]

Read More
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes