[Samsung Epic 4G Touch] strongsteve:
Reworking things.. with some positive and negative results.. here is what I have been doing.. still seeing a few issues..

Feel free to check code for errors..

Use the following to go to the correct folder:
cd %ROOT%

Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.

C:\Program Files (x86)\Android\android-sdk\tools>adb shell
# mount -oremount,rw /dev/block/mtdblock3 /system
mount -oremount,rw /dev/block/mtdblock3 /system
# dexopt-wrapper /system/framework/framework.jar /system/framework/patched_frame
work.odex /system/framework/core.jar:/system/framework/bouncycastle.jar:/system/
framework/ext.jar:/system/framework/framework.jar:/system/framework/android.poli
cy.jar:/system/framework/services.jar:/system/framework/core-junit.jar
dexopt-wrapper /system/framework/framework.jar /system/framework/patched_framewo
rk.odex /system/framework/core.jar:/system/framework/bouncycastle.jar:/system/fr
amework/ext.jar:/system/framework/framework.jar:/system/framework/android.policy
.jar:/system/framework/services.jar:/system/framework/core-junit.jar
Unable to create '/system/framework/patched_framework.odex': File exists
# dexopt-wrapper /system/framework/framework.jar /system/framework/patched_frame
work.odex /system/framework/core.jar:/system/framework/bouncycastle.jar:/system/
framework/ext.jar:/system/framework/framework.jar:/system/framework/android.poli
cy.jar:/system/framework/services.jar:/system/framework/core-junit.jar
dexopt-wrapper /system/framework/framework.jar /system/framework/patched_framewo
rk.odex /system/framework/core.jar:/system/framework/bouncycastle.jar:/system/fr
amework/ext.jar:/system/framework/framework.jar:/system/framework/android.policy
.jar:/system/framework/services.jar:/system/framework/core-junit.jar
--- BEGIN '/system/framework/framework.jar' (bootstrap=0) ---
--- waiting for verify+opt, pid=4920
--- would reduce privs here
--- END '/system/framework/framework.jar' (success) ---
# dexopt-wrapper /system/framework/ext.jar /system/framework/patched_ext.odex /s
ystem/framework/core.jar:/system/framework/bouncycastle.jar:/system/framework/ex
t.jar:/system/framework/framework.jar:/system/framework/android.policy.jar:/syst
em/framework/services.jar:/system/framework/core-junit.jar
dexopt-wrapper /system/framework/ext.jar /system/framework/patched_ext.odex /sys
tem/framework/core.jar:/system/framework/bouncycastle.jar:/system/framework/ext.
jar:/system/framework/framework.jar:/system/framework/android.policy.jar:/system
/framework/services.jar:/system/framework/core-junit.jar
--- BEGIN '/system/framework/ext.jar' (bootstrap=0) ---
--- waiting for verify+opt, pid=4966
--- would reduce privs here
--- END '/system/framework/ext.jar' (success) ---
# dexopt-wrapper /system/framework/services.jar /system/framework/patched_servic
es.odex /system/framework/core.jar:/system/framework/bouncycastle.jar:/system/fr
amework/ext.jar:/system/framework/framework.jar:/system/framework/android.policy
.jar:/system/framework/services.jar:/system/framework/core-junit.jar
dexopt-wrapper /system/framework/services.jar /system/framework/patched_services
.odex /system/framework/core.jar:/system/framework/bouncycastle.jar:/system/fram
ework/ext.jar:/system/framework/framework.jar:/system/framework/android.policy.j
ar:/system/framework/services.jar:/system/framework/core-junit.jar
--- BEGIN '/system/framework/services.jar' (bootstrap=0) ---
--- waiting for verify+opt, pid=5042
--- would reduce privs here
--- END '/system/framework/services.jar' (success) ---
# cp /sdcard/MOD/original.framework.odex /system/framework
cp /sdcard/MOD/original.framework.odex /system/framework
# cp /sdcard/MOD/original.ext.odex /system/framework
cp /sdcard/MOD/original.ext.odex /system/framework
# cp /sdcard/MOD/original.services.odex /system/framework
cp /sdcard/MOD/original.services.odex /system/framework
# cp -f /sdcard/MOD/framework.jar /system/framework
cp -f /sdcard/MOD/framework.jar /system/framework
# cp -f /sdcard/MOD/ext.jar /system/framework
cp -f /sdcard/MOD/ext.jar /system/framework
# cp -f /sdcard/MOD/services.jar /system/framework
cp -f /sdcard/MOD/services.jar /system/framework
# chmod 777 /system/framework/original.framework.odex
chmod 777 /system/framework/original.framework.odex
# chmod 777 /system/framework/original.etc.odex
chmod 777 /system/framework/original.etc.odex
Unable to chmod /system/framework/original.etc.odex: No such file or directory
# chmod 777 /system/framework/original.ext.odex
chmod 777 /system/framework/original.ext.odex
# chmod 777 /system/framework/original.services.odex
chmod 777 /system/framework/original.services.odex
# chmod 777 /system/framework/patched_framework.odex
chmod 777 /system/framework/patched_framework.odex
# chmod 777 /system/framework/patched_ext.odex
chmod 777 /system/framework/patched_ext.odex
# chmod 777 /system/framework/patched_services.odex
chmod 777 /system/framework/patched_services.odex
# busybox dd if=/system/framework/original.XXX.odex of=/system/framewor
k/patched_XXX.odex bs=1 count=20 skip=52 seek=52 conv=notruncbusybox dd if=/syst
em/framework/original.XXX.odex of=/system/framewor
dd: can't open '/system/framework/original.XXX.odex': No such file or directory
# busybox dd if=/system/framework/original.XXX.odex of=/system/framewor
k/patched_XXX.odex bs=1 count=20 skip=52 seek=52 conv=notrunck/patched_XXX.odex
bs=1 count=20 skip=52 seek=52 conv=notruncbusybox dd if=/system/framework/origin
al.XXX.odex of=/system/framewor
k/patched_XXX.odex: not found
# busybox dd if=/system/framework/original.XXX.odex of=/system/framewor
k/patched_XXX.odex bs=1 count=20 skip=52 seek=52 conv=notruncbusybox dd if=/syst
em/framework/originaldex of=/system/framework/patched_XXX.odex bs=1 count=20 ski
p=52 seek=52 conv=notrunc
k/patched_XXX.odex bs=1 count=20 skip=52 seek=52 conv=notruncbusybox dd if=/syst
em/framework/originaldex of=/system/framework/patched_XXX.odex bs=1 count=20 ski
p=52 seek=52 conv=notrunckip=52 seek=52 conv=notrunc
k/patched_XXX.odex: not found
# busybox dd if=/system/framework/original.framework.odex of=/system/framework/p
atched_framework.odex bs=1 count=20 skip=52 seek=52 conv=notrunc
busybox dd if=/system/framework/original.framework.odex of=/system/framework/pat
ched_framework.odex bs=1 count=20 skip=52 seek=52 conv=notrunc
20+0 records in
20+0 records out
20 bytes (20B) copied, 0.002916 seconds, 6.7KB/s
# busybox dd if=/system/framework/original.ext.odex of=/system/framework/patched
_ext.odex bs=1 count=20 skip=52 seek=52 conv=notrunc
busybox dd if=/system/framework/original.ext.odex of=/system/framework/patched_e
xt.odex bs=1 count=20 skip=52 seek=52 conv=notrunc
20+0 records in
20+0 records out
20 bytes (20B) copied, 0.001508 seconds, 13.0KB/s
# busybox dd if=/system/framework/original.services.odex of=/system/framework/pa
tched_services.odex bs=1 count=20 skip=52 seek=52 conv=notrunc
busybox dd if=/system/framework/original.services.odex of=/system/framework/patc
hed_services.odex bs=1 count=20 skip=52 seek=52 conv=notrunc
20+0 records in
20+0 records out
20 bytes (20B) copied, 0.003354 seconds, 5.8KB/s
#
C:\Program Files (x86)\Android\android-sdk\tools>

C:\Program Files (x86)\Android\android-sdk\tools>