MIUI 10.4 9.6.5


Do you like this MIUI version?


  • Total voters
    346
Status
Not open for further replies.

Lermite

Members
Apr 3, 2019
69
20
What is the benefit of Miui optimalisation enabled for the user?
I probably don't know all of its effects, but one of them is it to enable the "Power saving" setting of each app.
If it's set to "MIUI battery power saving", this power saving is applied and hibernate the app when the screen is off or the app isn't used any more.

Disabling "MIUI optimisations" overrides these settings: all the apps get "No restriction".
It could be usefull because this "Power saving" setting is bugged with some apps. Some of them get automatically "MIUI battery power saving" back after each reboot despite them were set to "No restriction".

Now, without the ability to disable "MIUI optimisations", we (at least I) have to deal with this forced hibernation.
 
  • Like
Reactions: fijasko and Rubiks

Trần Anh

Members
Aug 6, 2014
191
40
I probably don't know all of its effects, but one of them is it to enable the "Power saving" setting of each app.
If it's set to "MIUI battery power saving", this power saving is applied and hibernate the app when the screen is off or the app isn't used any more.

Disabling "MIUI optimisations" overrides these settings: all the apps get "No restriction".
It could be usefull because this "Power saving" setting is bugged with some apps. Some of them get automatically "MIUI battery power saving" back after each reboot despite them were set to "No restriction".

Now, without the ability to disable "MIUI optimisations", we (at least I) have to deal with this forced hibernation.
For showing back this option, do the following. I'm not sure if this option disabled or just showing up
- Connect device to computer with adb and USB debug enabled
- adb shell -> enter
- setprop persist.sys.miui_optimization false -> enter
Do with your own risk :D
 

Lermite

Members
Apr 3, 2019
69
20
For showing back this option, do the following. I'm not sure if this option disabled or just showing up
- Connect device to computer with adb and USB debug enabled
- adb shell -> enter
- setprop persist.sys.miui_optimization false -> enter
Do with your own risk :D
Thank you very much for this awesome trick!
Unfortunately, any attempts to alter this setting fail on my Whyred:

Code:
C:\adb>adb devices
List of devices attached
49e220cc        device

C:\adb>adb shell
whyred:/ $ setprop persist.sys.miui_optimization false
setprop: failed to set property 'persist.sys.miui_optimization' to 'false'
1|whyred:/ $
I've tried it after I disabled my firewall, connected to my MI account and enabled everything related to the USB in the Developper options.
I have no clue why this command fails.

Anyway, I wonder which is the real value of this setting because I remember enabling it before it withdraws from the Developper options but adb pretends its actual value is false:

Code:
127|whyred:/ $ getprop persist.sys.miui_optimization
false
 

vcdwelt

Members
Apr 14, 2019
57
20
@almacarbon95
Already reported several times. Not a problem from .eu Rom. Maybe fixed in next Release, depending on Device. You should always notice which device you're using.
 

CommanderSix

Members
Jun 11, 2019
4
5
Moved my Mi 9 from Chinese ROM to this one last night. My camera app insists I should put in the SD card before it gets to work.

What did I do wrong?
All manuals said to wipe /data when flashing new ROM so I did. But I didn't wipe anything else. All manuals also said "DO NOT WIPE PERSIST!!!111one" and there was no /persist so I didn't wipe anything else but /data.

Any help appreciated! :)
 

Rubiks

Members
Apr 22, 2017
40
20
For showing back this option, do the following. I'm not sure if this option disabled or just showing up
- Connect device to computer with adb and USB debug enabled
- adb shell -> enter
- setprop persist.sys.miui_optimization false -> enter
Do with your own risk :D
In which version did Miui optimization disappeared from develloper options?
 

vcdwelt

Members
Apr 14, 2019
57
20
Moved my Mi 9 from Chinese ROM to this one last night. My camera app insists I should put in the SD card before it gets to work.

What did I do wrong?
All manuals said to wipe /data when flashing new ROM so I did. But I didn't wipe anything else. All manuals also said "DO NOT WIPE PERSIST!!!111one" and there was no /persist so I didn't wipe anything else but /data.

Any help appreciated! :)
Not really sure it makes a difference, but in tutorial it is written you should Format, not Wipe the Data Partition.
  • FORMAT /data partition (NEVER wipe System or Persist!)
Out of my experience, it is never bad to clean dalvik/cache :)
 

Trần Anh

Members
Aug 6, 2014
191
40
Thank you very much for this awesome trick!
Unfortunately, any attempts to alter this setting fail on my Whyred:

Code:
C:\adb>adb devices
List of devices attached
49e220cc        device

C:\adb>adb shell
whyred:/ $ setprop persist.sys.miui_optimization false
setprop: failed to set property 'persist.sys.miui_optimization' to 'false'
1|whyred:/ $
I've tried it after I disabled my firewall, connected to my MI account and enabled everything related to the USB in the Developper options.
I have no clue why this command fails.

