Unfortunately, no, there is no way. RIM threw in a lot of security mechanisms for a very good reason (government, etc). These mechanisms are not unique, a similiar example is how difficult it has been to "hack" a Microsoft X-Box to run Linux, for example.
If you have a critical routine that you MUST optimize to run as fast as possible, one way is to to use Java bytecode assembler, which is something not for the faint of heart. Very few people have the courage to try bytecode assembly for Java, and it is not standardized, but it provides a method of low-level programming in Java Virtual Machine bytecode. Google for "Jasmin Java" for more info. You'll probably be jumping through a lot of hoops to modify files in an existing .jar file (decompile into Jasmin, edit the file, and recompile back to bytecode). Be warned, that this is extremely, extremely DIFFICULT. But it will be valid Java bytecode on all JVM's.
Also, not all the BlackBerries use the same processor. No guarantee's you'll be running on an ARM9.
|