urbandroid-team / dont-kill-my-app

Android vendors, don't kill my app!
Creative Commons Attribution 4.0 International
1.2k stars 2.06k forks source link

Feedback for Xiaomi - disable MIUI optimisations #396

Open jddcef opened 2 years ago

jddcef commented 2 years ago

I find my launcher and my apps are not being killed anymore since I turned OFF MIUI Optimizations in the advanced Developers Options in the Settings.

petrnalevka commented 2 years ago

Hello @jddcef this is very interesting. Did not know there is such developer option, would you please share some screenshots? Is enabling developer options same on Xiaomi as on stock Android devices?

jddcef commented 2 years ago

Yeah it's been around for many years, but I didn't expect it would it make it better, because of the name. But it makes sense now that it is trying to over optimise the system by closing too many things. Yes It's the standard way of clicking on Build setting in About a few times

petrnalevka commented 2 years ago

Would you please have a screenshot of the option in the developer settings? We will include it in the guides. Many thanks!

jddcef commented 2 years ago

IMG_20220110_095735 IMG_20220110_095825 IMG_20220110_095900 IMG_20220110_095956

petrnalevka commented 2 years ago

Big thanks, very much appreciated!

rl885 commented 2 years ago

Hello, would you be willing to send me the screenshots without the markings? I will add them to the guides. Thank you.

jddcef commented 2 years ago

Screenshot_2022-01-12-10-26-05-984_com android settings Screenshot_2022-01-12-10-26-19-053_com android settings Screenshot_2022-01-19-08-06-45-519_com android settings

jddcef commented 2 years ago

So, I must say, turning off the Optimizations causes: The inter app memory to be better, e.g. I can have more apps open. BUT, it causes the memory of a single app to be too little, i.e. inside the app I can't switch between tabs without a reload of the tab for example. Also, accessing file permissions was a problem.

If I turn the optimisation on, then the inter app lifetime isn't good, but the currently running in app memory is normal. And file access issues went away too.

So there are tradeoffs.

I turned mine back on now. so turning it off and on again seem to have found a better middle ground on the system somehow. My launcher is kept better in memory now after all that.

janosroden commented 2 years ago

The option is present in MIUI 11.0.3 (Redmi Note 5).

https://user-images.githubusercontent.com/6108742/150110126-941bc8b4-57d6-44dd-b6f8-1ad3df54921f.mp4

rl885 commented 2 years ago

Hello, I have added the video as a gif - thank you for sharing it!

herrbrixter commented 2 years ago

Turning it off breaks some functionalities. It can't upload files. I opened my Gmail app and wanted to attach a photo as an attachment. I can browse the photos and select it but it never got attached.

jddcef commented 2 years ago

Turning it off breaks some functionalities. It can't upload files. I opened my Gmail app and wanted to attach a photo as an attachment. I can browse the photos and select it but it never got attached.

Yes, it does mess up with uploads and file permissions somehow. I had good results by turning it off and then putting it back on. It seemed to have shaken loose some settings that improved my overall memory management. But leaving it off is a bit too extreme and messes with the in app memory management while improving interapp performance. Dunno which is worse, but both are irriting. let's hope they add something good in future in terms of an update to fix memory management and not be so aggressive.

hawtdayum commented 2 years ago

"Turn on MIUI optimizations" is gone in MIUI 13 (android 12)