Android :: Dalvik JIT Compiler On Linux X86 Or Mac Build
Jul 1, 2010
As I've heard from Google IO 2010 session, Dalvik JIT compiler just support ARM processor.Do this mean my own build of Android source on Linux X86 or Mac OS X can not support JIT compiler?Should I use some target board with ARM processor to test Dalvik JIT compiler?
View 2 Replies
May 17, 2010
I want to add -Xlint:deprecated to the java compiler while building android app.I've seen the compilerarg tag inside javac tags, but the generated build.xml for the standard project doesn't have such a tag.
View 1 Replies
View Related
Aug 22, 2010
What are the minimal steps necessary (including retrieving the source code) to compile and run just the Dalvik virtual machine on Linux?
View 1 Replies
View Related
Mar 24, 2013
How to build latest linux kernel from off site for Android device (for example Nexus7)?
I have: AOSP source code
Android build for device (from aosp)
Downloaded kernel 3.8.4 from off site
The question is: How can I build latest kernel using all described stuff (aosp source, kernel config, latest kernel)?
View 1 Replies
View Related
Sep 16, 2009
1. I have a c lib which will send & receive multicast package, if I lauch it in native ap, everything is OK, but if lauched through jni ,so it run in dalvik env, it can not receive multicast, i think is may be disabled by dalvik, is there any permission can enable this feature?
2. In this lib i will make some callback of function in dalvik class. according to tranditional method which can run under JDK1.5 & 1.6 as follow: (I make it under source code env not NDK)
In some initialization method save jvm pointer
CODE:...........
it seems AttachCurrentThread not failed but env not correct.
View 4 Replies
View Related
Apr 9, 2010
This question has been asked(and answered) many times about dynamically generating and loading java bytecodes at runtime into a running Dalvik VM, but is there any way to load dex files/bytecodes into an app at runtime?
View 2 Replies
View Related
Jun 19, 2010
i successfully got into adb in recovery mode fairly easily on my ubuntu 10.4 laptop using the following method- this should also work for a linux live boot from a usb flash drive
in one terminal tail and follow log messages
~$ tail -f /var/log/messages
In another terminal run the loop
Then
1. plugin usb and keep it plugged in
2. remove battery, eject sd card.
3. put battery in
4. press vol- and power
5. after around 6 seconds, your terminal with the log will show something like "new high speed USB..."
6. press vol- to select recovery
7. press the power button
8. IMPORTANT- as soon as you see a new log entry (something like "USB disconnect"), pop in the sd card
check your loop terminal for adb. if it doesn't work, repeat at step 2
View 2 Replies
View Related
May 3, 2010
Is anyone able to explain to me exactly what the upcoming JIT compiler will provide? For example, I have Java programs that generate bytecode at runtime which I would like to port to android. Will the JIT compiler make this possible by converting the runtime generated Java byte code to Dalvik at runtime as required?
View 2 Replies
View Related
Feb 8, 2009
For example, will this result in any performance gain:
-- public static final boolean DEV_MODE = false;
if(DEV_MODE){ // log stuff, compute debug values etc. }
View 2 Replies
View Related
May 13, 2010
I just read that Android has a 450% performance improvement because it added a JIT compiler, I know what JIT is, but I don't really understand why is it faster than normal compiled code? or what's the difference with the older approach from the Android platform (the Java like run compiled bytecode).
View 5 Replies
View Related
Jul 26, 2010
I'm using Eclipse with ADT to develop my project, but for some reason my AIDL files are not getting compiled into Java files. Is there a way to explicitly invoked the conversion of my AIDL files?
View 2 Replies
View Related
Oct 7, 2009
Is there a way to control the optimization level of the java compiler that Eclipse uses when building a project?Or is this question not relevant anymore, is all optimization deferred to the vm? The results of this tests imples test_f() is not being inlined, even though it really is a prime candidate for it. It should also be possible to do this inlining at compile time.I investigated this further, and it turns out Dalvik doesn't do inlining at this date.
View 1 Replies
View Related
May 7, 2010
It is clear that cross compilers will not be allowed by the Apple App Store, so a developer will need to be familiar with Objective-C to create applications for the iPhone.I was wondering, is there a cross compiler that will take Objective-C application code and rebuild it into a similar Java application that can be packaged for Android? That way, a developer could still learn just one language (obj-c) but put out applications on many devices.I understand that the Java port would be less optimal than a natively coded application, but could conceivably save a developer some time.
View 4 Replies
View Related
Oct 14, 2010
The following code was copied from one project to another. No errors in project one.
In project 2 I get:
-The method onClick(View) of type new View.OnClickListener((){} must override a superclass method
-implements androd.view.View.OnClickListener.onClick
View 1 Replies
View Related
Jun 24, 2010
I downloaded the Android 2.2 source code and try to build it. When I executed the make command, I got an error here like this build/core/java.mk:20: *** frameworks/ex/common: Invalid LOCAL_SDK_VERSION '8' Choices are: current 4 5 6 7. Stop. Then I changed the frameworks/ex/common/Android.mk to LOCAL_SDK_VERSION = 8 from LOCAL_SDK_VERSION = 7. Next place, build/core/java.mk:20: *** external/jsr305: Invalid LOCAL_SDK_VERSION '8' Choices are: current 4 5 6 7. Stop. I changed the external/jsr305/Android.mk to LOCAL_SDK_VERSION = 8 from LOCAL_SDK_VERSION = 7
Last one, build/core/java.mk:20: *** external/guava: Invalid LOCAL_SDK_VERSION '8' Choices are: current 4 5 6 7. Stop. I changed the external/guava/Android.mk to LOCAL_SDK_VERSION = 8 from LOCAL_SDK_VERSION = 7
By these changes the code started the compilation.
1. Why the error occured?
2. Changes which I did is correct or not?
View 3 Replies
View Related
Aug 9, 2010
Currently I am trying to compile native code for Android. The code is from the OpenCV port for Android. I pasted all the code correctly in my project and edited my make files accordingly. When I set android:debuggable to false everything works fine and I get my native library. When I try while android:debuggable is set to true I get an error.
Here is a part of the log:
CODE:....................
From what I have found on the internet this is caused by the optimization level of the compilation. As long as the code isn't compiled so that is is debuggable afterwards everything should be fine.
Now apparently it is possible to avoid this by setting APP-OPTIM := release in the Application.mk or adding -O2 to LOCAL_CFLAGS. I have tried both and still I get this error.
Right now I don't really care that much about debugging my native code, but I would like to have basic debugging enabled. And I don't want to keep switching android:debuggable in my manifest every time I want to compile. I'm not even sure if it is okay at all if I just set android:debuggable to false pre compiling and to true post compiling, but I am sure I will forget it every second run.
View 1 Replies
View Related
Jul 22, 2010
I'm trying to build android system ; enviroment: ubuntu 10.04, gcc-4.4 jdk 1.6-0-20
get source code follows http://source.android.com/source/download.html
$ . build/envsetup.sh
$ choosecombo
$ make
then compiler error occurs:
CODE:........
In line 554: the code below:
CODE:...........
View 2 Replies
View Related
Aug 20, 2010
My Android app runs fine, but: If I insert a call to WebView.setScrollbarFadingEnabled, it crashes saying:
Could not find method android.webkit.WebView.setScrollbarFadingEnabled, referenced from [my class]
VFY: unable to resolve virtual method 289: Landroid/webkit/WebView;.setScrollbarFadingEnabled (Z)V
I am using Android 1.5, not a custom ROM. My app defines minSdkVersion="3" I always clean before compiling.
Is setScrollbarFadingEnabled unavailable in Android 1.5? If so, why don't I receive a compiler error?
View 1 Replies
View Related
Jul 15, 2009
I've run into the following issue:
Say I have an Animal class, which is parcelable, and I have a Dog class and a Cat class, which are subclasses of Animal and also implement Parcelable.
Say I have a service with the following AIDL interface:
sendAnimals(List<Animal> animals);
Now I'm calling this remote interface from some client application, passing it a List containing Cats and Dogs. What happens now is that android calls the Cat's and the Dog's writeToParcel() methods at the client side, but at the server side, the Animal's CREATOR is used, which calls Animal's readFromParcel() method. So the right data is sent from the client, but the wrong unmarshalling code is executed at the server.
I have tried to put this in the AIDL file:
sendAnimals(List<T extends Animal> animals);
This results in a syntax error from the aidl compiler though.
My current workaround is as follows: - In each specific Animal subtype's writeToParcel() method, I write the class name as a String into the Parcel as the first element. - In the Animal's CREATOR.createFromParcel() I read the first String out of the parcel, and based on that I create the appropriate type and call the appropriate readFromParcel() method.
I think this is kind of ugly though. I would expect the android framework to take care of this for me.
(My application is not actually dealing with animals, this is just to make it simpler to explain the issue)
View 7 Replies
View Related
May 20, 2010
Let's discuss board. Will the new JIT Compiler for 2.2 (FroYo) be faster than overclocking? And when we have 2.2 can we over clock?
View 4 Replies
View Related
Feb 21, 2013
I have a phone with a MT6577. The vendor (Wiko) published the kernel source code. So, i'm trying to build it. I can get the zImage. I converted it to boot.img but i can't boot with it on my phone.build a good zImage? (if you want to try) : URL...
cp mediatek-configs .config
TARGET_PRODUCT=s9081 MTK_ROOT_CUSTOM=../mediatek/custom make
# sudo mtk-tools/repack-MT65xx.pl -boot zImage boot.img-ramdisk boot.img
MTK-Tools by Bruno MartinsMT65xx repack script (last update: 27-01-2013)
Repacking boot image...
Ramdisk size: 2046 blocs
Repacked boot image into 'boot.img'.
Here are the Warnings I got when compiling
mediatek/platform/mt6577/kernel/drivers/video/tvc_drv.c:61:5: warning: "FIXED_WVGA_PARAMS" is not defined
net/ipv4/tcp.c: In function 'tcp_nuke_addr':
include/net/ipv6.h:338: warning: 'in6' may be used uninitialized in this function
net/ipv4/tcp.c:3367: note: 'in6' was declared here
In file included from net/ipv4/netfilter/ipt_LOG.c:27:
include/net/netfilter/xt_log.h: In function 'sb_close':
[code]....
View 9 Replies
View Related
Apr 16, 2009
I know android is based on linux, does this mean it can run any and all linux applications? If so has anyone tried to run anything like wine? I also noticed that by default you cant run apps directly from sd card, but i saw a modification on a site that lets you change it so you can, so technically speaking is there any limit on the size of sd the G1 can handle?
View 1 Replies
View Related
Aug 25, 2010
Possible Duplicate: What can you not do on the Dalvik VM (Android's VM) that you can in Sun VM?
What ever interviews i have faced.In every interview when interviewers come on android topic they ask this question.
"what is the difference between Dalvik VM vs Sun JVM?".
I have given some answers like. http://stackoverflow.com/questions/230193/what-can-you-not-do-on-the-dalvik-vm-androids-vm-that-you-can-in-sun-vm
View 1 Replies
View Related
Jun 6, 2009
Through out of my Java projects I've got used to TDD with the help of this basic tools
JUnit (http://www.junit.org/) as Unit testing Framework Mockito (http://mockito.org/) as tool for Stubs and Mock objects EclEmma (http://www.eclemma.org/) as Java Code Coverage for Eclips
As far as I understand none of them I can use fully when I do coding for Dalvik:
JUnit -- android.jar has its own junit.jar and my assumption is you're supposed to use it, not the latest version from junit.org Mockito -- read this one http://code.google.com/p/mockito/issues/detail?id=57 EclEmma -- doesn't support Android JUnit tests
View 3 Replies
View Related
Jul 6, 2010
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?
View 2 Replies
View Related
Aug 18, 2010
Are there any compability issues between a standard JVM and Dalvik VM? Are there any classes or packages from the Sun SDK that can't be used on Android?
View 2 Replies
View Related
Jun 11, 2010
I'm wondering if and how one can load dex or class files dynamically in dalvik, some quick'n'dirty test function I wrote was this:
CODE:............
whereas the Foo interface is this
CODE:..............
I also tried the same test driver code with a plain .class file which I didn't expect to work in a dalvik context for the obvious reasons, and it doesn't either.
Anyways, the above test driver throws at defineClass() and it doesn't work and I investigated the dalvik code and found this: http://www.google.com/codesearch/p?hl=en#atE6BTe41-M/vm/Jni.c&q=Jni.c...
View 3 Replies
View Related
Nov 17, 2010
The Android's VM is called 'Dalvik' on its offical site, but I found the name 'Delvik' has also been used with Android's VM in some forums and kind of articles. So could someone helps me to figure out what's 'Delvik'? it's just a miss spelling or something else?
View 1 Replies
View Related
Feb 4, 2009
Solved this by following the instructions at http://www.mail-archive.com/android-porting@googlegroups.com/msg01340... Also realised - that looks like a more appropriate mailinglist too :)
View 2 Replies
View Related
May 26, 2009
I am learning Dalvik by debugging the code. I found some calloc invocations in allocateAuxStructures() function return NULL. I cound't trace into the calloc function, so I don't know if memory really runs out or due to other reasons.
The following is my building environment:
CODE:........................
View 2 Replies
View Related