How to Save Developer Settings on Xiaomi: A Complete Guide with 5 Working Methods

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:

  1. Connect your smartphone to your PC and execute a command to check the connection: Adb devices Make sure the device appears in the list.
  2. 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
  3. 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:

  1. Install TWRP Recovery for your model.
  2. Download to TWRP and mount the /data partition.
  3. Edit it. backup_list.xml through ADB file manager in TWRP.
adb shell chmod 660 /data/data/com.android.providers.settings/databases/settings.db

Method 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/FolderWayWhat 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:

  1. Use Root Explorer (such as FX File Explorer or Solid Explorer) to access folders.
  2. Copy the specified files to SD-map.
  3. 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.db

What if the settings are not applied after file recovery?
If the settings are not displayed in the developer menu, follow the following steps: 1. Reboot the device. 2. Turn on and off the developer mode (click 7 times on the build number in About Phone). 3. Check the integrity of the file `settings.db` with the command: sqlite3 /data/data/com.android.providers.settings/databases/settings.db "SELECT * FROM WHERE global name LIKE '%debug%'; If the output from the file is damaged, and the file needs to be restored.

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:

  1. Download the utility from GitHub and unpack.
  2. Connect your phone in ADB mode.
  3. Select Backup β†’ Developer Settings.
  4. 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:

  1. Create a task with Run Shell action:
  2. Add the Upload File action to download the backup to Google Drive or Dropbox.
  3. 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 -system

1. 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).-->

FAQ: Answers to Frequent Questions

Can I save the developer’s settings without a computer?
Yes, but with limitations. Without a PC, you can: Use MIUI Backup (method 2) if you have root, install Termux and execute ADB commands directly on your phone, use Swift Backup (requires TWRP), but a full backup of settings.db without root is still necessary.
Why are some settings not applied after the backup recovery?
This is due to: Caching - clear the cache of the Settings application (com.android.settings). Version incompatibility - parameters from the MIUI 13 may not work in MIUI 14. Protecting the system β€” MIUI You may drop some flags (for example, adb_install_enabled) Solution: check logcat: adb logcat | grep -i "settings"
How to transfer the developer settings to another Xiaomi smartphone?
To transfer to another device: Export settings.db from the original phone. With SQLite Editor, remove unnecessary settings from the dump (for example, associated with the use of the SQLite Editor). IMEI or MAC-Import the filtered data to the new device. ⚠️ Note: Transfer of certain parameters (e.g, bluetooth_address) It can cause conflicts!
Does this work on HyperOS?
HyperOS uses the same storage structure as MIUI, So all of the methods that we've described are applicable, but HyperOS has enhanced file protection to access the system. /data Magisk may be required with SQLite for HyperOS. Some developer settings have been renamed (e.g, force_dark β†’ override_force_dark).
Can the backup of the developer settings be automated?
Yes, with the help of: Tasker + AutoTools (for automatic export on schedule). Termux + cron (for execution) ADB-MacroDroid (easier to set up but with limited capabilities) Example of a script for Termux: #!/bin/bash adb backup -f /sdcard/dev_settings_backup.ab -shared -system com.android.providers.settings gdrive upload /sdcard/dev_settings_backup.ab