FORUMS
Remove All Ads from XDA

[TOOL] amend2edify script converter [Zip][Batch][Windows][Ubuntu]

569 posts
Thanks Meter: 560
 
By nubecoder, Inactive Recognized Developer on 7th January 2011, 10:39 AM
Post Reply Email Thread
:[Disclaimer]:
Use this at your own risk!

:[Requirements]:
Microsoft .Net 3.0 (or Mono for Linux / Mac).
An update zip or an "update-script" to convert.
An android phone with a custom recovery that supports edify scripted zip files.
The Java Runtime Environment (only required for signing zip files).


:[Tested and functional in Ubuntu 10.10 / 11.04]:
Please see this post for instructions.

:[Description]:
This is a tool for converting amend scripts to edify scripts.
I only have direct access to an Epic 4G, so I can't test this on other phones.
I rely on the community to give me the info needed to support other devices.
Many thanks go the the numerous people that have contributed, sorry there is no list, but you know who you are.

:[Features]:
Backup original files.
Convert script files from amend to edify.
Convert zip files from amend to edify.
Sign converted zip files (requires the JRE).
Batch Mode converts multiple zip files at once.
Mount Types for multiple phones using an easily upgradeable XML database file.

:[Instructions]:
These are in the README, but I'm leaving them here so maybe you will read them:
Quote:

Open program.
Select "Options" -> check "Backup Original".
Select "Options" -> check "Delete Temp Files".
Select "Options" -> check "Sign Zip File". << Requires Java (probably won't work on Linux).
Select "Options" -> "Mount Type" -> Select your phone or it's closest equivalent.
Select "File" -> "Open" -> Browse for and select the file to be converted.
Check the "Output" Tab for the resulting conversion.
Select "File" -> "Save"...

NOTE::The conversion is done when the file is opened.
Make sure to set the settings before opening the file.



[Download latest version Here]

[Download latest database version Here] (right-click, "save as")

:[Extra notes]:
Try "Universal" if your device isn't specifically listed.
VibrantMTD is based on mounts taken from a Vibrant running MIUI.

:[Error messages]:
Error: update-script could not be found in zip
The zip you have tried to open does not contain an "update-script" file.
In other words, the zip is not an amend scripted file and there is nothing to convert.

:[WishList]:
Support for more phones. (See I Need Help notes below.)

:[Testing]:
This was originally tested on an Epic 4G with this GB keyboard, a battery mod that originally came from here, and some other random amend scripted zips.
It has since been successfully used on many different phones with many different amend based zips (by people other than myself).

:[Feedback]:
Please report bugs / errors.

:[I need Help]:
If you want specific mounts for your phone to be included, please help me by running this command from adb:
Code:
adb shell "mount > /sdcard/PHONENAME_mountinfo.txt"
or this command from a terminal:
Code:
mount > /sdcard/PHONENAME_mountinfo.txt
Then email the file to [email protected] with the subject "PHONENAME mountinfo".
Replace PHONENAME with your phone's name, so I know what phone it's for.

:[ChangeLog]:
Code:
phoneDatabase update - (04-08-2012)
- Added WildfireS-MarvelC

phoneDatabase update - (04-07-2012)
- Added Xperia X10 Mini
- Added Droid 3
- Added Galaxy S2 t989
- Added Transform Ultra
- Added Xperia Pro
- Added Optimus
(Sorry to those who had to wait for this.)

phoneDatabase update - (11-28-2011)
- Added GalaxyS2i777

phoneDatabase update - (11-28-2011)
- Added Sensation4G
- Added OptimusS
- Added Universal (note: this should work for most custom recoveries)
Try "Universal" if your device isn't specifically listed.

phoneDatabase update - (11-11-2011)
- Added XperiaNeo
- Added GalaxyGio
- Added OptimusBlack

phoneDatabase update - (10-05-2011)
- Added NookColor

phoneDatabase update - (10-02-2011)
- Added XperiaArc
- Added Legend

phoneDatabase update - (10-01-2011)
- Added Epic4GTouch

phoneDatabase update - (09-28-2011)
- Added Photon4G
- Added HuaweiUM840

phoneDatabase update - (09-22-2011)
- Added CLIQXT
- Added DroidBionic

phoneDatabase update - (08-23-2011)
- Added myTouch4GSlide
- Renamed "MyTouch4G" to "myTouch4G"

phoneDatabase update - (08-02-2011)
- Added DroidX
- Added VibrantMTD
- Added Defy
- Added Evo3D

phoneDatabase update - (06-27-2011)
- Added EeePadTransformer

v1.0.1.2 - (06-21-2011)
- Added used mount point info to output comments.
- Added user configurable Comments area.
  (Thank you tsachi for the idea and original code).
- Reworked some internals for the above changes.
- Minor changes to the AboutForm (ESC / ENTER to exit).

phoneDatabase update - (06-21-2011)
- Added GalaxyTab10.1.
- Added XperiaX8.

phoneDatabase update - (06-03-2011)
- Added Ascend.

phoneDatabase update - (06-02-2011)
- Added Blade.
- Added Milestone (Droid).
- Added G2x.
- Added OptimusOne.
- Added XperiaX10.

phoneDatabase update - (05-05-2011)
- Added Optimus2x.
- Added GalaxyS4G.
- Added Vibrant.

v1.0.1.1 - (04-12-2011)
- Adjusted conversion for write_radio_image and write_hboot_image.
- Misc. internal code changes.

phoneDatabase update - (04-12-2011)
- Added HeroC.
- Added NexusS.
- Added Fascinate.
- Added Thunderbolt.

phoneDatabase update - (03-08-2011)
- added Shift4G.

phoneDatabase update - (02-20-2011)
- added MyTouch4G.

v1.0.1.0 - (02-20-2011)
- added phoneDatabase.xml file for dynamic mount type loading.
- Misc. internal code changes.

v1.0.0.11 - (02-15-2011) Unreleased
- Misc. internal code changes.

v1.0.0.10 - (02-14-2011)
- added Mount Type selection for HTC Incredible.
- added Mount Type selection for HTC G2.

pre v1.0.0.10
- see ChangeLog.txt (inside the zip)
=]
Attached Files
File Type: zip amend2edify_v1.0.1.0.zip - [Click for QR Code] (877.1 KB, 9917 views)
File Type: zip amend2edify_v1.0.1.1.zip - [Click for QR Code] (865.1 KB, 1278 views)
File Type: zip amend2edify_v1.0.1.2.zip - [Click for QR Code] (870.4 KB, 18057 views)
The Following 48 Users Say Thank You to nubecoder For This Useful Post: [ View ] Gift nubecoder Ad-Free
 
 
7th January 2011, 11:17 AM |#2  
Senior Member
Thanks Meter: 451
 
