[Galaxy S I9000 Android Development] [Ramad]:
@frozenhill

Sorry my friend, your post is so long that I will not quote it when replaying.

You need to do it in another way because your are not doing it right or using the right commands.

It's a bit complicated, but I will try to show how to deodex the files right, removing odex files and copying the deodexed files to the right directories, several members have now requested this, but I will only show how to deodex and copy files, the whole process can wait until I have more time to write it in an easy way.

1. Install the firmware(you want to install JPY as I understand from your post): http://www.multiupload.com/PZNPALHVDW, it's ready for re-partitioning so you don't need to repartition using JM8 or JM9, just extract and flash the JPY from the link above with or without re-partitioning.

2. Flash the pre-rooted kernel (CF-Root-XX_XEU_JPY-v1.3-BusyBox-1.17.1.tar).

3. Put the phone on USB-debugging mode and leave it alone for now.

4. Extract the PDA.tar.md5 of the firmware that you have downloaded and flashed earlier, using 7zip or winrar.

5. Start xUltimate and run Main.exe, don't enter any choice yet.

6. Open factoryfs.rfs using UltraISO or MagicISO, brows to the app directory, select all the files in app, drag and drop them in the folder origi_app in xUltimate directory, do the same with the framework directory and collect all the files inside it, drag and drop them in the origi_frame(you can use keyboard Ctrl and A to select all files in a directory).

7. Run option 3 on xUltimate window, when done run option 4.

8. When it's done, run option 7 to exit, now you need to open your eyes and do this right: Cut and Paste all the deodexed files in done_app directory to origi_app directory and choose to overwrite or replace(depending on your windows), choose all files now, right click and choose properties, un-check Read Only if it's checked.

When done Cut and Paste all the files from done_frame to origi_frame and choose to overwrite or replace, do the same with these files to un-check Read Only.

9. Copy origi_app and origi_frame to drive C, rename origi_app to app and origi_frame to framework.

10. Start a command prompt and enter the following commands:

cd c:/app

del *.odex

cd c:/framework

del *.odex

this will remove all odex files from the two directories.

11. Download, extract Superuser.zip and copy Superuser.apk to app directory:http://www.multiupload.com/TYDK9JXM1T

12. Drag the notification bar of your phone and choose USB connected, and then choose Connect USB storage, when the internal sdcard of your phone is recognized, copy the directories app and framework to the internal sdcard, click on Turn off (USB -storage not the phone)when the directories are copied (don't turn the phone off).

13. Run these commands on a command prompt:

cd c:/Your_ADB_directory/tools (change to the location of your ADB directory)

adb shell

su

cd /sdcard

ls ( Just make sure that app and framework directories are there before you proceed)

stop (The phone will freeze here, just let it be)

mount -o remount,rw /dev/block/system /system

rm /system/app/*

rm /system/framework/*

cp /sdcard/app/* /system/app/

cp /sdcard/framework/* /system/framework/

it will take sometime to copy the files, when done execute:

exit

exit

adb reboot

14. Your phone should reboot now, the first boot takes some time so give it time, after the phone has booted give it 15-20 min. then power it down and then power it up, and now it's done.

Good luck