[Android Software/Hacking General [Developers Only]] bone101:
i´ve tried to patch this rom with openpdroid : http://xdaforums.com/showthread.php?t=2385250

https://github.com/Quarx2k/android_device_moto_jordan-common/tree/jb_2ndboot

with no succsess.

Log :

ROOT= /cygdrive/f/Motorola Defy/PDriod/ApGPackages/ap

TOOL= /cygdrive/f/Motorola Defy/PDriod/ApGPackages/ap/patch_tools.tgz

ROM= /cygdrive/f/Motorola Defy/PDriod/Rom/cm-10.2-20131030-NIGHTLY-mb526.zip

ROMX= F:\MOTORO~1\PDriod\Rom\CM-102~2.ZIP

Updater: disabled

You will not be able to get automatic updates because we could not find 'git'.

Find out how to install git for your system and that feature should work automatically

### verify tools ###

/cygdrive/f/Motorola Defy/PDriod/ApGPackages/cygwin/bin/tar

/cygdrive/f/Motorola Defy/PDriod/ApGPackages/Java/bin/jar

/cygdrive/f/Motorola Defy/PDriod/ApGPackages/Java/bin/java

/cygdrive/f/Motorola Defy/PDriod/ApGPackages/cygwin/bin/cpio

### verify ROM ###

### running ./auto_patcher /cygdrive/f/Motorola Defy/PDriod/Rom/cm-10.2-20131030-NIGHTLY-mb526.zip openpdroid cm

PATH= /cygdrive/f/Motorola Defy/PDriod/ApGPackages/ap/tmp20131124002217:/cygdrive/f/Motorola Defy/PDriod/ApGPackages/Java/bin:/cygdrive/f/Motorola Defy/PDriod/ApGPackages/cygwin/bin:/cygdrive/f/Motorola Defy/PDriod/ApGPackages/cygwin/usr/sbin

### unzip patch tools ###

### unzip patch patches ###

... result of ROM check: RIL= MotoWrigley3GRIL

### probe rom type ###

#### GNU Build Query ####

# VER= v3.2.2

# OS= cygwin 32bit

# VID= 4.3.1

# PID= openpdroid

# MID= cm_mb526-userdebug

# RID= cm

# ANDR= 4.3

# BDID= 20131030

# DID= mb526

# BID= 20131021

Current HEAD: 95d3a2093b3b2b97d0bed32df1a2bf5bc8ef8917 Update CM patches and begin rollout of patches w/ [MENTION=1568451]phillipb[/MENTION]erndt's gps-fix included

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

ui_print("* * * Auto-Patcher * * *");

ui_print("* * * *");

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, 2000, 0755, 0755, "/system/bin");

set_perm(0, 3003, 02750, "/system/bin/netcfg");

set_perm(0, 0, 0755, "/system/bin/ping");

