[Android Software/Hacking General [Developers Only]] yuanluque:
about Quarx's defy cm10

just use this thread #1616 tousle-p's patch

the log

ROOT= /cygdrive/f/Apg/ApGPackages/ap

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

ROM= /cygdrive/f/Apg/CM10-20130110-NIGHTLY-mb526.zip

ROMX= F:\Apg\CM10-2~1.ZIP

### verify tools ###

/cygdrive/f/Apg/ApGPackages/cygwin/bin/patch

/cygdrive/f/Apg/ApGPackages/cygwin/bin/tar

/cygdrive/f/Apg/ApGPackages/Java/bin/jar

/cygdrive/f/Apg/ApGPackages/Java/bin/java

/cygdrive/f/Apg/ApGPackages/cygwin/bin/cpio

### verify ROM ###

### running ./auto_patcher /cygdrive/f/Apg/CM10-20130110-NIGHTLY-mb526.zip openpdroid cm-quarx

PATH= /cygdrive/f/Apg/ApGPackages/ap/tmp20130209171910:/cygdrive/f/Apg/ApGPackages/Java/bin:/cygdrive/f/Apg/ApGPackages/cygwin/bin:/cygdrive/f/Apg/ApGPackages/cygwin/usr/sbin

### unzip patch tools ###

### unzip patch patches ###

... result of ROM check: RIL= MotoWrigley3GRIL

### probe rom type ###

#### Standard Build Query ####

# VER= v2.6.50

# OS= cygwin 32bit

# VID= 4.1.2

# PID= openpdroid

# MID= cm_mb526-userdebug

# RID= cm-quarx

# ANDR= 4.1

# BDID= 20130110

# DID= umts_jordan

# BID= 20130109

Patches are openpdroid/4.1/cm-quarx/20130109

### DELETE FILES=

### COPY FILES= system/media/PDroid.jpeg

### JAR FILES= system/framework/framework.jar system/framework/core.jar system/framework/services.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("");

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_recursive(0, 2000, 0775, 0664, "/system/bootmenu/config/");

set_perm(0, 0, 0755, "/system/etc/wifi/hostap_wrapper.sh");

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

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

ui_print(" .");

ui_print(" .");

ui_print(" done!");

### create restore.zip ###

### decompile system files ###

... decompile framework.jar ...

... extract preloaded-classes ...

: preloaded-classes

... decompile core.jar ...

... decompile services.jar ...

: system/framework/framework-res.apk

... installing framework files ...

... decompile Mms.apk ...

### copy patch openpdroid/4.1/cm-quarx/20130109 ###

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

`patches/openpdroid/4.1/cm-quarx/20130109/system/media/PDroid.jpeg' -> `./system/media/PDroid.jpeg'

### delete patch openpdroid/4.1/cm-quarx/20130109 ###

### jar patch openpdroid/4.1/cm-quarx/20130109 ###

... apply framework.patch ...

... apply preloaded.patch ...

GARBAGE=

GARBAGE=

... apply core.patch ...

GARBAGE=

GARBAGE=

... apply services.patch ...

GARBAGE=

GARBAGE=

### apk patch openpdroid/4.1/cm-quarx/20130109 ###

... apply Mms.apk.patch ...

21 out of 21 hunks FAILED -- saving rejects to file smali/com/android/mms/transaction/HttpUtils.smali.rej

`patches/openpdroid/4.1/cm-quarx/20130109/system/app/Mms.apk' -> `system/app/Mms.apk'

GARBAGE= tmp/system/app/Mms.apk.out/smali/com/android/mms/transaction/HttpUtils.smali.orig

GARBAGE= tmp/system/app/Mms.apk.out/smali/com/android/mms/transaction/HttpUtils.smali.rej

### img patch openpdroid/4.1/cm-quarx/20130109 ###

### text patch openpdroid/4.1/cm-quarx/20130109 ###

### rebuild jar ###

... rebuild framework.jar ...

: classes.dex(input = 8710124) (output = 3530334)

: preloaded-classes(input = 84887) (output = 14594)

... rebuild core.jar ...

: classes.dex(input = 2508180) (output = 1043879)

... rebuild services.jar ...

: classes.dex(input = 1819484) (output = 816512)

### rebuild apk ###

... rebuild Mms.apk ...

I: Checking whether sources has changed...

I: Smaling...

I: Checking whether resources has changed...

I: Building resources...

I: Building apk file...

### create update-aosp-umts_jordan-20130110-openpdroid.zip ###