Enabling JIT on Eclair
  • sudoadamsudoadam August 2010

    This process will allow you to enable JIT (Just In Time compiling) on Eclair (2.1) builds.
    This is based on Jus10o's guide on XDA.

    Tested on Motorola CLIQ running Eclair2CLIQ Beta 1 with my root fix.

    Step 1: Download
    Download the files needed here.

    Step 2: Extract Files
    Make a folder called ~/tmp (or something else if you prefer). Extract the contents of the archive you downloaded to that folder.

    Step 3: Push Files
    Open up terminal and type
    cd ~/tmp
    adb push dalvikvm /sdcard/jit/
    adb push libdvm.so /sdcard/jit/
    adb push libnativehelper.so /sdcard/jit/

    Step 4: Modify build.prop
    Pull your current build.prop
    cd ~/tmp
    adb pull /system/build.prop .
    Open in a text editor and input the line "dalvik.vm.execution-mode=int:jit" at the very end of the file.

    Push build.prop back
    adb push build.prop /sdcard/jit/

    Step 5: Backup
    adb shell
    cp /system/bin/dalvikvm /sdcard/dalvikbackup/
    cp /system/lib/libdvm.so /sdcard/dalvikbackup/
    cp /system/lib/libnativehelper.so /sdcard/dalvikbackup/
    cp /system/build.prop /sdcard/dalvikbackup/

    Step 5: Copy the new files to their locations
    adb shell
    cd /sdcard/jit/
    cp -f dalvikvm /system/bin/
    cp -f libdvm.so /system/lib/
    cp -f libnativehelper.so /system/lib/
    cp -f build.prop /system/

    Step 6: Change Permissions and reboot into recovery
    adb shell
    chmod 755 /system/bin/dalvikvm
    chmod 644 /system/lib/libdvm.so
    chmod 644 /system/lib/libnativehelper.so
    chmod 666 /system/build.prop
    sync
    reboot

    Follow the standard procedure to get into recovery and wipe only dalvik-cache.
    Reboot.

    Step 7: Enjoy JIT!

    To go back to non-JIT:

    adb shell
    cd /sdcard/dalvikbackup
    cp -f dalvikvm /system/bin/
    cp -f libdvm.so /system/lib/
    cp -f libnativehelper.so /system/lib/
    cp -f build.prop /system

    chmod 755 /system/bin/dalvikvm
    chmod 644 /system/lib/libdvm.so
    chmod 644 /system/lib/libnativehelper.so
    chmod 666 /system/build.prop
    sync
    reboot

    Enter recovery; wipe dalvik-cache; reboot. You are now JIT-less.

  • OpenCliqOpenCliq August 2010

    Hey, just tried downloading, said file is "Invalid or was Deleted"
    If you need a mirror, i can provide :D

  • It was most likely from the original post, whoever has an original copy of the file can reupload it and ill update the post.

  • sudoadamsudoadam August 2010

    My bad- fixing now

  • fedeginfedegin August 2010

    Nice post! that really improve de phone performance?

  • sudoadamsudoadam August 2010

    It can, but because of some instabilities with JIT on Eclair, it may sometimes slow the phone down. I've had a general increase in performance though. I think it really helps with things like smooth animations and things. Some things load faster, some things don't. It's pretty experimental on Eclair which is why Google held back the release until FroYo.

Hey are you new here?!

Welcome to the best Ad-Free Android Community around! Create your profile, and start posting now! New features are being added all the time!

Login with Facebook Sign In with OpenID Sign In with Google Sign In with Twitter

Sign In! Sign Up!

Categories

In this Discussion

Tagged