• Announcements

    • Reminder - MoDaCo position on illegal content   07/30/15

      ILLEGAL CONTENT I'd like to just reaffirm MoDaCo's position regarding piracy and illegal content in the light of some recent questions / postings. Posts will be censored by myself or my moderation team if the contain or link to: Illegal / pirated / cracked software or sites that host such softwareNintendo emulators / ROMs or sites hosting them (in light of Nintendo's legal stance)CUSTOM ROMS You may discuss and post links to custom device ROMs on MoDaCo, provided the following rules are adhered to: ROMs must not contain any illegal 3rd party software (this includes trial versions included without permission)ROMs must give full credit to the original authorISSUES If you have any issues with this policy, please contact PaulOBrien directly via PM.
    • Reminder: Selling items on the forum directly is not allowed   07/30/15

      Please note that selling items on the forum directly is not allowed by the forum rules. There is a forum for eBay auctions whereby you can list the items on eBay and link to them there. This is the ONLY forum for this type of activity. You may also advertise links to the eBay forum in your signature. Please note that selling directly in contravention of these rules will result in a warning / suspension / ban.

[GEN2] Proper Gen2 TPT Generator/Extractor

26 posts in this topic

Posted (edited) · Report post

FOR EXPERIENCED USERS ONLY!

With a lot of help from my friend CodeNeos and based on cpg's research, I present you, the easy-to-use, informative, Gen2 TPT extractor/generator!

This simple tool makes life easy - not just extract and repack on the blind, see all the information you need!

Everything ordered on a nice UI, easy to use, yet effective, fast, and powerful!

Features:

- Extract any BIN file

- Create a BIN file from MBN and IMG files (partition and partition_zte mbn's are required, tool checks for that)

- See a content of a BIN TPT update without extracting it

- Extract only selected files

Coming:

- Partition editor for Gen2 firmwares

- YAFFS2 browser to go deeper!

- A nice all-in-one GUI

To work, these tools require .Net4!

post-742765-1305421723_thumb.png

post-742765-1305421715_thumb.png

Your look may differ from the seen - although should be almost the same as on the pictures.

Changelog:

2011.05.15 - V1.1

- Extractor: Extract selected function

2011.05.15 - V1.0

- Initial release

WARNING

This tool is NOT for beginners, or intermediates. This is to help the life of the developers, so, if you DON'T KNOW what you're doing, STOP NOW. Do NOT even download it.

Also, do NOT mix Gen1 and Gen2 TPT files, only if you know what you're doing! It is EXTREMELY DANGEROUS!

I do not take any warranty if your phone bricks, burns, explodes, barkes from using this tool. You've been warned.

Gen2_TPT.zip -- MD5: 1e4bd2d4e1bec3cc144c8e32943ef34c

Edited by fonix232
3

Share this post


Link to post
Share on other sites

Posted · Report post

But cpg's tool is much easier to use & will compile for any system. I don't see the point in this at all.

http://android.modaco.com/index.php?s=&amp...t&p=1693458

cpg's tool has no security checks (this one has, and more coming, take a look at the upcoming features), and it's not GUI based. With this, you can see everything about the BIN file, without even extracting it!

0

Share this post


Link to post
Share on other sites

Posted · Report post

I think this is an excellent idea.

Being able to edit the contents of .img files and editing the partition layout with a GUI would be awesome

I tried it with the China Unicom update. taking the original image.bin, and using this tool to go to TPT files and then back to another image.bin, the two image.bin's are not identical. If i take the TPT files I extracted and then go TPT>image.bin>TPT then the TPT fiels are identical.

If i convert the Comviq TPT files to image.bin and back they are identical, but cefs.mbn is missing. Is this intended/why?

0

Share this post


Link to post
Share on other sites

Posted · Report post

I think this is an excellent idea.

Being able to edit the contents of .img files and editing the partition layout with a GUI would be awesome

I tried it with the China Unicom update. taking the original image.bin, and using this tool to go to TPT files and then back to another image.bin, the two image.bin's are not identical. If i take the TPT files I extracted and then go TPT>image.bin>TPT then the TPT fiels are identical.

If i convert the Comviq TPT files to image.bin and back they are identical, but cefs.mbn is missing. Is this intended/why?

The bin files won't be identical as the file order isn't hardcoded (except for partition.mbn and partition_zte.mbn). But the files in the BIN are identical, just in another order (check cpg's layout, and do a diff on the header, you'll see what I mean!)

Cefs.mbn is missing because a, it isn't flashed by TPT b, it caused the IMEI problem with the EXE downgrade.

0

Share this post


Link to post
Share on other sites

Posted · Report post

The bin files won't be identical as the file order isn't hardcoded (except for partition.mbn and partition_zte.mbn). But the files in the BIN are identical, just in another order (check cpg's layout, and do a diff on the header, you'll see what I mean!)

Cefs.mbn is missing because a, it isn't flashed by TPT b, it caused the IMEI problem with the EXE downgrade.

OK, makes sense. is cefs.mbn not flashed by an image.bin either?

0

Share this post


Link to post
Share on other sites

Posted · Report post

OK, makes sense. is cefs.mbn not flashed by an image.bin either?

Nope, it is only flashed by the ZTE flashing tool (any EXE installer).

0

Share this post


Link to post
Share on other sites

Posted · Report post

Hi!

1. Are the firmware updates distributed in some countries in the form of image.bin files? In Hungary, I haven't heard about image.bin files. You are from Hungary as well, so could you explain a bit about this image.bin format and its usage?

2. Do you think that the amss.mbn from the Hungarian T-Mobile Froyo update exe (sysdy\files) can be put into wbaw's Gen1 -> Gen2 TPT without bricking the phone? (in wbaw's TPT one can find the Swedish radio mbn, I'd like to have the Hungarian one on my Blade).

0

Share this post


Link to post
Share on other sites

Posted · Report post

Hi!

1. Are the firmware updates distributed in some countries in the form of image.bin files? In Hungary, I haven't heard about image.bin files. You are from Hungary as well, so could you explain a bit about this image.bin format and its usage?

2. Do you think that the amss.mbn from the Hungarian T-Mobile Froyo update exe (sysdy\files) can be put into wbaw's Gen1 -> Gen2 TPT without bricking the phone? (in wbaw's TPT one can find the Swedish radio mbn, I'd like to have the Hungarian one on my Blade).

1. The image.bin format is used on already-Gen2 phones (like the chinese Blade, it got an update, that's where from we know the file format). The Gen1-Gen2 transition was an exe as it needed to repartition the modem areas too - that's why it could not be done via a simple TPT. This is basically the same as the normal TPT, just in one file. Usage is same, put into /sdcard/image, pull battery, switch on with holding Menu, VolUp, and Power, a bar will appear, and when finished it'll reboot. Done :unsure:

2. I guess you can but you should ask wbaw about it, if it was changed or not!

0

Share this post


Link to post
Share on other sites

Posted · Report post

thank you for this, running official froyo for t-mobile hungary at present, perfect for testing this with

0

Share this post


Link to post
Share on other sites

Posted · Report post

I have no idea what any of the above means, but I thank you for your (and CodeNeos') work.

0

Share this post


Link to post
Share on other sites

Posted · Report post

Hi!

1. Are the firmware updates distributed in some countries in the form of image.bin files? In Hungary, I haven't heard about image.bin files. You are from Hungary as well, so could you explain a bit about this image.bin format and its usage?

2. Do you think that the amss.mbn from the Hungarian T-Mobile Froyo update exe (sysdy\files) can be put into wbaw's Gen1 -> Gen2 TPT without bricking the phone? (in wbaw's TPT one can find the Swedish radio mbn, I'd like to have the Hungarian one on my Blade).

I replaced the amss.mbn and amsshd.mbn yesterday but make sure you keep them together, I think the Hungarian amss gives me 1-2 bars in a dead spot (before) I had the Swedish one and I got no signal, it's well worth doing.

0

Share this post


Link to post
Share on other sites

Posted · Report post

Just like to voice my input into this:

I think you should revert back to using Windows 2 Forms instead of WPF which is a disgusting code bloat and slow and a hog. Not alone that - targetting .NET 4 is overkill - should realistically target .NET 2 at the minimum for those who may not have the horsepower to run WPF apps. Thing is, personally, I would not download the .NET 4 runtime just to run your app. Always aim for the minimum spec for the wider audience and not just for you and your own machine which has more horsepower than the average blade hacker, a good chance that the average blade hacker runs on a Linux platform :unsure:

Just my 2cents :)

0

Share this post


Link to post
Share on other sites

Posted (edited) · Report post

Just like to voice my input into this:

I think you should revert back to using Windows 2 Forms instead of WPF which is a disgusting code bloat and slow and a hog. Not alone that - targetting .NET 4 is overkill - should realistically target .NET 2 at the minimum for those who may not have the horsepower to run WPF apps. Thing is, personally, I would not download the .NET 4 runtime just to run your app. Always aim for the minimum spec for the wider audience and not just for you and your own machine which has more horsepower than the average blade hacker, a good chance that the average blade hacker runs on a Linux platform :unsure:

Just my 2cents :)

I agree, cpg's tool was much better. It just needs a simple android gui frontend really. The code he posted compiles easily for any platform, you just need gcc.

There's a good chance that somebody that wants to run this has a zte blade, so something that runs on the zte blade would be the obvious choice.

Edited by wbaw
0

Share this post


Link to post
Share on other sites

Posted · Report post

Ok, this program has much steeper and more specific requirements than cpg's code. But its requirements are hardly out of this world - I would say most people's computers run windows and wouldn't have a problem with this. I find that getting all the .net runtimes becomes inevitable after a while anyway. This program is distributed in compiled form, which makes life much easier for alot of people who don't have a compiler handy, and it has a GUI, which makes it much more convenient to use. If it supports automatic partition layout editing (and potentially automatic manipulation of anything else that can be done by editing a .mbn) then it has a lot of capabilities that cpg's tool doesn't. A simple GUI based tool could replace compiling your own program, running it from the command line, learning about the structure of .mbn files, and hex editing them. Besides all that, cpg's tool is still there for anyone to use, if they prefer it.

0

Share this post


Link to post
Share on other sites

Posted · Report post

Ok, this program has much steeper and more specific requirements than cpg's code. But its requirements are hardly out of this world - I would say most people's computers run windows and wouldn't have a problem with this. I find that getting all the .net runtimes becomes inevitable after a while anyway. This program is distributed in compiled form, which makes life much easier for alot of people who don't have a compiler handy, and it has a GUI, which makes it much more convenient to use. If it supports automatic partition layout editing (and potentially automatic manipulation of anything else that can be done by editing a .mbn) then it has a lot of capabilities that cpg's tool doesn't. A simple GUI based tool could replace compiling your own program, running it from the command line, learning about the structure of .mbn files, and hex editing them. Besides all that, cpg's tool is still there for anyone to use, if they prefer it.

I'm working on the partition editor, and a YAFFS2 image manager too (I would need a C# version of it though). And yes you're right, most of the peole use Win7 now (and who doesn't, they don't have a PC powerful enough to extract a firmware fast, and repack it too). And on Win7, .Net4 is already available.

The UI isn't that slow or a hog, as you said, wbaw, it is actually pretty fast, and works better than my first initial WinForms one. Faster, too, and has easier control (like, in WinForms, I can not make that nice message pop up, or disable the whole screen easily while extracting. WPF is also a lot more versatile, I've added the extract selected part without a hassle, while with WinForms I would have had to work for hours to get it properly working. So, it stays as-is.

When the whole code is ready, I will publish the sources, and then you can make any UI for it - but with some limitation. The code will be published in GPL - with some appendix of mine, including the licensing of the apps based on this code: everything related must be GPL licensed too (or atleast open source). So wbaw if you do not like the UI, do better, noone will stop you.

0

Share this post


Link to post
Share on other sites

Posted · Report post

Hmm, now I like wbaw and I like fonix232 as well, but which one is better? There's only one way to find out...

0

Share this post


Link to post
Share on other sites

Posted · Report post

anyone made an image.bin yet?

0

Share this post


Link to post
Share on other sites

Posted · Report post

anyone made an image.bin yet?

Yep, me, flashed it, without problem.

0

Share this post


Link to post
Share on other sites

Posted · Report post

Is a new version coming?

0

Share this post


Link to post
Share on other sites

Posted · Report post

Is a new version coming?

What new you want in it? :D

I'm a bit busy with school stuffs (oral exams etc coming) and my new tablet will arrive probably tomorrow, so... not too much work on it. But I'm still planning the one big unified TPT editor!

0

Share this post


Link to post
Share on other sites

Posted · Report post

What new you want in it? :D

I'm a bit busy with school stuffs (oral exams etc coming) and my new tablet will arrive probably tomorrow, so... not too much work on it. But I'm still planning the one big unified TPT editor!

any news on the new version?

0

Share this post


Link to post
Share on other sites

Posted · Report post

I wanted to use it to create a TPT image base on the nandroid backup I took of my skate ( just after installing the CWM ) ... as I need to send it back to the support ( GPS issue , i think )

But the software crashes just after I start the build ( and have choosen a target )

is this a known bug ?

0

Share this post


Link to post
Share on other sites

Posted (edited) · Report post

the bug is you trying to operate a blade specific on a skate

edit: and making such a shameless bump

Edited by shmizan
0

Share this post


Link to post
Share on other sites

Posted (edited) · Report post

Strange ,

because I only followed a explanation that explains how to reinstall a Skate to its original states .... and they were asking to use that tool

And at that level , there is not yet any interraction with a blade ..

As you can use a MicroSD reader , have the rom on your hardisk and build the stuffs on the MicroSD or hardisk directly ...

Edited by cryoglobe
0

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now

MoDaCo is part of the MoDaCo.network, © Paul O'Brien 2002-2015. MoDaCo uses IntelliTxt technology.