Attention!: The following workarounds are currently needed by some users:
If you have a Samsung PA3.0 rom and the patches fail on RIL$RilSender.smali, spend 2 mins on the fix by AussieLampChops.
If your Mms.apk disappears, you can just erase dalvik cache in recovery and reinstall the apk found here.
If you are using CM10 or PA 4.1.2, you will probably need a ROM from before they merged the FM radio, so from 02/07 or before. You are missing very little (outside of the radio itself) as 4.1 development has basically completed. But I know it is a hassle, I apologize
We are working on integrating these into the autopatcher. But I am devoting as much of my development time as I can to putting out the next OpenPDroid update. Once that goes live, it will again be the Autopatcher's turn for attention. Thanks for patience and ask for help if you need it!
Android 4.2.2 now supported!!!(New autopatcher team member Caldair has taken over tabletUI and it works for CM10 and CM10.1 for all devices! Try it! (AOSP and Evervolv tabletUI coming soon!)
Improvements;
NEW Rom! PAC roms now supported for all 4.2.2 mods Thanks to new team member AussieLambChops!
OpenPdroid patches for Android4.2.2 (CM10.1, PA3.0, AOKP and AOSP...let me know if anything that used to work now fails)
CM10, CM10.1, AOKP 4.1.2 and 4.2.1. Evervolv, PA, SlimRom 4.2.1, and PAC roms.
Attention! CM10 and 4.1.2 PA openpdroid only works on roms from 0208 and earlier! We are working on it!
OpenPDroid
The expansion/continuation of the Pdroid and PDroid2.0 patches, this will be the only PDroid framework supported from 4.2.2 on. CollegeDev, FFU5y, wbedard, Lekensteyn, me and any other contributors have all decided to work on the one framework together. The framework will continue to be 100% open source and honor the GNU GPLv3.0 license, and will be configured to support both PDroid2.0 and PDroidManager.
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] (cm)
AOKP (aokp)
AOSP (aosp)
ParanoidAndroid (pa)
Evervolv (aosp)
SlimRom (4.2.and 4.2.2)
PACmanc(4.2.2)
...and many others.
We do not support system.img, Odexed roms or Sense, TouchWiz or other OEM-skinned AOSP at this time.
If you have a build environment and build for TW or Sense, consider joining the team. Additionally, Quarx's CyanogenMod roms are not currently supported. A maintainer would be welcomed for that as well.
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.
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.
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.
OTG support- Coming SOON.
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.
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
Code:
$./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
Code:
$ ./auto_patcher -h openpdroid
Code:
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
You can have any number of mods applied at the same time, just separate them with a comma and NO SPACES!
The only thing you may need will be a romtype. The patcher will detect and display the ROMTYPE it thinks you have. If the patches fail, just append your ROMTYPE to the end of the command. The only available ROM types are:
pa
cm
aosp
aokp
Don't worry if your rom doesn't have a type; most roms in XDA are derivatives of one of the above, and tell you which one in their release threads.
Code:
./auto_patcher pa-2.23-mateorod.zip pdroid pa
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.
Maintainers FFU5y (Maintains pd2.0 AOKP and dev of PDroid Manager) KickNGuitar (OSX testing) poncik (Evervolv maintainer) AuSSiELaMbChOpS (PAC rom maintainer)
karamelos (Thread support- general)
grayfoxmg1 (Thread support - ApG)
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
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)
HOW TO INSTALL JAVA JDK you do need both java (JRE) and jar (JDK) commands
on ubuntu, type sudo apt-get install openjdk-7-jre openjdk-7-jdk
on fedora, type, su -c "yum install java-1.7.0-openjdk java-1.7.0-openjdk-devel"
edit: ubuntu installation of openjdk jre corrected.
The '<>' surrounding the variables is a convention that indicates you replace that section with your particular info, without the actual <> symbols.
ROMNAME is the literal name of the Rom.
MODS would be a list of offered mods (as seen in the -h menu or the OP), separated by commas and NO SPACES.
ROMTYPE is cm, aosp, aokp or pa
PATCHDATE is OPTIONAL and almost NEVER needed. The auto-patcher now can match your ROM with the best patch date automatically.
For example:
Code:
./auto_patcher cm-10-OFFICIAL-20120820.zip pdroid,v6supercharger cm 20120824
Changelog
Most Recent Changes:
Code:
# 2013.02.09. (v2.7.5) Add new AOKP, AOSP, CM10.1 and PA (3.0) patches for OPD (Andr. 4.2.2)
# 2013.02.17. (v2.7.9) 4.2.2 opd 4 evervolv; v6supercharger,3gdongle and all but tabletUI.
# 2013.02.20. (v2.8.0) New CM10.1 opd patches. Each BID can have own provisionals now.
# 2013.02.23. (v2.8.2) SlimRom 4.2.2 support (from karamelos), APK recompile safety net.
# 2013.02.23. (v2.8.3) PAC (.aosp-pac) 4.2.2 support (from AussieLambChops), apktool 1.5.2
Entire Changelog:
Code:
# ChangeLog
# 2012.05.00. (v0.1)
# ...........
# 2012.05.12. (v0.2) allows user to specify a different version of patches
# 2012.05.13. (v0.3.0) force "patch -N", remove temp upon failure, generate log output
# 2012.05.13. (v0.3.1) revised the generation of updater-script (SGS2)
# 2012.05.15. added AOSP patches
# 2012.05.15. added crespo-aosp patches; device-specific patching if patch exists
# 2012.05.15. remove restore.zip upon failure
# 2012.05.15. (v0.4.1) added CM7 (GB) patches
# 2012.05.18. (v0.4.2) added checking for tool commands
# 2012.05.21. (v0.4.3) apply device-specific patches only when it is specified
# 2012.05.26. added task title to log
# 2012.05.31. (v0.4.4) CM9 patches updated, crespo-aosp added
# 2012.06.04. (v0.4.5) added checking tools and rom, added aroma installer support
# add patch outputs reroute
# 2012.06.15. CM9 patches updated
# 2012.06.16. (v0.4.6) AOKP patches updated, patch versions restructured
# 2012.06.17. (v0.5.0) patcher script reorganized, removed build.prop
# 2012.06.17. (v0.6.0) auto patcher script for pdroid and v6 patches
# 2012.06.19. (v0.6.1) add patches for CM7.2 Final
# 2012.06.20. (v0.6.2) updated CM 7.2 patches
# 2012.06.23. (v0.6.3) fix symlinks
# 2012.06.26. (v0.6.4) added 0618 patches for cm7 nightlies; removed 0619 cm7.2 final
# 2012.06.27. (v0.6.5) added new CM9 patches (20120626)
# 2012.06.27. (v0.6.6) added CM7 nightly patches (20120625) (finally!)
# 2012.07.02. (v0.7.0) Redid AOSP/AOKP; add Windows support (using Cygwin). Thanks kobik77!
# 2012.07.06. (v0.7.1) updated CM9 patches (20120706)
# 2012.07.08. (v0.7.2) updated AOKP (20120707) and CM9 (20120708) pdroid patches
# 2012.07.11. (v1.0.0) reworked script works on Linux, Mac OSX, and Windows (on Cygwin);
# added new ICS/JellyBean support for the new V6-Supercharger
# 2012.07.18. (v1.0.1) new CM7/CM9 Pdroid patches (20120718)
# 2012.07.23. (v1.0.2) updated CM9 patches (20120723)
# 2012.07.23. (v1.0.3) updated CM9 patches (20120724)
# 2012.08.06. (v1.5.0) updated smali/baksmali binaries to 1.33
# 2012.08.06. Added Pdroid/V6supercharger support for CM10 Jellybean!
# 2012.08.06. Improved PDroid stability and efficiency (Thanks CollegeDev)
# 2012.08.06. (v1.6.0) added aokp-jb patches for pdroid/v6supercharger, script update
# 2012.08.17. (v1.9.5) Added support for pdroid_addon, by CollegeDev.
# Added insecure boot.img mod
# Added support for aosp-jb (This needs testing, and may not be
# a wide patch due to large variation between AOSP roms.
# -Please report all experiences!
# Updated all v6supercharger patches w/new edits to ProcessList
# Major script overhaul in preparation for additional mods!
# 2012.08.20. (v1.9.6) Conditional support for Official cm10 and aokp-jb builds
# 2012.08.23. (v1.9.7) Final/confirmed pdroid support for Official CM10 and AOKP-JB
# 2012.09.04 (v1.9.8) Bundled cygwin-compatible tools (original was corrupt).
# For Cygwin, replaced h2b function with simple bash math
# conversion (req'd for compat w/ Cygwin tools).
# 2012.08.26. (v2.0.0) Added .apk patching
# Added 3G Dongle support for Nexus 7
# TabletUI support for Nexus 7 (maybe more)
# Google Voice support for Nexus 7
# mods are 3gdongle, tabletUI, voice, or nexus7suite (for all)
# Added provisional file copy menu to widen patching base
# 2012.09.11. (v2.0.1) Cygwin support fixes
# 2012.09.11. (v2.0.2) Bugfix for 3gdongle (all)
# 2012.09.16. (v2.1.0) Significant restructuring of core operations; added edit text file
# fix for "method-cap" errors in pdroid.
# 2012.09.20. (v2.1.1) Fix for Phone FC's; OSX support finalized; ContentResolver resolved
# 2012.09.28. (v2.1.2) Hotfix for failed pdroid patching. Logging improvements.
# 2012.10.07. (v2.1.5) Final pdroid support for CM7.2 Official Releases
# Added aosp-mod patches for pdroid patching of AOSP kangs
# Switched to Chainfire's (f)aapt for speed/space reasons
# 2012.10.13. (v2.1.6) New PDroid patches for aokp-jb and cm10 4.1.2
# Revert (f)aapt- temporary due to reported issues
# 2012.10.15. (v2.17) New (again) CM10 pdroid patches.
# Move files to be copied into $p/$R/$B
# -This required a bunch of file moving-report broken symlinks.
# Some error check on the old RIL delete functions (thanks bundrik)
# 2012.10.16. (v2.1.7.5) Fix FC on phone with CM10 pdroid patches
# 2012.10.19. (v2.1.9) Testing CM10 support for PDroid Extension by CollegeDev.
# 2012.10.22. (v2.2.0) aosp/aokp and cm10 support for pdroid extension by CollegeDev
# MAJOR reworking of patches and improved query. only 4 mod types:
# cm, aokp, aosp, and pa. See our OP for details.
# 2012.10.26. (v2.3.0) Final (LTS) version. Stable for now until upstream breaks any patches
# Thanks to KicknGuitar for the OSX testing!
# 2012.11.01. (v2.3.1) Fix for pdroid RIL deletion for older roms
# Better Build query logic and help messages
# 2012.11.02. (v2.3.5) Add Evervolv support for all mods- Thanks to new maintainer poncik!
# Fix method cap for pdroid/pd2.0 for AOKP and kangs
# 2012.11.06. (v2.4.0) Update pd2.0 patches to latest pd2.0 release- all except Evervolv
# add GsmService to smali.txt; improve rom probe
# 2012.11.08. (v2.4.2) Add Evervolv support for pd2.0; Device-specific scripts
# Will display error if using a mod on an inapplicable rom
# 2012.11.09. (v2.4.5) Error catch for random method issues, fix pd2.0 Evervolv and aosp-jb
# 2012.11.17. (v2.4.6) Fix pdroid for CM7. FINALLY!.
# 2012.11.17. (v2.4.7) Internal debugging improvements
# 2013.01.13. (v2.5.0) Added 'openpdroid' mod --Open-Source Pdroid framework
# BIG Improvements to help and error-catch. Try ./auto_patcher -h
# 2013.01.15. (v2.5.1) OpenPDroid support for Evervolv and ParanoidAndroid, hotfix for Mms
# 2013.01.15. (v2.5.2) Fix for cygwin temp files (kobik), provisional telephony files added
# 2013.01.16. (v2.5.3) SlimRom support. Rearrange structure for ApG.
# 2013.01.23. (v2.5.4) Fix small bugs related to rearrange
# 2013.01.25. (v2.5.7) 4.2 TabletUI support [cm,aokp,aosp,Evervolv]
# 2013.01.28. (v2.5.8) Fix for ICS PDroid; small fixes/expansions
# 2013.02.01. (v2.6.0) OpenPdroid 1.0.1 patches (cm, aokp, aosp, evervolv and slimrom. no pa.
# Fixed TabletUI for Cm10.1- aosp to come. Removed most old patches.
# 2013.02.01. (v2.6.25) PA OpenPDroid 1.0.1 patches; AOSP TabletUI. removed opd all 1.0.0
# 2013.02.09. (v2.7.0) Add new AOKP, CM9, CM10,CM10.1 and PA (3.0) patches for OPD
# 2013.02.09. (v2.7.5) Add new AOKP, AOSP, CM10.1 and PA (3.0) patches for OPD (Andr. 4.2.2)
# 2013.02.17. (v2.7.9) 4.2.2 opd 4 evervolv; v6supercharger,3gdongle and all but tabletUI.
# 2013.02.20. (v2.8.0) New CM10.1 opd patches. Each BID can have own provisionals now.
# 2013.02.23. (v2.8.2) SlimRom 4.2.2 support (from karamelos), APK recompile safety net.
# 2013.02.23. (v2.8.3) PAC (.aosp-pac) 4.2.2 support (from AussieLambChops), apktool 1.5.2
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.
XML is like violence — if it doesn’t solve your problems, you are not using enough of it
it's my ROM and it's cm7.2 stable but i change the build.prop to 4.0.4 will this interrupt your script? hope not
---------- Post added at 10:16 AM ---------- Previous post was at 10:06 AM ----------
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.
XML is like violence — if it doesn’t solve your problems, you are not using enough of it
By now, we’re all quite familiar with Tasker, the personal automation app that seems to be able to … more
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?