[Android Software/Hacking General [Developers Only]] brashmadcap:
Chokes on AOKP MR2

No dice on AOKP MR2

ROOT= /cygdrive/c/Users/haet/Desktop/apG/ApGPackages/ap
TOOL= /cygdrive/c/Users/haet/Desktop/apG/ApGPackages/ap/patch_tools.tgz
ROM= /cygdrive/c/Users/haet/Desktop/aokp_mako_jb-mr1_milestone-2.zip
ROMX= C:\Users\haet\Desktop\AOKP_M~1.ZIP

### verify tools ###
/cygdrive/c/Users/haet/Desktop/apG/ApGPackages/cygwin/bin/patch
/cygdrive/c/Users/haet/Desktop/apG/ApGPackages/cygwin/bin/tar
/cygdrive/c/Users/haet/Desktop/apG/ApGPackages/Java/bin/jar
/cygdrive/c/Users/haet/Desktop/apG/ApGPackages/Java/bin/java
/cygdrive/c/Users/haet/Desktop/apG/ApGPackages/cygwin/bin/cpio

### verify ROM ###
### running ./auto_patcher /cygdrive/c/Users/haet/Desktop/aokp_mako_jb-mr1_milestone-2.zip openpdroid aokp
PATH= /cygdrive/c/Users/haet/Desktop/apG/ApGPackages/ap/tmp20130723020059:/cygdrive/c/Users/haet/Desktop/apG/ApGPackages/Java/bin:/cygdrive/c/Users/haet/Desktop/apG/ApGPackages/cygwin/bin:/cygdrive/c/Users/haet/Desktop/apG/ApGPackages/cygwin/usr/sbin

### unzip patch tools ###

### unzip patch patches ###

### probe rom type ###
#### Standard Build Query ####
# VER= v2.9.931
# OS= cygwin 32bit
# VID= 4.2.2
# PID= openpdroid
# MID= aokp_mako-userdebug
# RID= aokp
# ANDR= 4.2
# BDID= 20130721
# DID= mako
# BID= 20130610
Patches are openpdroid/4.2/aokp/20130610

Current HEAD: ec7f3abdb5d8c7544822fd764241748272451643 I see a 10.1-M3 tag...

### DELETE FILES=
### COPY FILES= system/media/PDroid.jpeg
### JAR FILES= system/framework/framework.jar system/framework/core.jar system/framework/services.jar system/framework/telephony-common.jar system/app/Mms.apk
### 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/platform/msm_sdcc.1/by-name/system", "/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/firmware/discretix");
set_perm(0, 2000, 0755, "/system/vendor/firmware/keymaster");
set_perm_recursive(0, 2000, 0755, 0644, "/system/vendor/firmware/wlan");
set_perm(0, 0, 0644, "/system/vendor/firmware/wlan/prima/WCNSS_cfg.dat");
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 ...
inflated: preloaded-classes

... decompile core.jar ...

... decompile services.jar ...

... decompile telephony-common.jar ...

... decompile Mms.apk ...
### copy patch openpdroid/4.2/aokp/20130610 ###

... copying system/media/PDroid.jpeg ...

... overwriting system/media/PDroid.jpeg from openpdroid ...
`patches/openpdroid/4.2/aokp/20130610/system/media/PDroid.jpeg' -> `./system/media/PDroid.jpeg'

... overwriting ContentResolver.smali ...
### delete patch openpdroid/4.2/aokp/20130610 ###
### jar patch openpdroid/4.2/aokp/20130610 ###

... apply framework.patch ...

... apply preloaded.patch ...
GARBAGE= tmp/system/framework/framework.jar.out/smali/android/hardware/Camera.smali.orig
GARBAGE=

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

... apply services.patch ...

... apply services-gps_fix.patch ...
GARBAGE=
GARBAGE=

... apply telephony-common.patch ...
1 out of 78 hunks FAILED -- saving rejects to file smali/com/android/internal/telephony/cdma/CdmaServiceStateTracker.smali.rej
1 out of 4 hunks FAILED -- saving rejects to file smali/com/android/internal/telephony/gsm/GsmServiceStateTracker.smali.rej
!!! PATCHING FAILED FOR com/android/internal/telephony/cdma/CdmaServiceStateTracker.smali com/android/internal/telephony/gsm/GsmServiceStateTracker.smali !!!
!!! patch error for com/android/internal/telephony/cdma/CdmaServiceStateTracker.smali !!!
File for which patching failed:
---------------------------------------------

CdmaServiceStateTracker.smali

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

We are adding a pre-patched copy of those files.

Please only file a bug report if running the program gives you problems!!!
... replace com/android/internal/telephony/cdma/CdmaServiceStateTracker.smali ...
`patches/openpdroid/4.2/.provisionals/system/framework/telephony-common.jar.out/smali/com/android/internal/telephony/cdma/CdmaServiceStateTracker.smali' -> `tmp/system/framework/telephony-common.jar.out/smali/com/android/internal/telephony/cdma/CdmaServiceStateTracker.smali'
... failed patch sucessfully resolved ...
!!! patch error for com/android/internal/telephony/gsm/GsmServiceStateTracker.smali !!!
File for which patching failed:
---------------------------------------------

GsmServiceStateTracker.smali

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

We are adding a pre-patched copy of those files.

Please only file a bug report if running the program gives you problems!!!
... replace com/android/internal/telephony/gsm/GsmServiceStateTracker.smali ...
`patches/openpdroid/4.2/.provisionals/system/framework/telephony-common.jar.out/smali/com/android/internal/telephony/gsm/GsmServiceStateTracker.smali' -> `tmp/system/framework/telephony-common.jar.out/smali/com/android/internal/telephony/gsm/GsmServiceStateTracker.smali'
... failed patch sucessfully resolved ...
GARBAGE=
GARBAGE=

... apply Mms.apk.patch ...
2 out of 4 hunks FAILED -- saving rejects to file smali/com/android/mms/transaction/HttpUtils.smali.rej
!!! PATCHING FAILED FOR com/android/mms/transaction/HttpUtils.smali !!!

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

!!! error: failed com/android/mms/transaction/HttpUtils.smali in Mms.apk cannot be remedied

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

THANK YOU SO MUCH FOR YOU HARD WORK!