[Android Software/Hacking General [Developers Only]] dirtyreturn:
http://codepad.org/nxLpyh8a latest cm10 nightly pdroid/2.0/v6 -no

http://codepad.org/TcZZ2LT0 pdroid/2.0 -no

pdroid =yes GSM Galaxy Nexus

ROOT= /cygdrive/c/Users/Owner/Desktop/ApGPackages/ap/

TOOL= /cygdrive/c/Users/Owner/Desktop/ApGPackages/ap//patch_tools.tgz

ROM= /cygdrive/c/Users/Owner/Desktop/GNex/JB/CM10/cm-10-20121025-NIGHTLY-maguro.zip

ROMX= C:\Users\Owner\Desktop\GNex\JB\CM10\CMDA5A~1.ZIP

### verify tools ###

/cygdrive/c/Users/Owner/Desktop/ApGPackages/cygwin/bin/patch

/cygdrive/c/Users/Owner/Desktop/ApGPackages/cygwin/bin/tar

/cygdrive/c/Users/Owner/Desktop/ApGPackages/Java/bin/jar

/cygdrive/c/Users/Owner/Desktop/ApGPackages/Java/bin/java

/cygdrive/c/Users/Owner/Desktop/ApGPackages/cygwin/bin/cpio

### verify ROM ###

### running ./auto_patcher /cygdrive/c/Users/Owner/Desktop/GNex/JB/CM10/cm-10-20121025-NIGHTLY-maguro.zip pdroid cm

PATH= /cygdrive/c/Users/Owner/Desktop/ApGPackages/ap/tmp20121025205718:/cygdrive/c/Users/Owner/Desktop/ApGPackages/Java/bin:/cygdrive/c/Users/Owner/Desktop/ApGPackages/cygwin/bin:/cygdrive/c/Users/Owner/Desktop/ApGPackages/cygwin/usr/sbin

### unzip patch tools ###

### unzip patch patches ###

### probe rom type ###

#### Standard Build Query ####

# VER= Auto-Patcher v2.2.1

# OS= cygwin 32bit

# VID= 4.1.2

# PID= pdroid

# MID= cm_maguro-userdebug

# RID= cm

# ANDR= jellybean

# BDID= 20121025

# DID= maguro

# BID= 20121016

### 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("ext4", "EMMC", "/dev/block/platform/omap/omap_hsmmc.0/by-name/system", "/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, 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, 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_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/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, 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");

### create restore.zip ###

### decompile system files ###

... decompile framework.jar ...

... extract preloaded-classes ...

inflated: preloaded-classes

... decompile core.jar ...

... decompile services.jar ...

### jar patch pdroid/jellybean/cm/20121016 ###

... apply framework.patch ...

... apply preloaded.patch ...

GARBAGE=

GARBAGE=

... apply core.patch ...

GARBAGE=

GARBAGE=

... apply services.patch ...

GARBAGE= tmp/system/framework/services.jar.out/smali/com/android/server/am/ActivityManagerService.smali.orig

GARBAGE=

### rebuild jar ###

... rebuild framework.jar ...

adding: classes.dex(in = 8753748) (out= 3544613)(deflated 59%)

adding: preloaded-classes(in = 84498) (out= 14529)(deflated 82%)

... rebuild core.jar ...

adding: classes.dex(in = 2510092) (out= 1044837)(deflated 58%)

... rebuild services.jar ...

adding: classes.dex(in = 1811436) (out= 812893)(deflated 55%)

### create update.zip ###

added manifest

adding: system/framework/framework.jar(in = 3559727) (out= 3535660)(deflated 0%)

adding: system/framework/core.jar(in = 1049075) (out= 1042922)(deflated 0%)

adding: system/framework/services.jar(in = 813352) (out= 811949)(deflated 0%)

ignoring entry META-INF/

adding: META-INF/com/(in = 0) (out= 0)(stored 0%)

adding: META-INF/com/google/(in = 0) (out= 0)(stored 0%)

adding: META-INF/com/google/android/(in = 0) (out= 0)(stored 0%)

adding: META-INF/com/google/android/update-binary(in = 225952) (out= 145723)(deflated 35%)

adding: META-INF/com/google/android/updater-script(in = 1908) (out= 451)(deflated 76%)

only 2.0 =yes

ROOT= /cygdrive/c/Users/Owner/Desktop/ApGPackages/ap/

TOOL= /cygdrive/c/Users/Owner/Desktop/ApGPackages/ap//patch_tools.tgz

ROM= /cygdrive/c/Users/Owner/Desktop/GNex/JB/CM10/cm-10-20121024-NIGHTLY-maguro.zip

ROMX= C:\Users\Owner\Desktop\GNex\JB\CM10\CM67B2~1.ZIP

### verify tools ###

/cygdrive/c/Users/Owner/Desktop/ApGPackages/cygwin/bin/patch

