[Verizon Samsung Galaxy S III] MAD Industries:
AutoMod BETA 1.6 by MAD Industries

-----------------------------------------------------------------------------------------------------------------------------------

First off, this is not another APK Manager, this is also not Auto APK Tool. These two tools focus on the decompiling and recompiling of APK and jar files. AutoMod intends to bring a new paradigm to modding. That is, there are mods and there are roms. AutoMod makes them friendly with eachother. APKs are handled internally by the script.

I wrote this tool because as a developer who was using APK Manager, I ran into several obstacles along the way. One of them was that I liked to be able to take requests from users and personalize the mod to their tastes. Unless I was impeccable with my folder organization, it very quickly got out of hand with people asking for personalizations based on other personalizations. I would find myself decompiling a version I made the day before so I could remember what was in it and create yet another version on top of it. All this back and forth and I would end up with a mess of recompiled, decompiled, original, custom, extracted, etc files all over the place taking unnecessary HD space. On top of that, every step of the way required user input in the form of a yes/no prompt or selected a menu option for decompiling/recompiling/keep folders/signing/etc. And then I would manually create a flashable zip file for each version. AutoMod solves many of this issues in it's current BETA state. When it is finished, it will have solved all of them.

Features for End-Users:

Mods are dynamically applied to your ROM (this allows mods to stay up-to-date with the ROM without original developer support)

Mods often work across multiple similar ROMs (easy porting)

Mods are stored in what I call "opensource" format which means it is very easy to dig into the Mod package and change things to your personal preferences with very little knowledge modding

Only the modified files within the apk are stored in a mod package. This greatly reduces filesize

AutoMod encourages backups at every major step in the process

Backups are dynamic, meaning it will only backup the files which are modified

Backups are automatically saved as a flashable zip file so you can have it ready if a mod does not successfully integrate

AutoMod always keeps itself up-to-date with the latest features

Distribution of AutoMod requires only the script itself

AutoMod has the ability to accept a ROM Install file or an actual device as a base for creating a flashable zip file out of any mod package

Supported devices can have mods applied instantly and automatically over adb

Features for Developers

Since mod packages only contain changed files, you no longer have to hunt through hundreds of files to find a single png (such as when creating five different colored versions of a theme)

Easy packaging of mods for redistribution for this tool as well as update.zip format

AutoMod can "install" multiple ROMs into it's system so you can make a mod once, and then distrubute it for several ROMs at the same time

If you run nightly builds of your own ROM, AutoMod will soon include a scriptable feature which will allow you to release nightly themes, mods, etc with no extra effort

Much of the developer features are yet to come (such as quick prototyping of mods and parallel device/ROM support)

---------------------------------------------------------------------------------------------------------------------------------------

Tutorial written by mybook4 on post #16 (be sure to thank him)

---------------------------------------------------------------------------------------------------------------------------------------

1) Download automod.sh script and place it into an appropriate directory (I used one called AutoModTest)

2) Download the ROM Install zips you would like

3) Create your mod package (see below)

4) Run automod by typing “bash automod.sh” in a terminal

5) Select option 5 (Install a new ROM file into AutoMod), and follow the script's directions (copying your ROM zip, to the directory, not moving it or it will be overridden)

6) Select option 4 (Install a new mod package into Automod), and follow the script's directions (copying your mod zip, to the directory, not moving it or it will be overridden)

7) Select option 3 (Use a ROM Install zip + mod to create a flashable zip for another ROM/device), choosing the appropriate ROM and mod package.

8) Out came the zip! This makes things soooooooooooo much easier and more manageable!

Notes about automod mod packages:

1) A mod file is structured as a zip file with the extension .zip replaced with .mod (so as to separate it from flashable zips with the same name)

2) In the mod file is a directory with the name of the mod.

3) In the directory with the name of the mod is a directory tree leading to the files within the specific apk you would like to modify. For example, in the ICSBlueFull.mod file, the directory tree is as follows: ICSBlueFull, system, app, SystemUI (the apk being modified), res, directories with modified files (images, xml files, etc).

4) Just to be safe (and to match the ICSBlueFull mod supplied), I set permissions on all folders in my mod to 755 and all files to 644 (if these numbers don't mean much to you, open a terminal and type “man chmod”)

5) There is a command to package mods you have made into .mod files. This can be found in the developer menu. (option 11)

6) Spaces in file name are currently not handled very well. Try and name your mods accordingly.

---------------------------------------------------

How To Create A Mod

click to enlarge

---------------------------------------------------

Download the script here: http://cl.ly/code/463B1C3B123i

Note: Proper syntax is 'bash automod.sh'

Download an example mod here (for stock GS3 touchwiz based ROMs) [Fixed!]: https://github.com/downloads/MADindustries/automod/ICSBlueFull.mod

Original thread for this mod can be found here: http://xdaforums.com/showthread.php?t=1775235

View the source/branch it here: https://github.com/MADindustries/automod (check this to see if using a 'forceupdate' would add features/functions)