Anyway, I wonder which is the real value of this setting because I remember enabling it before it withdraws from the Developper options but adb pretends its actual value is false:

Code:
127|whyred:/ $ getprop persist.sys.miui_optimization
false
My case, when it set to true, this option hide, false show
Try adb shell, then su to grand super su permission to shell. My device already have su permission. Try toggle true, false
 
  • Like
Reactions: Lermite

Karpfenhai

Members
Jul 17, 2016
242
52
Thank you very much for this awesome trick!
Unfortunately, any attempts to alter this setting fail on my Whyred:

Code:
C:\adb>adb devices
List of devices attached
49e220cc device

C:\adb>adb shell
whyred:/ $ setprop persist.sys.miui_optimization false
setprop: failed to set property 'persist.sys.miui_optimization' to 'false'
1|whyred:/ $
I've tried it after I disabled my firewall, connected to my MI account and enabled everything related to the USB in the Developper options.
I have no clue why this command fails.

Anyway, I wonder which is the real value of this setting because I remember enabling it before it withdraws from the Developper options but adb pretends its actual value is false:

Code:
127|whyred:/ $ getprop persist.sys.miui_optimization
false
I assume you need to be root for that, try su - first.

Sent from my MI 8 Explorer Edition
 

Lermite

Members
Apr 3, 2019
69
20
My case, when it set to true, this option hide, false show
Try adb shell, then su to grand super su permission to shell. My device already have su permission. Try toggle true, false
Thanks! It worked.

I might check through
getprop persist.sys.miui_optimization
that its value is assigned for real, whether it's true or false.
 

vcdwelt

Members
Apr 14, 2019
57
20
merhaba bende mi 9se son güncellemeyi nasıl yüklerim 10.3.3.0 sürümü bana link atıp yardımcı olabilecek varmı otomatik yüklenmiyor
You should try to ask in english, this is an international Forum...
Also you're asking in the wrong Thread. This is about the Beta (Dev) Updates...
 

Igor Eisberg

Patch/Mod Developer
Staff member
Oct 6, 2016
1,973
297
What is the benefit of Miui optimalisation enabled for the user?
System behavior will be as designed by Xiaomi, for starters. It's not a matter of "benefit". It's a matter of: don't make the system behave in ways it was not designed to behave (or else, don't report bugs at all).

This option is enabled by default.
If you disabled it with an older rom, it remains displayed even in the latest rom, but as soon you enable it, it disappears forever.

It's a trap to whoever needs this settings to be disabled.
The "'explanation" of such a behavior is that disabling this setting can give an unexpected behavior and give many false bugs reports so xiaomi.eu decided to force it enabled.

Let's hope they don't end up handling every settings the same way only to get less bug reports.
Based on your last sentence's attitude, I think you misunderstood my explanation. That setting was never meant for the end-user. Whatever you can "do" after disabling it, is not part of the official MIUI design. It was meant for system developers, as it overrides certain behaviors that, by default, should behave differently (as with Ambient display availability, as a small example).
So, if users fail to understand that disabling this can have consequences which we either don't have control over, or we have no intention to touch (since whatever happens after you disable it is not part of our features), then we will keep this setting off-limits from our ROM.
We could do the same for the whole Developer options panel, if we ever deemed so necessary. Everything in that menu is experimental and unsupported.

Now, without the ability to disable "MIUI optimisations", we (at least I) have to deal with this forced hibernation.
And if you have any issues with that, point them out directly to Xiaomi, this is not our design choice and nothing we can change.
 

CommanderSix

Members
Jun 11, 2019
4
5
Not really sure it makes a difference, but in tutorial it is written you should Format, not Wipe the Data Partition.
  • FORMAT /data partition (NEVER wipe System or Persist!)
Out of my experience, it is never bad to clean dalvik/cache :)
Thank you vcdwelt! This actually makes much more sense than what I've been doing :( First time, so I didn't know what's safe to format or wipe. I'll try again this evening. Thanks for the help!
 

abhinavjha

Members
Jun 11, 2019
2
3
Not really sure it makes a difference, but in tutorial it is written you should Format, not Wipe the Data Partition.
  • FORMAT /data partition (NEVER wipe System or Persist!)
Out of my experience, it is never bad to clean dalvik/cache :)
Thanks a lot, amigo!

Sent from my Mi MIX 2 using Tapatalk
 

Lermite

Members
Apr 3, 2019
69
20
...We could do the same for the whole Developer options panel, if we ever deemed so necessary. Everything in that menu is experimental and unsupported.
I agree that many settings if the Developper section are only usefull to developpers.
But several settings are simple, stable and useful enough to everybody that they should remain available to anybody, and perhaps moved to another sections.

According to my own personnal point of view as a barely power user:

Disable the lockscreen: I live alone and the lockscreen is nothing but a burden to me. I only need to switch the screen on or off, without any other action that pressing the power button or opening the magnetic holster to use my phone. This settings should be moved to the Lockscreen section.

