[Galaxy S Plus I9001 Android Development] nikagl:
First of all: NO WARRANTY AT ALL. I have no idea what I'm doing... it simply worked what I did :D

Attached is also the Calendar and Email APK files - I got them from the stable Cyanogenmod repository for HTC Desire HD (update-cm-7.1.0-DesireHD-signed - thanks crybert!!)

Not documented as well as the method to do it manually, I now also created a Faemod/CWM installable zipfile:

http://xdaforums.com/showpost.php?p=20520096&postcount=38

If you want to do it manually, continue the guide below...

In all cases:

1. Stop all internet access on device (Data & Wifi, preferably Flight Mode) to avoid sync

2. Go to Settings

3. Select Applications

4. Select Manage Applications & Select All tab & scroll to Calendar

5. Select Calendar

6. Press Clear Data (WARNING: make sure you have a backup using Sync!)

7. Press OK to Clear all Calendar data

8. Press Back (hardbutton) & scroll to Email

9. Repeat Clear data for Email applications (also Force Stop first, if available, may be a good idea)

Then for replacing using Root Explorer:

1. Download & install Root Explorer (or any explorer app that allows you to mount /system/app as writable)

2. Enable Mass Storage or Mound SDCard in PC

3. Copy ICS folder (with APK files in it) to SDCard

4. Disable Mass Storage (!)

5. Start Root Explorer

6. Browse to /sdcard/ICS and click Menu (hardbutton)

7. Select all of the files (Select All button)

8. Press Copy

9. Browse to /system/app folder, by default system is mounted as Read Only

10. Press "Mount R/W" button

11. Press Paste (and sometimes accept warning)

12. Delete the ApplicationsManager.odex, Email.odex and TouchWizCalendar.odex files

13. Modify the permissions of Email.apk and TouchWizCalendar.apk

14. Restart your device

Optionally, here's the steps for replacing using ADB:

1. Root your device

2. Install the Android SDK or ADB Tools

3. Take Email.apk, ApplicationsProvider.apk and TouchWizCalendar.apk and copy them to your adb folder

4. If also doing the calendar from another source, make sure to rename Calendar.apk to TouchWizCalendar.apk

5. Run the following code using (USB debugging and root access are required for this!):

adb -d pull /system/app/Email.apk Email.apk.bak
adb -d pull /system/app/Email.odex Email.odex.bak

adb -d pull /system/app/ApplicationsProvider.apk ApplicationsProvider.apk.bak
adb -d pull /system/app/ApplicationsProvider.odex ApplicationsProvider.odex.bak

adb -d pull /system/app/TouchWizCalendar.apk TouchWizCalendar.apk.bak
adb -d pull /system/app/TouchWizCalendar.odex TouchWizCalendar.odex.bak

adb -d remount

adb -d push Email.apk /system/app/
adb -d shell chmod 644 /system/app/Email.apk
adb -d shell rm /system/app/Email.odex

adb -d push ApplicationsProvider.apk /system/app/
adb -d shell chmod 644 /system/app/ApplicationsProvider.odex
adb -d shell rm /system/app/ApplicationsProvider.odex

adb -d push TouchWizCalendar.apk /system/app/
adb -d shell chmod 644 /system/app/TouchWizCalendar.apk
adb -d shell rm /system/app/TouchWizCalendar.odex

adb -d remount

6. Clear E-mail and Calendar cache's from Manage Applications

7. Reboot your device (for instance with adb -d reboot)

Then, when you are finished copying the files, you need to resynchronize your Calendar and Mail:

1. Enable all internet access again

2. Start Calendar (is still empty!)

3. Start Email and finish wizard

Last but not least, here's some examples of how it can look like:

All done :)

Regards,

Nika.