Why Developer Settings Are Resetting and How to Avoid It
Developer Options on Xiaomi, Redmi and POCO are powerful tools for fine-tuning, debugging and optimizing performance. However, many users face a problem: after a MIUI update, factory reset or even a conventional reboot, these parameters disappear. The reason lies in the Android architecture: the developer's settings are stored in a separate file /data/data/com.android.providers.settings/databases/settings.db, which is often cleared when system changes occur.
In this article, we will discuss 5 reliable ways to save developer settings on Xiaomi devices, including exporting through ADB, backing up MIUI, manual file backup and using third-party utilities. We will focus on the nuances for different versions of MIUI (from MIUI 12 to HyperOS) and models - from Redmi Note 10 to Xiaomi 14 flagships. You will learn how to avoid losing critical parameters such as OEM unlock, USB debugging or Background process limitation.
β οΈ Important: Some methods require an unlocked bootloader or root rights. If your device is warranty, check the risks in the "Precautions" sectionΒ».
Method 1: Exporting settings through ADB (without root)
The most versatile way is to use Android Debug Bridge (ADB), which works on all Xiaomi devices regardless of the MIUI version and does not require superuser rights. You will need a computer with ADB drivers installed and USB debugging enabled on your phone.
Instructions:
- Connect your smartphone to your PC and execute a command to check the connection: Adb devices Make sure the device appears in the list.
- Export the developer settings to the file dev_settings_backup.xml: adb pull /data/data/com.android.providers.settings/databases/settings.db./settings_backup.db adb shell "sqlite3 /data/data/com.android.providers.settings/databases/settings.db '.dump global'" > dev_settings_backup.sql
- Use the following: Adb push to recover dev_settings_backup.sql /sdcard/ adb shell "sqlite3 /data/data/com.android.providers.settings/databases/settings.db < /sdcard/dev_settings_backup.sql"
β οΈ Note: After recovery, you may need to restart. Some settings (e.g., Windows animation) will only be used after the system restarts.
Install ADB and Fastboot Tools on PC|Enable debugging on USB developer-setting|Connect your phone to your PC in file transfer mode|Check the connection with the team `adb devices`-->
Method 2: Backup with MIUI Backup
MIUI has a built-in backup tool, but by default it doesn't save the developer's settings. To include them in the backup, you need to modify the configuration file. This method works on MIUI 13/14 and HyperOS, but requires root or unlocked bootloader rights.
Steps:
- π± Open the Settings. β The phone. β Backup and create a regular backup.
- π§ with the help of Root Explorer or ADB edit the file /data/data/com.miui.backup/files/backup_list.xml, line:
<item name="developer_options" path="/data/data/com.android.providers.settings/databases/settings.db" />- π Reboot the device and recreate the backup β now it will include the developerβs settings.
π‘ Useful advice: If you donβt have root, you can use it. TWRP I want to edit a file:
- Install TWRP Recovery for your model.
- Download to TWRP and mount the /data partition.
- Edit it. backup_list.xml through ADB file manager in TWRP.
adb shell chmod 660 /data/data/com.android.providers.settings/databases/settings.dbMethod 3: Manual backup of settings files (with root)
For users with super-user rights, the most reliable way is to directly copy the settings files, which guarantees 100% security of settings, including hidden options that are not exported through ADB.
What files should be copied:
| File/Folder | Way | What it keeps. |
|---|---|---|
| settings.db | /data/data/com.android.providers.settings/databases/ | All global settings, including developer settings |
| secure.db | /data/data/com.android.providers.settings/databases/ | Secure settings (Wi-Fi, Bluetooth, etc.) |
| shared_prefs/ | /data/data/com.android.settings/ | User preferences of the settings interface |
| developer_options.xml | /data/system/users/0/ | Status of switches in the developer menu |
Backup instructions:
- Use Root Explorer (such as FX File Explorer or Solid Explorer) to access folders.
- Copy the specified files to SD-map.
- To restore the files, return them to their places and set the right rights:
chmod 660 /data/data/com.android.providers.settings/databases/settings.db
chown system:system /data/data/com.android.providers.settings/databases/settings.dbWhat if the settings are not applied after file recovery?
Method 4: Use of third-party utilities (without root)
If you donβt have root rights but you have an unlocked bootloader, you can use specialized utilities, such as Xiaomi ADB/Fastboot Tools or MIUI Backup Tool, which allows you to export the developer settings in a convenient format.
The best backup utilities:
- π οΈ Xiaomi ADB/Fastboot Tools β supports export/import settings through ADB, including developer settings. It runs on Windows, Linux and macOS.
- π¦ Swift Backup (requires) TWRP) β Creates full backups of applications and system data, including settings.
- π OAndBackupX β Open source backup software that supports saving Android settings without root (but with limitations).
Examples of Xiaomi ADB/Fastboot Tools:
- Download the utility from GitHub and unpack.
- Connect your phone in ADB mode.
- Select Backup β Developer Settings.
- After the export is complete, the file will be saved in the backup folder on the PC.
Manual export via ADB|Use of MIUI Backup|Swift Backup, Xiaomi ADB Tools |Shiftback with root|Not yet tried-->
Method 5: Cloud-based Save via Tasker (for Advanced)
Tasker or Automate can be used to automatically save developer settings to the cloud, a method that is suitable for those who frequently update firmware or experiment with custom ROMs.
The configuration algorithm in Tasker:
- Create a task with Run Shell action:
- Add the Upload File action to download the backup to Google Drive or Dropbox.
- Set the trigger on a schedule (for example, once a week) or when connecting to a charge.
β οΈ Note: When using Tasker, make sure that:
- The device has enough charge (minimum 30%).
- Saving to the cloud is enabled in Xiaomi account settings.
- Battery optimizations for Tasker are disabled in Settings β Apps β Permissions β Autostart.
Precautions and frequent errors
Saving developer settings is a process that requires caution, and errors can lead to data loss, a cyclical reboot, or even a device lockdown.
On devices with a blocked bootloader, file recovery `settings.db` through ADB It can cause all system settings to reset to factory settings. MIUI, Checking the integrity of system files.
Common Mistakes and How to Avoid Them:
- π Incorrect access rights β after file recovery, check the permissions with the ls command -l /data/data/com.android.providers.settings/databases/. They have to be rw-rw.---- (660).
- π Version incompatibility β do not restore backup settings.db with MIUI 13 on MIUI 14.Use SQLite Editor to manually transfer only the desired parameters.
- π« Ignoring backup β always backup current settings before experimenting. ADB:
adb backup -f settings_backup.ab -apk -obb -shared -all -system1. Export the developer settings through ADB.
2. Save the file `settings.db` to the external drive.
3. check the performance of the backup on another device (if possible).-->