[GUIDE] MIUI Battery & Multi-tasking Fix v4.1 (Updated)

Search This thread

prathameshsd

Senior Member
Feb 7, 2013
318
1,232
Redmi Note 3 (SD / MTK) Battery & Multi-Tasking Fix v4.1
For MIUI7 & MIUI8
Mediatek & Snapdragon Variants
Global/China & Beta/Stable ROMs​

MIUI is a forked version of Android with plenty of additional features & tweaks not found in stock AOSP ROM. MIUI is very smooth & has a great battery life on the Redmi Note 3. The powerful Snapdragon 650 with its excellent single core performance coupled with dual channel LPDDR3 RAM & eMMC 5.1 flash storage results in blazing fast 1st time app opening speeds.

MIUI by default is very aggressive at killing background apps in the running in the memory, as a result it is unable to keep more than 3-4 apps in the memory while multi-tasking or after waking up the device. Default settings are aimed to keep as much free RAM as possible thats where the problem lies. It kills the apps running in the background to keep most of its RAM free. Apps get killed & have to be reloaded again from the flash storage into the memory, this takes a lot of CPU, I/O cycles & makes the end user experience less enjoyable. Below settings might make your multitasking a bit better at the cost of less free RAM, but that shouldn't matter as RAM is meant to be used not kept free. Always remember "Free RAM is Wasted RAM.

Usage Access Settings
• Settings App > Additional Settings > Privacy > Apps With Usage Access > More > Show System
- Turn off everything except Google Play Services and Play Store

Battery Settings
• Settings App > Battery & Performance > Manage Apps Battery Usage > Power Saving Modes
- Off: All background data & location access of running apps will be enabled, less battery life
- On: Default Setting, more battery life
• Settings App > Battery & Performance > Manage Apps Battery Usage > Choose apps
- From there you can configure the background data & location services for each app.
• Settings App > Additional Settings > Battery & Performance > System Animations
- Hide System Animations: Speeds up device's performance

Memory Settings
To enable Developer Options : Settings App > About Phone > MIUI Version > Keep on tapping till it is enabled.
• Settings App > Additional Settings > Developer Options
- Window Animation Scale: 0.5x or Off
- Transition Animation Scale: 0.5x or Off
- Animator Animation Scale: 0.5x or Off
- Don't Keep Activities : Disabled
- Background Process Limit : Standard Limit
- Memory Optimization : Off
- Show All ANRs : Disabled
- Force-Closed Apps : Disabled
- Turn On MIUI Optimization : Disabled

Security App Settings
• Security App > Settings > Cleaner
- Remind To Clean: Disabled
- Scan App Memory: Disabled
- Update Automatically: Disabled
• Security App > Settings > Blocklist > Disable
• Security App > Settings > Battery Usage
- Turn Off Mobile Data: Never
- Clear Cache: Never
• Security App > Permissions > Autostart
- Disable unnecessary apps, they wont be launched after a reboot
- Keep important apps enabled such as messaging, email apps

Lock Apps In Memory
- You can lock your desired / most frequently used apps in the memory.
- Open your app, let it get fully launched, open the recent apps menu.
- Swipe down the app icon or recent app screen to reveal a lock icon on top left corner.
- Tap on it, this locks the app into the memory & it wont get force killed in the background.
- To unlock the app repeat the same process and tap it again to unlock it from memory.

Important
- After doing the above mentioned changes, restart your device.
- You might have to re-apply these changes after every MIUI OTA update.
- These settings have hardly any effect on the battery life.
- I am getting more or less the same battery backup after using these settings.

Wiki : What does each and every option do?
Memory Optimization : This option sets the swap file for multi-tasking. Size varies according to the device and RAM configuration.
- High: 767MB to 1GB
- Middle: 767MB to 1GB
- Low: Swap file disabled
- Off: Swap file disabled
Show All ANRs : This option enables MIUI to show an obtrusive dialogue box after an app fails to stop responding . Setting this off doesnt show the pop-up frequently.
Force-Closed Apps : This option enables MIUI to show an obtrusive dialogue box after an app force-closes unexpectedly. Setting this off doesnt show the message. It enables after every reboot.
Turn On MIUI Optimization : This option enables a plethora of MIUI based settings & optimizations as per the guidelines set by the MIUI developers. It helps to load the app and the app data in parallel reducing load times and ensuring snappier user experience. This setting can sometimes cause a variety of issues on non-MIUI based apps such as Google Apps & Apps from Google Playstore. Its better to disable if you rely on Google Playstore for apps & services or use Global Stable or Global Beta MIUI ROMs

