How to save settings for developers on Xiaomi

Owners of Xiaomi, Redmi and POCO smartphones often face the need to activate hidden system functions. Developer mode is a powerful tool that allows you to manage debugging parameters over USB, change the speed of interface animations and adjust the operation of background processes. However, many users notice that after a device reboot or system update, all the changes made disappear without a trace, returning to factory values.

The problem lies in the aggressive battery optimization and memory management policies implemented by the MIUI or HyperOS shell. The system automatically kills processes or resets a configuration, considering it to be non-standard. To avoid constant manual return of parameters, you need to understand which points are responsible for maintaining the configuration and how to correctly fix them in the system.

In this guide, we will not only discuss standard activation methods, but also specific nuances that will help you keep your developer settings on Xiaomi stable. ADB-The impact of energy saving modes and other technical aspects that are rarely written in the usual manuals.

Activation and basic setting of the developer menu

The first step is always to turn on the mode itself. On Xiaomi devices, this process is standardized, but has its own peculiarities depending on the version of the shell. You need to go to the Settings menu β†’ About the phone and find the line with the version of MIUI. Quick press (7-10 times) on this line activates the hidden partition.

After the message β€œYou became a developer” appears in the settings menu, a new option will appear. β†’ Advanced settings β†’ For developers, this is where all the important switches are concentrated, and it's important to understand that just turning on the switches doesn't guarantee that they'll be saved after the reboot without doing anything else.

⚠️ Note: Changing the settings in the "Developers" section may lead to unstable system operation or reduced autonomy.

Immediately after activation, you should pay attention to the debugging state. If you plan to use your smartphone to work with your PC, make sure that the USB Debugging switch is activated. Without this item, most advanced control tools will not work.

β˜‘οΈ Developer's initial setup

Done: 0 / 1

The problem of resetting and the role of MIUI Optimization

One of the main reasons why Xiaomi developers are not set up is MIUI Optimization (or HyperOS Optimization), a mechanism designed to adapt third-party applications and system processes to the company’s standards, but often it forcibly resets user-specified settings.

To check if this feature is active, go to the developer menu and scroll to the bottom of the list. If you see Enable MIUI Optimization, try turning it off. The system will warn you about the reboot. Once you turn on the phone, your DPI settings, background process limits and animation options should stop resetting.

⚠️ Attention: Disabling optimization MIUI may change the appearance of some system applications or lead to incorrect display of the interface in older versions of the firmware.

It is worth noting that in recent versions of HyperOS, access to the optimization switch is often hidden, in which cases the system tightens control of changes, and the user has to look for workarounds or use ADB to fix parameters.

πŸ“Š Do you have a reset after resetting?
Yes, constantly resets: Sometimes it happens, but rarely: No, everything is saved: I did not use the developer mode

Saving settings via ADB and computer

For advanced users who need to capture complex parameters, using the Android debugging bridge (ADB) is the most reliable method, which allows you to directly interact with the database of system settings, bypassing standard interface constraints.

To get started, you'll need to connect your smartphone to your computer, pre-allowing debugging in the developer menu. Then, using the console or command line, you can type commands to change global parameters. For example, to change the density of the screen (DPI), you use the command:

adb shell wm density 400

The main advantage of ADB is that changes made through the command line often have higher priority than standard settings, and are less likely to be reset by the system when the configuration updates. However, root rights are sometimes required to permanently save (to keep the setup after the reset).

List of useful ADB teams for Xiaomi
adb shell settings put global animator_duration_scale 0.5 (Adb shell settings put global settings window_animation_scale 0.5 (window scale) adb shell settings put global transition_animation_scale 0.5 (scale of transitions)

Impact of energy saving modes on settings

Aggressive energy saving is the Achilles heel of many Xiaomi devices, and when you adjust the back-end limit or change the network’s behavior in developer mode, the system may see it as overconsumption.

To save the developer settings, you need to exclude system processes from battery optimization. Go to Settings β†’ Battery β†’ Energy Saving (or Apps β†’ Application settings β†’ Battery). Find system services related to the interface and network, and set Unlimited mode.

It’s also worth checking if Ultra-Energy Saving mode is activated, and in this mode, most developer functions are forcibly disabled to save power, and any attempts you make to change something will be futile before you leave this mode.

πŸ’‘

Use No Limits mode only for system processes that you actually modify, and installing this mode for all applications will dramatically reduce the autonomy of the smartphone.

Table of the main parameters and their influence

Understanding what each setting is responsible for will help you avoid errors. Below is a table with the most commonly used settings in the developer menu and their impact on the device.

ParameterFunctionRisk of dischargeRecommended value
Scale of animationSpeed of drawing transitionsLow.0.5x or Off
Background processesApplications' work limit in the backgroundHigh-pitchedStandard limit
USB debuggingAccess to the file system from a PCMedium.On (if necessary)
Type sizeMinimum width (DPI)Medium.360-420 dp

As you can see from the table, animation settings are most secure because they relate to visual display, and settings for memory and background tasks are the most tightly controlled by the system, as they directly affect autonomy and stability.

HyperOS and New Limitations

With the release of the HyperOS shell, Xiaomi has significantly redesigned the system architecture, many items that were previously easy to change are now either hidden or require confirmation through a Xiaomi Account.

New versions of the software have introduced a feature to protect against unauthorized changes, where if the detects system detects a sharp change in critical parameters, it can automatically roll them back the next time it restarts, which is done to improve the safety and stability of the ecosystem.

HyperOS users are advised to be especially careful with the items related to application permissions and access to hardware.In this shell, the developer settings are more closely integrated with security services, and their incorrect operation can lead to blocking some functions of the phone.

πŸ’‘

On the new HyperOS shells, standard methods of saving settings work worse, and it is recommended to minimize the number of variable parameters to the minimum necessary.

Why are the settings reset after the firmware update?
System Update (OTA) often replaces system configuration files, and if you make changes to files that are replaced when you update, they will be lost, and you can only save them through backup of ADB settings or root rights with the saved modified configurations.
Is it safe to keep USB debugging on all the time?
Keeping debugging on is not always a safety issue. If you connect your phone to a public charger or someone else's computer, an attacker can access your data.
How to return all the developer settings to factory?
The easiest way is to find the Reset button (or similar button) at the top of the developer menu. If you don't have one, you can just turn off the Developer Toggle at the top of the screen, which deactivates the menu and returns all settings to their original values.
Does the unlocked bootloader affect the preservation of settings?
Unlocked Bootloader gives you full access to the system, but it doesn't guarantee that you'll save the developer's settings, but it allows you to install customized receptacles and modules that can force you to lock the desired parameters at the kernel level.
Can I save my settings through the Mi Cloud?
The Mi Cloud service syncs contacts, photos and app lists, but typically doesn’t save deep system settings from the developer menu.