[Android Software/Hacking General [Developers Only]] mateorod:
The Auto-Patcher 3.5.0​

(Element 113)​

by pastime1971 and mateorod.
​

with kobik77, and Caldair
​

DISCONTINUED!!!

(2/10/14)

Information here​

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.

OpenPDroid

Come see us on github or at the OpenPDroid thread.

The Auto-Patcher​

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.

Kobik77 has developed a stand-alone GUI for Windows called ApG. The most current version of ApG can be downloaded here.

The Available Mods

​

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.

PDroid is available in the Google Play Store, although you may have trouble installing it from there. It is available from its release thread by svyat, PDroid's sole developer. Discussion about PDroid efficacy and operation for ICS/JB is usually best at pastime1971's port/build patch thread.

PDroid 2.0 (pd2.0):

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+

V6 Supercharger (v6supercharger):

Contains EVERY edit in the UltimateJarPatcher tool, except way easier and more reliable. Our patches contain zeppelinrox's most recent edits. You will still need the script, which you can get at his OP.

Only for Android 4.0.0+!

Insecure Boot.img (insecure):

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.

http://xdaforums.com/showthread.php?t=2154075

NEW

Mods 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.

Kobik has also crafted the first Auto-Patcher GUI! Here is his post with download link and features description (including auto-update from Github!) If you have any trouble with ApG check your anti-virus. Grayfoxmg1 has a post he maintains that covers any and all configuration troubleshooting advice you could need.

If you use Windows and try ApG from the above link, THAT IS ALL YOU NEED TO KNOW.

The below is for OSX and Linux users.

Requirements for execution: Java (JDK), cpio, patch

Help

For usage and patch availability, place a rom.zip into this directory and try

$./auto_patcher <ROMNAME>.zip -h mods
The Auto-Patcher v2.5.0
*******************************

The available mods are
****************************************************
* pdroid openpdroid voice v6supercharger *
* voice insecure secure external_internal *
* tabletUI 3gdongle pd2.0 *
****************************************************

To find out more about any mod, simply enter:
./auto_patcher -h <MODNAME>

so

$ ./auto_patcher -h openpdroid

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://xdaforums.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

./auto_patcher <[FONT="Courier New"]ROMNAME[/FONT]>.zip <[FONT="Courier New"]MODS[/FONT]>

example:

./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 techerrata

Download

You can also clone from our github. See the README because there is actualy a lot extra there.

Contributors

pastime1971

mateorod

kobik77 (ApG developer/cygwin maintainer)

Caldair: TabletUI maintainer.

Maintainers

Urinophoria (just about everything!)

KickNGuitar (OSX testing)

AuSSiELaMbChOpS (PAC rom maintainer)

Thanks

eyeballer and kevank with Team Win for web hosting

Svyat

CollegeDev

JesusFreke, brut.all and iBotPeaches

FFU5y

tonyp

krylon360

inportb

chainfire (for faapt)

zeppelinrox

trevd

rathian, and TheMatrix2000 (for OSX testing)

romracer and greenblue for 4.1.2 fixes

ninno_mx

The Auto-Patcher is a fully open-source utility, and we welcome new contributors.

If you are a developer, themer or script writer who has code-level edits you walk your users through, let us know and we can get together and create a package for you. A message to developers is here, which also touches on our donation policy.