Lỗi android is starting optimizing app on android 6.0.1 năm 2024

Discussion:

Optimizing app 1 of 1

(too old to reply)

Device: BLU Grand Energy Android 6.0 No cell plan, wifi only

Problem: prolonged startup time; optimizing app 1 of 1. No recently added apps. Troubleshooting steps: started in safe mode; problem persisted. Attempted fully charge to try to see immediate/early battery usage to determine apps using battery since full charge but was unable, notified battery usage data not available. Performed network reset, no help.

What other troubleshooting can I do to determine which app to R&R?

-- Mike Easter

Device: BLU Grand Energy Android 6.0 No cell plan, wifi only Problem: prolonged startup time; optimizing app 1 of 1. No recently added apps. Troubleshooting steps: started in safe mode; problem persisted. Attempted fully charge to try to see immediate/early battery usage to determine apps using battery since full charge but was unable, notified battery usage data not available. Performed network reset, no help. What other troubleshooting can I do to determine which app to R&R?

It's sort of severe perhaps but you could do a factory reset and then see how well things worked and than add any apps one by one. -- Cheers,

John B.

Attempted fully charge to try to see immediate/early battery usage to determine apps using battery since full charge but was unable, notified battery usage data not available.

This article's comment:

https://www.imobie.com/support/fix-android-is-starting-optimizing-apps.htm How to Fix Android is Starting Optimizing App 1 of 1

Easiest way (before factory reset, clean cache, etc) is following.

  1. Charge your phone to 100%, then remove from charger and immediately reboot.
  2. Wait until it does the optimization 1 of 1 and UI becomes responsive.
  3. Then immediately go to Settings, see Battery usage. It displays most battery-consuming apps since last full charge; you may guess now, that apps, listed there, are responsible for the weird optimizing job.
  4. Uninstall that app, try to reboot. Problem should be gone.
  5. You could try to reinstall the app, it should be still fine. For me the bad app was CleanMaster, but other users have reported lots of different apps that may cause it. The source of this suggestion is from OnePlus forums.

But,

3 See Battery usage: failed, 'battery usage data not available'.

Why would battery usage data be 'not available'?

-- Mike Easter

Attempted fully charge to try to see immediate/early battery usage to determine apps using battery since full charge but was unable, notified battery usage data not available.

https://www.imobie.com/support/fix-android-is-starting-optimizing-apps.htm How to Fix Android is Starting Optimizing App 1 of 1

Easiest way (before factory reset, clean cache, etc) is following.

  1. Charge your phone to 100%, then remove from charger and immediately reboot.
  2. Wait until it does the optimization 1 of 1 and UI becomes responsive.
  3. Then immediately go to Settings, see Battery usage. It displays most battery-consuming apps since last full charge; you may guess now, that apps, listed there, are responsible for the weird optimizing job.
  4. Uninstall that app, try to reboot. Problem should be gone.
  5. You could try to reinstall the app, it should be still fine. For me the bad app was CleanMaster, but other users have reported lots of different apps that may cause it. The source of this suggestion is from OnePlus forums.

But,

3 See Battery usage: failed, 'battery usage data not available'.

Why would battery usage data be 'not available'?

On my moto g6play, it won't show me battery usage data until the battery loses ~5%. If possible, fire up an app that you know (assume) works, run the battery down some, and then check the usage data.

-- SC Tom

Device: BLU Grand Energy Android 6.0 No cell plan, wifi only Problem: prolonged startup time; optimizing app 1 of 1. No recently added apps. Troubleshooting steps: started in safe mode; problem persisted. Attempted fully charge to try to see immediate/early battery usage to determine apps using battery since full charge but was unable, notified battery usage data not available. Performed network reset, no help. What other troubleshooting can I do to determine which app to R&R?

Android optimizes (tweaks) each app after an OS update. Go into Android's settings -> About -> Software Update, and check when the OS got updated. Maybe it was recent. If so, I'd load each app in the app drawer to make sure Android touched it to optimize it.

When an app is added to an Android device, its .apk (Application Package Kit) file gets added. Inside in an .odex (Optimized Dalvik EXecution) file that is supposed to save space (the executable image that gets loaded into memory when the app gets loaded and ran). The ODEX file are collections of parts of the app that is supposed to speed up booting; that is, the ODEX parts get preloaded.

To Android's ART (Android RunTime), a new profile-guided JIT (Just In Time) compiler got added to speed up app installs. Some apps can get opimized (pre-cached) in a few seconds.

https://source.android.com/devices/tech/dalvik/jit-compiler https://developer.android.com/about/versions/nougat/android-7.0

Android 7 also change it JRE (Java Runtime Environment) from using the defunct Apache Harmony to using OpenJDK. That meant the ART started using the profile-guided compilation scheme.

https://en.wikipedia.org/wiki/Android_Nougat

Platform

See the paragraph on how updating became parallelized in Android 7. Tis why Android 6, and earlier, were slow to optimize.

Did you ever allow the optimizing to finish in your Android 6 device? You didn't say. Takes a lot longer on Android 6, and earlier, like several minutes for a large app to optimize. Seconds for Android 7. Minutes for Android 6.

