MoDaCo is undergoing planned maintenance. Site functionality may be reduced - follow @modaco or @paulobrien on Twitter for updates.

  • Announcements

    • Reminder - MoDaCo position on illegal content

      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 software
      Nintendo 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 be hosted directly in topic via the MoDaCo attachment system
      ROMs must not contain any illegal 3rd party software (this includes trial versions included without permission)
      ROMs must give full credit to the original author
      This decision has been taken in light of the huge amount of interest in this area of device customisation within the community, and member feedback! Please note that custom ROM discussion should be kept in specific device sub-areas, (e.g. Kaiser.MoDaCo.com for Kaiser based devices). ISSUES If you have any issues with this policy, please contact me directly via PM. P
    • Support MoDaCo by signing up to a MoDaCo Silver or Gold membership

      To sign up to an annual MoDaCo Silver subscription which will eliminate all ads from the site (as well as giving you access to the MoDaCo Online Kitchens for Android) for only £9.99 using PayPal, Credit or Debit Card, ensure you are logged in to the site, and then click the link below, which will take you directly to the subscription store! You can also sign up to an annual MoDaCo Gold subscription for £29.99, which adds the benefits listed below! PURCHASE A MODACO SUBSCRIPTION - FREE Titanium Backup Mobile for Android worth $5.99! - FREE 1 year PrivateInternetAccess.com worth $39.95! - FREE 1 year LastPass Premium worth $12! - FREE CalcConvert for Pocket PC from Binaryfish worth $17.95! - FREE Calendar Bar for Pocket PC from OmegaOne worth $9.99! - FREE CamerAware for Pocket PC and Smartphone from MoDaCo worth £19.99 / $30! - FREE Chronos for Pocket PC from ActiveKitten worth $14.95! - FREE CodeWallet Pro for Smartphone and Pocket PC from DeveloperOne worth up to $24.95! - FREE Concentrix for Pocket PC from eSoft Interactive worth $9.95! - FREE FlexMail for Pocket PC and Smartphone from WebIS worth up to $59.90! - FREE FTouchSL for Pocket PC from Vekoff s.r.o. worth 10 euro / $12.50! - FREE Jewel Challenge for Pocket PC from eSoft Interactive worth $9.95! - FREE John Cody's Alerts Pro for Smartphone from Omnisoft worth $14.95! - FREE LingvoSoft Talking Dictionary 2008 English <-> Dutch for Pocket PC from Lingvosoft worth $49.95! - FREE LingvoSoft Talking Dictionary 2008 English <-> French for Pocket PC from Lingvosoft worth $49.95! - FREE LingvoSoft Talking Dictionary 2008 English <-> German for Pocket PC from Lingvosoft worth $49.95! - FREE LingvoSoft Talking Dictionary 2008 English <-> Italian for Pocket PC from Lingvosoft worth $49.95! - FREE LingvoSoft Talking Dictionary 2008 English <-> Spanish for Pocket PC from Lingvosoft worth $49.95! - FREE LingvoSoft Dictionary English <-> Dutch for Smartphone from Lingvosoft worth $49.95! - FREE LingvoSoft Dictionary English <-> French for Smartphone from Lingvosoft worth $49.95! - FREE LingvoSoft Dictionary English <-> German for Smartphone from Lingvosoft worth $49.95! - FREE LingvoSoft Dictionary English <-> Russian for Smartphone from Lingvosoft worth $49.95! - FREE LingvoSoft Dictionary English <-> Turkish for Smartphone from Lingvosoft worth $49.95! - FREE Note2Self for Pocket PC and Smartphone from WebIS worth up to $19.90! - FREE Opera 8.60 for Pocket PC and Smartphone from Opera Software worth up to $48! - FREE Pocket Informant for Pocket PC and Smartphone from WebIS worth up to $59.90! - FREE Pocket Launcher for Pocket PC and Smartphone from Conduits worth $9.95! - FREE PTab for Pocket PC and Smartphone from z4soft worth up to $60! - FREE Resco Explorer for Pocket PC and Smartphone from Resco worth up to $49.90! - FREE Safemode for Pocket PC from monocube worth $12.95 - FREE SplashPhoto for Pocket PC and Smartphone from SplashData worth up to $59.90! - FREE Sprite Backup for Pocket PC and Smartphone from Sprite Software worth $29.95! - FREE Teksoft Glyphs UI for Pocket PC and Smartphone from Teksoft €9.95! - FREE Teksoft HeadsetRemote for Pocket PC and Smartphone from Teksoft €4.95! - FREE Traffic Jam for Pocket PC from eSoft Interactive worth $9.95! - FREE unlock (1 per year) from imei-check.co.uk - DISCOUNT of 10% at MoDaCo FairDeal - DISCOUNT of 10% at Semsons.com - FORUM - AD FREE SITE - FORUM - custom rank / title - FORUM - double competition entries - FORUM - double post attachment space - FORUM - no search flood control - FORUM - priority event registration - FORUM - triple PM space
    • Reminder: Selling items on the forum directly is not allowed

      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 / suspensions / ban.