With the MIUI Optimization Enabled, some users reported the following issues
- Cannot set third-party launcher like Nova, Apex or Google Now launcher.
- Wallpaper cannot be set using in-built options via custom launchers.
- Occasional lags, stutters or freezes while scrolling web-pages & long lists.
- Custom apps set as default restore to default MIUI apps on reboot. (Only on MIUI China ROMs)
- Cannot set accessibility services on reboot.
- Background apps cannot sync data.
- Music players stop playing after sometime.
- UI Animations are not synced properly.

• After turning off MIUI optimization
- Above issues may get solved.
- Settings > Data Usage > Graph changes to AOSP style.
- Settings > Battery & Performance > Battery Use > Graph changes to AOSP style.
- Settings > Installed Apps > All > Documents > It will not be disabled after every reboot.
- Settings > Additional Settings > Buttons > Settings may get reset.
- No OTA update notifications. Enable it to receive the OTA updates.
 
Last edited:

gordito_gr

Senior Member
Nov 7, 2010
597
122
Settings App > Additional Settings > Developer Options > Turn On MIUI Optimization : Disabled

I would love to know what this option does.

I disabled and i notice that the device is a little smoother. I have one very big folder with all the useless apps, scrolling was always stuttering in there.
Now its smooth.

EDIT

My device is the simple redmi 3, but i still would like to know what is this MIUI optimization.
 
  • Like
Reactions: jothiprasath

soulz69

Member
Jan 24, 2014
15
2
Settings App > Additional Settings > Developer Options > Memory Optimization : Enabled

only got off,low,middle,high. no enabled. so which one better?
 
  • Like
Reactions: jothiprasath

prathameshsd

Senior Member
Feb 7, 2013
318
1,232
I would love to know what this option does.

I disabled and i notice that the device is a little smoother. I have one very big folder with all the useless apps, scrolling was always stuttering in there.
Now its smooth.

EDIT

My device is the simple redmi 3, but i still would like to know what is this MIUI optimization.

It sychronizes the UI thread with the animation time, so by keeping it disabled the clock timer doesnt have to wait for the animation to start/stop. The CPU effortlessly renders the animations without waiting for the MIUI framework to sychronize the animations.
 

NightPhoenix

New member
Apr 17, 2015
1
0
Still doesn't work for me. It keeps closing my apps,sometimes even when i'm still using them. It closes my apps even when I lock them by swiping down.The ram management is just too aggressive.
 

MasterUK

Senior Member
Oct 30, 2015
115
20
same to my with spotify

Hi there.... I have this problem when I play music with SPOTIFY in background. (redmi note 3 pro 16GB - global stable MIUI 7.3.2)

The music stop playing. I can see the app get killed by MIUI. This happen even if the app is locked and is in background. This problem doesn't happen with google play music. When I turn on the screen I can see that is not image and song name just like this
when I turn on the screen this is like this imgur image [o9nTtWD]
Already tried all this recommendation without success.
thanks

EDITED: Now with last correction spotify runs OK, Thanks
 
Last edited:
  • Like
Reactions: jothiprasath

vkass

