Akom's Tech Ruminations

Various tech outbursts - code and solutions to practical problems

Android doing Optimizing app 1 of 1 on every boot

Posted by Admin • Friday, May 4. 2018 • Category: Android

The message appears for a good 15 minutes every time my phone boots up. I followed the usual suggestions (wipe cache partition), and that didn't help



Figuring out what app is causing this issue is the hard part. I did it with logcat (I happened to have the Android Studio installed, so logcat is a tab, and it displays the log automatically as the plugged-in phone is booting). You don't need the whole thing, just the adb tools so you can run "adb logcat"



At the moment when the message appears, I saw this in the log:

05-04 14:48:10.388 1230-1230/? I/PackageManager.DexOptimizer: Running dexopt (dex2oat) on: /data/app/com.alltrails.alltrails-2/base.apk pkg=com.alltrails.alltrails isa=arm64 vmSafeMode=false debuggable=false oatDir = /data/app/com.alltrails.alltrails-2/oat

Well, now I know what to uninstall. I didn't need Alltrails anyway.