Is there any Dalvik bytecoder available?

by Gonzalo » Tue, 06 Jul 2010 16:49:26 GMT

Sponsored Links
As part of my research I implemented a runtime bytecoder for Java apps
based on Javassist. The idea is to introduce code to execute code
remotely based on current context. Since the context is not the same
at every moment, I need to perform the bytecoding at every execution
(if needed).
I tried to port my code to Android in order to test it on mobile
devices (I already tested it on win mobile and iphone using phoneme
and jamvm respectively). However, I could not find any bytecoding tool
available for Dalvik.
Is there any Dalvik bytecoder available or an ongoing project that I
can join/check that is working on this issue?
If not, is there any other alternative beside running a decompiler for
dex files, and modifying it manually?



Is there any Dalvik bytecoder available?

by fadden » Thu, 08 Jul 2010 06:43:54 GMT


I'm not sure what you mean by "bytecoder".

You can generate Java bytecode and convert it with "dx", but most
Android devices are a bit resource-limited to run dx directly. is an assembler/disassembler for DEX. 


Sponsored Links

Other Threads

1. detecting shake movement without draining the battery

Yes the only way to do it hold a wake lock.  Someone needs to keep running
to monitor the stream of data from the sensor to determine if it looks like
it is shaking.  The NDK won't help you in any way here, unless your code for
computing whether there is a shake from the data stream can run
significantly faster as native code and thus use less CPU.

The current accelerometers don't have a "detect shake" thing inside of
themselves, nor is there any facility or API for the platform to be woken up
by it and tell the application, if it did.

Dianne Hackborn
Android framework engineer

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.


2. Example Populating List from Backend Database?

I've been poking around and haven't come across any good examples/
of how to populate a list from an external data source such as a
mySQL database. Does anyone know of any tutorials or chunks of source
I think the standard Android architecture for this would involve
via http and receiving data back in XML format. Then on the backend
would be some sort of mySQL db with stored procedures and server
that can talk to the Android app. From the GUI a data refresh is
as you scroll down the list (and run out of populated items).

Any pointers would be truly appreciated. Thanks!

3. detecting shake movement without draining the battery

4. Adding the resource in framework

5. Changing IME "Done" button

6. GL11 Automatic Mipmap Generation not working

7. About Donut and Eclair