Senior Member
Jan 8, 2011
604
196
OnePlus 6
Donwload kernel auditor, go to "Low memory Killer" set to Medium or Aggressive if you have lag (you shouldn't), now the phone can keep around 10 apps in memory.
 
  • Like
Reactions: jothiprasath

alonewolf990

Member
Dec 15, 2015
5
0
Hi bro please help me fix MiuiSystemUI.apk ..I am decompile success ..Recompile is error "key:code="xxx"

™=--StariusX--=™
 

MasterUK

Senior Member
Oct 30, 2015
115
20
May I know what did you on the 'last correction? I am having problem with spotify (and some radio apps also) on my RN3 Pro with 2GB RAM. Thanks.
This was the last correction

"Settings App > Additional Settings > Developer Options > Memory Optimization disabled"

Because the original post said another different thing. Also remember keep spotify lock on memory
Open spotify -> press home button -> press menu button -> pull spotify DOWN
 

Top Liked Posts

  • There are no posts matching your filters.
  • 96
    Redmi Note 3 (SD / MTK) Battery & Multi-Tasking Fix v4.1
    For MIUI7 & MIUI8
    Mediatek & Snapdragon Variants
    Global/China & Beta/Stable ROMs​

    MIUI is a forked version of Android with plenty of additional features & tweaks not found in stock AOSP ROM. MIUI is very smooth & has a great battery life on the Redmi Note 3. The powerful Snapdragon 650 with its excellent single core performance coupled with dual channel LPDDR3 RAM & eMMC 5.1 flash storage results in blazing fast 1st time app opening speeds.

    MIUI by default is very aggressive at killing background apps in the running in the memory, as a result it is unable to keep more than 3-4 apps in the memory while multi-tasking or after waking up the device. Default settings are aimed to keep as much free RAM as possible thats where the problem lies. It kills the apps running in the background to keep most of its RAM free. Apps get killed & have to be reloaded again from the flash storage into the memory, this takes a lot of CPU, I/O cycles & makes the end user experience less enjoyable. Below settings might make your multitasking a bit better at the cost of less free RAM, but that shouldn't matter as RAM is meant to be used not kept free. Always remember "Free RAM is Wasted RAM.

    Usage Access Settings
    • Settings App > Additional Settings > Privacy > Apps With Usage Access > More > Show System
    - Turn off everything except Google Play Services and Play Store

    Battery Settings
    • Settings App > Battery & Performance > Manage Apps Battery Usage > Power Saving Modes
    - Off: All background data & location access of running apps will be enabled, less battery life
    - On: Default Setting, more battery life
    • Settings App > Battery & Performance > Manage Apps Battery Usage > Choose apps
    - From there you can configure the background data & location services for each app.
    • Settings App > Additional Settings > Battery & Performance > System Animations
    - Hide System Animations: Speeds up device's performance

    Memory Settings
    To enable Developer Options : Settings App > About Phone > MIUI Version > Keep on tapping till it is enabled.
    • Settings App > Additional Settings > Developer Options
    - Window Animation Scale: 0.5x or Off
    - Transition Animation Scale: 0.5x or Off
    - Animator Animation Scale: 0.5x or Off
    - Don't Keep Activities : Disabled
    - Background Process Limit : Standard Limit
    - Memory Optimization : Off
    - Show All ANRs : Disabled
    - Force-Closed Apps : Disabled
    - Turn On MIUI Optimization : Disabled

    Security App Settings
    • Security App > Settings > Cleaner
    - Remind To Clean: Disabled
    - Scan App Memory: Disabled
    - Update Automatically: Disabled
    • Security App > Settings > Blocklist > Disable
    • Security App > Settings > Battery Usage
    - Turn Off Mobile Data: Never
    - Clear Cache: Never
    • Security App > Permissions > Autostart
    - Disable unnecessary apps, they wont be launched after a reboot
    - Keep important apps enabled such as messaging, email apps

    Lock Apps In Memory
    - You can lock your desired / most frequently used apps in the memory.
    - Open your app, let it get fully launched, open the recent apps menu.
    - Swipe down the app icon or recent app screen to reveal a lock icon on top left corner.
    - Tap on it, this locks the app into the memory & it wont get force killed in the background.
    - To unlock the app repeat the same process and tap it again to unlock it from memory.

    Important
    - After doing the above mentioned changes, restart your device.
    - You might have to re-apply these changes after every MIUI OTA update.
    - These settings have hardly any effect on the battery life.
    - I am getting more or less the same battery backup after using these settings.

    Wiki : What does each and every option do?
    Memory Optimization : This option sets the swap file for multi-tasking. Size varies according to the device and RAM configuration.
    - High: 767MB to 1GB
    - Middle: 767MB to 1GB
    - Low: Swap file disabled
    - Off: Swap file disabled
    Show All ANRs : This option enables MIUI to show an obtrusive dialogue box after an app fails to stop responding . Setting this off doesnt show the pop-up frequently.
    Force-Closed Apps : This option enables MIUI to show an obtrusive dialogue box after an app force-closes unexpectedly. Setting this off doesnt show the message. It enables after every reboot.
    Turn On MIUI Optimization : This option enables a plethora of MIUI based settings & optimizations as per the guidelines set by the MIUI developers. It helps to load the app and the app data in parallel reducing load times and ensuring snappier user experience. This setting can sometimes cause a variety of issues on non-MIUI based apps such as Google Apps & Apps from Google Playstore. Its better to disable if you rely on Google Playstore for apps & services or use Global Stable or Global Beta MIUI ROMs

    With the MIUI Optimization Enabled, some users reported the following issues
    - Cannot set third-party launcher like Nova, Apex or Google Now launcher.
    - Wallpaper cannot be set using in-built options via custom launchers.
    - Occasional lags, stutters or freezes while scrolling web-pages & long lists.
    - Custom apps set as default restore to default MIUI apps on reboot. (Only on MIUI China ROMs)
    - Cannot set accessibility services on reboot.
    - Background apps cannot sync data.
    - Music players stop playing after sometime.
    - UI Animations are not synced properly.

    • After turning off MIUI optimization
    - Above issues may get solved.
    - Settings > Data Usage > Graph changes to AOSP style.
    - Settings > Battery & Performance > Battery Use > Graph changes to AOSP style.
    - Settings > Installed Apps > All > Documents > It will not be disabled after every reboot.
    - Settings > Additional Settings > Buttons > Settings may get reset.
    - No OTA update notifications. Enable it to receive the OTA updates.
    8
    I would love to know what this option does.

    I disabled and i notice that the device is a little smoother. I have one very big folder with all the useless apps, scrolling was always stuttering in there.
    Now its smooth.

    EDIT

    My device is the simple redmi 3, but i still would like to know what is this MIUI optimization.

    It sychronizes the UI thread with the animation time, so by keeping it disabled the clock timer doesnt have to wait for the animation to start/stop. The CPU effortlessly renders the animations without waiting for the MIUI framework to sychronize the animations.
    5
    Default Settings on MIUI v8.5.1 (in case someone wants to revert):
    Usage Access Settings
    • Settings App > Additional Settings > Privacy > Apps With Usage Access > More > Show System
    - Turn off everything except Google Play Services and Play Store

    • Feedback
    • msa
    • Security
    • Google Play Store
    • Google Play services

    Battery Settings
    • Settings App > Battery & Performance > Manage Apps Battery Usage > Power Saving Modes
    - Off: All background data & location access of running apps will be enabled, less battery life
    - On: Default Setting, more battery life
    • Settings App > Battery & Performance > Manage Apps Battery Usage > Choose apps
    - From there you can configure the background data & location services for each app.
    • Settings App > Additional Settings > Battery & Performance > System Animations
    - Hide System Animations: Speeds up device's performance

    • On
    • Empty
    • Show system animations

    Memory Settings
    To enable Developer Options : Settings App > About Phone > MIUI Version > Keep on tapping till it is enabled.
    • Settings App > Additional Settings > Developer Options
    - Window Animation Scale: 0.5x or Off
    - Transition Animation Scale: 0.5x or Off
    - Animator Animation Scale: 0.5x or Off
    - Don't Keep Activities : Disabled
    - Background Process Limit : Standard Limit
    - Memory Optimization : Off
    - Show All ANRs : Disabled
    - Force-Closed Apps : Disabled
    - Turn On MIUI Optimization : Disabled

    • 1x
    • 1x
    • 1x
    • Disabled
    • Standard limit
    • Middle
    • Disabled
    • Disabled
    • Enabled

    Security App Settings
    • Security App > Settings > Cleaner
    - Remind To Clean: Disabled
    - Scan App Memory: Disabled
    - Update Automatically: Disabled
    • Security App > Settings > Blocklist > Disable
    • Security App > Settings > Battery Usage
    - Turn Off Mobile Data: Never
    - Clear Cache: Never
    • Security App > Permissions > Autostart
    - Disable unnecessary apps, they wont be launched after a reboot
    - Keep important apps enabled such as messaging, email apps

    • Enabled
    • Enabled
    • Enabled
    • Enabled
    • Never
    • Never
    • Custom
    3
    Thread Updated With In-Depth Explanation
    3