[Android Software/Hacking General [Developers Only]] frogfire:
jellybam-5.2.0_i9300.STABLE

AOKP | CM10.1

ROOT= /cygdrive/c/Users/frogfire/Downloads/ApGPackages/ap
TOOL= /cygdrive/c/Users/frogfire/Downloads/ApGPackages/ap/patch_tools.tgz
ROM= /cygdrive/c/Users/frogfire/Downloads/jellybam-5.2.0_i9300.STABLE.zip
ROMX= C:\Users\frogfire\DOWNLO~1\JELLYB~1.ZIP

### verify tools ###
/cygdrive/c/Users/frogfire/Downloads/ApGPackages/cygwin/bin/patch
/cygdrive/c/Users/frogfire/Downloads/ApGPackages/cygwin/bin/tar
/cygdrive/c/Users/frogfire/Downloads/ApGPackages/Java/bin/jar
/cygdrive/c/Users/frogfire/Downloads/ApGPackages/Java/bin/java
/cygdrive/c/Users/frogfire/Downloads/ApGPackages/cygwin/bin/cpio

### verify ROM ###
### running ./auto_patcher /cygdrive/c/Users/frogfire/Downloads/jellybam-5.2.0_i9300.STABLE.zip openpdroid cm
PATH= /cygdrive/c/Users/frogfire/Downloads/ApGPackages/ap/tmp20130211151141:/cygdrive/c/Users/frogfire/Downloads/ApGPackages/Java/bin:/cygdrive/c/Users/frogfire/Downloads/ApGPackages/cygwin/bin:/cygdrive/c/Users/frogfire/Downloads/ApGPackages/cygwin/usr/sbin

### unzip patch tools ###

### unzip patch patches ###

... result of ROM check: RIL= SamsungExynos4RIL

### probe rom type ###
#### Standard Build Query ####
# VER= v2.6.6
# OS= cygwin 32bit
# VID= 4.2.1
# PID= openpdroid
# MID= i9300-userdebug
# RID= cm
# ANDR= 4.2
# BDID= 20130128
# DID= m0
# 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/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_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 ...
\vergr�t: 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 text leading up to this was:
--------------------------
|diff -Npru stock-framework/smali/android/app/ContextImpl$42.smali opd-framework/smali/android/app/ContextImpl$42.smali
|--- stock-framework/smali/android/app/ContextImpl$42.smali	2013-01-31 23:33:04.680544961 -0600
|+++ opd-framework/smali/android/app/ContextImpl$42.smali	2013-01-31 23:33:25.124646335 -0600
--------------------------
File to patch:
Skip this patch? [y]
1 out of 1 hunk ignored
1 out of 11 hunks FAILED -- saving rejects to file smali/android/app/ContextImpl.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

... apply preloaded.patch ...

!!! PATCHING FAILED FOR android/app/ContextImpl.smali !!!
!!! patch error for android/app/ContextImpl.smali !!!

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

!!! error: failed android/app/ContextImpl.smali in framework.jar cannot be remedied

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