ELi5: When doing a software update on my Android phone it reboots and says it’s optimizing and or initializing apps. What is it actually doing?

700 views

So Im in IT and can only rationalize the massive time (sometimes longer than the update itself) it takes to do this task before my phone is utilized it has something to do with indexing. Sort of like NTFS? But then again even computer drivers do not take as long to install and reboot as these phone updates take.
Can someone please explain what Android is doing when optimising and or initializing apps?

In: Technology

3 Answers

Anonymous 0 Comments

When updating, it will clear all installed apps dalvik-cache to avoid any issues and start with fresh cache. What this optimizing does is rebuilding dalvik-cache for the all installed apps since updating will most probably includes updated system apps.

In an Adroid apk, there is the excutable file with .dex format, when installing/updating an apps, this dex file will get optimized and put into dalvik-cache directory/partition.

You are viewing 1 out of 3 answers, click here to view all answers.