May 23, 2014 By: eagleeyetom
To install any ROM through a custom recovery, you need to have an updater-script. It’s basically a few lines of commands that tells your Android recovery what to do. These files are also widely used with Aroma Installer and other scripting engines, but of course everyone knows this already. However, a problem arises when you need to create your own updater-script from scratch, as it’s not always generated during the build process.
For beginners, the updater-script language (Edify) might be like black magic. Thankfully, there are some tools that can help out with basic commands such as a GUI-based utility by XDA Forum Member Octanium91 (posted thanks to courtesy of XDA Forum Member borndead) called Android Script Creator that allows you to create an updater-script with just a few clicks.
Android Script Creator does all the dirty work for you. All you need to do is select which option should be added to your current updater-script. Every option is presented through a simple dropdown menu that explains all of the commands. The generated script can then be used with a ROM, application, mod, or practically anything that can be flashed through a custom recovery.
If you are a beginner trying to get through complicated Edify scripting, head over to the tool thread to get started.
Android uses the Edify scripting language to apply updates in its recovery. Edify is the second generation of script used by Google, which replaced Amend few alongside Android 1.5 Cupcake update. You can read more about history of Android here.
Edify is used in updater-scripts, and it essentially consists of small text files with a set of commands for the recovery with instructions on how to handle the files in zip. Building Android from source generates all necessary files, but not every ROM is built from source. Because of this, syntax errors in Edify are something really common. A couple of days ago we talked about a Windows-only tool to check Edify scripts. But Windows is not the best environment to build Android, and that’s why this tool can’t be used by all ROM builders. But now thanks to XDA Senior Member thewisenerd, the Edify syntax can be checked on all operating systems. Thewisenerd did this by writing a plugin for the popular multi-platform text editor Geany. With this plugin, checking syntax is really easy. And even more important, it can be done on Linux, Mac, and Windows. Installation is really simple, and even newcomers to Linux should be able to successfully configure Geany to use updater-script syntax highlighter.
If you are struggling with Edify editing, you should visit the original thread and give this tool a go. Say goodbye to ClockworkMod or TWRP errors—they won’t be missed.
January 11, 2014 By: eagleeyetom
If you’ve ever flashed a custom ROM, you’ve probably noticed that your custom recovery reads some sort of script to format your system partition, make symlinks, and so on. This set of commands is known as Edify. Usually there are two parts of Edify: updater-script, which is a text file with instructions for recovery; and updater-binary, which loads said script. Open source projects generate the updater-script directly from source, but not every ROM is built from source.
It’s extremely easy to break the syntax of Edify script. One missing semicolon can interrupt the flash and gave a nasty error. If you don’t read the recovery log, finding a mistake is problematic. This is why a tool by XDA Senior Member yashade2001 should interest you.
Yashade2001 created a Windows-only application that will help greatly with finding syntax errors. Depending of the type of code, EdiSense uses different colors. So for example, comments are green and various commands are dark blue. EdiSense can save you a lot of time and find an error within few seconds.
Right now, this tool is available only for Windows. Hopefully, the developer will port it to other operating systems as well. If you are modifying your updater-script, you should definitely visit the original thread and give EdiSense a shot.
May 23, 2013 By: Mike Szczys
Those of us who use Linux on a day to day basis don’t think twice about sinking our fingers into the system files that govern how our devices perform. For instance, I use an LG L9 and was quite comfortable playing around with the way my SD card was being mounted in order to improve performance. For those who aren’t at home with the way the OS works, adding a startup script with a few lines of code might as well be witchcraft. That’s why flashable zip files are so handy for simple tasks and indispensable for complex projects. If you do it right, all the end-user needs do is copy a file to his SD card and reboot into recovery to flash the package.
There are some automatic tools out there that can help create these files. In fact, we’ve already covered at least one of them. But there’s really no substitute for knowing exactly what goes into one. XDA Senior Member Denkantor can explain it all, and decided to make an XDA University guide on package for flashing from recovery. Head on over to his original thread to see what he’s up to.
It doesn’t take much to make an update.zip file. Denkantor likes to use 7zip. And if you’re on Windows, he recommends Notepad++. You’ll also need the file(s) you want to flash. The Edify scripting language is what a custom recovery is looking for. You’ll be guided through the basics, but learning more is easy since you can look at any flashable file as an example.