Skip to main content

Questions tagged [dalvik]

Dalvik is the process virtual machine (VM) in Google's Android operating system. It is the software that runs the apps on Android devices. For optimization, the apps' Java Bytecode is compiled to Dalvik-compatible `.dex` (Dalvik Executable) files before installation on a device, which are stored in the so-called Dalvik Cache.

Filter by
Sorted by
Tagged with
47 votes
1 answer
120k views

Why Do I Need to Wipe Dalvik Cache?

When I'm updating a custom ROM, there's always an instruction to wipe the Dalvik cache. I don't see a reason why this is necessarily. Watching the logcat while the system is booting I can clearly see ...
user avatar
28 votes
1 answer
4k views

What kind of app optimizations do newer Android versions do at the first reboot?

I received from my phone carrier, Vodafone IT, the official OTA Google update to Android Ice Cream Sandwich 4.0.4 on my Nexus S. When automatically rebooting for the first time after the update, the ...
Paolo Amoroso's user avatar
28 votes
2 answers
5k views

What is Dalvik cache?

When installing custom ROMs most recommend clearing the Dalvik cache. What exactly is Dalvik cache?
GollyJer's user avatar
  • 1,193
22 votes
1 answer
15k views

Dalvik VM vs. ART (Android Runtime): Impact for end-users?

With Nexus 5 (Android 4.4 KitKat), Google has shipped two runtimes to run apps. What are the differences between Dalvik & ART for endusers? How can endusers be affected by this? Is there any ...
iOS's user avatar
  • 12.4k
22 votes
1 answer
23k views

Manually switch from ART to Dalvik

I wanted to try out the new ART runtime, but didn't realize my custom ROM doesn't support it. So now I am getting recurring Force Closed messages after booting, and can't get through to the settings ...
David B.'s user avatar
  • 223
20 votes
3 answers
118k views

Clear Caches from ADB?

How do I clear caches (app, individual apps, Dalvik, ART if possible) via ADB? Using apps, recovery, or doing it through Settings are not options for me. Also, my phone is not rooted.
LakeHMM's user avatar
  • 350
17 votes
1 answer
10k views

How to keep the size of the Dalvik cache small?

I have an issue with the Dalvik cache getting huge and occupying almost all of the space on my phone. I'm running Cyanogenmod 7.X. For the record, I have about 5-6 small applications on my phone (...
Naftuli Kay's user avatar
  • 2,602
13 votes
1 answer
15k views

What is the zygote process still doing in Android L?

I am trying to figure out the specific differences in the Dalvik and ART runtimes. I realize that ART no longer uses the Dalvik VM, however, one of the first things I noticed after installing the ...
John's user avatar
  • 131
11 votes
3 answers
6k views

Why each android application runs on a different Dalvik VM process?

I have read that each android applications runs on a different Dalvik VM process (all forked from zygote). I also read that these VMs are really lightweight and use copy on write buffers and all that,...
AndroidSec's user avatar
9 votes
2 answers
4k views

Can I change the dalvik cache location e.g. with a symbolic link?

I currently use Link2SD since my phone's onboard storage is insufficient for more than a few essential apps. It is very effective but limited to when the phone is on. While changing ROMs, the dalvik ...
gontadu's user avatar
  • 261
6 votes
5 answers
107k views

Clearing Dalvik Cache without root?

I recently tried updating my Motorola Atrix 4g. It downloaded, and then it booted down to try to update. However, instead of updating, it ends up booting to a screen that just says Failed to boot 2 ...
Ephraim's user avatar
  • 450
6 votes
3 answers
12k views

Should Dalvik Cache be wiped in Android OS that supports ART?

