[Captivate Android Development] hansmrtn:
New as of Saturday August 8th

I will update the files every time I find a problem​

WARNING PLEASE READ:

Project JIT is highly highly experimental! If you are to do this, MAKE A NANDROID BACKUP IN ROM MANAGER OR RECOVERY! There are always chances of something going wrong. I nor anyone else is responsible of what happens.

Experienced users please know the possible risks:

Boot Looping, requiring a restore

Constant FC's

Wiping everything

These are just the risks, please note it is not 100%​

JIT stands for Just in time compiler. It does not like Touchwiz, so download ADW.Launcher or LauncherPro before starting and set it as default.

This whole process is in ADB. If you dont know how, or what it is, DONT DO IT!

Things to do before you start:

-Download a different launcher than TouchWiz

-Make a backup in recovery or Rom Manager

-Did I mention DO A BACKUP!

-If you have an external SD card, pull it out

-Download the vmlibs file

What I expect you to know before you start:

-ADB

-What JIT is

-How this will effect the performance

-The risks

-How its not my fault if you screw your phone over

-How experimental this is

-How to make a nandroid backup

-How to make a nandroid restore

Remember, this is experimental and I cannot guarantee for it to completely work.

Download This- vmlibs.zip

Then follow these steps:

-Make a backup!!!

-Create 2 folders on your internal sdcard: “jit” & “dalbk”

-Extract the vmlibs.zip to the “jit” folder on your sdcard

-Using ADB pull your build.prop

adb remount
ADB pull /system/build.prop build.prop

-It will place the file in your c:/android/tools folder

-Edit this using notepad, text edit or similiar program.

-Add the following line to the end of the build.prop: dalvik.vm.execution-mode=int:jit

-Edit the following line:dalvik.vm.startheapsize=8m

to: dalvik.vm.startheapsize=12m

-Save the changes

-Push it back to your “jit” folder on the sdcard

ADB push build.prop /sdcard/jit/build.prop

This will back up your current files. So you can disable jit, but if your phone boot loops, thats why you have A BACKUP!

ADB shell
su

cp /system/build.prop /sdcard/dalbk/
cp /system/bin/dalvikvm /sdcard/dalbk/
cp /system/lib/libdvm.so /sdcard/dalbk/
cp /system/lib/libnativehelper.so /sdcard/dalbk/

This will enable jit on your phone.

cd /sdcard/jit/bin
cp -f dalvikvm /system/bin/
busybox chmod 755 /system/bin/dalvikvm
cd /sdcard/jit
cp -f libdvm.so /system/lib/
cp -f libnativehelper.so /system/lib/
cat build.prop >/system/build.prop
chmod 644 /system/lib/libdvm.so
chmod 644 /system/lib/libnativehelper.so
chmod 666 /system/build.prop
sync
reboot recovery

While in recovery, wipe the dalvik cache, this will prevent it from boot looping.

To Disable

adb shell
su
mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system
cd /sdcard/dalbk/
cat build.prop >/system/build.prop
cp -f dalvikvm /system/bin
busybox chmod 755 /system/bin/dalvikvm
cp -f libdvm.so /system/lib/
cp -f libnativehelper.so /system/lib/
chmod 644 /system/lib/libdvm.so
chmod 644 /system/lib/libnativehelper.so
chmod 666 /system/build.prop
sync
reboot

If that fails, that is why you have a backup. To restore, go to recovery, click on nandroid, and restore from your backup.