Extended power menu: it's much more convenient to boot to Fastboot or Recovery without having to shut down the phone then pressing two buttons. It should be moved but I'm not sure where, perhaps Display or Accessibility.

Fictive location app
: I use Automate to "fake" my real location when I'm home, when my phone can't receive any GPS signal. It avoid me to have to got out reach time an app require my location.
It should be moved in Confidentiality.

Animation scales: I prefer a fast interface than a "nice" one. That's why I'm used to disabled the useless animations that only slow down the use of the phone.

DPI: Everybody doesn't need a huge display because of view issues. According to my own taste and requirements, 392 isn't enough: everything is too big, even with the minimal value of every size settings. There's no point to have a full HD screen if it only displays huge texts.
That's why I'm used to 460 instead. This one should be moved to Display.

Allows all the apps to write on the external storage: I have no reason to prevent any app to use my SD card but somebody else may need to limit the I/O to the internal storage.
This setting looks easy enough to understand to be accessible to everybody, not only developers.

Do not keep the activities: I'd like this setting to work as suggested, by really closing the apps that I quit, instead of letting them running in background and relying on the hibernating feature to avoid them to use too much the battery.
 
  • Like
Reactions: qbert

Igor Eisberg

Patch/Mod Developer
Staff member
Oct 6, 2016
1,973
297
I agree that many settings if the Developper section are only usefull to developpers.
But several settings are simple, stable and useful enough to everybody that they should remain available to anybody, and perhaps moved to another sections.

According to my own personnal point of view as a barely power user:

Disable the lockscreen: I live alone and the lockscreen is nothing but a burden to me. I only need to switch the screen on or off, without any other action that pressing the power button or opening the magnetic holster to use my phone. This settings should be moved to the Lockscreen section.

Extended power menu: it's much more convenient to boot to Fastboot or Recovery without having to shut down the phone then pressing two buttons. It should be moved but I'm not sure where, perhaps Display or Accessibility.

Fictive location app: I use Automate to "fake" my real location when I'm home, when my phone can't receive any GPS signal. It avoid me to have to got out reach time an app require my location.
It should be moved in Confidentiality.

Animation scales: I prefer a fast interface than a "nice" one. That's why I'm used to disabled the useless animations that only slow down the use of the phone.

DPI: Everybody doesn't need a huge display because of view issues. According to my own taste and requirements, 392 isn't enough: everything is too big, even with the minimal value of every size settings. There's no point to have a full HD screen if it only displays huge texts.
That's why I'm used to 460 instead. This one should be moved to Display.

Allows all the apps to write on the external storage: I have no reason to prevent any app to use my SD card but somebody else may need to limit the I/O to the internal storage.
This setting looks easy enough to understand to be accessible to everybody, not only developers.

Do not keep the activities: I'd like this setting to work as suggested, by really closing the apps that I quit, instead of letting them running in background and relying on the hibernating feature to avoid them to use too much the battery.
Hence we keep these settings available. However, that doesn't mean we provide any support for whatever they do. We don't control Android to that extent.
Note: the "Extended power menu" option was added by us, and we placed it in Developer options because it's meant for power users who need easy access to TWRP or fastboot. Also not meant for casual users.
 
  • Like
Reactions: qbert

molki

Members
Mar 14, 2016
17
15
Installed it in my Mi8 dipper. Worked great until I changed border from Germany to Austria. With Roaming = On my Phone gets unusable. All Apps are freezing, System ui crashes permanently. Using it in flight Mode or WLAN is still okay, only when in Roaming. Tried different SIM cards and carriers, No difference.

Any ideas?
Hello,
Same on mi mi 9 SE when using a German card in Luxembourg and also a Luxembourgish card in Germany.

Thanks molki
 
  • Like
Reactions: XiaomiSGW

Silvio1953

Members
Mar 12, 2019
5
5
Hello,
Same on mi mi 9 SE when using a German card in Luxembourg and also a Luxembourgish card in Germany.

Thanks molki
I had a similar problem with my Italian sim card when I travel in Romania or Bulgaria, phone become unusable. I resolved definitely changing the settings of rooming in sim menu. Let unlimited rooming for all applications and reboot. In my case that totally resolved the freezing.
 
  • Like
Reactions: molki

RBSmi6x

Members
Mar 16, 2019
4
3
Xiaomi Mi9 with encryption removed:
Dirty flash. A strange thing happens. After installation system boots correctly and all is fine.
After installation magisk module for root through twrp and rebooting system starts and after 1-2 seconds when pin screen is displayed phone reebots to twrp again and so on. Never happened to me before. Wiping Dalvik cache does not help at all.
TWRP wzsx150 3.3.0-9.0-b17
Magisk 19.3
The same is happening to me. mi A2 / 6x
 
Status
Not open for further replies.