Where is the build.prop file on Xiaomi smartphones: a complete guide to search and edit

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.prop

If the team returns a No such file or directory error, try an alternative path:

adb shell ls /system/system/build.prop
πŸ“Š What kind of firmware do you use on Xiaomi?
Stock MIUI
LineageOS (Pixel Experience)
Globally stable
Chinese development
I don't know.

2. 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.prop

To save the contents to a file on a PC:

adb shell cat /system/build.prop > build_prop_xiaomi.txt

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

  1. Open the file manager and give it root access (if requested).
  2. Go to the root directory (/) β†’ system.
  3. Find the build.prop file (or /system/system/build.prop for new firmware).
  4. Copy the file to a secure location (e.g., on the SD-map) before editing.

β˜‘οΈ Preparation for editing build.prop

Done: 0 / 5

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:

  1. Boot to TWRP (turn off phone β†’ pinch Power + Volume up).
  2. Go to Mount and mark System.
  3. Go back to the main menu and select Advanced β†’ File Manager.
  4. Find it. /system/build.prop, copy it to SD-map (press Copy).
  5. Edit the file on your PC (via Notepad++ or VS Code) and then return it back.
  6. Set rights 644 (in TWRP: highlight file β†’ Change Permissions).
  7. Reboot to the system.
What if the phone doesn’t boot after editing?
If you see a bootloop, boot to TWRP and restore the original build.prop from a backup. If you don't have a backup, download the stock firmware for your model and retrieve the original file from it through the archiver (it's in the system.img file).

Editing build.prop can both improve performance and disrupt system stability, and here are the most secure and proven edits for Xiaomi devices:

ParameterMeaningThe effectRisks.
ro.miui.ui.version.nameV14 (or other version)Deception of applications that check the version of MIUILow (may break the display in some applications)
debug.performance.tuning1Improving the smoothness of animationsMedium (possible overheating)
persist.sys.ui.hw1Enabling hardware acceleration of the interfaceHigh (may cause artifacts on screen)
ro.sf.lcd_density440 (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:

  1. Save the file in UTF-8 encoding (without BOM).
  2. Make sure there is an empty line at the end of the file.
  3. 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:

  1. Download to TWRP and restore the original file.
  2. 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 1080x2340

For 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.

Frequently Asked Questions (FAQ)

Can I edit build.prop without root?
No, you can't edit completely without root or TWRP. The most you can do is browse through ADB or apps like DevCheck. You need access to the system partition, which is written-protected by default, to make changes.
Where is build.prop on Xiaomi with Dynamic Partition?
On Dynamic Partition devices (e.g. Xiaomi 12S Ultra or Redmi K50 Pro), the file can be in the virtual partition. Use the command: adb shell find /system -name "build.prop" Most often the path will be /system/system/build.prop or /apex/com.android.art/etc/build.prop (for devices with ART APEX).
How to return the original build.prop if the phone is not turned on?
If you have TWRP: Boot to recovery. Connect your phone to your PC and copy the original file via adb pull /system/build.prop. Edit it on PC, then return it back: adb push.prop build /system/. If TWRP isn't, run the stock firmware through Fastboot: fastboot system.img flash system.
What parameters can be changed in build.prop without risk?
Safe to edit: Interface settings: ro.sf.lcd_density, debug.performance.tuning. Debugging settings: persist.adb.notify, ro.debuggable.Information lines: ro.product.model (to cheat applications). Dangerous to touch: Modem settings: ro.telephony, persist.radio. boot settings: ro.boot, ro.hardware. Security settings: ro.secure, ro.allow.mock.location.
Why did the mobile data disappear after the build.prop change?
This happens if you have edited the parameters associated with the modem (for example, ro.telephony.default_network or persist.radio.multisim.config. To restore the network: Return the original values of these lines. Reboot the phone. If the network does not appear, reset the network settings to Settings. β†’ SIM-maps and mobile networks β†’ Resetting network settings.