[Galaxy S II Themes and Apps] josurr:
I was able to get it to work by using the command executable from the manual patch file.

The problem I ran into is that the /system/app was not mounting as read/write...

Here are the commands I ran to get it to work (these commands are coded for the email-policy-patch-3.3 folder existing at the root of the system drive):

**NOTE: The process requires that a Java JRE be installed (does not matter if it is x86 or x64 version of the JRE) **

Windows:

/*
Mount /system as read/write & modify the permissions of /system/app to allow file push after patching the files
*/
adb shell
su
mount -o remount,rw -t yaffs2 /dev/block/mtdblock0 /system
chmod 777 /system/app
exit
exit

/*
Pull required files to allow patching of the email apks
*/
cd C:\email-policy-patch-3.3
mkdir work
cd work
adb pull /system/app/SecEmail_J.apk
adb pull /system/app/SecEmail_J.odex
adb pull /system/app/SecExchange.apk
adb pull /system/app/SecExchange.odex
adb pull /system/framework
cd ..

/*
Patch the email apks
Wait for a command prompt to return
*/
java -jar lib/email-policy-patch.jar patch-manual C:\email-policy-patch-3.3\work 16 SecEmail_J.apk SecExchange.apk

/*
Rename original apk & odex files
*/
adb shell
su
mv /system/app/SecEmail_J.apk /system/app/SecEmail_J.apk.bak
mv /system/app/SecEmail_J.odex /system/app/SecEmail_J.odex.bak
mv /system/app/SecExchange.apk /system/app/SecExchange.apk.bak
mv /system/app/SecExchange.odex /system/app/SecExchange.odex.bak
exit
exit

/*
Push new apk files to phone & reboot
*/
adb push C:\email-policy-patch-3.3\work\SecEmail_J.apk /system/app/SecEmail_J.apk
adb push C:\email-policy-patch-3.3\work\SecExchange.apk /system/app/SecExchange.apk
adb reboot

*nix/Mac (I think it will work on Mac too, but I am not sure since I don't have one to test on):

/*
Mount /system as read/write & modify the permissions of /system/app to allow file push after patching the files
*/
adb shell
su
mount -o remount,rw -t yaffs2 /dev/block/mtdblock0 /system
chmod 777 /system/app
exit
exit

/*
Pull required files to allow patching of the email apks
*/
cd /email-policy-patch-3.3
mkdir work
cd work
adb pull /system/app/SecEmail_J.apk
adb pull /system/app/SecEmail_J.odex
adb pull /system/app/SecExchange.apk
adb pull /system/app/SecExchange.odex
adb pull /system/framework
cd ..

/*
Patch the email apks
Wait for a command prompt to return
*/
java -jar lib/email-policy-patch.jar patch-manual /email-policy-patch-3.3/work 16 SecEmail_J.apk SecExchange.apk

/*
Rename original apk & odex files
*/
adb shell
su
mv /system/app/SecEmail_J.apk /system/app/SecEmail_J.apk.bak
mv /system/app/SecEmail_J.odex /system/app/SecEmail_J.odex.bak
mv /system/app/SecExchange.apk /system/app/SecExchange.apk.bak
mv /system/app/SecExchange.odex /system/app/SecExchange.odex.bak
exit
exit

/*
Push new apk files to phone & reboot
*/
adb push /email-policy-patch-3.3/work/SecEmail_J.apk /system/app/SecEmail_J.apk
adb push /email-policy-patch-3.3/work/SecExchange.apk /system/app/SecExchange.apk
adb reboot

After running the commands, the phone will reboot so that it can build the .odex files for the patched APKs.

Once it is back in the OS, setup the exchange account. It will prompt to allow the security policies from your company's exchange server, but it does

not

put any new entries in the device administrators section of the Phone Settings.

If there are any problems, PM me or reply to the thread.

-josurr

*All credit for the patch goes to [MENTION=1731758]rustamabd[/MENTION] <- THANKS FOR FREEING US FROM OPPRESSIVE SECURITY POLICIES!!! :D