[Hero CDMA Android Development] Jus10o:
UPDATED 5/16/2010

​

I followed these steps. Originaly for the milestone android phone but it worked.

It should work with any of the 2.1 roms based of the sprint leak. I have tested and confirmed it working on.

DC v2.05

DC v2.07

DC v2.07.2

Fresh Toast v1 - v1.1 - v2.0b

EDIT:This does not currently work with the newest 2.1.1(or what you call it) rom. Might be changed eventually, ill keep it updated.

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

View attachment 317577

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 305272*

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

•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.

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

Now while in recovery, wipe dalvik cache, not everything, just dalvik. It will help from being stuck in a boot loop. After that you can reboot your phone and it will take awhile since dalvik is being rebuilt.

TO DISABLE:

This should disable JIT and return phone back to defualt

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

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/