[Hero, G2 Touch Android Development] Jus10o:
READ BEFORE TRYING

I am cdma hero user and it works very well for me. This should work on gsm hero. I pulled this from HERE, it was for the Milestone Android phone which is a GSM phone.

Before enabling

*Change home laucher

*Delete htc lock screen

see below if you dont no how

Jit does not work with htc sense, it will give you many problems. I suggest using Helix launcher from market (free and its what i use daily with no issues). You can also try GDE and nexus launcher, or really anything other then sense.

To change launchers go to setting>applications>manage apps>htc sense And clear defaults. Press home and choose a different launcher.

OR download "Home Switcher" from market.. Its a free app that lets you change between launchers.

JIT does not like any HTC apps.. So delete your HtcLockScreen by doing this.

adb remount
adb shell rm /system/app/HtcLockScreen.apk

Here is the htc lock screen if you want it back

HtcLockScreen

JIT is in no way perfect on our htc hero's so MAKE A BACKUP before trying.

And you could very well run into TONS of problems, its just something to test out.

Though if used right, you wont have any problems. I use this daily.

THIS IS FOR JIT

Download: *View attachment 305551*

Then follow these steps:

•Create 2 folders on your 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 or similiar program.

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

-Save the changes and move it to the directory c:/

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

ADB push C:\build.prop /sdcard/jit/build.prop

This will back up your current files. So you can disable jit.

ADB shell
su
mount -o remount,rw -t yaffs2 /dev/block/mtdblock6 /system
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

WIPE DALVIK CACHE AFTER ENABLING JIT.. This will cause your phone from sometimes going into a boot loop.

You dont have to wipe your whole phone.. Only dalvik cache. Your phone will take awhile to reboot since its rebuilding dalvik. Be patient. If it eventually freezes then reboot and it should go through fine after that.

TO DISABLE:

This should disable JIT and return phone back to defualt

adb remount
adb shell
su
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

Post For help if the disabling gives you any problems.. If it does you can always do back up of your rom that you should of made.

Original site http://sholes.id.au/how-to/