[APP] TPT Helper

158 posts in this topic

Posted (edited) · Report post

[color="#666666"]TPT Helper is designed to help you to easily repartition the phone and convert it to Gen 2 to let you run the latest custom ROMs. You should only use the TPT files included on European ZTE Blades.[/color]

[color="#666666"]
Features:

*Download TPT files giving different partition layouts
*Download TPT files which will convert and install a ROM in one go
*Build your own TPT choosing partition size, recovery and splash image (in the given range)
*Start the TPT from inside the app on some roms, no need to use the hardware buttons manually
*Check the file is intact
*Unzip the TPT files to the correct location
*Verify that all the files you're about to flash are intact
*Clean up afterwards to avoid accidental flashes[/color]

[url="https://market.android.com/details?id=com.amphoras.tpthelper"]https://market.andro...horas.tpthelper[/url]

The Gen 1 to Gen 2 TPT files linked to in the app were created by wbaw.

Thank you to Alex131089 for the French translations, FelixL for the German translations, top4ek for the Russian translations, wuxipaopao for the Chinese translations, Sokobeg for the Serbian translations and dejf for the Czech translations.

If you'd like to help with translations, you can add/update them here:

[url="http://www.getlocalization.com/TPT_Helper/"]http://www.getlocalization.com/TPT_Helper/[/url]

If you've added some, let me know so I can credit you with it.

[size="2"][font="Arial"]TPT Helper Copyright © 2011 David Phillips[/font][/size]
[size="2"] [font="Arial"]TPT Helper is free software: you can redistribute it and/or modify[/font][font="Arial"]it under the terms of the GNU General Public License as published by [/font][font="Arial"]the Free Software Foundation, either version 3 of the License, or [/font][font="Arial"](at your option) any later version.[/font][/size]

[size="2"][font="Arial"]TPT Helper is distributed in the hope that it will be useful, [/font][font="Arial"]but WITHOUT ANY WARRANTY; without even the implied warranty of [/font][font="Arial"]MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the [/font][font="Arial"]GNU General Public License for more details.[/font][/size]

[size="2"][font="Arial"]You should have received a copy of the GNU General Public License [/font][font="Arial"]along with TPT Helper. If not, see <http://www.gnu.org/licenses/>.[/font][/size]

[size="2"][font="Arial"]You can see a copy of the full license by picking the "License" option from the menu.[/font][/size]
[size="2"][font="Arial"]You can get a copy of the source code for this version from[/font][/size] [url="https://github.com/Amphoras/TPT-Helper/tree/V2"]https://github.com/A...-Helper/tree/V2[/url]

[attachment=75222:screenshot-1314482010092.png] [attachment=75221:screenshot-1314481999356.png] [attachment=75223:screenshot-1314482221441.png] [attachment=75224:screenshot-1314482251984.png] Edited by Amphoras
23

