a90bfd8e-adea-4b85-a2fa-c04a4e9b1e99.jpg (178.64 KB, Downloads: 4)
2020-01-24 01:37:38 Upload
Hello MIUI Fan's!Probably each of you was faced with high battery consumption in the first 3-4 days after updating or flashing the device, the android system is the first in the list of consumption and has 30-40% of use! This guide will help to remove this problem.
It should be after flashing or installing updates on older versions of Android starting from 6 and below.
You have encountered such a system dialog as "Optimizing app xx from xx"
In Android 7.0, did they hide this from the user's eyes or delete it? Does this mean that the optimization has been removed? No, this is not such. This option was not lost, but simply postponed, and the postponement of this task causes the battery to run out. Do you think that optimization is happening in the background? The answer is not correct. It only starts under special conditions. Lack of this optimization will drain the battery. Optimization is not performed because we do not know how to fulfill the conditions necessary for its launch. The consequence of this is the accelerated discharge of the phone.
You can often watch how the Android system consumes energy more than other applications. This is the result of not allowing the system to optimize.
If in Android 6 and earlier optimization was forced, then starting with Android 7 and higher. A new option was added to skip this step and optimize applications on the fly (JIT, Just-In-Time) while using applications.
At the same time, the initial optimization has not been deleted and only starts if the following conditions are met:
If these conditions are met, optimization begins.
Why do we need this optimization?
Because application developers cannot do this for each set of hardware and each device is already. It compiles applications into the most efficient code for its processor. So just use your device and let it take care of the cache itself or help your device make full optimization with simpl command.
People who dirty flash a lot. You might randomly experience longer app launch times after flashing a ROM and the only apparent way to fix it was to do a clean flash. I experienced this a few times and decided to investigate and saw that it had something to do with how dex2oat works after you dirty flash (it refuses to optimise properly?).
Be that as it may, you have the option to force the optimization to run.
For users with root:
open a terminal emulator and execute (along with quotation marks, as this is part of the command):
su -c "cmd package bg-dexopt-job"
If you don’t have root, use ADB. Connect the phone to the device, make sure it is available (enable USB debugging and USB debugging secure settings). Open CMD ADB platform-tools
2020-01-24 01:56:36 UploadClick on the file to download the attachment
Run the following command
adb shell cmd package bg-dexopt-job
adb shell "cmd package bg-dexopt-job"
If you have 10 android you will see Success, if from 7 to 9 a new line for entering the command will simply appear!
The process can take from 20 minutes to 3 hours (on my MI 9t this operation take 40 minutes).
Disconnecting the device during optimization will interrupt the process, but will not harm the device. It is absolutely safe.
Users without root may find the error message
"user 2000 nor current process has Android.permission.Update_Device_Stats"
It’s not worth worrying, you can ignore it and run the command again.
Thanks to all!
Also Many Thanks to Admin!
Video explanation for RUSSIAN user.
[MIUI with Tom #3] How to set 6 toogle in status bar, and Desktop Grid in MIUI 11 China Without Root[MIUI with Tom #7] How to Open Any APP in Window with Game Mode in MIUI with ROOT!
In order to fulfill the basic functions of our service, the user hereby agrees to allow Xiaomi to collect, process and use personal information which shall include but not be limited to written threads, pictures, comments, replies in the Mi Community, and relevant data types listed in Xiaomi's Private Policy. By selecting "Agree", you agree to Xiaomi's Private Policy and Content Policy .