I am trying to disable the option to start ultra battery saver mode on Miui 11 without root acces. Is it possible to do this? I have tried to uninstall com.miui.securitycenter which helps up untill the first restart. Then it enters a bootloop and the phone needs to be wiped.
Alternatively, It would be helpful if I could make an app run permanently, even in Ultra Battery Saver Mode.
Without rooting the device , this is not possible, but you can ask user to ignore battery saver mode for you by leading user to setting like this:
also keep that in mind that if you use this code , you will have some hard time publishing your app in Google Play Store.