[Android Software/Hacking General [Developers Only]] Hotfingers:
Tested on XPERIA ARC - FXP 144 - CM10

Hi @mateorod,

been following the thread because I'm keen to get pdroid 2 working on my phone.

Thank-you for your work on bringing these patches to us. I am grateful for all you have given.

Here is some feedback from my testing (I'm running CM10 for Xperia Arc - LT15i).

I tried patching pdroid 2, and got an error (patching GsmServiceStateTracker.smali).

Here's the log file: -

ROOT= /home/david/and-devTools/auto-patcher
TOOL= /home/david/and-devTools/auto-patcher/patch_tools.tgz
ROM= /home/david/and-devTools/auto-patcher/001 BESTTT-FXP_144cm-10-20121026-UNOFFICIAL-anzu.zip
ROMX= /home/david/and-devTools/auto-patcher/001 BESTTT-FXP_144cm-10-20121026-UNOFFICIAL-anzu.zip

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

### verify ROM ###
### running ./auto_patcher 001 BESTTT-FXP_144cm-10-20121026-UNOFFICIAL-anzu.zip pd2.0
PATH= /home/david/and-devTools/auto-patcher/tmp20121027231605:/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/home/david/android-sdk/platform-tools

### unzip patch tools ###

### unzip patch patches ###

... result of ROM check: RIL= SemcRIL

### probe rom type ###
#### Standard Build Query ####
# VER= Auto-Patcher v2.3.0
# OS= linux-gnu 32bit
# VID= 4.1.2
# PID= pd2.0
# MID= cm_anzu-userdebug
# RID= cm
# ANDR= jellybean
# BDID= 20121026
# DID= anzu
# 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("yaffs2", "MTD", "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_recursive(0, 2000, 0755, 0644, "/system/vendor");
set_perm(0, 0, 0644, "/system/vendor/etc/audio_effects.conf");
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 = : for com/android/internal/telephony/gsm/GsmServiceStateTracker.smali

So I tried the pdroid patch - this one worked (log file below).

ROOT= /home/david/and-devTools/auto-patcher
TOOL= /home/david/and-devTools/auto-patcher/patch_tools.tgz
ROM= /home/david/and-devTools/auto-patcher/001 BESTTT-FXP_144cm-10-20121026-UNOFFICIAL-anzu.zip
ROMX= /home/david/and-devTools/auto-patcher/001 BESTTT-FXP_144cm-10-20121026-UNOFFICIAL-anzu.zip

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

### verify ROM ###
### running ./auto_patcher 001 BESTTT-FXP_144cm-10-20121026-UNOFFICIAL-anzu.zip pdroid
PATH= /home/david/and-devTools/auto-patcher/tmp20121027231958:/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/home/david/android-sdk/platform-tools

### unzip patch tools ###

### unzip patch patches ###

... result of ROM check: RIL= SemcRIL

### probe rom type ###
#### Standard Build Query ####
# VER= Auto-Patcher v2.3.0
# OS= linux-gnu 32bit
# VID= 4.1.2
# PID= pdroid
# MID= cm_anzu-userdebug
# RID= cm
# ANDR= jellybean
# BDID= 20121026
# DID= anzu
# 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("yaffs2", "MTD", "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_recursive(0, 2000, 0755, 0644, "/system/vendor");
set_perm(0, 0, 0644, "/system/vendor/etc/audio_effects.conf");
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 = 8753044) (out= 3597216)(deflated 58%)
adding: preloaded-classes(in = 84498) (out= 14529)(deflated 82%)

... rebuild core.jar ...
adding: classes.dex(in = 2510092) (out= 1055822)(deflated 57%)

... rebuild services.jar ...
adding: classes.dex(in = 1811760) (out= 821173)(deflated 54%)

### create update.zip ###
added manifest
adding: system/framework/framework.jar(in = 3612330) (out= 3588958)(deflated 0%)
adding: system/framework/core.jar(in = 1060060) (out= 1053970)(deflated 0%)
adding: system/framework/services.jar(in = 821632) (out= 820548)(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/updater-script(in = 1370) (out= 360)(deflated 73%)
adding: META-INF/com/google/android/update-binary(in = 193136) (out= 124342)(deflated 35%)

I'm assuming the patches work at the time of posting this (it's 23:28, so testing will be quick and fast this evening).

If the patches have a problem, then I'll update this post...

Again, Thanks for your work. I wanted to test the XPERIA sooner, but as weird as it sounds our previous release was too old (2 weeks ago), so I had to wait for this release (FXP 144) before I could test.