Share this post


Link to post
Share on other sites

Posted · Report post

That's an excellent project you've put together!

Well done on your completion of the project!

This thread should be stickied and thereby help newcomers :)

+1 from me :)
0

Share this post


Link to post
Share on other sites

Posted · Report post

Very nice and usefull. Thx
0

Share this post


Link to post
Share on other sites

Posted · Report post

Great idea! I agree this should be stickied, or else added to one of the stickied introductory posts. Why not add it to the blade wiki?
0

Share this post


Link to post
Share on other sites

Posted · Report post

Great app :)

Two suggestions (don't know if possible):
- include rooting-tool, (maybe ask the creator of the one-click-recovery for help, or even merge the two apps)
- try to reboot in fastboot mode. Maybe this is enough to trigger the TPT, and the hardware-keys are not needed.
1

Share this post


Link to post
Share on other sites

Posted (edited) · Report post

Thanks everyone :).

[quote name='FelixL' timestamp='1314646243' post='1791712']
Great app :)

Two suggestions (don't know if possible):
- include rooting-tool, (maybe ask the creator of the one-click-recovery for help, or even merge the two apps)
- try to reboot in fastboot mode. Maybe this is enough to trigger the TPT, and the hardware-keys are not needed.
[/quote]

Dunno about the rooting idea, maybe.

I tried rebooting into different modes, but I didn't find anything that would start the TPT except holding the buttons while powering on. Edited by Amphoras
1

Share this post


Link to post
Share on other sites

Posted · Report post

This looks like a great tool. Installed it, but waiting for someone else to try it first. ;)

Now a few clarifications for us not too familiar with TPT. If I use this to convert to Gen2 will I still be able to use my SSrls5 ROM which supports both generations? How do we recover in case of problems with TPT, if something goes wrong can we get to the Clockwork mode? Do you plan to keep updating this app with new ROMs as they become available?
0

Share this post


Link to post
Share on other sites

Posted · Report post

[quote name='laserburn' timestamp='1314710713' post='1792025']
This looks like a great tool. Installed it, but waiting for someone else to try it first. ;)

Now a few clarifications for us not too familiar with TPT. If I use this to convert to Gen2 will I still be able to use my SSrls5 ROM which supports both generations? How do we recover in case of problems with TPT, if something goes wrong can we get to the Clockwork mode? Do you plan to keep updating this app with new ROMs as they become available?
[/quote]

You can still use Swedish Spring once you've converted. It installs Clockwork as well, so you can still access that by holding volume- as you turn on. You can flash new roms etc. through Clockwork just like you can now as well. Yes, I'm going to keep it updated with any new TPTs.
1

Share this post


Link to post
Share on other sites

Posted · Report post

[quote name='FelixL' timestamp='1314646243' post='1791712']
Great app :)

Two suggestions (don't know if possible):
- include rooting-tool, (maybe ask the creator of the one-click-recovery for help, or even merge the two apps)
- try to reboot in fastboot mode. Maybe this is enough to trigger the TPT, and the hardware-keys are not needed.
[/quote]

It wouldn't be allowed in the android market if it contained a root exploit. There aren't any public root exploits for the latest version of Android. Rooting isn't required to TPT & it'll be overwritten when you TPT. So that's a bad idea.

Reboot in fastboot mode doesn't make it TPT, it just reboots into fastboot mode. However, there is a way to get it to perform a TPT, it's possible using the settings menu on ZTE roms, could possibly decompile settings.apk to find out how it's done.
1

Share this post


Link to post
Share on other sites

Posted · Report post

[quote name='wbaw' timestamp='1314713774' post='1792049']
Reboot in fastboot mode doesn't make it TPT, it just reboots into fastboot mode. However, there is a way to get it to perform a TPT, it's possible using the settings menu on ZTE roms, could possibly decompile settings.apk to find out how it's done.
[/quote]

Thanks for all the information!

And I have another suggestion: do an auto-mode.
Let the user choose a partition layout and a ROM, download the tpt files, unzip, include the ROM as a system.img into the unziped folder, check the md5sums of all files, check if the battery is above say...80%, and trigger the TPT through the way wbaw mentioned.
0

Share this post


Link to post
Share on other sites

Posted · Report post

Excellent idea
Great work :)
0