More
If this works as intended, could any joe-shmo (like myself) plug in the scripts from a rom.zip, paste over the new output, and then proceed to flash the rom? (avoiding having to wait for the dev to do it)...

Or is it a little more complicated than that

Sent from my baked and emotionless SPH-D700
The Following User Says Thank You to squshy 7 For This Useful Post: [ View ] Gift squshy 7 Ad-Free
7th January 2011, 11:42 AM |#3  
>MR.T's Avatar
Member
Thanks Meter: 5
 
More
finally

Sent from my SPH-D700 using XDA App
7th January 2011, 02:06 PM |#4  
Dameon87's Avatar
Inactive Recognized Developer
Thanks Meter: 1,150
 
Donate to Me
More
Beat me to it. I was working on a php convertor

Sent from my SPH-D700 using Tapatalk
7th January 2011, 03:23 PM |#5  
sauron0101's Avatar
Senior Member
Flag Ontario
Thanks Meter: 38
 
More
It seems to be buggy right now. I've tried converting something small, a Gingerbread keyboard. Installation aborted.

Anyways, here's the link to what I copied:
http://forum.xda-developers.com/showthread.php?t=845162

Here's the output message:

# Unknown:: delete SYSTEM:app/ime-mtm-stock-gingerbread.apk ;
show_progress(0.1, 0);
# Unknown:: You shouldn't have seen this! O.o
# Unknown:: You shouldn't have seen this! O.o
show_progress(0.1, 10);
7th January 2011, 04:12 PM |#6  
Dameon87's Avatar
Inactive Recognized Developer
Thanks Meter: 1,150
 
Donate to Me
More
Doesn't look like proper syntax. You can't use keyword calls for system, data, tmp, etc in edify. Paths must be proper paths, /system

Sent from my SPH-D700 using Tapatalk
7th January 2011, 07:18 PM |#7  
ksmullins88's Avatar
Senior Member
Flag Detroit, MI
Thanks Meter: 1,218
 
Donate to Me
More
so, this tool is for converting the old .zip files we used to use into the new edify .zip files we need to use for EXT4?

ive been trying to find out how to reformat the CIA boot animation and some custom sounds for boot and shutdown to work with EXT4 but so far everything is aborted when i try to install
7th January 2011, 08:58 PM |#8  
nubecoder's Avatar
OP Inactive Recognized Developer
Thanks Meter: 560
 
Donate to Me
More
Quote:
Originally Posted by sauron0101

It seems to be buggy right now. I've tried converting something small, a Gingerbread keyboard. Installation aborted.

Anyways, here's the link to what I copied:
http://forum.xda-developers.com/showthread.php?t=845162

Here's the output message:

# Unknown:: delete SYSTEM:app/ime-mtm-stock-gingerbread.apk ;
show_progress(0.1, 0);
# Unknown:: You shouldn't have seen this! O.o
# Unknown:: You shouldn't have seen this! O.o
show_progress(0.1, 10);

Looks like I forgot to add the delete cmd to the switch statement. =[

And the "you shouldn't see this" is from blank lines in the script (I think).

I'll fix it up when I get a chance (after work).

I'll be releasing the source as well if anyone cares...

@Dameon

You should still do the php thing... Some people hate .Net, and online is sometimes better than downloading a tool.

=]
7th January 2011, 09:03 PM |#9  
nubecoder's Avatar
OP Inactive Recognized Developer
Thanks Meter: 560
 
Donate to Me
More
Quote:
Originally Posted by squshy 7

If this works as intended, could any joe-shmo (like myself) plug in the scripts from a rom.zip, paste over the new output, and then proceed to flash the rom? (avoiding having to wait for the dev to do it)...

Or is it a little more complicated than that

Sent from my baked and emotionless SPH-D700

Pretty much, yes...

I plan on supporting zip input and signed zip output. I'll have to see how dificult it is to implement...

=]
8th January 2011, 05:00 AM |#10  
nubecoder's Avatar
OP Inactive Recognized Developer
Thanks Meter: 560
 
Donate to Me
More
Program updated, check 1st post for changelog.

@sauron0101
Your errors should now be fixed.
8th January 2011, 02:59 PM |#11  
sauron0101's Avatar
Senior Member
Flag Ontario
Thanks Meter: 38
 
More
@nubecoder:

Installation still seems to abort for whatever reason. Clockwork gave Error 6.
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes