I am no longer actively monitoring this thread! OpenPDroid support is no longer being maintained for Android 4.4 builds after 1/20/14. Older builds will still work for as long as you like. A little statement is on the link above.

The Auto-Patcher is a smali patching utilty that can be used to port mods, framework changes, themes and more across ROMs and devices by patching files and outputting a flashable zip.

We hope that this tool can help developers get their work to a wider audience and help users easily try programs that may call for skills or time they don't have. In one command, you can have all the power and utility of the mods/programs listed below, with no specialized knowledge.

Supports

ClockworkMod and Aroma installers

Cyanogen [CM7, CM9, CM10, CM10.1, CM10.2]

AOKP

AOSP 2.3- > 4.4

ParanoidAndroid

Evervolv

SlimRom

PACman

...and many others.

If you want your ROM supported, open an issue on the auto-patcher github with a link to the ROM's source code and a download link!

We do not support system.img, Odexed roms or Sense, TouchWiz or other OEM-skinned AOSP at this time.

Supported Platforms

The Auto-Patcher runs on Linux and MacOSX terminals. Project contributors kobik77 and wbedard have helped us add Windows support as well.

Unless there are hardcoded reasons they conflict, all of the mods below can be combined, so you could get all of the programs and tweaks in one shot. If you use other premade patches or zips, you would have to choose between them.

The Auto-Patcher is the only non-destructive way to get these enhancements, short of building your own ROM and/or applying your own changes to the code.

The name is paranthesis is the MODS for use on the command-line. See usage below if that confuses you. It isn't hard, really.

OpenPDroid(openpdroid): NEW!

Brand new open-source framework patches, designed for use with the open-source Pdroid Manager. Support for 4.1.2 and 4.2.1!!

PDroid (pdroid):

The one where we make our bones, PDroid is an advanced privacy app, one that allows you to deny system and user apps permissions they usually need to function. PDroid changes the information passed by permission requests instead of denying it like other apps. That means no FC's or misbehaving apps. PDroid allows you to set custom phone numbers or IMEIs as well. PDroid is only officially supported through GB. The Auto-Patcher makes it an option for ICS and Jellybean ROMs as well.

CollegeDev's update of the core PDroid app and framework. There is a separate app you will need as well. You can get the app and read about PDroid2.0 and get the .apk here. This mod is only for Android 4.1.2+

This should work for just about every ROM, giving you true root shell access, enabling adb push of system files and adb remount commands. It can truly save your bacon if you are the type to play with system files and flashing. Some ROMs come with this feature already, so if this patch fails, it just means you already have one.

Secure boot.img (secure):

The opposite of the above. There are advantages to both, and what you want depends on what you do. I haven't seen any other way to secure a boot.img, with so many roms now having insecure by default.

Swap internal and external storage (external_internal):NEW!

This swaps your app storage from an sdcard to internal storage. This allows you to use all apps, even w/o an sdcard!

TabletUI (tabletUI):

Based on findings by barmullio, this allows users of the "Phablets" UI to switch from the stock phone or phablet layout to Tablet user interface. I personally like the tab interface because it allows me more regular access to the status bar. Lockscreen rotation has been enabled as well. Maintained by Caldair.

NEWMods for Wifi-only Tablets.

3G Dongle (3gdongle):

This allows users of Wifi tabs to use their 3G dongles on their tablets, allowing them to have data on the go. This is a pretty involved mod, and the development is still on-going. We would like to stress that you read up at developer trevd's thread for best practices and troubleshooting. A growing list of confirmed supported dongles can be found there as well.

Google Voice (voice):

As popularized by bongostl, this allows users to use Google Voice to make outgoing calls. It changes your framework-res to recognize that the tablet is voice capable. This allows you to recieve calls as well and has other call quality advantages over things like GrooveIP.

Usage

Designed to run on Linux, OSX and Windows (using Cygwin)

The Auto-Patcher has become completely open-source, and no one has gotten more out of that than our Windows users. kobik77 and wbedard have come aboard and brought Windows support to our formerly *nix-only utility.

The Auto-Patcher v2.5.0 by Mateorod and Pastime1971
*************************************************
Mod Name: openpdroid
A fork of the open-source PDroid and Pdroid2.0 framework.
Developer: FFU5y/wbedard/mateorod/Community
Dependancies: The PDroidManager app freely available from Google Play or http://forum.xda-developers.com/showthread.php?t=1994860
Works on ROMs from Android 4.1.2 -> 4.2.1
usage: ./auto_patcher <ROM> <MODS> <ROMTYPE>
example: ./auto_patcher CM10.zip openpdroid cm
Use ./auto_patcher -h for the help menu

To patch a ROM

Code:

./auto_patcher <ROMNAME>.zip <MODS>

example:

Code:

./auto_patcher cm10-encore-fat-tire.zip pdroid,tabletUI

You can have any number of mods applied at the same time, just separate them with a comma and NO SPACES!

98% of the time, that is all you need to know!