Share this post


Link to post
Share on other sites

Posted · Report post

[quote name='wbaw' timestamp='1314713774' post='1792049']
It wouldn't be allowed in the android market if it contained a root exploit. There aren't any public root exploits for the latest version of Android. Rooting isn't required to TPT & it'll be overwritten when you TPT. So that's a bad idea.

Reboot in fastboot mode doesn't make it TPT, it just reboots into fastboot mode. However, there is a way to get it to perform a TPT, it's possible using the settings menu on ZTE roms, could possibly decompile settings.apk to find out how it's done.
[/quote]


Will try and work out how its done on the ZTE roms, see if I can add it. Do you know if the TPT has to be in a different form for it to work from the settings menu? I unzipped a few TPTs to the image folder earlier today and tried using that option on GSF and some Bulgarian stock rom, but it just said it couldn't find the package.

[quote name='FelixL' timestamp='1314738383' post='1792298']
Thanks for all the information!

And I have another suggestion: do an auto-mode.
Let the user choose a partition layout and a ROM, download the tpt files, unzip, include the ROM as a system.img into the unziped folder, check the md5sums of all files, check if the battery is above say...80%, and trigger the TPT through the way wbaw mentioned.
[/quote]

Good idea, will try and add that in a future version. Thanks for the reminder about the battery level, meant to add a check for that before.
0

Share this post


Link to post
Share on other sites

Posted (edited) · Report post

[quote name='Amphoras' timestamp='1314828081' post='1792840']
Will try and work out how its done on the ZTE roms, see if I can add it. Do you know if the TPT has to be in a different form for it to work from the settings menu? I unzipped a few TPTs to the image folder earlier today and tried using that option on GSF and some Bulgarian stock rom, but it just said it couldn't find the package.
[/quote]

Yes, they need to be in proper Gen2 image.bin format for it to run from the settings menu in gen2/froyo/gingerbread roms. It wont find Gen1 style TPTs. You also need a proper gen2 phone for it to work, one that's running all gen2 firmware & uses image.bin files for tpt (stock gen2). Settings -> About Phone -> System Updates. Apart from the image.bin file format difference it's very similar to gen1 style tpts, so if you can find out what code triggers the tpt & use that without the check for image/image.bin hopefully it'll work.

If you decompile settings.apk from a zte rom, like gsf, then it looks like the code for it is here: smali/com/android/settings/deviceinfo I can't make any sense of it myself, .smali isn't the most readable language, maybe it's useful to somebody.

image.bin tpts for proper gen2 phones are another thing that could be added, along with customised partition sizes & a backup mode too ... if you're looking for some other things to add to your app. I can help you with some of those things. ztepack in /system/bin in ginger stir fry will create image.bin files, cpg posted the c source for it on the forum. mkyaffs2image will dump yaffs partitions to .img files dump_image will get boot, recovery & splash partitions. Edited by wbaw
1

Share this post


Link to post
Share on other sites

Posted · Report post

[quote name='wbaw' timestamp='1314833219' post='1792873']
Yes, they need to be in proper Gen2 image.bin format for it to run from the settings menu in gen2/froyo/gingerbread roms. It wont find Gen1 style TPTs. You also need a proper gen2 phone for it to work, one that's running all gen2 firmware & uses image.bin files (stock gen2). Settings -> About Phone -> System Updates. Apart from the image.bin file format difference it's very similar to gen1 style tpts, so if you can find out what code triggers the tpt & use that without the check for image/image.bin hopefully it'll work.