You are back on Android 6 (and won't have an upgrade path until and if your phone maker pushes an OS update, or you root the phone and update yourself), so you don't have the new and faster app updating and execution. Many apps are configured to load on start of the OS, like an e-mail program you want always backgrounded to check for new messages. Also, you may not have installed any more apps, but you likely allow them to automatically update. The optimizing happens when the app loads, and you have apps that are loading when Android starts.

Did you ever allow the optimizing to finish in your Android 6 device? You didn't say. Takes a lot longer on Android 6, and earlier, like several minutes for a large app to optimize. Seconds for Android 7. Minutes for Android 6.

I always let the optimizing finish; I don't even know how to stop/abort the process. It takes 3 min, then a few seconds to start the apps. But previously I didn't see any 3 min optimizing step.

-- Mike Easter

Device: BLU Grand Energy Android 6.0 No cell plan, wifi only Problem: prolonged startup time; optimizing app 1 of 1. No recently added apps. Troubleshooting steps: started in safe mode; problem persisted. Attempted fully charge to try to see immediate/early battery usage to determine apps using battery since full charge but was unable, notified battery usage data not available. Performed network reset, no help. What other troubleshooting can I do to determine which app to R&R?

Here's how to enable boot-time logging and find the errant app on an LG device

< https://www.reddit.com/r/lgg4/comments/8n7yg6/my_solution_how_to_find_culprit_app_for_stuck/>

Your homework is to find a replacement for the *

LGMENU*XXX# that works

on a BLU phone

adb? android studio? some other method of grabbing logcat?

Have fun ...

adb?

If adb (dunno about the need for root though), then this may help: o *How to take logs in Android* o Console-ramoops o logcat o dmesg

In addition, the XD-Developers recommend: o *Logcat Extreme*, by SCDevs

o *Logcat Reader*, by Darshan Parajuli

o *Logcat [NO ROOT]*, by Anton Tananaev

If you use any of those methods, please let us know how it went.

-- What matters on Usenet is the value added by the poster; not his nym.

Here's how to enable boot-time logging and find the errant app on an LG device < https://www.reddit.com/r/lgg4/comments/8n7yg6/my_solution_how_to_find_culprit_app_for_stuck/> Your homework is to find a replacement for the *

LGMENU*XXX# that works

on a BLU phone

I've found the 'secret codes' for the BLU Grand Energy:

https://www.androidprotips.com/secret-codes-blu-grand-energy/

It might be useful to enable this hidden menu and System UI Tuner if I knew what it does.

Aha! Here's a better page for secret codes, unlock and root.

https://mobilespecs.net/phone/BLU/BLU_Grand_Energy.html BLU Grand Energy - Specification, Features. - Specs | Reviews | Secret codes | Unlock | Root

-- Mike Easter

Your homework is to find a replacement for the *

LGMENU*XXX# that works

on a BLU phone adb?

Now I've enabled developer mode so as to turn on USB debugging on the BLU and usb connected it to the following desktop:

On a live Mint 20 I've installed the adb package which comes w/ several adb-related files and it has created an android dir in home. I've also dl/ed & extracted platform-tools-latest-linux.zip

But, I don't know (much about) what I'm doing w/ the adb. I've read its man adb and

https://www.xda-developers.com/install-adb-windows-macos-linux/ https://www.xda-developers.com/quickly-install-adb/ How to quickly install and use ADB

-- Mike Easter

I've also dl/ed & extracted platform-tools-latest-linux.zip I don't know (much about) what I'm doing w/ the adb.

***@mint:~/Downloads/platform-tools$ adb devices List of devices attached 1090021017023733 unauthorized

-- Mike Easter

$ adb devices List of devices attached 1090021017023733 unauthorized

Aha. Fixed that. Needed PTP mode for USB.

$ adb devices List of devices attached 1090021017023733 device

-- Mike Easter

$ adb devices List of devices attached 1090021017023733 device

I got a log of the bootup from adb logcat -d > optimize.txt

... but it is 735Kb too big for paste bin.

https://we.tl/t-69D0UU1rGl

(I've never used wetransfer.com before) - sez the shortened link is good for 1 week.

Long url https://wetransfer.com/downloads/280a44bd78882c98c6580d30add41b2220200724235405/6bc696

I'm working on interpreting it.

-- Mike Easter

This post might be inappropriate. Click to display it.

This post might be inappropriate. Click to display it.

I got a log of the bootup from adb logcat -d > optimize.txt

ok, so it seems to be crashing the optimizer, I think I'd first suspect Amazon, will it let you remove that app or has it been "thoughtfully provided" by BLU as a system app? If you want to keep it, maybe remove and re-install, so it gets a chance to ask your permission for all that shit?

I can't find anything in my list of apps named amazon or shop. There is an app in google play named amazon shopping, but it isn't installed.

-- Mike Easter

Now I've enabled developer mode so as to turn on USB debugging on the On a live Mint 20 I've installed the adb package

Sounds good.

Doing logging of something that happens during normal use of the phone is easy enough with logcat, but the optimisation only happens during (or on later android versions immediately after) boot

So you either need to find a way to turn logging on early, or capture the early logs ...

Loading...