When switching custom ROMs (in ART), is it necessary to wipe the Dalvik Cache? Wiping the Cache is necessary, but should wiping Dalvik (which doesn't exist in Android Lollipop and afterward) be ...
doylefermi's user avatar
5 votes
1 answer
279 views

Do calls to Java native interface in android apps run within Dalvik VM?

I read that apps sometimes access the native libraries for optimization purposes via the Java native interface. As far as I understand, JNI just provides java wrappers around c/c++ libraries/...
Sumesh Kumar's user avatar
5 votes
2 answers
1k views

How is the Android System running Java jars?

There is a large amount of Java jars in /system/framework, for example, am.jar. I understand that Android uses Java in a very confusing way (at least for me). I do not completely understand the way ...
Tyler Richardson's user avatar
4 votes
1 answer
9k views

Nexus 5 has no settings to change runtime

I'm using Nexus 5. It was running on KitKat and I updated to Android L. I wanted to try and check out if it's running on Dalvik or ART, but the settings to change runtime in the Developer Option is ...
afwcxx's user avatar
  • 143
4 votes
5 answers
8k views

Moto E Not Starting Properly After Changing runtime to ART

I have recently bought a MOTO E and it's working cool. Then I have enabled Developer options and changed my runtime from Dalvik to ART. Afterwards I restarted my device. I got the message saying ...
Software Sainath's user avatar
4 votes
2 answers
3k views

Cannot install from market applications I used to have

I changed my ROM to cyangenmod 7, and I cannot install some of the applications I used to have (like skype for instance). Here's what I got so far: When I'm downloading it from the market it starts ...
TCS's user avatar
  • 225
3 votes
2 answers
8k views

How can I identify if my device is using ART runtime or a Dalvik?

I have an app called Timberman. Under the description it gives an important note: Game is not compatible with ART devices at the moment. Please switch to Dalvik. I don't understand what/ how can ...
user285oo6's user avatar
  • 1,228
3 votes
2 answers
2k views

Removing dalvik from Android

I have no experience in that so please forgive me if it sounds a bit silly: Is it possible to remove all "user layer" application and DalvikVM from an Android, just to obtain plain linux-based ...
Maciej Bielski's user avatar
3 votes
1 answer
13k views

Is there any benefit to wiping Dalvik Cache after rooting my phone?

Every time I do an OS update, it removes the root so I need to re-root my phone using TWRP. TWRP gives me the option to wipe the Dalvik Cache after flashing any sort of item. I understand that there ...
Jorge Luque's user avatar
3 votes
1 answer
4k views

What will be faster when moving to sd-ext via A2SD+ Data or Dalvik-cache? (or can I move both with no extra-penalty)

I'm using A2SD+ on my HTC Desire running on MIUI. Currently only the app and app-private are under /sd-ext, but I'm running out of space very quickly :) Currently my dalvik-cache consumes 46.3MB and ...
RonK's user avatar
  • 425
3 votes
2 answers
2k views

Flash the newer version of ROM over the old one on ART environment

I've flashed Carbon ROM on my LG G2 (D802) device and when e new Nightly release, I download it and put it on my SD Card and dirty flash it (Only clean Dalvik cache and cache partition). Now I've ...
bossModus's user avatar
3 votes
2 answers
10k views

Installing USB driver for Micromax A50

I have to install USB driver for Micromax A50 . I have google USB driver installed through SDK Manager, but need a USB driver specifically for this device. To install this USB driver I think, I need ...
steve's user avatar
  • 31
2 votes
2 answers
3k views

Why does Dalvik virtual machine need to run in every process?

JVM and DVM both provide virtual environment. JVM doesn't need to be in every process. why DVM need to be in every process? Thanks.
user avatar
2 votes
1 answer
15k views

Xposed Framework with KitKat ART?

I have an SGS-I8190 with CM11 from http://maclaw.pl/ I explored the Xposed Framework, but it is not compatible with ART. It switches back to the old buggy and lame Dalvik. XDA says, that ART ...
m0ddixx's user avatar
  • 33
2 votes
1 answer
343 views

What does int, jit, fast, and portable mean in build.prop's dalvik.vm.execution-mode?

There are many build.prop tweaks on the internet, and some says dalvik.vm.execution-mode should be int:jit, and some says it should be fast:jit or even in a reversed order as jit:fast for performance. ...
Android 4.4 forever's user avatar
2 votes
1 answer
692 views

Difference between Linux containers and Dalvik VM in Android

As far as I know, Linux containers are those that run on a shared OS kernel using a virtualization software. Is there any correlation to Dalvik VM which runs multiple apps on top it?
r2_d2's user avatar
  • 123
2 votes
2 answers
7k views

What to do when the Dalvik cache is full but the operating system does not recognize it?

I have a strange scenario - my dalvik cache is full of dex files - around 150MB of space, but it appears that the operating system does not recognize these files as related to any application. I ...
RonK's user avatar
  • 425
2 votes
2 answers
1k views

Is it safe to switch from dalvik to art runtime?

How can I tell if it would be safe? I am running ViperOne 7.0.1 on an HTC One m7.
Enigma's user avatar
  • 1,250
2 votes
1 answer
902 views

Is deleting /system/bin/dex2oat file safe?

I was looking into a couple of Android tombstones files of an old Samsung phone running Marshmallow. Found a crash in every single one with the same culprit, dex2oat. From my limited understanding it ...
Ertox's user avatar
  • 21
2 votes
0 answers
149 views

Why is ART still needed on Android?

