[Tutorial] Battery drain & lag after OS update


Stelvio79

Members
Jan 2, 2021
28
15
After this command:
adb shell "cmd package bg-dexopt-job"
Your adb prompt will looks like in idle, but in a second plan, your device will start to rebuild the cache. After a 15 min with you device connected, the adb will show "success".

It looks nothing are happening, but the process is happening in second plan with no confirmation message.
then I hope I didn't do any damage by stopping it because it didn't seem to work. Thank you
 
Dec 3, 2020
844
182
After this command:
adb shell "cmd package bg-dexopt-job"
Your adb prompt will looks like in idle, but in a second plan, your device will start to rebuild the cache. After a 15 min with you device connected, the adb will show "success".

It looks nothing are happening, but the process is happening in second plan with no confirmation message.
Did you turn on the 2 adb debug options? (Adb debug + adb debug security settings)

(Edit: oops wrong reply.)
 
Last edited:

xNAPx

Members
May 31, 2021
174
40
When do we need to run this command? After specific conditions are met (for example you drain your battery till the 30sec timer, then you charge the full battery and then you run the command after discharging) or anytime ?
 
Dec 3, 2020
844
182
When do we need to run this command? After specific conditions are met (for example you drain your battery till the 30sec timer, then you charge the full battery and then you run the command after discharging) or anytime ?
The command ~is supposed to force the optimization to happen before all the criterias it needs are met. ~Just have enough battery or plug in a charger and done
 
  • Like
Reactions: xNAPx

_polimorph_

Members
Jul 15, 2012
29
15
Isn't this function already included in the xiaomi.eu rom when activating app preloading option?
 

Attachments

  • Screenshot_2021-07-02-14-03-23-672_com.android.settings.jpg
    Screenshot_2021-07-02-14-03-23-672_com.android.settings.jpg
    92.9 KB · Views: 137