set_perm(0, 2000, 0750, "/system/bin/run-as");

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(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_recursive(0, 0, 0755, 0555, "/system/etc/init.d");

set_perm_recursive(0, 0, 0755, 0755, "/system/addon.d");

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

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/etc/motorola/comm_drv/commdrv_fs.sh");

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 ...

... decompile Mms.apk ...

### copy patch openpdroid/4.3 ###

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

... overwriting system/media/PDroid.jpeg from openpdroid ...

`patches/openpdroid/4.3/cm/20131021/system/media/PDroid.jpeg' -> `./system/media/PDroid.jpeg'

### jar patch openpdroid/4.3 ###

... apply framework.patch ...

Matching the created file: ContextImpl$47

There are 1 Context match; Using: patches/openpdroid/4.3/cm/20131021

...applying patches/openpdroid/4.3/cm/20131021/framework_00_preloaded.patch ...

...applying patches/openpdroid/4.3/cm/20131021/framework_16_Instrumentation$1.patch ...

...applying patches/openpdroid/4.3/cm/20131021/framework_17_Instrumentation$2.patch ...

...applying patches/openpdroid/4.3/cm/20131021/framework_18_Instrumentation$3.patch ...

...applying patches/openpdroid/4.3/cm/20131021/framework_19_Instrumentation$4.patch ...

...applying patches/openpdroid/4.3/cm/20131021/framework_20_Instrumentation.patch ...

...applying patches/openpdroid/4.3/cm/20131021/framework_22_ContentResolver.patch ...

...applying patches/openpdroid/4.3/cm/20131021/framework_24_Camera$EventHandler.patch ...

...applying patches/openpdroid/4.3/cm/20131021/framework_25_Camera.patch ...

...applying patches/openpdroid/4.3/cm/20131021/framework_27_AudioRecord.patch ...

...applying patches/openpdroid/4.3/cm/20131021/framework_28_MediaRecorder$PrivacyRunner.patch ...

...applying patches/openpdroid/4.3/cm/20131021/framework_29_MediaRecorder.patch ...

...applying patches/openpdroid/4.3/cm/20131021/framework_30_NetworkInfo.patch ...

...applying patches/openpdroid/4.3/cm/20131021/framework_33_WifiInfo.patch ...

...applying patches/openpdroid/4.3/cm/20131021/framework_36_SystemProperties.patch ...

...applying patches/openpdroid/4.3/cm/20131021/framework_37_IPrivacySettingsManager.patch ...

...applying patches/openpdroid/4.3/cm/20131021/framework_38_IPrivacySettingsManager$Stub$Proxy.patch ...

...applying patches/openpdroid/4.3/cm/20131021/framework_39_IPrivacySettingsManager$Stub.patch ...

...applying patches/openpdroid/4.3/cm/20131021/framework_40_PrivacyFileObserver.patch ...

...applying patches/openpdroid/4.3/cm/20131021/framework_41_PrivacyPersistenceAdapter.patch ...

...applying patches/openpdroid/4.3/cm/20131021/framework_42_PrivacySettings$1.patch ...

...applying patches/openpdroid/4.3/cm/20131021/framework_43_PrivacySettingsManagerService.patch ...

...applying patches/openpdroid/4.3/cm/20131021/framework_44_PrivacySettingsManager.patch ...

...applying patches/openpdroid/4.3/cm/20131021/framework_45_PrivacySettings.patch ...

...applying patches/openpdroid/4.3/cm/20131021/framework_46_PrivacySettingsStub.patch ...

...applying patches/openpdroid/4.3/cm/20131021/framework_47_PrivacyAccountManager$PrivacyAccountManagerFuture.patch ...

...applying patches/openpdroid/4.3/cm/20131021/framework_48_PrivacyAccountManager.patch ...

...applying patches/openpdroid/4.3/cm/20131021/framework_49_PrivacyActivityManagerService.patch ...

...applying patches/openpdroid/4.3/cm/20131021/framework_50_PrivacyConnectivityManager.patch ...

...applying patches/openpdroid/4.3/cm/20131021/framework_51_PrivacyContentResolver.patch ...

...applying patches/openpdroid/4.3/cm/20131021/framework_52_PrivacyCursor.patch ...

...applying patches/openpdroid/4.3/cm/20131021/framework_53_PrivacyLocationManager$PrivacyLocationUpdater.patch ...

...applying patches/openpdroid/4.3/cm/20131021/framework_54_PrivacyLocationManager.patch ...

...applying patches/openpdroid/4.3/cm/20131021/framework_55_PrivacyTelephonyManager.patch ...

...applying patches/openpdroid/4.3/cm/20131021/framework_56_PrivacyWifiManager.patch ...

...applying patches/openpdroid/4.3/cm/20131021/framework_57_Settings$Secure.patch ...

...applying patches/openpdroid/4.3/cm/20131021/framework_59_MicrophoneInputStream.patch ...

...applying patches/openpdroid/4.3/cm/20131021/framework_60_PhoneStateListener$1.patch ...

...applying patches/openpdroid/4.3/cm/20131021/framework_61_PhoneStateListener.patch ...

...applying patches/openpdroid/4.3/cm/20131021/framework_62_ServiceState.patch ...

...applying patches/openpdroid/4.3/cm/20131021/framework_10_ContextImpl$43.patch ...

...applying patches/openpdroid/4.3/cm/20131021/framework_11_ContextImpl$44.patch ...

...applying patches/openpdroid/4.3/cm/20131021/framework_12_ContextImpl$45.patch ...

...applying patches/openpdroid/4.3/cm/20131021/framework_13_ContextImpl$46.patch ...

...applying patches/openpdroid/4.3/cm/20131021/framework_14_ContextImpl$47.patch ...

...applying patches/openpdroid/4.3/cm/20131021/framework_15_ContextImpl.patch ...

...applying patches/openpdroid/4.3/cm/20131021/framework_1_ContextImpl$10.patch ...

...applying patches/openpdroid/4.3/cm/20131021/framework_2_ContextImpl$22.patch ...

...applying patches/openpdroid/4.3/cm/20131021/framework_3_ContextImpl$31.patch ...

...applying patches/openpdroid/4.3/cm/20131021/framework_4_ContextImpl$37.patch ...

...applying patches/openpdroid/4.3/cm/20131021/framework_5_ContextImpl$39.patch ...

...applying patches/openpdroid/4.3/cm/20131021/framework_6_ContextImpl$3.patch ...

...applying patches/openpdroid/4.3/cm/20131021/framework_7_ContextImpl$40.patch ...

...applying patches/openpdroid/4.3/cm/20131021/framework_8_ContextImpl$41.patch ...

...applying patches/openpdroid/4.3/cm/20131021/framework_9_ContextImpl$42.patch ...

GARBAGE=

GARBAGE=

... apply core.patch ...

...applying patches/openpdroid/4.3/cm/20131021/core_0_PrivacyInputStream.patch ...

...applying patches/openpdroid/4.3/cm/20131021/core_1_PrivacyProcessManager$PrivacyFileReader.patch ...

...applying patches/openpdroid/4.3/cm/20131021/core_2_PrivacyProcessManager.patch ...

...applying patches/openpdroid/4.3/cm/20131021/core_3_ProcessManager$ProcessImpl.patch ...

...applying patches/openpdroid/4.3/cm/20131021/core_4_ProcessManager.patch ...

GARBAGE=

GARBAGE=

... apply services.patch ...

152 out of 154 hunks FAILED -- saving rejects to file smali/com/android/server/ServerThread.smali.rej

We did not find a working patch for patches/openpdroid/4.3/pa/20130915/services_3_ServerThread.patch...looking for other solutions!

FAILED_FILE is services_3_ServerThread.patch

MATCHED_FILE is ServerThread.patch

MATCH_PATTERN IS ServerThread.

Provisional is

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

!!! error: ServerThread.patch in services.jar cannot be remedied

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

If your deodexed rom is not on the supported list and you want it added:

- Upload your log and a link to the rom's source code (mandatory)

and be patient, please!