[Android Software/Hacking General [Developers Only]] DualJoe:
Is ApG using latest Auto-Patcher v2.8.4?

I'm using Cygwin with Auto-Patcher v2.8.4 and it produces an invalid update (PDroid Manager -> "patches not detected") whereas other users simply used ApG creating working patches. Their files also differ in size compared to mine (+180kB).

The logfiles look like there were problems with creating temp files.

Edit: Ok, using v2.8.3 does work properly.

Win7 32bit

cm-10.1-20130317-UNOFFICIAL-i9300-V77.zip

jdk-7u17-windows-i586.exe

./auto-patcher cm-10.1-20130317-UNOFFICIAL-i9300-V77.zip openpdroid

On-Screen output:

user0@Blue ~
$ ./auto_patcher cm-10.1-20130317-UNOFFICIAL-i9300-V77.zip openpdroid

The Auto-Patcher v2.8.4

cygwin warning:
MS-DOS style path detected: D:\cygwin\home\user0\CM-101~1.ZIP.tmp2013031801043
0
Preferred POSIX equivalent is: /home/user0/CM-101~1.ZIP.tmp20130318010430
CYGWIN environment variable option "nodosfilewarning" turns off this warning.
Consult the user's guide for more details about POSIX paths:
http://cygwin.com/cygwin-ug-net/using.html#using-pathnames
### verify tools ###
### verify ROM ###
### unzip patch tools ###
### unzip patch patches ###
\vergr÷▀ert: system/build.prop
... result of ROM check: RIL= SamsungExynos4RIL
### probe rom type ###
... result of ROM check: version= 4.2.2 rom= cm ...
... Using results of ROM check ...
... openpdroid patch date has been set to: 20130219 ...
### unzip rom ###
\vergr÷▀ert: system/app/Mms.apk
\vergr÷▀ert: system/framework/core.jar
\vergr÷▀ert: system/framework/framework.jar
\vergr÷▀ert: system/framework/services.jar
\vergr÷▀ert: system/framework/telephony-common.jar
### create updater script ###
\vergr÷▀ert: META-INF/com/google/android/update-binary
\vergr÷▀ert: META-INF/com/google/android/updater-script
... using Clockworkmod installer ...
### create restore.zip ###
### decompile system files ###
... decompile framework.jar ...
... extract preloaded-classes ...
... decompile core.jar ...
... decompile services.jar ...
... decompile telephony-common.jar ...
... installing framework files ...
I: Framework installed to: C:\Users\user0\apktool\framework\1.apk
... decompile Mms.apk ...
I: Baksmaling...
I: Loading resource table...
I: Loaded.
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\user0\apktool\framework\1.apk
I: Loaded.
I: Regular manifest package...
I: Decoding file-resources...
S: Could not decode file, replacing by FALSE value: drawable-xhdpi/textfield_mul
tiline_focused_holo_light.9.png
S: Could not decode file, replacing by FALSE value: drawable-xhdpi/list_pressed_
holo.9.png
S: Could not decode file, replacing by FALSE value: drawable-xhdpi/chip_backgrou
nd_invalid.9.png
S: Could not decode file, replacing by FALSE value: drawable-hdpi/chip_backgroun
d_selected.9.png
S: Could not decode file, replacing by FALSE value: drawable-xhdpi/list_selected
_holo_light.9.png
S: Could not decode file, replacing by FALSE value: drawable-xhdpi/chip_backgrou
nd_selected.9.png
S: Could not decode file, replacing by FALSE value: drawable-nodpi/hairline.9.pn
g
S: Could not decode file, replacing by FALSE value: drawable-hdpi/chip_backgroun
d_invalid.9.png
S: Could not decode file, replacing by FALSE value: drawable-xhdpi/textfield_act
ivated_holo_light.9.png
S: Could not decode file, replacing by FALSE value: drawable-xhdpi/textfield_mul
tiline_activated_holo_light.9.png
S: Could not decode file, replacing by FALSE value: drawable-xhdpi/textfield_mul
tiline_disabled_focused_holo_light.9.png
S: Could not decode file, replacing by FALSE value: drawable-xhdpi/header_bg_mms
_widget_holo.9.png
S: Could not decode file, replacing by FALSE value: drawable-xhdpi/list_selected
_holo.9.png
S: Could not decode file, replacing by FALSE value: drawable-xhdpi/textfield_dis
abled_holo_light.9.png
S: Could not decode file, replacing by FALSE value: drawable-xhdpi/attachment_ed
itor_bg.9.png
S: Could not decode file, replacing by FALSE value: drawable-xhdpi/gradient_bg_m
ms_widget_holo.9.png
S: Could not decode file, replacing by FALSE value: drawable-xhdpi/list_pressed_
holo_light.9.png
S: Could not decode file, replacing by FALSE value: drawable-xhdpi/gradient_bg_w
idget_holo.9.png
S: Could not decode file, replacing by FALSE value: drawable-hdpi/bg_separator.9
.png
S: Could not decode file, replacing by FALSE value: drawable-xhdpi/textfield_def
ault_holo_light.9.png
S: Could not decode file, replacing by FALSE value: drawable-xhdpi/hairline_righ
t.9.png
S: Could not decode file, replacing by FALSE value: drawable-xhdpi/textfield_mul
tiline_default_holo_light.9.png
S: Could not decode file, replacing by FALSE value: drawable-xhdpi/list_focused_
holo.9.png
S: Could not decode file, replacing by FALSE value: drawable-xhdpi/chip_backgrou
nd.9.png
S: Could not decode file, replacing by FALSE value: drawable-xhdpi/line_divider_
arrow.9.png
S: Could not decode file, replacing by FALSE value: drawable-xhdpi/textfield_foc
used_holo_light.9.png
S: Could not decode file, replacing by FALSE value: drawable-xhdpi/textfield_dis
abled_focused_holo_light.9.png
S: Could not decode file, replacing by FALSE value: drawable-xhdpi/list_read_hol
o.9.png
S: Could not decode file, replacing by FALSE value: drawable-xhdpi/textfield_mul
tiline_disabled_holo_light.9.png
S: Could not decode file, replacing by FALSE value: drawable-xhdpi/list_div_top_
btm_mms_widget_holo.9.png
S: Could not decode file, replacing by FALSE value: drawable-xhdpi/list_selector
_background_selected.9.png
S: Could not decode file, replacing by FALSE value: drawable-xhdpi/list_activate
d_holo.9.png
S: Could not decode file, replacing by FALSE value: drawable-xhdpi/list_unread_h
olo.9.png
S: Could not decode file, replacing by FALSE value: drawable-hdpi/chip_backgroun
d.9.png
S: Could not decode file, replacing by FALSE value: drawable-xhdpi/hairline_left
.9.png
I: Decoding values */* XMLs...
I: Done.
I: Copying assets and libs...
### copy patch openpdroid/4.2/cm/20130219 ###
... copying system/media/PDroid.jpeg ...
... overwriting ContentResolver.smali ...
### jar patch openpdroid/4.2/cm/20130219 ###
... apply framework.patch ...
patch: **** Can't create file /tmp/ponaSjGk : No such file or directory
... apply preloaded.patch ...
patch: **** Can't create file /tmp/po6jpG74 : No such file or directory
... apply core.patch ...
patch: **** Can't create file /tmp/pol32y8O : No such file or directory
... apply services.patch ...
patch: **** Can't create file /tmp/pov2ADLH : No such file or directory
... apply telephony-common.patch ...
patch: **** Can't create file /tmp/pozR005N : No such file or directory
### apk patch openpdroid/4.2/cm/20130219 ###
... apply Mms.apk.patch ...
patch: **** Can't create file /tmp/po7l0ODo : No such file or directory
### rebuild jar ###
... rebuild framework.jar ...
... rebuild core.jar ...
... rebuild services.jar ...
... rebuild telephony-common.jar ...
### rebuild apk ###
... rebuild Mms.apk ...
... Patching Mms.apk failed, but we will copy over a prepatched file ...
### create update-cm-m0-20130317-openpdroid.zip ###
### finished ###
flash update-cm-m0-20130317-openpdroid.zip to install the patched files
flash restore-cm-m0-20130317.zip to restore the original system

Logfile:

ROOT= /cygdrive/d/cygwin/home/user0
TOOL= /cygdrive/d/cygwin/home/user0/patch_tools.tgz
ROM= D:\cygwin\home\user0\CM-101~1.ZIP

### verify tools ###
/usr/bin/patch
/usr/bin/tar
/cygdrive/c/Program Files/Java/jdk1.7.0_17/bin/jar
/cygdrive/c/Windows/system32/java
/usr/bin/cpio

### verify ROM ###
### running ./auto_patcher cm-10.1-20130317-UNOFFICIAL-i9300-V77.zip openpdroid
PATH= D:\cygwin\home\user0\CM-101~1.ZIP.tmp20130318010430:/usr/local/bin:/usr/bin:/cygdrive/c/Windows/system32:/cygdrive/c/Windows:/cygdrive/c/Windows/System32/Wbem:/cygdrive/c/Windows/System32/WindowsPowerShell/v1.0:/cygdrive/e/Extdos:/cygdrive/c/Program Files/Autodesk/Backburner:/cygdrive/c/Program Files/Common Files/Autodesk Shared:/cygdrive/c/Program Files/ATI Technologies/ATI.ACE/Core-Static:/cygdrive/f/Programme/IsoBuster:/cygdrive/c/mingw/bin:/cygdrive/c/Program Files/Argyll_V1.3.2/bin:/cygdrive/c/Program Files/QT Lite/QTSystem:/cygdrive/c/Program Files/Microsoft Windows Performance Toolkit:/cygdrive/d/Program Files/Python27:/cygdrive/c/Program Files/Java/jdk1.7.0_17/bin:/cygdrive/d/Android/Development/android-sdk-windows/platform-tools:/cygdrive/d/extdos

### unzip patch tools ###

### unzip patch patches ###

... result of ROM check: RIL= SamsungExynos4RIL

### probe rom type ###
#### Standard Build Query ####
# VER= v2.8.4
# OS= cygwin 32bit
# VID= 4.2.2
# PID= openpdroid
# MID= cm_i9300-userdebug
# RID= cm
# ANDR= 4.2
# BDID= 20130317
# DID= m0
# BID= 20130219
Patches are openpdroid/4.2/cm/20130219
### 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/mmcblk0p9", "/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_recursive(0, 0, 0755, 0555, "/system/etc/ppp");
set_perm(0, 2000, 0755, "/system/vendor");
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(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_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 ...
\vergrößert: preloaded-classes

... decompile core.jar ...

... decompile services.jar ...

... decompile telephony-common.jar ...
\vergrößert: system/framework/framework-res.apk

... installing framework files ...

... decompile Mms.apk ...
### copy patch openpdroid/4.2/cm/20130219 ###

... copying system/media/PDroid.jpeg ...
â€žpatches/openpdroid/4.2/cm/20130219/system/media/PDroid.jpegâ€œ -> â€ž./system/media/PDroid.jpegâ€œ

... overwriting ContentResolver.smali ...
### delete patch openpdroid/4.2/cm/20130219 ###
### jar patch openpdroid/4.2/cm/20130219 ###

... apply framework.patch ...

... apply preloaded.patch ...
GARBAGE=
GARBAGE=

... apply core.patch ...
GARBAGE=
GARBAGE=

... apply services.patch ...
GARBAGE=
GARBAGE=

... apply telephony-common.patch ...
GARBAGE=
GARBAGE=
### apk patch openpdroid/4.2/cm/20130219 ###

... apply Mms.apk.patch ...
GARBAGE=
GARBAGE=
### img patch openpdroid/4.2/cm/20130219 ###
### text patch openpdroid/4.2/cm/20130219 ###

### rebuild jar ###

... rebuild framework.jar ...
classes.dex wird hinzugefügt(ein = 8220000) (aus = 3323186)(59 % verkleinert)
preloaded-classes wird hinzugefügt(ein = 95517) (aus = 16005)(83 % verkleinert)

... rebuild core.jar ...
classes.dex wird hinzugefügt(ein = 2561300) (aus = 1070912)(58 % verkleinert)

... rebuild services.jar ...
classes.dex wird hinzugefügt(ein = 2116056) (aus = 944122)(55 % verkleinert)

... rebuild telephony-common.jar ...
classes.dex wird hinzugefügt(ein = 1018448) (aus = 409127)(59 % verkleinert)

### rebuild apk ###

... rebuild Mms.apk ...
I: Checking whether sources has changed...
I: Smaling...
I: Checking whether resources has changed...
I: Building resources...
Exception in thread "main" brut.androlib.AndrolibException: java.io.IOException: Das System kann den angegebenen Pfad nicht finden
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:354)
at brut.androlib.Androlib.buildResources(Androlib.java:283)
at brut.androlib.Androlib.build(Androlib.java:206)
at brut.androlib.Androlib.build(Androlib.java:176)
at brut.apktool.Main.cmdBuild(Main.java:228)
at brut.apktool.Main.main(Main.java:79)
Caused by: java.io.IOException: Das System kann den angegebenen Pfad nicht finden
at java.io.WinNTFileSystem.createFileExclusively(Native Method)
at java.io.File.createTempFile(Unknown Source)
at java.io.File.createTempFile(Unknown Source)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:329)
... 5 more
â€žpatches/openpdroid/4.2/cm/20130219/system/app/Mms.apkâ€œ -> â€žsystem/app/Mms.apkâ€œ

### create update-cm-m0-20130317-openpdroid.zip ###
Manifest wurde hinzugefügt
system/framework/framework.jar wird hinzugefügt(ein = 3339776) (aus = 3316039)(0 % verkleinert)
system/framework/core.jar wird hinzugefügt(ein = 1074152) (aus = 1067900)(0 % verkleinert)
system/framework/services.jar wird hinzugefügt(ein = 944581) (aus = 942860)(0 % verkleinert)
system/framework/telephony-common.jar wird hinzugefügt(ein = 409586) (aus = 407678)(0 % verkleinert)
system/app/Mms.apk wird hinzugefügt(ein = 3251214) (aus = 2438215)(25 % verkleinert)
system/media/PDroid.jpeg wird hinzugefügt(ein = 26898) (aus = 25744)(4 % verkleinert)
Eintrag META-INF/ wird ignoriert
META-INF/com/ wird hinzugefügt(ein = 0) (aus = 0)(0 % gespeichert)
META-INF/com/google/ wird hinzugefügt(ein = 0) (aus = 0)(0 % gespeichert)
META-INF/com/google/android/ wird hinzugefügt(ein = 0) (aus = 0)(0 % gespeichert)
META-INF/com/google/android/update-binary wird hinzugefügt(ein = 234196) (aus = 152870)(34 % verkleinert)
META-INF/com/google/android/updater-script wird hinzugefügt(ein = 2304) (aus = 514)(77 % verkleinert)