[Android Software/Hacking General [Developers Only]] yuanluque:
patch error

ROOT= /cygdrive/f/pdroid/ApGPackages/ap/

TOOL= /cygdrive/f/pdroid/ApGPackages/ap//patch_tools.tgz

ROM= /cygdrive/d/TDDownload/CM9-NIGHTLY-121116-Defy.zip

ROMX= D:\TDDOWN~1\CM9-NI~1.ZIP

### verify tools ###

/cygdrive/f/pdroid/ApGPackages/cygwin/bin/patch

/cygdrive/f/pdroid/ApGPackages/cygwin/bin/tar

/cygdrive/f/pdroid/ApGPackages/Java/bin/jar

/cygdrive/f/pdroid/ApGPackages/Java/bin/java

/cygdrive/f/pdroid/ApGPackages/cygwin/bin/cpio

### verify ROM ###

### running ./auto_patcher /cygdrive/d/TDDownload/CM9-NIGHTLY-121116-Defy.zip pdroid cm

PATH= /cygdrive/f/pdroid/ApGPackages/ap/tmp20121208173218:/cygdrive/f/pdroid/ApGPackages/Java/bin:/cygdrive/f/pdroid/ApGPackages/cygwin/bin:/cygdrive/f/pdroid/ApGPackages/cygwin/usr/sbin

### unzip patch tools ###

### unzip patch patches ###

... result of ROM check: RIL= MotoWrigley3GRIL

### probe rom type ###

#### Standard Build Query ####

# VER= v2.4.7

# OS= cygwin 32bit

# VID= 4.0.4

# PID= pdroid

# MID= tanguy.pruvot@gmail.com

# RID= cm

# ANDR= ics

# BDID= 20121116

# DID= umts_jordan

# BID= 20120811

### DELETE FILES=

### COPY FILES=

### JAR FILES= system/framework/framework.jar system/framework/core.jar system/framework/services.jar

### APK FILES=

### IMG FILES=

### TXT FILES=

### unzip rom ###

### create updater script ###

... using Clockworkmod installer ...

# generated updater-script

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(0, 0, 0755, "/system/bootmenu/2nd-boot/hbootuser");

set_perm(0, 0, 0755, "/system/bootmenu/2nd-init/init");

set_perm_recursive(0, 2000, 0775, 0664, "/system/bootmenu/config/");

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_recursive(1002, 1002, 0755, 0440, "/system/etc/bluetooth");

set_perm(0, 0, 0755, "/system/etc/bluetooth");

set_perm(1000, 1000, 0640, "/system/etc/bluetooth/auto_pairing.conf");

set_perm(3002, 3002, 0444, "/system/etc/bluetooth/blacklist.conf");

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(0, 2000, 0550, "/system/etc/init.goldfish.sh");

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");

### create restore.zip ###

### decompile system files ###

... decompile framework.jar ...

... extract preloaded-classes ...

���: preloaded-classes

... decompile core.jar ...

... decompile services.jar ...

### jar patch pdroid/ics/cm/20120811 ###

... apply framework.patch ...

Reversed (or previously applied) patch detected! Skipping patch.

15 out of 15 hunks ignored -- saving rejects to file 'smali/com/android/internal/telephony/RIL$RILSender.smali.rej'

Reversed (or previously applied) patch detected! Skipping patch.

4 out of 4 hunks ignored -- saving rejects to file 'smali/com/android/internal/telephony/sip/SipPhone$SipConnection.smali.rej'

... apply preloaded.patch ...

GARBAGE= tmp/system/framework/framework.jar.out/smali/android/app/ActivityThread.smali.orig

GARBAGE= tmp/system/framework/framework.jar.out/smali/com/android/internal/telephony/RIL$RILSender.smali.rej tmp/system/framework/framework.jar.out/smali/com/android/internal/telephony/sip/SipPhone$SipConnection.smali.rej

... apply core.patch ...

GARBAGE=

GARBAGE=

... apply services.patch ...

116 out of 117 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

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

**************************************

**************************************