If you decompile settings.apk from a zte rom, like gsf, then it looks like the code for it is here: smali/com/android/settings/deviceinfo I can't make any sense of it myself, .smali isn't the most readable language, maybe it's useful to somebody.

image.bin tpts for proper gen2 phones are another thing that could be added, along with customised partition sizes & a backup mode too ... if you're looking for some other things to add to your app.
[/quote]

I hope you get this working, looks good.

Another idea: we could make a convention to encode information about firmware in user readable parts of it, e.g. in the splash.img or oem partition somehow. That way if we included info like whether it can use Gen1 or Gen2 TPTs the app could determine the correct TPTs to use, at least for people who had used a TPT from here before.
0

Share this post


Link to post
Share on other sites

Posted (edited) · Report post

[quote name='hedgepigdaniel' timestamp='1314833728' post='1792877']
I hope you get this working, looks good.

Another idea: we could make a convention to encode information about firmware in user readable parts of it, e.g. in the splash.img or oem partition somehow. That way if we included info like whether it can use Gen1 or Gen2 TPTs the app could determine the correct TPTs to use, at least for people who had used a TPT from here before.
[/quote]

To do that properly, instead we'd need to check the sizes of the non user readable partitions, they get logged in dmesg or kmesg, one of those, at boot - i think if it's a while since the boot then it gets wiped from the log. It'd probably work in clockworkmod. Maybe there's another way to check them too.

You don't actually need to check though, you can just use both versions, image.bin & the separate files, with image.bin in gen2 format & the separate files in gen1 format, then the phone will load the right version when it does the TPT anyway.

If you're going to make it gen2 compatible then you also need to check for chinese v880 phones, they need their own appsboot.mbn & amss.mbn - flashing european versions to chinese phones will brick them (but a working tpt will recover them). There is a difference in /proc/iomem on chinese phones, but i'm not sure what exactly, i don't have a chinese phone. That's why I finally gave up on making my tpt backup script gen2 compatible, it'd brick chinese phones without that check. Anybody with a v880 want to post the output of /proc/iomem please?

You'll need to use full gen2 files in an image.bin tpt too, converting the gen1-to-gen2 tpt wont work because of it's mix of gen1 & gen2 bootloaders & gen1 radio partition layout.

TPTs for the blade have the potential to brick other devices, you should put a warning about that in the market description, rather than 'mainly for the ZTE Blade'. If you can restrict it to only install on zte blades too. Edited by wbaw
1

Share this post


Link to post
Share on other sites

Posted · Report post

[quote name='wbaw' timestamp='1314833219' post='1792873']
Yes, they need to be in proper Gen2 image.bin format for it to run from the settings menu in gen2/froyo/gingerbread roms. It wont find Gen1 style TPTs. You also need a proper gen2 phone for it to work, one that's running all gen2 firmware & uses image.bin files for tpt (stock gen2). Settings -> About Phone -> System Updates. Apart from the image.bin file format difference it's very similar to gen1 style tpts, so if you can find out what code triggers the tpt & use that without the check for image/image.bin hopefully it'll work.

If you decompile settings.apk from a zte rom, like gsf, then it looks like the code for it is here: smali/com/android/settings/deviceinfo I can't make any sense of it myself, .smali isn't the most readable language, maybe it's useful to somebody.

image.bin tpts for proper gen2 phones are another thing that could be added, along with customised partition sizes & a backup mode too ... if you're looking for some other things to add to your app. I can help you with some of those things. ztepack in /system/bin in ginger stir fry will create image.bin files, cpg posted the c source for it on the forum. mkyaffs2image will dump yaffs partitions to .img files dump_image will get boot, recovery & splash partitions.
[/quote]


Thanks, that explains it. I found the files with the code that I think triggers the TPT, just need to work out what its on about. Might try decompiling my app to get a better idea how the decompiled stuff compares to the actual code. Once that's worked out, proper Gen 2 TPTs would be a good idea for something extra to add.

