[Droid Eris Android Development] tenzomonk:
After reading many posts about not being able to the XDA App with JIT enabled… I decided to post this…

Here’s something I happened to “stumble” upon while playing around with ROMs with JIT-enabled. Hopefully this will help some others enjoy the XDA/Tapatalk App from their phones with JIT-enabled :)

I have done this on two (2) Cyanogen based ROMs (CELB2.4 and CE1.1). Both had JIT enabled by default.

In any case, I love being able to use the XDA App from my phone to feed my addiction :) However, I also enjoy having JIT and the goodness that comes along with it! So… I was playing with CELB2.4 and testing some battery life. After disabling JIT, I instantly started up XDA (as I was unable to use due to FC’s with JIT enabled). I logged in and browsed around. However, disabling JIT had no effect on my battery life, so I decided to re-enable. Later, without thinking, I started up XDA and browsed around some more. It didn’t hit me until a few minutes later that JIT was enabled and I was able to use XDA.

In any case, I loaded up a NAND of CE1.1 and did the same thing, with the same result. XDA app worked perfectly… and I’m still getting over 5.3 mflops :)

I think there are other apps that have issues with JIT, however, I personally don’t use them. Hope this helps others! Would love to know what ROMs this “trick” works with, and/or which it doesn’t.

------------------------------------------------------------------------------------

I highly recommend doing a NAND backup before doing anything. It's just good practice!

There are a few methods to enable/disable JIT... here's what I did (using a Windows machine):

Disable JIT via adb:

adb remount

abd pull /system/build.prop build.prop

Open build.prop in Notepad/Wordpad or favorite text editor (file will be in the working directory)

find the line:

dalvik.vm.execution-mode=int:jit

replace with:

dalvik.vm.execution-mode=int:fast

SAVE

adb push build.prop /system/

Reboot Phone

------------------------------------------------------------------------------------

After disabling JIT, reboot, open up XDA App, login and browse around (as a side note, I created a favorite to the Eris Forums). Then, close out of XDA App, and then re-enable JIT and reboot.

------------------------------------------------------------------------------------

Enable JIT via adb:

adb remount

abd pull /system/build.prop build.prop

Open build.prop in Notepad/Wordpad or favorite text editor (file will be in working directory)

find the line:

dalvik.vm.execution-mode=int:fast

replace with:

dalvik.vm.execution-mode=int:jit

SAVE

adb push build.prop /system/

Reboot Phone

------------------------------------------------------------------------------------

Alternatively you can also use a program like Root Explorer to find the build.prop file in the /system/ folder and edit/save/reboot.

Again, would love to know the results this has for others!

------------------------------------------------------------------------------------

Thanks to a post from thenestor, it's been discovered that version 0.9 of the XDA/Tapatalk app works just fine with JIT (regardless if an AOSP or other ROM). I'm currently using version 0.9 on xtrROM and it works great. I have attached the zip with the 0.9 apk. It has a "funky" name... and I didn't rename... I simply used Astro to install the apk. works great!

MODS: if for any reason I am NOT allowed to have version 0.9 posted, please let me know, and I will take the attachment down ASAP.