Based on my experience, this problem usually occurs as a result of faulty (or incorrect) permissions in the dalvik cache.
When the androidAndroid system is "optimising apps/system", it will be creating an optimised version of each application. This process makes each app start as fast as possible with the new androidAndroid version.
When an .apk
file is added to an Android system, it is converted to an odex (Optimised Dalvik Executable) file whose function mainly is to save space. Unlike the odexed file, a deodexed file
essentially has all parts assembled in one place into classes.dex
files (just Dalvik Executable)
After an upgrade of an Android version ,the the issue can surface if Android system is trying to creatingcreate a new dalvik cache for the apps but the still has the "old "old cache" for such an application, hence tries to constantly create aa new cache on top of the old one.
AnA "used" odex file is still present even though that particular application is deoxeded . Certain apps (e.g Link2sd, Lucky Patcher, Titanium backup etc) that intergrateintegrate dalvik cache in system partition can cause such issues. In one case, it resulted when Titanium backup created a patch that created an
.odex
file in/system/apps
. this problem resulted.Rooting/Unrooting of the device can result in modification of data in the dalvik cache of a certain application, such that when the change of state ocursoccurs (from rooting or unrooting vice versa), it keeps trying to to peform perform optimisation of the applicationsapplication(s).
- UnistallingUninstalling problematic application(s)
- Try getting rid of posiblepossible culprits esp, especially those that require root, by simply uninstalling such applications.
- AlterativelyAlternatively, try deodexing the applications with a suitable tool, to allow Android Virtual machine to reoptimise the applications at next reboot.
- If none of these seem fixing the issue, then you might have the highest probablityprobability of fixing the issue by reflashing your device with stock ROM.
- Get the appropiateappropriate stock ROM file and reflash to clear essentially everything and rewriting the partitions with "fresh data" Note back up important data first!