If you would like to see some of our more advanced usage, please see the third post.

Debugging

There is never any need for any wiping or restoring of a backup! If you encounter any problems, simply reflash the generated restore.zip or your ROM over the install, preserving all data and settings!

In the Auto-Patcher directory you will see a logfile that is generated with each run of the program. Please attach the entire logfile in order to get the best support we can offer.

Current and past versions available at our download page on techerrataDownload
You can also clone from our github. See the README because there is actualy a lot extra there.

PREREQUISITE patcher only works on unix environments (linux, macosx, cygwin)
1. set up linux vm or install cygwin, if you don't have a linux machine (see below)
2. install the linux packages "jdk" (and "jdk-devel" depending on linux distro) if missing "java" or "jar" (openjdk works as well as sun java jdk)
3. install the linux command "patch" if missing (see below)

The Auto-Patcher is meant as a tool, one that shortens the gap between your work and users. This tool modifies the android framework- unless we specifically partner with a developer, we will leave the proprietary stuff to you.

For instance, we port the Pdroid framework, and make the smali edits for the V6. But users have to go get the app and/or script themselves.

The project is fully open-source and neither pastime1971 or I have donate buttons. We do this for the intellectual challenges it brings and because we believe in the process. At no point are we interested in getting between you and your users or donations.

Sound ok?

If you think you have a project that could benefit from an Auto-Patcher package, please let us know. We are in the midst of creating the tools that will soon allow you to easily (as in one command, easily) create your own patches and packages with basically no change in how you probably already work.

Think of the Auto-Patcher as, at worst, an alternative distribution method. As you can see from the OP, we put the developers of the work front and center. We're conscious of the fact that so many of us do this work for love and that getting recognition for your efforts can be the only reward. We take that seriously.

Feel free to post in the thread or contact us by pm or on github.

Donation Policy (for users)

We feel like if there is a mod you are especially appreciative of gaining, the best thing you can do to show your support is to donate to that mod's dev. Tell them who sent you, please!

For those users who feel like they would like to donate to the Auto-Patcher specifically, we have thought long and hard about the ethics of it and eventually decided that we were better off not personally accepting contributions. The requests for a donate link have been quite humbling, though, so thanks for the enthusiasm.

If you really, really would like to show support to the project, there is a donate link to Techerrata after you request a download. Techerrata hosts a huge number of Android projects, all free of charge. Also, Kobik77, creator of the Windows GUI ApG accepts donations. If you use ApG, you could consider him as well.

There is a reference spot in the Techerrata donate page (they tell me), so make sure you tell them who sent you!

Ha. Maybe an hour after we went up, we found out that the transition to CM7.2 final had broken our patches for Gingerbread. Since those patches had worked for every iteration of CM7 in the past, it came as a suprise, to say the least.

However, that always is the way when you release software. The second you go up, no matter how much you try and test, some bug floats immediately to the surface.

It can be maddening...

However, I immediately downloaded the source and began building so as to update the patches. I had hoped to beat any prospective CM7 users, as it has been historically our least used patch. You happened to sneak in before I had a chance to upgrade the patches.

The second of the two necessary builds is something like half-way done. It will be maybe a couple of hours at most before I update the Auto-Patcher.

Thanks for trying it, the issue will be resolved shortly.

Edit: While I was writing this patime1971 chimed in, and as usual it looks like he is right. The files that failed to patch were the same as the ones that fail for cm7.2 final and threw me off.

Like pastime suggested, try some of the ICS patch sets. All CM9 and AOKP ICS roms can be patched, as well as many of the derivatives. But some of the custom roms can fail. Usually those failures will come in patching the ServerThread.

Auto-Patcher20120619v061 added to OP with updated patches to support PDroid for CM7.2 Final.

As is our practice, once pastime1971 posts his arcee builds I will cross-reference them with the new patches to ensure wide coverage for the patches. But history does indicate we should be covered with this update.

this new build will work on cm7.2 stable? i'll test that and report back

The script automatically queries the build.prop for likely matches of ROM and DATE, but you can override those settings by explicitly choosing you options.

The v061 has some newer patches for CM7.2 final in it, but they might need some adjusting or even replacing. They work on some tests I have made, but not for a vibrant set I was sent. Which is troubling, because across builds of CM source, the patches should be fine.

Let us know how it goes, we will continue to work at updating the patch tonight.

pastime1971 just sent me his patches he made from a separate build, but it also fails to patch the CM7.2 final roms I am using for checking (vibrantmtd and encore). It seems neither of us checked out the correct branch when we built.

I will continue to look to correct this. We'll get it soon for you, though.

And for those of you NOT trying to patch 7.2, let me make sure that it is clear that the Auto-Patcher is working as advertised, we just need to add support for the newest release of Gingerbread.

XDA Developers was founded by developers, for developers. It is now a valuable resource for people who want to make the most of their mobile devices, from customizing the look and feel to adding new functionality.Are you a developer?