[quote name='wbaw' timestamp='1314834920' post='1792882']
If you're going to make it gen2 compatible then you also need to check for chinese v880 phones, they need their own appsboot.mbn & amss.mbn - flashing european versions to chinese phones will brick them (but a working tpt will recover them). There is a difference in /proc/iomem on chinese phones, but i'm not sure what exactly, i don't have a chinese phone. That's why I finally gave up on making my tpt backup script gen2 compatible, it'd brick chinese phones without that check. Anybody with a v880 want to post the output of /proc/iomem please?

You'll need to use full gen2 files in an image.bin tpt too, converting the gen1-to-gen2 tpt wont work because of it's mix of gen1 & gen2 bootloaders & gen1 radio partition layout.

TPTs for the blade have the potential to brick other devices, you should put a warning about that in the market description, rather than 'mainly for the ZTE Blade'. If you can restrict it to only install on zte blades too.
[/quote]

Yeah I saw that the Chinese ones are different again. If I add Gen 2 TPTs then that will be something else to think about.

I'd left it open to all devices as the unzipping and md5sum checking should work on any device, but there are easier apps to use if thats all you want to do, so I've tried restricting it now.
0

Share this post


Link to post
Share on other sites

Posted · Report post

[quote name='Amphoras' timestamp='1314911896' post='1793360']
Thanks, that explains it. I found the files with the code that I think triggers the TPT, just need to work out what its on about. Might try decompiling my app to get a better idea how the decompiled stuff compares to the actual code. Once that's worked out, proper Gen 2 TPTs would be a good idea for something extra to add.
[/quote]


Try dex2jar and jd-gui to get much cleaner code than .smali. But it only works with .dex, not with .odex!
2

Share this post


Link to post
Share on other sites

Posted · Report post

[quote name='Amphoras' timestamp='1314911896' post='1793360']
Thanks, that explains it. I found the files with the code that I think triggers the TPT, just need to work out what its on about. Might try decompiling my app to get a better idea how the decompiled stuff compares to the actual code. Once that's worked out, proper Gen 2 TPTs would be a good idea for something extra to add.



Yeah I saw that the Chinese ones are different again. If I add Gen 2 TPTs then that will be something else to think about.

I'd left it open to all devices as the unzipping and md5sum checking should work on any device, but there are easier apps to use if thats all you want to do, so I've tried restricting it now.
[/quote]

Proper Gen2 TPTs add a bit of extra complexity & there are a couple of gotchas, like bricking v880s if you don't detect v880s & produce TPTs specifically for them (or at least refuse to run). The main problem is it's pretty time consuming to test all the different combos & especially difficult if you don't have a both a v880 & a blade. If you don't make it proper gen2 compatible then it's not going to work on any stock zte gen2/froyo phones.

It should also be possible to produce a stock gen2 to gen1 image.bin tpt, in a similar way to the gen1 to gen2 tpt (but in reverse) - so the phone would be able to run gen1 roms & still use image.bin tpts. It'd be less useful than the gen1 to gen2 tpt, harder to produce & I wouldn't be able to test it, but I've got a good idea of how to do it. That's only going to work on european phones though, all v880s are gen2.

I think that the reboot into tpt mode code, if you can find it should also work on gen1 style tpts if you modify it not to check for /image/image.bin first. It's only a guess, but it seems likely.

TPTs wont do anything on non-zte phones, but flashing a tpt for the wrong zte phone on another zte phone or tablet is likely to brick it.
1

Share this post


Link to post
Share on other sites

Posted · Report post

If you don't mind open sourcing it, then I could maybe help you add some of those features if I get a bit of free time. Maybe a few other people could help too.
0

Share this post


Link to post
Share on other sites

Posted · Report post

[quote name='FelixL' timestamp='1314961291' post='1793617']
Try dex2jar and jd-gui to get much cleaner code than .smali. But it only works with .dex, not with .odex!
[/quote]


