The build.prop file is one of the key Android system documents that stores firmware configurations, from device model names to performance settings. On Xiaomi smartphones, editing it may be necessary to change screen resolution, overclock the processor, disable unnecessary MIUI services, or even trick some applications (such as games or banking services).
In this article, weβll look at all the possible paths to build.prop on Xiaomi devices (including Redmi, POCO, and Black Shark), how to view it without superuser rights, and secure editing methods. Weβll focus on the differences between the official MIUI and custom firmware like LineageOS or Pixel Experience. If youβre planning to make changes, back up the original file first, as syntax errors can cause the system to freeze on the logo.
1. Standard build.prop location on Xiaomi
In 99% of cases, the build.prop file is located in one of two ways, depending on the type of firmware:
- π Official. MIUI (stock-fix): /system/build.prop
- π Custom firmware (AOSP, LineageOS and others.): /system/system/build.prop or /vendor/build.prop
On devices with a split structure (for example, Xiaomi 12T or POCO F5 on MIUI 14+), there may be an additional file /vendor/build.prop, which is responsible for the parameters of the hardware platform (modem, camera, sensors).
To make sure that the file is available, you can use the ADB command:
adb shell ls /system/build.propIf the team returns a No such file or directory error, try an alternative path:
adb shell ls /system/system/build.prop2. How to access build.prop without root rights
Without the superuser rights (root), you can only view the content of build.prop through ADB or specialized applications. Complete editing without root is impossible - the most that is available is reading individual parameters.
Method 1: Through ADB (without root)
Connect your smartphone to a PC with installed ADB-driver and perform:
adb shell cat /system/build.propTo save the contents to a file on a PC:
adb shell cat /system/build.prop > build_prop_xiaomi.txtMethod 2: Apps to view (without root)
- π± DevCheck β shows the main parameters from build.prop (model, version) MIUI, processor).
- π± CPU-Z β displays some of the system properties in the System section.
- π± BuildProp Editor β allows you to view the file, but you will need root editing.
π‘
If the adb shell command returns the permission denied error, try getting a temporary root first via adb root (only works on some debugging firmware).
3. Search build.prop on root-righted devices
If your Xiaomi has Magisk or another root manager installed, you can directly open the file through any root-enabled file manager (such as Root Explorer, Solid Explorer, or FX File Explorer).
Step-by-step:
- Open the file manager and give it root access (if requested).
- Go to the root directory (/) β system.
- Find the build.prop file (or /system/system/build.prop for new firmware).
- Copy the file to a secure location (e.g., on the SD-map) before editing.
βοΈ Preparation for editing build.prop
On some devices (such as Xiaomi 13 Ultra or Redmi Note 12 Pro+), the file can be protected from writing even from root.
- π§ Use the mount command -o rw,remount /system into ADB or Terminal Emulator.
- π§ Or, you can open the section through TWRP (guideline).
4. Edit build.prop via TWRP
TWRP (Team Win Recovery Project) is a custom recovery that allows you to mount system partitions for editing. This method is suitable if you do not have a permanent root, but you have an unlocked bootloader.
Instructions:
- Boot to TWRP (turn off phone β pinch Power + Volume up).
- Go to Mount and mark System.
- Go back to the main menu and select Advanced β File Manager.
- Find it. /system/build.prop, copy it to SD-map (press Copy).
- Edit the file on your PC (via Notepad++ or VS Code) and then return it back.
- Set rights 644 (in TWRP: highlight file β Change Permissions).
- Reboot to the system.
What if the phone doesnβt boot after editing?
5. Popular changes to build.prop for Xiaomi
Editing build.prop can both improve performance and disrupt system stability, and here are the most secure and proven edits for Xiaomi devices:
| Parameter | Meaning | The effect | Risks. |
|---|---|---|---|
| ro.miui.ui.version.name | V14 (or other version) | Deception of applications that check the version of MIUI | Low (may break the display in some applications) |
| debug.performance.tuning | 1 | Improving the smoothness of animations | Medium (possible overheating) |
| persist.sys.ui.hw | 1 | Enabling hardware acceleration of the interface | High (may cause artifacts on screen) |
| ro.sf.lcd_density | 440 (e.g.) | Change in the screen density (DPI) | Low (but the layout may break in applications) |
For the application of changes, it is necessary to:
- Save the file in UTF-8 encoding (without BOM).
- Make sure there is an empty line at the end of the file.
- Reset the device.
π‘
Changing the settings associated with the modem (for example, ro.telephony) can lead to loss of network.Always check the health of calls and mobile Internet after editing.
6. Mistakes when working with build.prop and how to avoid them
Even experienced users sometimes face problems after editing build.prop. Here are the most common errors and their solutions:
- β οΈ Syntactic errors: A missed semicolon (;) or extra character will cause a bootloop.Always check the file through the syntax validator.
- β οΈ Incorrect access rights: The file must have rw-r rights--r-- (If you install 777, the system can block the download.
- β οΈ Changing Critical Settings: Editing strings related to ro.product or ro.build could break Google Services.
β οΈ Note: On devices with Dynamic Partition (e.g. Xiaomi) 11T pro POCO X4 GT) Editing build.prop through standard methods can result in partition resets. In this case, use the Magisk Module to make changes.
If the phone stops loading after the edits:
- Download to TWRP and restore the original file.
- If TWRP is not available, run the firmware through the Mi Flash Tool (the instructions for your model are available on the official Xiaomi website).
7. Alternative methods of changing system parameters
If it is too risky to edit build.prop, consider the alternatives:
- π Magisk Module: Create a module with the right parameters (for example, to change the settings). DPI It's safer because the changes apply when you boot.
- π± Applications with root: BuildProp Editor or Prop Editor allow you to make edits with syntax check.
- π§ ADB-commands: Some parameters (e.g., wm density to change) DPI) It can be changed temporarily. ADB:
adb shell wm density 440 && adb shell wm size 1080x2340For MIUI 13/14 devices with Super Wallpaper, changing screen settings can lead to graphical glitches.
β οΈ Attention: Before the change ro.sf.lcd_density Turn off Super Wallpaper in the theme settings, otherwise the system may freeze when changing wallpaper.