The Android Runtime, or ART for short, is an Android runtime which was made available in Android 4.4 and is the default runtime in Android from 5.0 onward, superseding the Dalvik runtime. ART compiles app's bytecode to native code using the dex2oat on-device compiler suite and executes them.
Questions tagged [android-runtime]
175 questions
3
votes
1 answer
java.lang.StackOverflow Error for Android L preview running art
Jumping straight to the topic, Android L introduces a ART as default runtime. I have a Sample Application, basically a document viewer. Most of the document viewing code including back buttons, Search,etc are written in C and the Android App uses…

learn_develop
- 1,735
- 4
- 15
- 33
2
votes
1 answer
What Is The Runtime Class In Android?
The android documentation for the java.lang.Runtime class makes multiple reference to the JVM, for example calling the freeMemory() method:
Returns the amount of free memory in the Java Virtual Machine.
Yet in recent versions of android there is…

James Callan
- 23
- 5
2
votes
2 answers
How can I compile a class with non existing references?
I'm currently able to compile a class that has this import statement:
import com.panframe.android.lib.*;
But there is no external dependency which satisfies this statement. The code somehow uses this import statement. Even Android Studio warns me…

Yigit Unlu
- 21
- 1
- 3
2
votes
0 answers
Crashlytics Reports Android App Crash Inside Garbage Collector
In our Crashlytics data, we see lots of reports from older devices, as below. Our application appears to be crashing when the system goes to clean up memory.
The application does include native code that malloc()s to the heap. Auditing every line by…

Jameson
- 6,400
- 6
- 32
- 53
2
votes
1 answer
How do you determine when interface methods are invoked at Runtime?
Consider the documentationfor the OnTouchListener which is clear:
Called when a touch event is dispatched to a view.
Perfect! I get it. I'm looking for this kind of description about interface methods which can be overloaded to create things like…

FakeSaint
- 492
- 5
- 8
2
votes
0 answers
App not responding and crashing after giving runtime storage permission
My app successfully runs when launched and give access to external storage runtime permission first time but when I launch it second time it does not respond to anything and crashing. Unable to understand..
I was developing a simple navigation…

Izhan Ali
- 567
- 7
- 17
2
votes
0 answers
Is It Possible To Trace Java API Calls In Android ART Using Frida Framework?
I can trace JNI APIs very easily using this code
Interceptor.attach(Module.findExportByName("lib.so" , "somefunction"), {
onEnter: function(args) {
args[1] = ptr(0);
…

DarkNight
- 53
- 7
2
votes
1 answer
Applications are compiled in odex instead of oat
As mentioned by Google for ART runtime (AOT) applications will be compiled in oat format/completely in native code.
Checked Nexus 6P device & system applications have oat folder but inside odex file is present. I was expecting corresponding oat…

Vinay Verma
- 1,124
- 3
- 12
- 18
2
votes
1 answer
Java ternary operator : is behaviour similar to conditional move possible (assembly) upon ART?
I would like to clear some doubts about the ternary operator in Java.
In Java, it looks like : x = (c ? a : b). From what I read and experienced, it seems to be executed as a branch if/else, meaning that only one statement is evaluated (either a or…

Gordak
- 2,060
- 22
- 32
2
votes
0 answers
Force a dynamic library to be located on a fixed address, on Android
I want to force a dynamic library to be loaded at a particular memory address.
What I should do in order to accomplish this? Modify the dynamic linker? Give any instructions to the static linker? A linker script maybe?
I am working on Android, and…

Paschalis
- 11,929
- 9
- 52
- 82
2
votes
1 answer
Load and execute precompiled code (oat file) dynamically
Since Google removed "openDexFile(byte[] fileContents)" in newer Android versions, we are looking for a replacement here, and in addition we would prefer to use precompiled code (cf. dex2oat), too.
Is anyone aware of a function to perform that task?…

Nils
- 1,705
- 6
- 23
- 32
2
votes
2 answers
Is ART sandboxing application like Dalvik?
I was wondering and googling for an answer, but I didn't find it. So, is newer ART sandboxing apps like Dalvik VM? To be more precise, can image from this link be applied for ART too?…

Nikola Zarić
- 865
- 1
- 9
- 28
2
votes
1 answer
What is ART and DART in Android
In simple what is ART (Android run-time) and DART in Android, I read about it here but I don't really understand its importance and usage.
Also I searched here in Stackoverflow for any related question before I ask about that.

Marzouk
- 2,650
- 3
- 25
- 56
2
votes
2 answers
android.widget.FrameLayout$LayoutParams cannot be cast to android.widget.AbsListView$LayoutParams
There are other related issues on this but they do not address my situation (their error code has to do with some sort of recycling and/or bad cast calls by client code).
My situation is more complex.
I have some code where the user can pull up a…

Aggressor
- 13,323
- 24
- 103
- 182
2
votes
2 answers
How to stop a currently executing command
int count = 0;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
Button start = (Button) findViewById(R.id.start);
start.setOnClickListener(new…

Mohsen
- 2,121
- 3
- 18
- 25