Thanks, its so much easier to read now.

[quote name='wbaw' timestamp='1315011463' post='1794121']
Proper Gen2 TPTs add a bit of extra complexity & there are a couple of gotchas, like bricking v880s if you don't detect v880s & produce TPTs specifically for them (or at least refuse to run). The main problem is it's pretty time consuming to test all the different combos & especially difficult if you don't have a both a v880 & a blade. If you don't make it proper gen2 compatible then it's not going to work on any stock zte gen2/froyo phones.

It should also be possible to produce a stock gen2 to gen1 image.bin tpt, in a similar way to the gen1 to gen2 tpt (but in reverse) - so the phone would be able to run gen1 roms & still use image.bin tpts. It'd be less useful than the gen1 to gen2 tpt, harder to produce & I wouldn't be able to test it, but I've got a good idea of how to do it. That's only going to work on european phones though, all v880s are gen2.

I think that the reboot into tpt mode code, if you can find it should also work on gen1 style tpts if you modify it not to check for /image/image.bin first. It's only a guess, but it seems likely.

TPTs wont do anything on non-zte phones, but flashing a tpt for the wrong zte phone on another zte phone or tablet is likely to brick it.
[/quote]

[url="http://pastebin.com/pyd9jUV8"]http://pastebin.com/pyd9jUV8[/url] and [url="http://pastebin.com/bC4Djt3v"]http://pastebin.com/bC4Djt3v[/url] seems to be the code that does the update. It calls [color=#0000FF][font=monospace]"/system/bin/Tgetmem 0x00201018 0x2E6F73C9 6"[/font][/color][font="Arial"]. According to the usage when you type that command into the terminal emulator, the first two numbers are the address beginning and end, and the 6 is a code telling it to write. The Tgetmem file itself is in binary form and I don't know how to decompile it to see inside. If it is this file that runs the TPT, then it gets slightly more difficult as its not in every rom, so would have to do something to put it into /system/bin.[/font]
[font="Arial"]
[/font]
[font="Arial"]--------------------------------------[/font]
[font="Arial"]
[/font]
[font="Arial"]I've uploaded v1.3 to the market. Changes:[/font]
[font="Arial"]
[/font]
[font="Arial"]
*Added option to check md5, unzip and verify image folder all in one step
*Added adverts
*Added more info about each downloadable TPT on long click
*Power off button should work more reliably now
*Added cancel option when picking the file to unzip/check md5sum
*Added more feedback after unzipping/checking md5sum
*GSF TPT should unzip properly now
*Added battery level check before powering off to start TPT

According to the market stats, there are a decent percentage of people using the app in French and other languages. If anyone wants wants to use it in a different language than English, if you send me the translations for the different strings then I can add them.[/font]
1

Share this post


Link to post
Share on other sites

Posted · Report post

Update on the auto-tpting. The SDRise class in the GSF Settings.apk is the part that triggers does the stuff to call the TPT. I've not yet managed to convert the code to a working form inside the app, possibly due to different restrictions in the things that system and user apps can do (eg. SDRise uses "android.intent.action.REBOOT" to reboot the phone, which is only available to system apps, so I need to use superuser to reboot, but I don't know if it will have the same effect. Haven't managed to get it to the stage it would reboot yet though, so will need to wait and see).

On the positive side, wbaw was correct that once the code is triggered, it should use the correct Gen1/Gen2 TPT files from the image folder. I made an image.bin with cpg's ztepack and put it in the image folder then used ZTE's Storage Card Updates option in GSF. The phone rebooted and applied the TPT properly (as far as I can tell, not had any problems yet). I was also able to start the TPT directly from the app without the need for the image.bin file by calling SDRise directly. Only tested this on GSF so far, but it should work on other ZTE stock roms (the Bulgarian stock rom I downloaded for testing a few weeks back has the same code for SDRise as GSF). I looked at the code for SDRise on the CAE and Crevitus roms, and its totally different from GSF. It may turn out to work anyway, but I'll try when I get home.

