[Android Software/Hacking General [Developers Only]] oddball420:
HTC Glacier failed patch

I retried this time it still failed but I was able to use the pre-loaded patch option to force a update/restore packages. when i used clockwork to install the patch it just bootlooped. I would've posted sooner but work and life you know....

OOT= /root/Downloads/autopatcherv2.1.5
TOOL= /root/Downloads/autopatcherv2.1.5/patch_tools.tgz
ROM= /root/Downloads/autopatcherv2.1.5/cm-7.2.0-glacier.zip
ROMX= /root/Downloads/autopatcherv2.1.5/cm-7.2.0-glacier.zip

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

### verify ROM ###
### running ./auto_patcher cm-7.2.0-glacier.zip pdroid cm7 20121008
PATH= /root/Downloads/autopatcherv2.1.5/tmp20121008113317:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/etc/alternatives/gem-bin:/etc/alternatives/gem-bin

### unzip patch tools ###

### unzip patch patches ###

### probe rom type ###
# VER= Auto-Patcher v2.1.5
# OS= linux-gnu 64bit
# VID= 2.3.7
# MID=
# RID= cm7
# BDID= 1969-12-31
# DID=
# BID= 20121008
# PID= pdroid
### 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/mmcblk0p25", "/system");
package_extract_dir("system", "/system");
set_perm_recursive(0, 0, 0755, 0644, "/system");
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(1000, 1003, 02755, "/system/bin/screenshot");
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, 0750, "/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(0, 0, 0544, "/system/etc/install-recovery.sh");
set_perm_recursive(0, 0, 0755, 0555, "/system/etc/ppp");
set_perm(0, 2000, 0755, "/system/vendor");
set_perm(0, 2000, 0755, "/system/vendor/firmware");
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");
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/cm7/latest ###

... apply framework.patch ...
9 out of 35 hunks FAILED -- saving rejects to file smali/android/content/SyncStorageEngine.smali.rej
Reversed (or previously applied) patch detected! Skipping patch.
5 out of 5 hunks ignored -- saving rejects to file smali/com/android/internal/telephony/cdma/EriManager.smali.rej

... apply preloaded.patch ...

!!! PATCHING FAILED FOR android/content/SyncStorageEngine.smali !!!
!!! patch error for android/content/SyncStorageEngine.smali !!!
askconsent intial = YES
askconsent final = YES: for android/content/SyncStorageEngine.smali

... replace android/content/SyncStorageEngine.smali ...
`patches/pdroid/gingerbread/provisionals/system/framework/framework.jar.out/smali/android/content/SyncStorageEngine.smali' -> `tmp/system/framework/framework.jar.out/smali/android/content/SyncStorageEngine.smali'
GARBAGE= tmp/system/framework/framework.jar.out/smali/com/google/android/mms/pdu/PduPersister.smali.orig
GARBAGE= tmp/system/framework/framework.jar.out/smali/com/android/internal/telephony/cdma/EriManager.smali.rej

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

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

### rebuild jar ###

... rebuild framework.jar ...
adding: classes.dex(in = 6359032) (out= 2620794)(deflated 58%)
adding: preloaded-classes(in = 65633) (out= 11974)(deflated 81%)

... rebuild core.jar ...
adding: classes.dex(in = 3585188) (out= 1502625)(deflated 58%)

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

### create update.zip ###
added manifest
adding: system/framework/framework.jar(in = 2633353) (out= 2615561)(deflated 0%)
adding: system/framework/core.jar(in = 1525665) (out= 1515485)(deflated 0%)
adding: system/framework/services.jar(in = 579675) (out= 579144)(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 = 224276) (out= 144867)(deflated 35%)
adding: META-INF/com/google/android/updater-script(in = 1506) (out= 401)(deflated 73%)