/cygdrive/c/Users/Owner/Desktop/ApGPackages/cygwin/bin/tar

/cygdrive/c/Users/Owner/Desktop/ApGPackages/Java/bin/jar

/cygdrive/c/Users/Owner/Desktop/ApGPackages/Java/bin/java

/cygdrive/c/Users/Owner/Desktop/ApGPackages/cygwin/bin/cpio

### verify ROM ###

### running ./auto_patcher /cygdrive/c/Users/Owner/Desktop/GNex/JB/CM10/cm-10-20121024-NIGHTLY-maguro.zip pd2.0 cm

PATH= /cygdrive/c/Users/Owner/Desktop/ApGPackages/ap/tmp20121025212209:/cygdrive/c/Users/Owner/Desktop/ApGPackages/Java/bin:/cygdrive/c/Users/Owner/Desktop/ApGPackages/cygwin/bin:/cygdrive/c/Users/Owner/Desktop/ApGPackages/cygwin/usr/sbin

### unzip patch tools ###

### unzip patch patches ###

### probe rom type ###

#### Standard Build Query ####

# VER= Auto-Patcher v2.2.1

# OS= cygwin 32bit

# VID= 4.1.2

# PID= pd2.0

# MID= cm_maguro-userdebug

# RID= cm

# ANDR= jellybean

# BDID= 20121024

# DID= maguro

# BID= 20121016

### DELETE FILES=

### COPY FILES= system/app/Mms.apk system/media/PDroid.jpeg

### 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("ext4", "EMMC", "/dev/block/platform/omap/omap_hsmmc.0/by-name/system", "/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, 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, 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_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/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, 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");

### create restore.zip ###

### decompile system files ###

... decompile framework.jar ...

... extract preloaded-classes ...

inflated: preloaded-classes

... decompile core.jar ...

... decompile services.jar ...

### copy patch pd2.0/jellybean/cm/20121016 ###

... copying system/app/Mms.apk ...

... overwriting system/app/Mms.apk from pd2.0 ...

`patches/pd2.0/jellybean/cm/20121016/system/app/Mms.apk' -> `./system/app/Mms.apk'

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

`patches/pd2.0/jellybean/cm/20121016/system/media/PDroid.jpeg' -> `./system/media/PDroid.jpeg'

### jar patch pd2.0/jellybean/cm/20121016 ###

... apply framework.patch ...

1 out of 5 hunks FAILED -- saving rejects to file smali/com/android/internal/telephony/gsm/GsmServiceStateTracker.smali.rej

!!! PATCHING FAILED FOR com/android/internal/telephony/gsm/GsmServiceStateTracker.smali !!!

!!! patch error for com/android/internal/telephony/gsm/GsmServiceStateTracker.smali !!!

askconsent final = yes: for com/android/internal/telephony/gsm/GsmServiceStateTracker.smali

... replace com/android/internal/telephony/gsm/GsmServiceStateTracker.smali ...

`patches/pd2.0/jellybean/provisionals/system/framework/framework.jar.out/smali/com/android/internal/telephony/gsm/GsmServiceStateTracker.smali' -> `tmp/system/framework/framework.jar.out/smali/com/android/internal/telephony/gsm/GsmServiceStateTracker.smali'

GARBAGE=

GARBAGE=

... apply core.patch ...

GARBAGE=

GARBAGE=

... apply services.patch ...

GARBAGE=

GARBAGE=

### rebuild jar ###

... rebuild framework.jar ...

adding: classes.dex(in = 8812588) (out= 3564303)(deflated 59%)

adding: preloaded-classes(in = 84385) (out= 14490)(deflated 82%)

... rebuild core.jar ...

adding: classes.dex(in = 2512012) (out= 1045762)(deflated 58%)

... rebuild services.jar ...

adding: classes.dex(in = 1816664) (out= 815467)(deflated 55%)

### create update.zip ###

added manifest

adding: system/framework/framework.jar(in = 3579378) (out= 3555876)(deflated 0%)

adding: system/framework/core.jar(in = 1050000) (out= 1044127)(deflated 0%)

adding: system/framework/services.jar(in = 815926) (out= 814785)(deflated 0%)

adding: system/app/Mms.apk(in = 3134809) (out= 2400567)(deflated 23%)

adding: system/media/PDroid.jpeg(in = 26898) (out= 25744)(deflated 4%)

ignoring entry META-INF/

adding: META-INF/com/(in = 0) (out= 0)(stored 0%)

adding: META-INF/com/google/(in = 0) (out= 0)(stored 0%)

adding: META-INF/com/google/android/(in = 0) (out= 0)(stored 0%)

adding: META-INF/com/google/android/update-binary(in = 225952) (out= 145723)(deflated 35%)

adding: META-INF/com/google/android/updater-script(in = 1908) (out= 451)(deflated 76%)