[Android Software/Hacking General [Developers Only]] S.D.Richards:
Just checked out from github, but fails for PAC 4.2.2, no matter what I put (cm,pa,...)

ROOT= /home/me/xperia/__test/auto-patcher
TOOL= /home/me/xperia/__test/auto-patcher/patch_tools.tgz
ROM= /home/me/xperia/__test/auto-patcher/nozomi_PAC_JB_4.2.2-v20.0.0.zip
ROMX= /home/me/xperia/__test/auto-patcher/nozomi_PAC_JB_4.2.2-v20.0.0.zip

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

### verify ROM ###
### running ./auto_patcher nozomi_PAC_JB_4.2.2-v20.0.0.zip openpdroid pa
PATH= /home/me/xperia/__test/auto-patcher/tmp20130226145339:/opt/e17/bin:/usr/local/bin:/usr/bin:/bin:/opt/bin:/usr/x86_64-pc-linux-gnu/gcc-bin/4.6.3:/opt/intel/Compiler/11.1/056/bin/intel64:/opt/android-sdk-update-manager/tools:/opt/android-sdk-update-manager/platform-tools:/opt/nvidia-cg-toolkit/bin:/usr/games/bin:/opt/vmware/bin

### unzip patch tools ###

### unzip patch patches ###

... result of ROM check: RIL= SonyQualcomm8x60RIL

### probe rom type ###
#### Standard Build Query ####
# VER= v2.8.1
# OS= linux-gnu 64bit
# VID= 4.2.2
# PID= openpdroid
# MID= pac_nozomi-userdebug
# RID= pa
# ANDR= 4.2
# BDID= 20130223
# DID= nozomi
# BID= 20130213
Patches are openpdroid/4.2/pa/20130213
### 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
### 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("ext4", "EMMC", "/dev/block/mmcblk0p12", "/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(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(1000, 1000, 0644, "/system/etc/paranoid/properties.conf");
set_perm_recursive(0, 0, 0755, 0555, "/system/etc/ppp");
set_perm(0, 2000, 0755, "/system/vendor");
set_perm(0, 2000, 0755, "/system/vendor/camera");
set_perm_recursive(0, 2000, 0755, 0644, "/system/vendor/etc");
set_perm(0, 0, 0644, "/system/vendor/etc/audio_effects.conf");
set_perm(0, 2000, 0755, "/system/vendor/firmware");
set_perm_recursive(0, 2000, 0755, 0644, "/system/vendor/lib");
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");
unmount("/system");
ui_print(" .");
ui_print(" .");
ui_print(" done!");

### create restore.zip ###

### decompile system files ###

... decompile framework.jar ...

... extract preloaded-classes ...
inflated: preloaded-classes

... decompile core.jar ...

... decompile services.jar ...

... decompile telephony-common.jar ...
inflated: system/framework/framework-res.apk

... installing framework files ...

... decompile Mms.apk ...
### copy patch openpdroid/4.2/pa/20130213 ###

... copying system/media/PDroid.jpeg ...
‘patches/openpdroid/4.2/pa/20130213/system/media/PDroid.jpeg’ -> ‘./system/media/PDroid.jpeg’

... overwriting ContentResolver.smali ...
### delete patch openpdroid/4.2/pa/20130213 ###
### jar patch openpdroid/4.2/pa/20130213 ###

... apply framework.patch ...
The next patch would create the file 'smali/android/app/ContextImpl$41.smali',
which already exists! Skipping patch.
1 out of 1 hunk ignored
8 out of 8 hunks FAILED -- saving rejects to file smali/android/app/Fragment.smali.rej
Reversed (or previously applied) patch detected! Skipping patch.
4 out of 4 hunks ignored -- saving rejects to file smali/android/content/AsyncTaskLoader.smali.rej
Reversed (or previously applied) patch detected! Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file smali/android/net/wifi/WifiStateMachine.smali.rej
Reversed (or previously applied) patch detected! Skipping patch.
6 out of 6 hunks ignored -- saving rejects to file smali/android/os/Looper.smali.rej
1 out of 6 hunks FAILED -- saving rejects to file smali/android/os/SystemProperties.smali.rej
Reversed (or previously applied) patch detected! Skipping patch.
6 out of 6 hunks ignored -- saving rejects to file smali/android/widget/TextView.smali.rej
Reversed (or previously applied) patch detected! Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file 'smali/com/android/internal/os/BatteryStatsImpl$Timer.smali.rej'

... apply preloaded.patch ...

!!! PATCHING FAILED FOR android/app/Fragment.smali android/os/SystemProperties.smali !!!
!!! patch error for android/app/Fragment.smali !!!

File for which patching failed:

---------------------------------------------

Fragment.smali

You only need to report this if running the program gives you problems!!!
askconsent final = YES: for android/app/Fragment.smali

... replace android/app/Fragment.smali ...
‘patches/openpdroid/4.2/.provisionals/system/framework/framework.jar.out/smali/android/app/Fragment.smali’ -> ‘tmp/system/framework/framework.jar.out/smali/android/app/Fragment.smali’
!!! patch error for android/os/SystemProperties.smali !!!

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

!!! error: failed android/os/SystemProperties.smali in framework.jar cannot be remedied

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