Other roms are going to be more difficult. All the ones mentioned above have some kind of option for it built into the settings menu already, and they have the Tgetmem file in /system/bin. To get it working in this form on other roms will probably at least need to put Tgetmem in place if I can convert the code to work from the app. If not, it may also mean modifying the settings.apk (if thats even possible from the phone). I think I know how to get Tgetmem into place, but again it still needs testing.

I have a few more ideas I'm going to try, so I'll update with progress/failure later on.
1

Share this post


Link to post
Share on other sites

Posted · Report post

[quote name='Amphoras' timestamp='1315058516' post='1794324']
According to the market stats, there are a decent percentage of people using the app in French and other languages. If anyone wants wants to use it in a different language than English, if you send me the translations for the different strings then I can add them.
[/quote]
You should post a string list to translate; I could do French if I have some time.
2

Share this post


Link to post
Share on other sites

Posted · Report post

[quote]You should post a string list to translate; I could do French if I have some time.[/quote]
+1,
German!
1

Share this post


Link to post
Share on other sites

Posted · Report post

[quote name='Alex131089' timestamp='1315655868' post='1799118']
You should post a string list to translate; I could do French if I have some time.
[/quote]


[quote name='FelixL' timestamp='1315662472' post='1799162']
+1,
German!
[/quote]

That would be really good. Here's the list of strings so far, I'll add more as more are added to the app.


Download a TPT
Check the md5sum of a file
Unzip a zip file
Check the image directory
Power off to start the TPT
Delete the image directory
All In One
Start TPT
Tests
Disclaimer
Use this app at your own risk. I take no responsibilty for any damage done to your phone.
Accept
Power Off
Once the phone has turned off, hold volume+ (or volume+ and menu) and press the power button to start the TPT.
Delete Image
Are you sure you want to delete the image folder and all its contents?
Deleting. Please wait...
Image folder deleted.
Low Battery
Your battery is below 25%, do you still want to start the TPT.
Standard TPTs:
Converts, but doesn\'t include a rom
All in one TPTs:
Converts and flashes rom in one go
Chose the file to check
Calculating. Please wait...
MD5sum
Checking md5sum of:
MD5sum is:
Matches expected value.
File not found
Did not find
.Would you like to download it?
Chose the zip to unzip
Unzipping. Please wait...
Unzip completed
Unzip failed
Unzip
Trying to unzip
Please enter the file name then click enter (file must be on root of sdcard)
Enter
Cannot find \'
\'. Please check and try again.
Number of files checked:
Number of md5sums matching:
Number of files not found:
Files searched for:
Files verified
Number of matches:
files not found.
file not found.
Cannot find nandroid.md5 file in image folder, please check it exists and try again.
Verifying. Please wait...
MD5 Result:
Unzip result:
MD5sum Mismatch
The md5sum does not match the expected value. Do you want to try downloading again?
Unzip failed, stopping activity.
Cannot find nandroid.md5 file in image folder, stopping activity.
Working. Please wait...
1. Download a TPT
2. Check the md5sum of the zip matches
3. Unzip the TPT
4. Check the contents of the image folder match the values in the nandroid.md5 file
5. Turn off your phone
6. Hold the volume+ (menu and volume+ on some devices) button and press the power button
If using a standard TPT:
7. Green text should appear on the screen then the phone should reboot into recovery
8. Flash your chosen rom from recovery, and reboot
If using an all-in-one TPT:
7. Green text should appear on the screen then the phone should reboot into your rom
TPT Helper
Ok
Cancel
Yes
No
Error
Other
Changelog
How to use
Download a TPT

If you get time to translate any, let me know what name you want me to use to credit you with the translations in the app.
0

Share this post


Link to post
Share on other sites

Posted (edited) · Report post

Might need little changes but it's correct.
Edit: 42! Edited by Alex131089
1

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.