The build.prop file is one of the key system configuration files in Android that defines device parameters, from model and firmware version to hardware specifications. On Xiaomi smartphones (including the Redmi, POCO and Mi series), editing it can open access to hidden functions, improve performance or even fool applications that check compatibility. However, improper changes can lead to complete device failure, a โbrickโ (turning into a โbrickโ) or loss of warranty.
Many users want to modify build.prop to, for example, access features not available in their region or cheat games required by a particular device model. But before you start editing, it is important to understand that Xiaomi actively blocks such changes through MIUI protection mechanisms, as well as through system integrity verification with updates. In this article, we will discuss all working methods (including circumvention of restrictions), risks, and legal alternatives that will give a similar result without interfering with system files.
What is build.prop and why change it to Xiaomi?
The build.prop file is located in the root directory of the system (/system/build.prop) and contains pairs of key=The value that Android reads when it downloads, like ro.product.model.=M2101K7AG Specifies the device model (Redmi Note) 10), a ro.build.version.release=12 โ And it's an Android version. And by changing these parameters, you can do it:
- ๐ Unlock hidden functions MIUI (For example, activate camera modes that are not available in your area).
- ๐ฎ Cheat apps that test the device model (relevant for games like Genshin Impact or PUBG Mobile).
- โก Improve performance by changing Dalvik parameters VM or GPU-rendering.
- ๐ Change the firmware region (e.g. from Global to China to access Chinese features).
However, Xiaomi has tightened its system integrity controls in recent MIUI versions (starting with MIUI 12.5), and a change to build.prop can result in:
- โ Poose. OTA-Updates (the system will no longer offer updates over the air").
- โ Google services failures (e.g. Google Pay will stop working).
- โ Loader unit (on some models after editing the device will refuse to boot).
Before you go ahead, ask yourself: do you really need to edit build.prop, or can you achieve the goal in other ways? For example, to unlock the camera features, you often need to install Google Camera (GCam) with the right config, and to change the firmware region โ firmware through Fastboot.
Preparation: What to do before editing
If you do decide to change build.prop, preparation is 90% of the success, and neglecting these steps is almost guaranteed to lead to problems.
- Unlock the bootloader. On Xiaomi, this is done through the official Mi Unlock Tool. Without unlocking, you won't be able to get root or flash a modified boot.img.
- Install custom recovery (such as TWRP) to back up the system and recover in case of a failure.
- Make a full backup via TWRP or OrangeFox. Save copies of the system, boot and data partitions to an external drive.
- Check the version. MIUI. Nana MIUI 13/14 Android 12/13 Editing methods may be different from older versions.
Pay particular attention to firmware versions. For example, on Xiaomi. 12T (diting) with Android 13, the build.prop file can be protected with additional checks, and POCO F3 (Alioth) โ no. Please specify your model in the forums. XDA Developers or 4PDA.
โ ๏ธ Note: On Dynamic Partition devices (all Android 10 models)+) Change build.prop may result in the inability to update MIUI Updater. Only a complete flashing through Fastboot will help restore the working capacity.
Also prepare the tools:
- ๐ฑ ADB and Fastboot (install via Android Studio or Minimal) ADB).
- ๐ง Text editor with support for Unix format (for example, Notepad)++ or VS Code).
- ๐ Magisk (to obtain root and mask changes).
โ๏ธ Preparation for editing build.prop
How to change build.prop on Xiaomi
There are three main methods of editing build.prop on Xiaomi, each of which is suitable for different scenarios. The choice depends on your model, the version of MIUI and the purpose of the changes.
| Method | Need root? | Difficulty | Risk of "brick" | Suitable for |
|---|---|---|---|---|
| Editing through TWRP | โ No. | Medium | Low. | MIUI 11โ12.5, Android 9โ11 |
| Change to ADB with root | โ Yes. | Tall. | Medium. | Any version, but requires Magisk |
| Firmware of modified boot.img | โ No. | Very high. | High-pitched | Devices with a locked system |
Letโs look at each method in more detail.
Method 1: Editing via TWRP (without root)
This is the easiest way, but it only works on older versions of MIUI (up to MIUI 12.5).If you have a new firmware, the system can be mounted in read-only (ro) mode and the changes will not persist.
Instructions:
- Download to TWRP (hold Power + Volume Up when enabled).
- Go to Mount โ System and make sure the partition is mounted to write (rw).
- Connect the device to your PC and copy /system/build.prop to your computer.
- Open the file in a text editor (e.g. Notepad++) and make changes. Example: # Change the device model (e.g. Pixel 6) ro.product.model=Pixel 6 ro.product.brand=google ro.product.manufacturer=Google
- Save the file in Unix (LF) format, not Windows (CRLF).
- Return the file back to /system/ via TWRP File Manager or ADB: adb push build.prop /system/ adb shell chmod 644 /system/build.prop
- Reset the device.
โ ๏ธ Attention: On Xiaomi 11/12/13 Android 12/13 This method doesn't work because of dm-verity protection. Trying to change build.prop will result in a bootloop).
Method 2: Change through ADB with root (with Magisk)
A more reliable way, but one that requires root rights through Magisk, is suitable for newer devices that are write-proof.
Instructions:
- Install Magisk and get root (via boot.img patch or Magisk-in-Magisk module).
- Connect the device to your PC and start ADB: adb shell su mount -o rw, remount /system
- Copy build.prop on PC, edit and return back: adb pull /system/build.prop Edit adb push build.prop /system/adb shell chmod 644 /system/build.prop
- Reset the device.
To mask changes from apps (such as Google SafetyNet), use the MagiskHide Props Config module:
- Install the module via Magisk.
- Launch Terminal and execute: su props
- Select the Edit device fingerprint option and specify the model you want to emulate (e.g. Pixel 6).
๐ก
If Google services have stopped working after the changes, clear the data of the Google Play Services and Google Play Store applications in the settings.
Method 3: Firmware modified boot.img (for experienced)
This method is suitable for devices where the system is fully protected (for example, Xiaomi 13 Ultra), which changes not the build.prop itself, but the parameters that the system reads when it boots.
Instructions:
- Download boot.img for your firmware (can be extracted from the official Fastboot ROM).
- Unpack boot.img with AIK (Android Image Kitchen).
- Edit the default.prop file in the decompressed data (it overrides some build.prop settings).
- Gather it. boot.img Back and run through Fastboot: Fastboot Flash boot patched_boot.img fastboot reboot
โ ๏ธ Attention: Incorrectly collected boot.img You can check the hash of the file before you run it, and compare it to the original.
What parameters can be changed (and which cannot be changed)
Not all lines in build.prop are safe to edit, some are critical to boot, others are simply ignored by MIUI.
- ๐ฑ Model and brand of the device: ro.product.model=... ro.product.brand=... ro.product.manufacturer=... Used to trick apps (for example, to have Netflix show videos in the app) HD).
- ๐ Region and language: ro.product.locale=... persist.sys.locale=... Can help include hidden languages or regional functions.
- โก Performance: debug.performance.tuning=1 windowsmgr.max_events_per_sec=150 Accelerates animation and responsiveness of the interface.
- ๐ก Network parameters: ro.telephony.default_network=22 persist.radio.multisim.config=DSDs can improve the performance of two SIM-map.
What can not be changed (high risk of failure):
- โ ro.build.fingerprint โ the change will cause a failure of Google services.
- โ ro.boot.* โ bootloader parameters, the change will cause bootloop.
- โ persist.sys.usb.config โ can break USB-connection.
- โ ro.sf.lcd_density โ change DPI better do it through ADB (wm density).
Before editing, always check the relevance of the settings for your version of MIUI. For example, on MIUI 14, many older tweaks (debug.egl.hw=1) no longer work.
Example of working tweaks for performance on MIUI 13
What to do if the device does not work after the changes
If after editing build.prop Xiaomi stopped downloading or errors occurred, act on the algorithm:
- Bootloop: Boot in TWRP and restore the backup system. If there is no backup, copy the original build.prop from your model's Fastboot ROM.
- Google Services Are Not Working: Clear the Google Play Services and Google Play Store data. Install the MagiskHide Props Config module and reset the device fingerprint.
- No network or SIM-map not defined: Check the settings ro.telephony.* in build.prop. Reset the network settings in Settings โ SIM-maps and mobile networks โ Resetting settings.
The device does not switch on at all:
- Sweep the original boot.img through Fastboot.
- If it doesnโt work, run the full firmware through the Mi Flash Tool.
โ ๏ธ Attention: On devices with AB-partitions (e.g. Xiaomi) 12 Pro instead boot.img may be used boot_a and boot_b. Sweat both of them:
fastboot flash boot_a boot.img
fastboot flash boot_b boot.imgAlternatives to editing build.prop: how to achieve the goal without risks
In most cases, the goals that users want to change build.prop can be achieved without tampering with system files.
- ๐ Unlocking Hidden Functions MIUI: Use it. MIUI Hidden Settings (app to enable hidden options). Install Google Camera with support for your model (e.g., Google Camera, BSG GCam for Redmi Note 10 Pro).
- ๐ฎ App fraud (e.g. games): Use MagiskHide Props Config to change your device fingerprint without editing build.prop. Install the AppOps module to block app checks on your device.
- โก Improved performance: Activate Force GPU Rendering in Settings โ The phone. โ Version. MIUI (Tap 7 times according to the version, then to the developer โ Hardware acceleration: Use Greenify to optimize background processes.
- ๐ Change the firmware region: Apply Global or China ROM using the Mi Flash Tool (official method). MIUI bootloader for downloading firmware from other regions.