[Utility][v3.5.0][11/08] Auto-Patcher (4.4)

Search This thread

madyinwhich

Member
Jan 27, 2013
18
8
Hi mateorod,

just to inform you I tried to patch the CM10.1 nightly from yesterday for my Galaxy S2 and it failes. I used the auto-patcher v2.6.55.

Code:
### jar patch openpdroid/4.2/cm/20130201 ###
... apply framework.patch ...
The next patch would create the file 'smali/android/app/ContextImpl$43.smali',
which already exists!  Skipping patch.
1 out of 1 hunk ignored
Reversed (or previously applied) patch detected!  Skipping patch.
16 out of 16 hunks ignored -- saving rejects to file smali/android/app/Fragment.smali.rej
Reversed (or previously applied) patch detected!  Skipping patch.
3 out of 3 hunks ignored -- saving rejects to file 'smali/android/app/LoaderManagerImpl$LoaderInfo.smali.rej'
Reversed (or previously applied) patch detected!  Skipping patch.
4 out of 4 hunks ignored -- saving rejects to file smali/android/content/AsyncTaskLoader.smali.rej
Reversed (or previously applied) patch detected!  Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file smali/android/content/CursorLoader.smali.rej
Reversed (or previously applied) patch detected!  Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file smali/android/content/Loader.smali.rej
Reversed (or previously applied) patch detected!  Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file smali/android/net/wifi/WifiStateMachine.smali.rej
Reversed (or previously applied) patch detected!  Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file smali/android/os/storage/StorageVolume.smali.rej
... apply preloaded.patch ...
... apply core.patch ...
... apply services.patch ...
150 out of 152 hunks FAILED -- saving rejects to file smali/com/android/server/ServerThread.smali.rej
!!! PATCHING FAILED FOR com/android/server/ServerThread.smali !!!

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!! error: failed com/android/server/ServerThread.smali in services.jar cannot be remedied
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
 

nsmart

Senior Member
Sep 3, 2011
490
220
just to inform you I tried to patch the CM10.1 nightly from yesterday for my Galaxy S2 and it failes. I used the auto-patcher v2.6.55.

Try autopatcher version 2.6.65 (u can use APG to sync with autopatcher github) with your rom version from 20130212. I could successfully patch cm10.1 from 20130212 for Nexus 4 and it it working without FCs of "com.android.phone" process.
 
  • Like
Reactions: madyinwhich

W@tcher

Senior Member
Oct 31, 2012
50
5
did a manual patch with those from 20130201 (edited!) and that works for me
will try a manual patch with the newer one from 20130108 and report...but not now...its late & i have to sleep a little :cyclops:

report:
nope...manual patching pa 3.00 openpdroid with the patches from 20130208 causes fc´s to phone as well
ap-logs

if its helpfull..i´ve noticed that at 20130201 there were 3 lines to edit and at 20130208 just 2

hope that i helped you out :cowboy:
 

baastien

Senior Member
Dec 21, 2010
99
11
A log cat for any FCs would be nice, but auto-patcher logs( so I know what patches are causing trouble) are a must.


Hi mateorod

