Is there any Dalvik bytecoder available?

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


Sponsored Links
 Hi:
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?

Thanks,
--Gonzalo

--



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.

 http://code.google.com/p/smali/ is an assembler/disassembler for DEX. 

--


Sponsored Links


Other Threads

1. beagleboard porting

Hi I downloaded the linux-omap code from
"git clone 
git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap-2.6.git
linux-omap-2.6"
and compiled with CROSS_COMPILE=arm-none-linux-gnueabi- using
codesoucery's arm-2009q1.
The bootloader could load the kernel image but kernel booting stops
after "Starting kernel ...
Uncompressing Linux... done, booting the kernel."
Can you help me if I am doing something wrong.

Also the file-system is built with latest Android code on
ubuntu_x86_64.
--Gagan

-- 

2. Building and flashing HTC HERO G2

I am able to build FROYO and getting system.img. Is it the same
system.img which I can flash in HTC HERO G2? If it is not then could
you pls let me know the steps to build to Froyo system.img for HTC
HERO G2?  I have heard some cross compilation is needed for the (.img)
files to flash on HTC HERO devices. But while building Froyo I think
inbuild toolchain compiler is working on the build process. If it is
not happening then pls tell me the command/procedure to make the
system.img compatible for HTC HERO. Pls pls tell me the solution. I'm
completely stuck.

-- 

3. Porting to MIPS

4. Android On Nokia N95

5. Loading Froyo onto ADP2

6. USB host issue on i.MX51: cannot recognize USB Mass Storage Device

7. How to build and flash the images in HTC HERO G2.