Questions tagged [android-runtime]

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.

175 questions
4
votes
1 answer

Does Android Runtime(ART or Dalvik) contain Java VM stack or Native Method Stack like JVM?

According to Oracle Docs Run-Time Data Areas states, JVM contains various parts of data areas: And I also learnt that JVM is stack-based and ART/Dalvik is register-based. Dalvik heap is made of Active Heap and Zygote Heap. Questions are as…
MummyDing
  • 505
  • 1
  • 6
  • 17
4
votes
0 answers

crash in JNI call from /system/framework/arm/boot-framework.oat

I am facing this weird crash in system_server on my device running on MTK HW with latest Android N,where backtrace points to a crash in JNI call originated from /system/framework/arm/boot-framework.oat . I am not able to figure out how to debug…
4
votes
3 answers

Zygote preloading vs boot.art loading

Boot images loading (boot.oat, boot.art) When Android boots up, it loads some boot images which contain some frequently used classes. In particular boot.oat contains the code of the classes, and boot.art some pre-initialized heap. This speedups…
Paschalis
  • 11,929
  • 9
  • 52
  • 82
4
votes
1 answer

Android ART - Usage of .oat file in /dalvik-cache/?

while playing around with Android ART and the "native" code file .oat/.elf which is created at the app installation process, I did notice something odd. For my understanding, if the device is using ART (Android >= 5.0), the app will start with the…
B.S4989
  • 63
  • 1
  • 7
4
votes
2 answers

Android get GPU model

When running the following command from termial: adb shell dumpsys | grep GLES The output is: GLES: Qualcomm, Adreno (TM) 330, OpenGL ES 3.0 V@53.0 AU@ (CL@) However I am unable to get the output when running programatically. String GPUModel =…
JY2k
  • 2,879
  • 1
  • 31
  • 60
4
votes
2 answers

Android, Build Successful, but apk build (subsequent run) fails

I recently upgraded to Android studio 1.2 beta. Projects that compiled fine earlier, broke. I had to make some modifications in the gradle file to get the project compile again. Now the build is successful, however, when I try to build an apk the…
4
votes
2 answers

Java: access static final field in JNI

Is there a way to access a static final field in JNI? public class TryMe { public int a = 1; public final int b = 2; public static int c = 3; public static final int d = 4; } The C++ JNI code: jclass cls =…
3
votes
0 answers

signal 11 (SIGSEGV), code 1 (SEGV_MAPERR) from /system/lib/libhwui.so

This issue arises from the android run time. Any idea what this is ? I am using native code here which plays an audio file in the background. When I just start to play around with the ui of the app this issue pops up. The app works fine in android…
Sarasranglt
  • 3,819
  • 4
  • 23
  • 36
3
votes
1 answer

dex2oat Failing on Android 6/Marshmallow - Permission denied - Not instant run related

In our production build (done on a CI server, so no Instant Run), users are reporting that the app either: takes a long time (> 10 minutes) to install, possibly never completing or after rebooting, they see "Optimizing Apps 1 of 1" with our…
3
votes
1 answer

Is it possible to run OAT/ELF files from command line on Android?

I know it's possible to run pure dex bytecode on an Android command line via /system/bin/dalvikvm, but I wonder if it's possible to run oat files from command line? Since it's an ELF shared object file it has to be started via zygote I guess. Maybe…
JohnnyFromBF
  • 9,873
  • 10
  • 45
  • 59
3
votes
1 answer

Android self-modifying code in ART

I'm trying to implement self-modifying code in my Android application using JNI. I have the following method in MainActivity class of my application: public int methodToModify() { return 42; } And this is a bytecode of this…
floyd
  • 692
  • 8
  • 23
3
votes
1 answer

How to get styles from Android Resources class?

I'm swappping between applications in Android, I pass a series of parameters to customize the other application (colors, logos, etc.), but I can't find the styles I pass, I can only find the drawables, colors, layouts. Is there a way to find the…
Rudy_TM
  • 1,420
  • 4
  • 15
  • 27
3
votes
1 answer

Application installation failed in android studio?

when i run the app in mobile, "Application installation failed" dialog came. Installation failed since the device possibly has stale dexed jars that don't match the current version (dexopt error). In order to proceed, you have to uninstall the…
3
votes
1 answer

Android compiler, architecture and runtime, how doeas it work together?

I am studying Android runtime recently, especially focusing on dex2oat tool which is the heart. However dex2oat is not isolated but works together with Android's boot-image, android-root, instruction-set, runtime-arg etc. Can anyone explain what…
Harvey Dent
  • 327
  • 2
  • 14
3
votes
0 answers

USB communication freezing with libusb

I have an application that connects with a USB device using libusb. The application worked well until now. In Android 5.0 (Lollipop), SELinux blocked my USB device. I have managed to do a workaround and SELinux doesn't block the USB anymore, but now…
1 2
3
11 12