The reason Andy Rubin chose Java for Android Dev is not publicly known, only speculations, but it seems to me that the combination of being able to run a Java app everywhere (because the earliest ...
LekeOpe's user avatar
  • 121
1 vote
2 answers
2k views

Should I switch to ART? [closed]

ART has better performance and better battery life on paper at least. Should I consider switching to it on my moto g? What are the results I can expect? What precautions should I take? Is it easy to ...
kBisla's user avatar
  • 367
1 vote
1 answer
605 views

Is Odex really faster?

Is an odex file different from the dex file generated and stored in dalvik-cache? Is it faster? More optimized? Or just the same? Most people mention the benefit of improved boot speed after wiping ...
Waleed Hamra's user avatar
1 vote
1 answer
2k views

Cannot see my device in Dalvik Debug Monitor [duplicate]

Possible Duplicate: installing USB driver for Micromax A50 I have android gingerbread (2.3.6) . I wanted to take a screen shot so i enabled USB-Debugging,connected the USB,started ddms but couldn'...
Suhail Gupta's user avatar
1 vote
2 answers
2k views

Install/Run Android Skype on ARM LInux?

I have a Chromebook with an ARM processor. I have installed Ubuntu on that Chromebook. However, since there is no Skype-binary for ARM Linux, is it possible to use the version of Skype of the ...
Quandary's user avatar
  • 615
1 vote
1 answer
538 views

What is the dalvik speed patch?

Lately I've been hearing about a dalvik speed patch to supposedly increase the interpreting speed of apps through the dalvik JVM. The only mention on Google is Facebook's "hack" of the dalvik JVM to ...
Mark Lopez's user avatar
1 vote
1 answer
423 views

Which Virtual machine is used in Android 11?

Every Android application runs in a virtual machine. We know that Dalvik virtual machine \was the one that is used by Android. Next, they changed to ART (Android Runtime machine). Just correct me if ...
Mdshammi111's user avatar
1 vote
1 answer
5k views

Wiping dalvik cache - Dalvik cache of uninstalled apps

I just came across the folder dalvik-cache having size of about 750MB. I searched for dalvik cache on google, and came to know that it is builded during boot up, and wiping this will make the next ...
Keshava GN's user avatar
1 vote
1 answer
3k views

Why is the ART VM slower than the Dalvik VM, at sorting an array when the array size is 62000?

Look at row 62 of this graph. It is the time taken for a quick sort integer array, on a VM for android 4.4 (KitKat). How come that ART is faster except at an array size of 62000? In fact, it is ...
George's user avatar
  • 317
1 vote
0 answers
231 views

Can I run .odex file on dalvikvm?

As I can run a Dex file on dalvikvm through a terminal emulator (I'm using termux or adb shell /system/bin/dalvikvm -cp /path/to/classes.dex classname Which runs successfully and I noticed it ...
Anonymous27's user avatar
1 vote
0 answers
176 views

Dalvik vm heap props resetting on reboot

I am running android 9 and I tried changing heapsize prop by the following command setprop dalvik.vm.heapsize 384m and then verifying by getprop | grep heapsize which returns 384m so it works. ...
brz_bro's user avatar
  • 11
1 vote
0 answers
134 views

How to clear dalvik cache if DDMS doesn't recognize device?

I have a Navon Platinum Explorer tablet (wich is not an original Navon tablet). Few years ago I was able to clear the dalvik cache, with DDMS in Eclipse (Mars) but it's full again and DDMS doesn't ...
Noel Nemeth's user avatar
1 vote
0 answers
1k views

Is it possible to remove OAT files for unwanted system apps? [rooted locked device]

I have not enough free space on my Moto X, so I want to free up some space in data partition used by system apps bloatware. For example, disabled Slides with uninstalled updates still consumes 31 MB ...
Velda's user avatar
  • 111
1 vote
1 answer
131 views

MOTO E 1st Gen From Dalvik to ART : com.android.systemui stop and loop

May I first apologize for my english : non-native speaker, some erratic grammar might happen. Si un francophone passe ici, ce sera bien plus facile pour moi ;) I'm NOT skilled in android fix, so be ...
Kaldui's user avatar
  • 111
1 vote
2 answers
1k views

"Android is Updating" on every boot

On every bootup I get the "Android is updating" (Optimizing apps) screen. I've tried a few methods. I deleted all custom odex files in /data/app dictionary and deleted the dalvik cache but it's still ...
user avatar
1 vote
1 answer
134 views

Why does the number of apps "optimized" not reflect removed apps?

I've read the details on what optimizing does here: What kind of app optimizations do newer Android versions do at the first reboot? And my question is slightly followup. I run CM nightlies on my ...
music2myear's user avatar
1 vote
0 answers
48 views

How can I move dalvik cache to a custom location(permanently)? [duplicate]

Possible Duplicate: Can I change the dalvik cache location e.g. with a symbolic link? I have Huawei u8160 running Cyanogenmod 7.2. I have activated sd-ext partition using Link2SD, so it's ...
Mohamed Essam's user avatar
0 votes
1 answer
3k views

No option to switch dalvik to art on galaxy s5 android 5

I was looking for an option to switch from dalvik to art on my galaxy s5 g900f with Android 5,but it was not in the place it should be. Is it because of the Android version? Or maybe only one of them ...
Łukasz Motyczka's user avatar
0 votes
1 answer
6k views

Dalvik/2.1.0 in Android's version more than 5

I installed Packet Capture on my android and did some scans because this topic. So, I saw Dalvik/2.1.0 in a log of WhatsApp on port 80. Since Dalvik/2.1.0 should be prior that Android 5, is it normal ...
Mycroft's user avatar
  • 143
0 votes
2 answers
672 views

does ART use dalvik bytecode?

I know dalvik vm use dalvik bytecode. does ART use dalvik bytecode or something else ?
utarid's user avatar
  • 103