N7000 + PA + autopatcher 2.6.65 for openpdroid
and I get phone process FC :(
here's my log for you !


Code:
ROOT= /home/sebastien/Android_Tools/autopatcherv2.6.65
TOOL= /home/sebastien/Android_Tools/autopatcherv2.6.65/patch_tools.tgz
ROM=  /home/sebastien/Android_Tools/autopatcherv2.6.65/pa_n7000-3.00-10FEB2013-140654.zip
ROMX= /home/sebastien/Android_Tools/autopatcherv2.6.65/pa_n7000-3.00-10FEB2013-140654.zip

### verify tools ###
/usr/bin/patch
/bin/tar
/usr/bin/jar
/usr/bin/java
/bin/cpio

### verify ROM ###
### running ./auto_patcher /home/sebastien/Android_Tools/autopatcherv2.6.65/pa_n7000-3.00-10FEB2013-140654.zip openpdroid
PATH= /home/sebastien/Android_Tools/autopatcherv2.6.65/tmp20130213221849:/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/home/sebastien/bin:/home/sebastien/android-sdk-linux/tools

### unzip patch tools ###

### unzip patch patches ###

... result of ROM check: RIL= SamsungExynos4RIL

### probe rom type ###
#### Standard Build Query ####
# VER= v2.6.66
# OS=  linux-gnu 32bit
# VID= 4.2.1
# PID= openpdroid
# MID= pa_n7000-userdebug
# RID= pa
# ANDR= 4.2
# BDID= 20130210
# DID= GT-N7000
# BID= 20130201
Patches are openpdroid/4.2/pa/20130201
### DELETE FILES= 
### COPY FILES= system/app/Mms.apk system/media/PDroid.jpeg
### JAR FILES= system/framework/framework.jar system/framework/core.jar system/framework/services.jar system/framework/telephony-common.jar
### APK FILES= 
### IMG FILES= 
### TXT FILES= 

### unzip rom ###

### create updater script ###

... using Clockworkmod installer ...
# generated updater-script
ui_print("");
ui_print("");
ui_print("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
ui_print("*                                              *");
ui_print("*  *           The Auto-Patcher             *  *");
ui_print("*  *  *                                  *  *  *");
ui_print("*  *                     by mateor          *  *");
ui_print("*                                              *");
ui_print("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
ui_print("");
ui_print("                    Attention");
ui_print("      ************************************");
ui_print("");
ui_print("    There is nothing that can go wrong here");
ui_print("      that reflashing your ROM won't fix.");
ui_print("");
mount("ext4", "EMMC", "/dev/block/mmcblk0p9", "/system");
package_extract_dir("system", "/system");
set_perm_recursive(0, 0, 0755, 0644, "/system");
set_perm_recursive(0, 2000, 0755, 0755, "/system/bin");
set_perm(0, 3003, 02750, "/system/bin/netcfg");
set_perm(0, 3004, 02755, "/system/bin/ping");
set_perm(0, 2000, 06750, "/system/bin/run-as");
set_perm(1002, 1002, 0440, "/system/etc/dbus.conf");
set_perm(1014, 2000, 0550, "/system/etc/dhcpcd/dhcpcd-run-hooks");
set_perm_recursive(0, 2000, 0755, 0755, "/system/etc/init.d");
set_perm(0, 0, 0755, "/system/etc/init.d");
set_perm(0, 2000, 0550, "/system/etc/init.goldfish.sh");
set_perm(1000, 1000, 0644, "/system/etc/paranoid/properties.conf");
set_perm_recursive(0, 0, 0755, 0555, "/system/etc/ppp");
set_perm(0, 2000, 0755, "/system/vendor");
set_perm(0, 2000, 0755, "/system/vendor/firmware");
set_perm(0, 2000, 0755, "/system/vendor/lib");
set_perm_recursive(0, 2000, 0755, 0644, "/system/vendor/lib/drm");
set_perm(0, 0, 0644, "/system/vendor/lib/drm/libdrmwvmplugin.so");
set_perm_recursive(0, 2000, 0755, 0755, "/system/xbin");
set_perm(0, 0, 06755, "/system/xbin/librank");
set_perm(0, 0, 06755, "/system/xbin/procmem");
set_perm(0, 0, 06755, "/system/xbin/procrank");
set_perm(0, 0, 06755, "/system/xbin/su");
unmount("/system");
ui_print("                                        .");
ui_print("                                            .");
ui_print("                                                done!");

### create restore.zip ###

### decompile system files ###

... decompile framework.jar ...

... extract preloaded-classes ...
décompressée: preloaded-classes

... decompile core.jar ...

... decompile services.jar ...

... decompile telephony-common.jar ...
### copy patch openpdroid/4.2/pa/20130201 ###

... copying system/app/Mms.apk ...

... overwriting system/app/Mms.apk from openpdroid ...
«patches/openpdroid/4.2/pa/20130201/system/app/Mms.apk» -> «./system/app/Mms.apk»

... copying system/media/PDroid.jpeg ...
«patches/openpdroid/4.2/pa/20130201/system/media/PDroid.jpeg» -> «./system/media/PDroid.jpeg»

... overwriting ContentResolver.smali ...
### delete patch openpdroid/4.2/pa/20130201 ###
### jar patch openpdroid/4.2/pa/20130201 ###

... apply framework.patch ...

... apply preloaded.patch ...
GARBAGE= 
GARBAGE= 

... apply core.patch ...
GARBAGE= 
GARBAGE= 

... apply services.patch ...
GARBAGE= 
GARBAGE= 

... apply telephony-common.patch ...
Reversed (or previously applied) patch detected!  Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file smali/com/android/internal/telephony/BaseCommands.smali.rej
Reversed (or previously applied) patch detected!  Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file 'smali/com/android/internal/telephony/CallManager$1.smali.rej'
Reversed (or previously applied) patch detected!  Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file 'smali/com/android/internal/telephony/CallManager$2.smali.rej'
Reversed (or previously applied) patch detected!  Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file smali/com/android/internal/telephony/CallManager.smali.rej
Reversed (or previously applied) patch detected!  Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file smali/com/android/internal/telephony/cat/CatService.smali.rej
Reversed (or previously applied) patch detected!  Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file smali/com/android/internal/telephony/cat/CommandParamsFactory.smali.rej
Reversed (or previously applied) patch detected!  Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file smali/com/android/internal/telephony/cat/ValueParser.smali.rej
Reversed (or previously applied) patch detected!  Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file smali/com/android/internal/telephony/cdma/CdmaConnection.smali.rej
Reversed (or previously applied) patch detected!  Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file smali/com/android/internal/telephony/cdma/CdmaLteServiceStateTracker.smali.rej
Reversed (or previously applied) patch detected!  Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file smali/com/android/internal/telephony/cdma/CdmaServiceStateTracker.smali.rej
Reversed (or previously applied) patch detected!  Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file smali/com/android/internal/telephony/cdma/sms/BearerData.smali.rej
Reversed (or previously applied) patch detected!  Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file smali/com/android/internal/telephony/CommandsInterface.smali.rej
Reversed (or previously applied) patch detected!  Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file smali/com/android/internal/telephony/DataConnectionTracker.smali.rej
Reversed (or previously applied) patch detected!  Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file smali/com/android/internal/telephony/gsm/GsmDataConnectionTracker.smali.rej
The next patch would delete the file 'smali/com/android/internal/telephony/gsm/GSMPhone$2.smali',
which does not exist!  Skipping patch.
1 out of 1 hunk ignored
Reversed (or previously applied) patch detected!  Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file smali/com/android/internal/telephony/gsm/GSMPhone.smali.rej
Reversed (or previously applied) patch detected!  Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file smali/com/android/internal/telephony/gsm/GsmServiceStateTracker.smali.rej
Reversed (or previously applied) patch detected!  Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file smali/com/android/internal/telephony/gsm/SuppServiceNotification.smali.rej
Reversed (or previously applied) patch detected!  Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file smali/com/android/internal/telephony/PhoneBase.smali.rej
Reversed (or previously applied) patch detected!  Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file smali/com/android/internal/telephony/PhoneFactory.smali.rej
Reversed (or previously applied) patch detected!  Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file smali/com/android/internal/telephony/PhoneProxy.smali.rej
Reversed (or previously applied) patch detected!  Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file 'smali/com/android/internal/telephony/RIL$1.smali.rej'
Reversed (or previously applied) patch detected!  Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file smali/com/android/internal/telephony/RILRequest.smali.rej
Reversed (or previously applied) patch detected!  Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file 'smali/com/android/internal/telephony/RIL$RILReceiver.smali.rej'
Reversed (or previously applied) patch detected!  Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file 'smali/com/android/internal/telephony/RIL$RILSender.smali.rej'
Reversed (or previously applied) patch detected!  Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file smali/com/android/internal/telephony/RIL.smali.rej
Reversed (or previously applied) patch detected!  Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file smali/com/android/internal/telephony/ServiceStateTracker.smali.rej
Reversed (or previously applied) patch detected!  Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file smali/com/android/internal/telephony/sip/SipCommandInterface.smali.rej
Reversed (or previously applied) patch detected!  Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file smali/com/android/internal/telephony/SMSDispatcher.smali.rej
Reversed (or previously applied) patch detected!  Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file 'smali/com/android/internal/telephony/SmsUsageMonitor$1.smali.rej'
Reversed (or previously applied) patch detected!  Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file 'smali/com/android/internal/telephony/SmsUsageMonitor$SettingsObserverHandler.smali.rej'
Reversed (or previously applied) patch detected!  Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file 'smali/com/android/internal/telephony/SmsUsageMonitor$SettingsObserver.smali.rej'
Reversed (or previously applied) patch detected!  Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file smali/com/android/internal/telephony/SmsUsageMonitor.smali.rej
Reversed (or previously applied) patch detected!  Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file smali/com/android/internal/telephony/test/SimulatedCommands.smali.rej
GARBAGE= 
GARBAGE= tmp/system/framework/telephony-common.jar.out/smali/com/android/internal/telephony/CallManager.smali.rej tmp/system/framework/telephony-common.jar.out/smali/com/android/internal/telephony/SmsUsageMonitor$1.smali.rej tmp/system/framework/telephony-common.jar.out/smali/com/android/internal/telephony/RIL.smali.rej tmp/system/framework/telephony-common.jar.out/smali/com/android/internal/telephony/ServiceStateTracker.smali.rej tmp/system/framework/telephony-common.jar.out/smali/com/android/internal/telephony/BaseCommands.smali.rej tmp/system/framework/telephony-common.jar.out/smali/com/android/internal/telephony/cat/ValueParser.smali.rej tmp/system/framework/telephony-common.jar.out/smali/com/android/internal/telephony/cat/CommandParamsFactory.smali.rej tmp/system/framework/telephony-common.jar.out/smali/com/android/internal/telephony/cat/CatService.smali.rej tmp/system/framework/telephony-common.jar.out/smali/com/android/internal/telephony/SMSDispatcher.smali.rej tmp/system/framework/telephony-common.jar.out/smali/com/android/internal/telephony/RIL$RILReceiver.smali.rej tmp/system/framework/telephony-common.jar.out/smali/com/android/internal/telephony/SmsUsageMonitor$SettingsObserverHandler.smali.rej tmp/system/framework/telephony-common.jar.out/smali/com/android/internal/telephony/sip/SipCommandInterface.smali.rej tmp/system/framework/telephony-common.jar.out/smali/com/android/internal/telephony/RILRequest.smali.rej tmp/system/framework/telephony-common.jar.out/smali/com/android/internal/telephony/CallManager$2.smali.rej tmp/system/framework/telephony-common.jar.out/smali/com/android/internal/telephony/CallManager$1.smali.rej tmp/system/framework/telephony-common.jar.out/smali/com/android/internal/telephony/PhoneProxy.smali.rej tmp/system/framework/telephony-common.jar.out/smali/com/android/internal/telephony/RIL$RILSender.smali.rej tmp/system/framework/telephony-common.jar.out/smali/com/android/internal/telephony/PhoneFactory.smali.rej tmp/system/framework/telephony-common.jar.out/smali/com/android/internal/telephony/SmsUsageMonitor.smali.rej tmp/system/framework/telephony-common.jar.out/smali/com/android/internal/telephony/gsm/GsmDataConnectionTracker.smali.rej tmp/system/framework/telephony-common.jar.out/smali/com/android/internal/telephony/gsm/GsmServiceStateTracker.smali.rej tmp/system/framework/telephony-common.jar.out/smali/com/android/internal/telephony/gsm/GSMPhone.smali.rej tmp/system/framework/telephony-common.jar.out/smali/com/android/internal/telephony/gsm/SuppServiceNotification.smali.rej tmp/system/framework/telephony-common.jar.out/smali/com/android/internal/telephony/SmsUsageMonitor$SettingsObserver.smali.rej tmp/system/framework/telephony-common.jar.out/smali/com/android/internal/telephony/test/SimulatedCommands.smali.rej tmp/system/framework/telephony-common.jar.out/smali/com/android/internal/telephony/CommandsInterface.smali.rej tmp/system/framework/telephony-common.jar.out/smali/com/android/internal/telephony/DataConnectionTracker.smali.rej tmp/system/framework/telephony-common.jar.out/smali/com/android/internal/telephony/cdma/CdmaServiceStateTracker.smali.rej tmp/system/framework/telephony-common.jar.out/smali/com/android/internal/telephony/cdma/CdmaConnection.smali.rej tmp/system/framework/telephony-common.jar.out/smali/com/android/internal/telephony/cdma/sms/BearerData.smali.rej tmp/system/framework/telephony-common.jar.out/smali/com/android/internal/telephony/cdma/CdmaLteServiceStateTracker.smali.rej tmp/system/framework/telephony-common.jar.out/smali/com/android/internal/telephony/RIL$1.smali.rej tmp/system/framework/telephony-common.jar.out/smali/com/android/internal/telephony/PhoneBase.smali.rej
### apk patch openpdroid/4.2/pa/20130201 ###
### img patch openpdroid/4.2/pa/20130201 ###
### text patch openpdroid/4.2/pa/20130201 ###

### rebuild jar ###

... rebuild framework.jar ...
ajout : classes.dex (entrée = 8156740) (sortie = 3361417) (58% compressés)
ajout : preloaded-classes (entrée = 96080) (sortie = 16124) (83% compressés)

... rebuild core.jar ...
ajout : classes.dex (entrée = 2564684) (sortie = 1084600) (57% compressés)

... rebuild services.jar ...
ajout : classes.dex (entrée = 2078324) (sortie = 937628) (54% compressés)

... rebuild telephony-common.jar ...
ajout : classes.dex (entrée = 459028) (sortie = 185908) (59% compressés)

### create update-pa-GT-N7000-20130210-openpdroid.zip ###
manifest ajouté
ajout : system/framework/framework.jar (entrée = 3378126) (sortie = 3356114) (0% compressés)
ajout : system/framework/core.jar (entrée = 1087840) (sortie = 1082107) (0% compressés)
ajout : system/framework/services.jar (entrée = 938087) (sortie = 936585) (0% compressés)
ajout : system/framework/telephony-common.jar (entrée = 186367) (sortie = 185569) (0% compressés)
ajout : system/app/Mms.apk (entrée = 3230021) (sortie = 2416653) (25% compressés)
ajout : system/media/PDroid.jpeg (entrée = 26898) (sortie = 25744) (4% compressés)
entrée META-INF/ ignorée
ajout : META-INF/com/ (entrée = 0) (sortie = 0) (0% stocké)
ajout : META-INF/com/google/ (entrée = 0) (sortie = 0) (0% stocké)
ajout : META-INF/com/google/android/ (entrée = 0) (sortie = 0) (0% stocké)
ajout : META-INF/com/google/android/update-binary (entrée = 234200) (sortie = 152430) (34% compressés)
ajout : META-INF/com/google/android/updater-script (entrée = 2189) (sortie = 509) (76% compressés)



By the way, that's the tip again to solve phone process FC ? (if any !)



EDIT :
I got it :good:

...
  • For the phone FCs, this is because they had a major update to the Mms.apk. If you get constant phone FC's, replace the Mms apk in the update.zip with the one in your rom. I am putting together a fix now, but I will probably have to build the apk first.

I will try it later tomorrow.
 
Last edited:

Dr.Gonzoo

New member
Feb 13, 2013
1
0
failed to patch pdroid on cm10 nightly build for Defy

Hello xda-developers!

I see you could help many people that had similar problems as I do. However, I could not find any advise that worked for me so far. I hope you can have a look at my problem and help me solve it. Thanks! (also thanks for the good work here guys!)

I tried to use auto_patcher (Windows GUI-Version) to get OpendPDroid or Pdroid2 working on a CM10-20130110-NIGHTLY-mb526.zip (für the Motorola Defy+), but could not patch it. I always get this Error Message.
I also tried to patch the actual ROMs from custom-android, MotoIceGun 2.02 and Jelly Cannon 8.1.1. Thei didn't work and the Error output was fairly similar.

Thanks for your help!


Code:
ROOT= /cygdrive/d/Downloads/ApGPackages/ap
TOOL= /cygdrive/d/Downloads/ApGPackages/ap/patch_tools.tgz
ROM=  /cygdrive/d/Downloads/CM10-20130110-NIGHTLY-mb526.zip
ROMX= D:\DOWNLO~1\CM10-2~1.ZIP

### verify tools ###
/cygdrive/d/Downloads/ApGPackages/cygwin/bin/patch
/cygdrive/d/Downloads/ApGPackages/cygwin/bin/tar
/cygdrive/d/Downloads/ApGPackages/Java/bin/jar
/cygdrive/d/Downloads/ApGPackages/Java/bin/java
/cygdrive/d/Downloads/ApGPackages/cygwin/bin/cpio

### verify ROM ###
### running ./auto_patcher /cygdrive/d/Downloads/CM10-20130110-NIGHTLY-mb526.zip openpdroid cm
PATH= /cygdrive/d/Downloads/ApGPackages/ap/tmp20130213220903:/cygdrive/d/Downloads/ApGPackages/Java/bin:/cygdrive/d/Downloads/ApGPackages/cygwin/bin:/cygdrive/d/Downloads/ApGPackages/cygwin/usr/sbin

### unzip patch tools ###

### unzip patch patches ###

... result of ROM check: RIL= MotoWrigley3GRIL

### probe rom type ###
#### Standard Build Query ####
# VER= v2.6.66
# OS=  cygwin 32bit
# VID= 4.1.2
# PID= openpdroid
# MID= cm_mb526-userdebug
# RID= cm
# ANDR= 4.1
# BDID= 20130110
# DID= umts_jordan
# BID= 20130201
Patches are openpdroid/4.1/cm/20130201
### DELETE FILES= 
### COPY FILES= system/media/PDroid.jpeg
### JAR FILES= system/framework/framework.jar system/framework/core.jar system/framework/services.jar
### APK FILES= system/app/Mms.apk
### IMG FILES= 
### TXT FILES= 

### unzip rom ###

### create updater script ###

... using Clockworkmod installer ...
# generated updater-script
ui_print("");
ui_print("");
ui_print("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
ui_print("*                                              *");
ui_print("*  *           The Auto-Patcher             *  *");
ui_print("*  *  *                                  *  *  *");
ui_print("*  *                     by mateor          *  *");
ui_print("*                                              *");
ui_print("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
ui_print("");
ui_print("                    Attention");
ui_print("      ************************************");
ui_print("");
ui_print("    There is nothing that can go wrong here");
ui_print("      that reflashing your ROM won't fix.");
ui_print("");
mount("ext3", "EMMC", "/dev/block/mmcblk1p21", "/system");
package_extract_dir("system", "/system");
set_perm_recursive(0, 0, 0755, 0644, "/system");
set_perm_recursive(0, 0, 0755, 0755, "/system/addon.d");
set_perm_recursive(0, 0, 0755, 0755, "/system/bootmenu/binary/");
set_perm_recursive(0, 0, 0755, 0755, "/system/bootmenu/script/");
set_perm_recursive(0, 0, 0755, 0755, "/system/bootmenu/recovery/sbin/");
set_perm_recursive(0, 2000, 0775, 0664, "/system/bootmenu/config/");
set_perm(0, 0, 0755, "/system/etc/wifi/hostap_wrapper.sh");
set_perm_recursive(0, 2000, 0755, 0755, "/system/bin");
set_perm(0, 3003, 02750, "/system/bin/netcfg");
set_perm(0, 3004, 02755, "/system/bin/ping");
set_perm(0, 2000, 06750, "/system/bin/run-as");
set_perm(1002, 1002, 0440, "/system/etc/dbus.conf");
set_perm(1014, 2000, 0550, "/system/etc/dhcpcd/dhcpcd-run-hooks");
set_perm_recursive(0, 0, 0755, 0755, "/system/etc/init.d");
set_perm_recursive(0, 0, 0755, 0555, "/system/etc/ppp");
set_perm_recursive(0, 2000, 0755, 0755, "/system/xbin");
set_perm(0, 0, 06755, "/system/xbin/hcitool");
set_perm(0, 0, 06755, "/system/xbin/librank");
set_perm(0, 0, 06755, "/system/xbin/procmem");
set_perm(0, 0, 06755, "/system/xbin/procrank");
set_perm(0, 0, 06755, "/system/xbin/su");
set_perm(0, 0, 06755, "/system/xbin/tcpdump");
set_perm(0, 0, 0755, "/system/etc/motorola/comm_drv/commdrv_fs.sh");
ui_print("                                        .");
ui_print("                                            .");
ui_print("                                                done!");

### create restore.zip ###

### decompile system files ###
[/PHP]
... decompile framework.jar ...

... extract preloaded-classes ...
 \vergr�t: preloaded-classes

... decompile core.jar ...

... decompile services.jar ...
 \vergr�t: system/framework/framework-res.apk

... installing framework files ...

... decompile Mms.apk ...
### copy patch openpdroid/4.1/cm/20130201 ###

... copying system/media/PDroid.jpeg ...
`patches/openpdroid/4.1/cm/20130201/system/media/PDroid.jpeg' -> `./system/media/PDroid.jpeg'
### delete patch openpdroid/4.1/cm/20130201 ###
### jar patch openpdroid/4.1/cm/20130201 ###

... apply framework.patch ...
Reversed (or previously applied) patch detected!  Skipping patch.
6 out of 6 hunks ignored -- saving rejects to file smali/android/view/ViewGroup.smali.rej

... apply preloaded.patch ...
GARBAGE= 
GARBAGE= tmp/system/framework/framework.jar.out/smali/android/view/ViewGroup.smali.rej

... apply core.patch ...
GARBAGE= 
GARBAGE= 

... apply services.patch ...
142 out of 143 hunks FAILED -- saving rejects to file smali/com/android/server/ServerThread.smali.rej

!!! PATCHING FAILED FOR com/android/server/ServerThread.smali !!!
!!! patch error for com/android/server/ServerThread.smali !!!

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

!!! error: failed com/android/server/ServerThread.smali in services.jar cannot be remedied

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
 

mateorod

Inactive Recognized Developer
Nov 16, 2011
1,981
3,503
New Orleans
www.gigmasters.com
First off, sorry to the TabletUI people and anyone who filed a report I did not respond to. When everything breaks, it is hard to keep up with what I have answered and what I have not. IF you had a problem, try your rom again with the new Autopatcher v.2.7.0 and let me know if it isn't fixed.

TabletUI people, I have had zero time to look at that. My apologies. It hasn't been forgotten, just slightly deprioritised.

Auto-patcher v2.7.0 is out to ApG and has been uploaded to techerrata (maybe 15 mins)
  • Fix for PA FC's (I wrote it for 2.6.67, but forgot to push it, sorry)
  • AOKP Build 3 support
  • CM9, CM10 and CM10.1 patches have been rebuilt to accomodate the FM radio addition that broke everything.
This does not include any provisions for breakage which may or may not occur once 4.2.2 gets integrated. I am hoping I won't have to do this all over again.

report:
nope...manual patching pa 3.00 openpdroid with the patches from 20130208 causes fc´s to phone as well
ap-logs

if its helpfull..i´ve noticed that at 20130201 there were 3 lines to edit and at 20130208 just 2

hope that i helped you out :cowboy:
Yeah, I accidentally didn;t push the fix, should work now. Let me know, ok?
Hi mateorod

N7000 + PA + autopatcher 2.6.65 for openpdroid
and I get phone process FC :(
here's my log for you !

[
Same as above, try 2.7.0, sorry, Thanks for the time to make the logs!
Hello xda-developers!

I see you could help many people that had similar problems as I do. However, I could not find any advise that worked for me so far. I hope you can have a look at my problem and help me solve it. Thanks! (also thanks for the good work here guys!)

I tried to use auto_patcher (Windows GUI-Version) to get OpendPDroid or Pdroid2 working on a CM10-20130110-NIGHTLY-mb526.zip (für the Motorola Defy+), but could not patch it. I always get this Error Message.
I also tried to patch the actual ROMs from custom-android, MotoIceGun 2.02 and Jelly Cannon 8.1.1. Thei didn't work and the Error output was fairly similar.

Thanks for your help!

Sorry the problem is the defy. It is a known issue, resulting from the lack of AOSP support. I have a plan I think may help you guys (essentailly a way to mix and match patches until we find the sweet spot. Hopefully 4.2.2. won't be too bad and I will have some time to work on improving this thing instead of just triage.
 

wkwkwk

Senior Member
Jun 28, 2008
359
76
Hello,

Llama cell pollig is still broken, right? I haven't heard anything on this - did by any chance CollegeDev mention how he fixed it?

Thanks.
 
  • Like
Reactions: mateorod

mateorod

Inactive Recognized Developer
Nov 16, 2011
1,981
3,503
New Orleans
www.gigmasters.com
Hello,

Llama cell pollig is still broken, right? I haven't heard anything on this - did by any chance CollegeDev mention how he fixed it?

Thanks.
Yes, for now. I know it is hard to separate, especially since I am developing for both, but the AutoPatcher and OpenPdroid are two separate things. I will keep you guys appraise of when we update the actual content of the OpenPDroid patches, though. For now, the autopatcher patches exactly mirror the *-openpdroid branches in our github repos(OpenPdroidc1.0.1). CollegeDev has released his work though, and we are all getting together to work on the best way to not duplicate work. The transition to opening the source has been really great, every one from CollegeDev on down has been totally supportive. We also have some other developers contributing and reviewing the code that really know their stuff.

I can say with assurance that PDroid development has never been stronger than it is right now. Assuming that CollegeDev;s fix for Llama works (and I am sure that it does) that willl be in the next OpenPdroid release. That may be the Android4.2.2 update, or immediately following it. The merge of the PDroid2.0 core and OpenPdroid is beginning, and that will take a little bit. But we're getting there.

And as a general announcement, it looks like Android 4.2.2. is going to break our patches...that is going to entail more than simply rebuilding, so stay tuned.
autopatcherv2.7.0.zip on Techerrata seems to be a bad upload

Yep. Godd catch, I wouldn't have caught that. It has been reuploaded, but maybe wait 20-30 mins for the server to cycle over, i have noticed it takes a little while sometimes.
 

karamelos

Senior Member
Apr 6, 2012
470
304
@mateorod i have patched cm10.1 with pd2.0 if you want zip rom or other.



@SecUpwN
Try this one
Rom: aokp_shooteru_unofficial_Feb-11-13.zip
Auto_patcher Version: v2.6.7
Download Zip & log: http://d-h.st/w5l

If not working post logxxxx.txt in zip & some logcat
 
  • Like
Reactions: SecUpwN

SilentEYE

Senior Member
Mar 23, 2008
1,174
526
After Updating the APG Tool to latest auto-patcher v 2.70 the patch process is at least finishing its job. But after Installation there are FCs.

Sony Xperia S CM 10 by FXP Team 206a.

Code:
Running autopatcher with the following arguments:
ROM_PATH: /cygdrive/c/Users/SilentEYE/Downloads/FXP206a-cm-10-20130210-UNOFFICIAL-nozomi.zip
PATCH_TYPE: openpdroid
ROM_TYPE: cm

The Auto-Patcher v2.6.7

### verify tools ###
### verify ROM ###
### unzip patch tools ###
### unzip patch patches ###
 \vergrößert: system/build.prop
... result of ROM check: RIL= SonyQualcommRIL
### probe rom type ###
... result of ROM check: version= 4.1.2 rom= cm ...
... Using cm patches ...
... openpdroid patch date has been set to: 20130209 ...
### unzip rom ###
 \vergrößert: system/app/Mms.apk
 \vergrößert: system/framework/core.jar
 \vergrößert: system/framework/framework.jar
 \vergrößert: system/framework/services.jar
### create updater script ###
 \vergrößert: META-INF/com/google/android/update-binary
 \vergrößert: META-INF/com/google/android/updater-script
... using Clockworkmod installer ...
### create restore.zip ###
### decompile system files ###
... decompile framework.jar ...
... extract preloaded-classes ...
... decompile core.jar ...
... decompile services.jar ...
... installing framework files ...
I: Framework installed to: C:\Users\SilentEYE\apktool\framework\1.apk
... decompile Mms.apk ...
I: Baksmaling...
I: Loading resource table...
I: Loaded.
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\SilentEYE\apktool\framework\1.apk
I: Loaded.
I: Regular manifest package...
I: Decoding file-resources...
I: Decoding values */* XMLs...
I: Done.
I: Copying assets and libs...
### copy patch openpdroid/4.1/cm/20130209 ###
... copying system/media/PDroid.jpeg ...
... overwriting GsmServiceStateTracker.smali ...
### jar patch openpdroid/4.1/cm/20130209 ###
... apply framework.patch ...
The next patch would create the file 'smali/android/app/ContextImpl$40.smali',
which already exists!  Skipping patch.
1 out of 1 hunk ignored
5 out of 5 hunks FAILED -- saving rejects to file smali/android/content/ContentResolver.smali.rej
Reversed (or previously applied) patch detected!  Skipping patch.
6 out of 6 hunks ignored -- saving rejects to file smali/android/view/ViewGroup.smali.rej
Reversed (or previously applied) patch detected!  Skipping patch.
5 out of 5 hunks ignored -- saving rejects to file smali/com/android/internal/telephony/gsm/GsmServiceStateTracker.smali.rej
... apply preloaded.patch ...
!!! PATCHING FAILED FOR android/content/ContentResolver.smali !!!

File for which patching failed:
---------------------------------------------

ContentResolver.smali

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

We can try to add a premade copy of those files.
This sometimes works.

You only need to report this if running the program gives you problems!!!


Do you want to proceed ? (YES/no) ... replace android/content/ContentResolver.smali ...
... apply core.patch ...
... apply services.patch ...
### apk patch openpdroid/4.1/cm/20130209 ###
... apply Mms.apk.patch ...
21 out of 21 hunks FAILED -- saving rejects to file smali/com/android/mms/transaction/HttpUtils.smali.rej
... Patching Mms.apk failed, but we will copy over a prepatched file ...
### rebuild jar ###
... rebuild framework.jar ...

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!! error: failed compiling framework.jar !!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

!!! Problem with method cap !!!
... attempting fix ...
... rebuild framework.jar ...
... rebuild core.jar ...
... rebuild services.jar ...
### rebuild apk ###
... rebuild Mms.apk ...
### create update-cm-nozomi-20130210-openpdroid.zip ###
### finished ###
flash update-cm-nozomi-20130210-openpdroid.zip to install the patched files
flash restore-cm-nozomi-20130210.zip to restore the original system
 

dirtyreturn

Senior Member
Aug 14, 2011
1,138
252
Nexus 7
Huawei Nexus 6P
Re: [Utility][2.6.65][2/10] Auto-Patcher (4.2.1)

@mateorod . Thanks for the 'attention' in the first post about the cm10.1 opd issue. I had already used up the thanks button for that. So, thanks button for this post.
Edit- can't thank my on post... So THANKS.
 
  • Like
Reactions: mateorod

mateorod

Inactive Recognized Developer
Nov 16, 2011
1,981
3,503
New Orleans
www.gigmasters.com
After Updating the APG Tool to latest auto-patcher v 2.70 the patch process is at least finishing its job. But after Installation there are FCs.

Sony Xperia S CM 10 by FXP Team 206a.
Progress, though, right?

Two things...try replacing the Mms.apk in the openpdriod-update.zip with the one from your rom and reflash the update.zip (no wiping needed). Then if you would please submit a logcat?

In fact, I have tried to catch all the FCs, but there is obviously a problem somewhere, I believe a conflict at source level. So if anyone is having FCs, could you please submit a logcat? Logcats are at their most useful if they are already running at the beginning and ending of the problem you having. So if GPS is an issue (just for example) start the logcat and then start the GPS.

Logcats are how we find the problem and fix things, just like the autopatcher logs.
It's auto_patcher patch ------------> openpdroid (wait for update)
The race of thanks.............
I updated the patches for 2.7.0...I think that may fix the FCs. I did the same thing I did to fix the FCs of PA3.0 and recent cm10.1....I swapped the telephony patch with the earlier one of 20130201. SO I am hopeful this will fix AOKP for now as well.
Just wondering is this supporting the latest collegedev update yet or not yet with apg tool? :)

Edit: NVM, it appears to be using the old 1.51 patch version.

If any can provide the latest pdroid2.0 patch for cm10 stable on sgh i727 (ATT skyrocket) please do :)

There isn't an easy way for anyone to do that for you right now...making and adding things as big as a Pdroid2.0 project takes a bunch of time. I finished porting OpenPdroid to android 4.2.1 before Christmas yet we weren't able to release until mid January. And you have all seen the time and effort just maintaining OpenPdroid has been, especially lately. Adding those new patches doubles that.

I am very much in contact with CollegeDev, we will be supporting the Pdroid2.0 application, no ifs, ands, or buts. There are just a bunch of work to do before we add those latest features to the autopatcher. We are for sure working on it.
 

lojpek

Senior Member
Sep 23, 2007
92
27
ROM: [03-01-13][Flinny] Andromadus Test builds - CM10.1[13] (http://xdaforums.com/showthread.php?t=2031694)


ApG ApG.2.5.7.9 with auto-patcher 2.6.7

Code:
ROOT= /cygdrive/f/Android/ApG/ApGPackages/ap
TOOL= /cygdrive/f/Android/ApG/ApGPackages/ap/patch_tools.tgz
ROM=  /cygdrive/f/Android/flinnycm101_saga_13.zip
ROMX= F:\Android\flinnycm101_saga_13.zip

### verify tools ###
/cygdrive/f/Android/ApG/ApGPackages/cygwin/bin/patch
/cygdrive/f/Android/ApG/ApGPackages/cygwin/bin/tar
/cygdrive/f/Android/ApG/ApGPackages/Java/bin/jar
/cygdrive/f/Android/ApG/ApGPackages/Java/bin/java
/cygdrive/f/Android/ApG/ApGPackages/cygwin/bin/cpio

### verify ROM ###
### running ./auto_patcher /cygdrive/f/Android/flinnycm101_saga_13.zip openpdroid cm
PATH= /cygdrive/f/Android/ApG/ApGPackages/ap/tmp20130214192204:/cygdrive/f/Android/ApG/ApGPackages/Java/bin:/cygdrive/f/Android/ApG/ApGPackages/cygwin/bin:/cygdrive/f/Android/ApG/ApGPackages/cygwin/usr/sbin

### unzip patch tools ###

### unzip patch patches ###

### probe rom type ###
#### Standard Build Query ####
# VER= v2.6.7
# OS=  cygwin 32bit
# VID= 4.2.1
# PID= openpdroid
# MID= cm_saga-eng
# RID= cm
# ANDR= 4.2
# BDID= 20130202
# DID= saga
# BID= 20130201
Patches are openpdroid/4.2/cm/20130201
### DELETE FILES= 
### COPY FILES= system/app/Mms.apk system/media/PDroid.jpeg
### JAR FILES= system/framework/framework.jar system/framework/core.jar system/framework/services.jar system/framework/telephony-common.jar
### APK FILES= 
### IMG FILES= 
### TXT FILES= 

### unzip rom ###

### create updater script ###

... using Clockworkmod installer ...
# generated updater-script
ui_print("");
ui_print("");
ui_print("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
ui_print("*                                              *");
ui_print("*  *           The Auto-Patcher             *  *");
ui_print("*  *  *                                  *  *  *");
ui_print("*  *                     by mateor          *  *");
ui_print("*                                              *");
ui_print("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
ui_print("");
ui_print("                    Attention");
ui_print("      ************************************");
ui_print("");
ui_print("    There is nothing that can go wrong here");
ui_print("      that reflashing your ROM won't fix.");
ui_print("");
mount("ext4", "EMMC", "/dev/block/mmcblk0p25", "/system");
package_extract_dir("system", "/system");
set_perm_recursive(0, 0, 0755, 0644, "/system");
set_perm_recursive(0, 0, 0755, 0755, "/system/addon.d");
set_perm_recursive(0, 2000, 0755, 0755, "/system/bin");
set_perm(0, 3003, 02750, "/system/bin/netcfg");
set_perm(0, 3004, 02755, "/system/bin/ping");
set_perm(0, 2000, 06750, "/system/bin/run-as");
set_perm(1002, 1002, 0440, "/system/etc/dbus.conf");
set_perm(1014, 2000, 0550, "/system/etc/dhcpcd/dhcpcd-run-hooks");
set_perm_recursive(0, 2000, 0755, 0755, "/system/etc/init.d");
set_perm(0, 0, 0755, "/system/etc/init.d");
set_perm(0, 2000, 0550, "/system/etc/init.goldfish.sh");
set_perm_recursive(0, 0, 0755, 0555, "/system/etc/ppp");
set_perm_recursive(0, 2000, 0755, 0644, "/system/vendor");
set_perm(0, 0, 0644, "/system/vendor/etc/audio_effects.conf");
set_perm_recursive(0, 0, 0755, 0644, "/system/vendor/firmware");
set_perm(0, 2000, 0755, "/system/vendor/firmware");
set_perm(0, 0, 0644, "/system/vendor/lib/libbt-vendor.so");
set_perm_recursive(0, 2000, 0755, 0755, "/system/xbin");
set_perm(0, 0, 06755, "/system/xbin/librank");
set_perm(0, 0, 06755, "/system/xbin/procmem");
set_perm(0, 0, 06755, "/system/xbin/procrank");
set_perm(0, 0, 06755, "/system/xbin/su");
set_perm(0, 0, 06755, "/system/xbin/tcpdump");
unmount("/system");
ui_print("                                        .");
ui_print("                                            .");
ui_print("                                                done!");

### create restore.zip ###

### decompile system files ###

... decompile framework.jar ...

... extract preloaded-classes ...
 inflated: preloaded-classes

... decompile core.jar ...

... decompile services.jar ...

... decompile telephony-common.jar ...
### copy patch openpdroid/4.2/cm/20130201 ###

... copying system/app/Mms.apk ...

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

!!! error: system/app/Mms.apk is missing in the patch. Please upload your logfile to the support thread!

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!


Auto-patcher 2.6.7 on linux computer ...

Code:
ROOT= /home/lojpek/Android
TOOL= /home/lojpek/Android/patch_tools.tgz
ROM=  /home/lojpek/Android/flinnycm101_saga_13.zip
ROMX= /home/lojpek/Android/flinnycm101_saga_13.zip

### verify tools ###
/usr/bin/patch
/bin/tar
/usr/bin/jar
/usr/bin/java
/bin/cpio

### verify ROM ###
### running ./auto_patcher flinnycm101_saga_13.zip openpdroid
PATH= /home/lojpek/Android/tmp20130214190949:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/bin/vendor_perl:/usr/bin/core_perl

### unzip patch tools ###

### unzip patch patches ###

### probe rom type ###
#### Standard Build Query ####
# VER= v2.6.7
# OS=  linux-gnu 32bit
# VID= 4.2.1
# PID= openpdroid
# MID= cm_saga-eng
# RID= cm
# ANDR= 4.2
# BDID= 20130202
# DID= saga
# BID= 20130201
Patches are openpdroid/4.2/cm/20130201
### DELETE FILES= 
### COPY FILES= system/app/Mms.apk system/media/PDroid.jpeg
### JAR FILES= system/framework/framework.jar system/framework/core.jar system/framework/services.jar system/framework/telephony-common.jar
### APK FILES= 
### IMG FILES= 
### TXT FILES= 

### unzip rom ###

### create updater script ###

... using Clockworkmod installer ...
# generated updater-script
ui_print("");
ui_print("");
ui_print("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
ui_print("*                                              *");
ui_print("*  *           The Auto-Patcher             *  *");
ui_print("*  *  *                                  *  *  *");
ui_print("*  *                     by mateor          *  *");
ui_print("*                                              *");
ui_print("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
ui_print("");
ui_print("                    Attention");
ui_print("      ************************************");
ui_print("");
ui_print("    There is nothing that can go wrong here");
ui_print("      that reflashing your ROM won't fix.");
ui_print("");
mount("ext4", "EMMC", "/dev/block/mmcblk0p25", "/system");
package_extract_dir("system", "/system");
set_perm_recursive(0, 0, 0755, 0644, "/system");
set_perm_recursive(0, 0, 0755, 0755, "/system/addon.d");
set_perm_recursive(0, 2000, 0755, 0755, "/system/bin");
set_perm(0, 3003, 02750, "/system/bin/netcfg");
set_perm(0, 3004, 02755, "/system/bin/ping");
set_perm(0, 2000, 06750, "/system/bin/run-as");
set_perm(1002, 1002, 0440, "/system/etc/dbus.conf");
set_perm(1014, 2000, 0550, "/system/etc/dhcpcd/dhcpcd-run-hooks");
set_perm_recursive(0, 2000, 0755, 0755, "/system/etc/init.d");
set_perm(0, 0, 0755, "/system/etc/init.d");
set_perm(0, 2000, 0550, "/system/etc/init.goldfish.sh");
set_perm_recursive(0, 0, 0755, 0555, "/system/etc/ppp");
set_perm_recursive(0, 2000, 0755, 0644, "/system/vendor");
set_perm(0, 0, 0644, "/system/vendor/etc/audio_effects.conf");
set_perm_recursive(0, 0, 0755, 0644, "/system/vendor/firmware");
set_perm(0, 2000, 0755, "/system/vendor/firmware");
set_perm(0, 0, 0644, "/system/vendor/lib/libbt-vendor.so");
set_perm_recursive(0, 2000, 0755, 0755, "/system/xbin");
set_perm(0, 0, 06755, "/system/xbin/librank");
set_perm(0, 0, 06755, "/system/xbin/procmem");
set_perm(0, 0, 06755, "/system/xbin/procrank");
set_perm(0, 0, 06755, "/system/xbin/su");
set_perm(0, 0, 06755, "/system/xbin/tcpdump");
unmount("/system");
ui_print("                                        .");
ui_print("                                            .");
ui_print("                                                done!");

### create restore.zip ###

### decompile system files ###

... decompile framework.jar ...

... extract preloaded-classes ...
 inflated: preloaded-classes

... decompile core.jar ...

... decompile services.jar ...

... decompile telephony-common.jar ...
### copy patch openpdroid/4.2/cm/20130201 ###

... copying system/app/Mms.apk ...

... overwriting system/app/Mms.apk from openpdroid ...
„patches/openpdroid/4.2/cm/20130201/system/app/Mms.apk” -> „./system/app/Mms.apk”

... copying system/media/PDroid.jpeg ...
„patches/openpdroid/4.2/cm/20130201/system/media/PDroid.jpeg” -> „./system/media/PDroid.jpeg”

... overwriting ContentResolver.smali ...
### delete patch openpdroid/4.2/cm/20130201 ###
### jar patch openpdroid/4.2/cm/20130201 ###

... apply framework.patch ...
The next patch would create the file 'smali/android/app/ContextImpl$43.smali',
which already exists!  Skipping patch.
1 out of 1 hunk ignored
Reversed (or previously applied) patch detected!  Skipping patch.
16 out of 16 hunks ignored -- saving rejects to file smali/android/app/Fragment.smali.rej
Reversed (or previously applied) patch detected!  Skipping patch.
3 out of 3 hunks ignored -- saving rejects to file 'smali/android/app/LoaderManagerImpl$LoaderInfo.smali.rej'
Reversed (or previously applied) patch detected!  Skipping patch.
4 out of 4 hunks ignored -- saving rejects to file smali/android/content/AsyncTaskLoader.smali.rej
Reversed (or previously applied) patch detected!  Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file smali/android/content/Loader.smali.rej
Reversed (or previously applied) patch detected!  Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file smali/android/net/wifi/WifiStateMachine.smali.rej
Reversed (or previously applied) patch detected!  Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file smali/android/os/storage/StorageVolume.smali.rej

... apply preloaded.patch ...
GARBAGE= tmp/system/framework/framework.jar.out/smali/android/app/ContextImpl.smali.orig
GARBAGE= tmp/system/framework/framework.jar.out/smali/android/os/storage/StorageVolume.smali.rej tmp/system/framework/framework.jar.out/smali/android/app/LoaderManagerImpl$LoaderInfo.smali.rej tmp/system/framework/framework.jar.out/smali/android/app/Fragment.smali.rej tmp/system/framework/framework.jar.out/smali/android/net/wifi/WifiStateMachine.smali.rej tmp/system/framework/framework.jar.out/smali/android/content/AsyncTaskLoader.smali.rej tmp/system/framework/framework.jar.out/smali/android/content/Loader.smali.rej

... apply core.patch ...
GARBAGE= 
GARBAGE= 

... apply services.patch ...
148 out of 152 hunks FAILED -- saving rejects to file smali/com/android/server/ServerThread.smali.rej

!!! PATCHING FAILED FOR com/android/server/ServerThread.smali !!!
!!! patch error for com/android/server/ServerThread.smali !!!

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

!!! error: failed com/android/server/ServerThread.smali in services.jar cannot be remedied

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

why Windows and Linux with same auto-patcher and ROM have not compare logs ?? :/
openpdroid not working :/
 

Top Liked Posts

  • There are no posts matching your filters.
  • 242
    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 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):
    • 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.

      attachment.php

    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://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
    Code:
    ./auto_patcher <[FONT="Courier New"]ROMNAME[/FONT]>.zip <[FONT="Courier New"]MODS[/FONT]>
    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 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.
    206
    New ApG is up
    Windows users just got promoted :D
    Run autopatcher in just two clicks on every PC running Windows without any prerequisites

    Download
    Version 2.6.0.1
    http://d-h.st/users/kobik/?fld_id=5247#files

    Features
    • Run Autopatcher on any PC running Windows without any prerequisites
    • Sync Autopatcher directly from GitHub so you'll always be up-to-date with the great work of mateorod and pastime1971
    • Automatic download and install Java and Cygwin so no manual installation or configuration is needed
    • Automatic and manual updates of all installed packages
    • CLI is gone, GUI is here
    • Drag and drop ROM file onto the ApG window and let it do the rest for you
    • Fast and simple

    New Features
    • Option to upload log files of failed patches attempts to codepad.org (Just drop the link you've got in this thread i.e. http://codepad.org/rpjNJ1z4)
    • Manual patching option (Run Cygwin environment with the necessary configuration for patching)
    • Autopatcher full change log

    Important
    Do not run ApG under Windows directories such as C:\, C:\Windows, C:\Program FIles\* and so on.
    Some ever reported errors while running ApG from their desktop.
    In case you're having any download errors (ApG or its packages) please verify your antivirus is disabled and you're not running from the above folders.
    If ApG still fails to download packages or sync with GitHub, try running it as an admin.

    Screenshots
    attachment.php



    Changlog
    2.6.0.1
    • Prompts whenever a new ApG version is out
    • Disable update and manual patching buttons during update to eliminate weird issues that might be caused because of this
    2.6.0.0
    • Been asked to add proxy support for downloading from GitHub, so this is an experimental version of this (I'll add a support also for Dev-Host if I'll be asked)
      A new parameter called HTTP_PROXY is now added to ApG.ini file, so you can put your proxy details in there
    2.5.7.9
    • Fixed not displaying the latest autopatcher changelog
    2.5.7.8
    • Can't even remember...
    2.5.7.7
    • GitHub sync fixes and error handling
    • GUI Rearrangment
    2.5.7.5
    • Hide irrelevant ROM types (Will be effective on autopatcher next update)
    • Maintenance Mode (Should be available when GitHub clone fails)
    • More cleanups and bug fixes
    ...
    2.5.7.2
    • Fix packages downloading issues (again!)
    • Fix changelog view
    • More cleanups and bug fixes
    ...
    ...
    2.1.2
    • Fix packages downloading issues
    • Some more other fixes
    2.1.0
    • Add patch mod to the generated zip file names
    2.0.0
    • Followed new autopatcher patches structure
    • Bumped version to 2.0.0.0 to match autopatcher's
    1.5.0.0
    • Fix patch tools permissions before tarballing it
    1.4.0.0
    • Make changelog reading from auto_patcher file a little more robust
    1.3.0.0
    • Update and restore zip files are now named as %ROM_NAME%-update,zip and %ROM_NAME%-restore,zip and are moved to the rom's directory
    1.2.0.0
    • Full autopatcher changelog in the GUI
    1.0.1.0
    • Verify patch_patches.tgz existence and try to create it
    1.0.0.9
    • Move update.zip and restore.zip to the ROM's path on successful patching
    • Minor bug fixes
    1.0.0.8
    • Script.log file moved to ApG root dir and its now called ApG.log
    • Submit latest log file instead ot the latest failed one
    1.0.0.7
    • Fix a bug when start button doesn't get enabled
    1.0.0.6
    • Fix auto-response method for the interactive parts of auto_patcher
    1.0.0.4
    • Option to upload log files of failed patches attempts to codepad.org (Just drop the link you've got in this thread i.e. http://codepad.org/rpjNJ1z4)
    • Manual patching option (Run Cygwin environment with the necessary configuration for patching)
    • Autopatcher version indication (It's also a link to GitHub)
    44
    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 VM or Cygwin see robjective's post for vm setup, or kobik77's post for cygwin setup

    HOW TO INSTALL TOOLS if you encounter "Missing patch diff tools" error, see http://xdaforums.com/showpost.php?p=26388234&postcount=422

    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.
    31
    How to patch under Windows
    Why?
    • No need for Linux machine or VM
    • Setup in just a few minutes
    • Quick and clean way
    • You're a Linux hater/phobic! :p

    How?
    • Install Cygwin
      When selecting packages to install make sure you select the following packages under utils:
      patch: utility for modifying/upgrading files
      cpio: A backup and archiving utility

      attachment.php

      attachment.php

    • Install JDK
    • Add JDK binaries path to your Windows PATH variable. For example for version 1.7.0_05 it would contain the following path
      Code:
      C:\Program Files\Java\jdk1.7.0_05\bin
      Read below how to edit PATH variable
    • Download and extract autopatcher 2012070270 or later
    • Run Cygwin Terminal
    • cd /cygdrive/path_to_autopatcher. i.e. for e:\downloads\ap
      Code:
      cd /cygdrive/e/downloads/ap/
    • Run
      Code:
      ./auto_patcher ROM.ZIP MODS [ROMTYPE] [PATCHDATE]
    • Copy both generated files update.zip and restore.zip to your phone's sdcard
    • Install update.zip from recovery


    How to edit PATH variable
    Windows 7
    • Select Computer from the Start menu
    • Choose System Properties from the context menu
    • Click Advanced system settings > Advanced tab
    • Click on Environment Variables, under System Variables, find PATH, and click on it.
    • In the Edit windows, modify PATH by adding the location of the class to the value for PATH. If you do not have the item PATH, you may select to add a new variable and add PATH as the name and the location of the class as the value.
    • Reopen Cygwin Terminal window, and run your java code.

    Windows XP
    • Start -> Control Panel -> System -> Advanced
    • Click on Environment Variables, under System Variables, find PATH, and click on it.
    • In the Edit windows, modify PATH by adding the location of the class to the value for PATH. If you do not have the item PATH, you may select to add a new variable and add PATH as the name and the location of the class as the value.
    • Close the window.
    • Reopen Cygwin Terminal window, and run your java code.

    Windows Vista
    • Right click My Computer icon
    • Choose Properties from the context menu
    • Click Advanced tab (Advanced system settings link in Vista)
    • In the Edit windows, modify PATH by adding the location of the class to the value for PATH. If you do not have the item PATH, you may select to add a new variable and add PATH as the name and the location of the class as the value.
    • Reopen Cygwin Terminal window, and run your java code.
    30
    Advanced Usage and Changelog​

    Advanced Usage

    Please be aware this is almost NEVER necessary. But it remains an option and possibly useful if we release a bad patch (hasn't happened yet...)

    Code:
    ./auto_patcher <[FONT="Courier New"]ROMNAME[/FONT]>.zip <[FONT="Courier New"]MODTYPE[/FONT]> <[FONT="Courier New"]ROMTYPE[/FONT]> <[FONT="Courier New"]PATCHDATE[/FONT]>
    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.07.20. (v2.9.93) New OPD CM patches, many bugfixes
    # 2013.07.20. (v2.9.935) New PA, AOKP patches. gitattribute. FIx PING for cygwin. (h/t: gcydtmkq)
    # 2013.08.05. (v2.9.941) Bundle patchv2.6.1 for cygwin.
    # 2013.08.07. (v3.0.0) Support for Android-4.3 (Opendproid only- CM and AOSP).

    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 (trevd)
    #                       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.03.01. (v2.8.3) PAC (.aosp-pac) 4.2.2 support (from AussieLambChops), apktool 1.5.2
    # 2013.03.03. (v2.8.4) Remove settings.apk from tabUI, replace Mms.apk. Refactors.
    # 2013.03.06. (v2.8.5) Bugfixes, mainly.
    # 2013.03.17. (v2.8.6) Added 4.2.2 tabletUI test run for CM from Caldair.
    # 2013.03.18. (v2.8.6.5) Hotfix from caldair for tabletUI, new SlimRom patches
    # 2013.03.18. (v2.8.7) TabletUI support for 10 inch screens (caldair)
    # 2013.03.25. (v2.8.8) Fix for Cygwin paths with spaces (from kobik77)
    # 2013.04.06. (v2.9.0) Added new tabletUI patches for CM and 4.2 conflicts.
    # 2013.04.10. (v2.9.1) Updated aokp openpdroid patches (0405) please report.
    # 2013.04.18. (V2.9.2) Added AOSP and SlimROm TabletUI patches (credit: Caldair)
    # 2013.04.18. (V2.9.3) Added missing framework2.jar opd aosp 4.1
    # 2013.05.08. (v2.9.4) Updates to TabletUI (from Caldair)
    # 2013.05.18. (v2.9.5) New AOKP openpdroid patches (0514)
    # 2013.05.20. (v2.9.6) New CM and PAC-man (aosp) openpdroid patches.
    # 2013.05.27. (v2.9.7) $INCREMENTAL patches for bugs/updates and GPS fix for opd (credits to phillipberndt)
    # 2013.05.30. (v2.9.8) Improve apk handling: test fix disappearing apks. New opd: evervolv,slim
    # 2013.06.18. (v2.9.83) Introduce auto-update for OSX and Linux...turn off by setting it false in .config
    #                        Update PACman patches for OPD and update telephony for PA to silence errors
    # 2013.06.18. (v2.9.84) Some environment trickery to speed up search/sort. Add WEBSITE for mods.
    #                        Check updating. New AOKP OPD patches
    # 2013.06.19. (v2.9.85) Fixes to auto-update. Added changelog.txt
    # 2013.06.20. (v2.9.865) Various bugfixes, add color, obfuscate $PROVISIONALS.
    # 2013.06.21. (v2.9.87) Added ALTERNATE patches feature- hopefully fixes PA telephony issues.
    # 2013.06.22. (v2.9.875) New tabletUI patches, revert flawed CONFLICTS feature
    # 2013.06.22. (v2.9.88) New CM opd patches
    # 2013.06.28. (v2.9.89) revert baksmali changes for now (still needs work), add new PACman OPD 6/26
    # 2013.07.02. (v2.9.91) Switch to SlimRom team's aapt and apktool for OSX+Windows (Need OSX builder!)
    # 2013.07.07. (v2.9.92) New opd patches for Slim/PA; some fixes to tabletUi by Caldair
    # 2013.07.17. (v2.9.927) Fix missing Mms (finally), support for CM Final, many bugfixes (conflicts, mod ordering, etc.)
    # 2013.07.20. (v2.9.93) New OPD CM patches, many bugfixes
    # 2013.07.20. (v2.9.935) New PA, AOKP patches. gitattribute. FIx PING for cygwin. (h/t: gcydtmkq)
    # 2013.08.05. (v2.9.941) Bundle patchv2.6.1 for cygwin.
    # 2013.08.07. (v3.0.0) Support for Android-4.3 (Opendproid only- CM and AOSP).