[Android Software/Hacking General [Developers Only]] wkwkwk:
Hi,

I'm trying to patch Paulobrien's JR12 (http://xdaforums.com/showthread.php?t=1738793) and I get the following

ROOT= /Users/user/Downloads/ap/.
TOOL= /Users/user/Downloads/ap/./patch_tools.tgz
ROM= /Users/user/Downloads/ap/Jr12-update-modacocustomrom-galaxynexus-kitchen-unsigned-MD5-8ca4e6294fab0e13dda2dfcb8ab32d83.zip
ROMX= /Users/user/Downloads/ap/Jr12-update-modacocustomrom-galaxynexus-kitchen-unsigned-MD5-8ca4e6294fab0e13dda2dfcb8ab32d83.zip

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

### verify ROM ###
### running ./auto_patcher Jr12-update-modacocustomrom-galaxynexus-kitchen-unsigned-MD5-8ca4e6294fab0e13dda2dfcb8ab32d83.zip openpdroid
PATH= /Users/user/Downloads/ap/./tmp20130116154647:/opt/local/bin:/Users/user/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/X11/bin

### unzip patch tools ###

### unzip patch patches ###

### probe rom type ###
#### Darwin Build Query used ####
# VER= v2.5.0
# OS= darwin12 64bit
# VID= 4.2.1
# PID= openpdroid
# MID= JOP40D
# RID= aosp
# ANDR= 4.2
# BDID= 20121120
# DID= maguro
# BID= 20130109
### 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
### 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("");
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(0, 2000, 0550, "/system/etc/init.goldfish.sh");
set_perm(0, 0, 0544, "/system/etc/install-recovery.sh");
set_perm_recursive(0, 0, 0755, 0555, "/system/etc/ppp");
set_perm(0, 2000, 0755, "/system/vendor");
set_perm_recursive(0, 2000, 0755, 0755, "/system/vendor/bin");
set_perm(0, 2000, 0755, "/system/vendor/etc");
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(0, 2000, 0755, "/system/vendor/lib/egl");
set_perm(0, 2000, 0755, "/system/vendor/lib/hw");
set_perm_recursive(0, 2000, 0755, 0644, "/system/vendor/pittpatt");
set_perm(0, 0, 0644, "/system/vendor/pittpatt/models/detection/multi_pose_face_landmark_detectors.7/left_eye-y0-yi45-p0-pi45-r0-ri20.lg_32/full_model.bin");
set_perm(0, 0, 0644, "/system/vendor/pittpatt/models/detection/multi_pose_face_landmark_detectors.7/nose_base-y0-yi45-p0-pi45-r0-ri20.lg_32/full_model.bin");
set_perm(0, 0, 0644, "/system/vendor/pittpatt/models/detection/multi_pose_face_landmark_detectors.7/right_eye-y0-yi45-p0-pi45-r0-ri20.lg_32-2/full_model.bin");
set_perm(0, 0, 0644, "/system/vendor/pittpatt/models/detection/yaw_roll_face_detectors.6/head-y0-yi45-p0-pi45-r0-ri30.4a-v24/full_model.bin");
set_perm(0, 0, 0644, "/system/vendor/pittpatt/models/detection/yaw_roll_face_detectors.6/head-y0-yi45-p0-pi45-rn30-ri30.5-v24/full_model.bin");
set_perm(0, 0, 0644, "/system/vendor/pittpatt/models/detection/yaw_roll_face_detectors.6/head-y0-yi45-p0-pi45-rp30-ri30.5-v24/full_model.bin");
set_perm(0, 0, 0644, "/system/vendor/pittpatt/models/recognition/face.face.y0-y0-22-b-N/full_model.bin");
set_perm_recursive(0, 2000, 0755, 0644, "/system/vendor/res");
set_perm(0, 0, 0644, "/system/vendor/res/images/dock/dock.png");
set_perm_recursive(0, 2000, 0755, 0755, "/system/xbin");
set_perm(0, 0, 0644, "/system/build.prop");
set_perm_recursive(0, 2000, 0755, 0755, "/system/etc/init.d");
set_perm(0, 0, 06755, "/system/xbin/su");
set_perm(0, 0, 06755, "/system/xbin/busybox");
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 ...
inflated: system/framework/framework-res.apk

... installing framework files ...

... decompile Mms.apk ...

### copy patch openpdroid/4.2/aosp/20130109 ###

... copying system/media/PDroid.jpeg ...
patches/openpdroid/4.2/aosp/20130109/system/media/PDroid.jpeg -> ./system/media/PDroid.jpeg

### jar patch openpdroid/4.2/aosp/20130109 ###

... apply framework.patch ...

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

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

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

... apply telephony-common.patch ...
17 out of 78 hunks FAILED -- saving rejects to file smali/com/android/internal/telephony/cdma/CdmaServiceStateTracker.smali.rej
2 out of 13 hunks FAILED -- saving rejects to file smali/com/android/internal/telephony/cdma/RuimSmsInterfaceManager.smali.rej
1 out of 4 hunks FAILED -- saving rejects to file smali/com/android/internal/telephony/gsm/GsmServiceStateTracker.smali.rej
2 out of 13 hunks FAILED -- saving rejects to file smali/com/android/internal/telephony/gsm/SimSmsInterfaceManager.smali.rej

!!! PATCHING FAILED FOR com/android/internal/telephony/cdma/CdmaServiceStateTracker.smali com/android/internal/telephony/cdma/RuimSmsInterfaceManager.smali com/android/internal/telephony/gsm/GsmServiceStateTracker.smali com/android/internal/telephony/gsm/SimSmsInterfaceManager.smali !!!
!!! patch error for com/android/internal/telephony/cdma/CdmaServiceStateTracker.smali !!!

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

!!! error: failed com/android/internal/telephony/cdma/CdmaServiceStateTracker.smali in telephony-common.jar cannot be remedied

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

Any ideas?

Thanks.