Gathering a Problem Log on Xiaomi: How to Disable the Feature and Why It Matters

The problem log collection feature on Xiaomi devices (including Redmi, POCO, and Black Shark) automatically captures system errors, app crashes, and critical events. This data is sent to MIUI Analytics to improve firmware, but many users prefer to disable this option due to privacy, traffic savings, or performance improvements. In this article, we will discuss all ways to deactivate log collection, from standard settings to hidden commands for power users.

It's important to understand that logging works even if you've turned off Diagnostics in your settings. The system continues to record logs in the background, taking up space in memory and consuming processor resources. We've tested methods on MIUI 12.5, 13 and 14 firmware (including HyperOS), and also took into account the features of the Chinese (CN) and global (Global/EU) versions. If you are experiencing a slow phone or suspect a data leak, this instruction will help regain control of the device.

What is a problem log collection and why disable it

The problem reporting or error logs function in MIUI is designed to automatically record:

  • πŸ”„ Critical system errors (e.g., falling) system_server or kernel failure)
  • πŸ“± Applications crash terminations (including stop errors with the message "Application stopped")
  • πŸ”‹ Problems with the battery (sharp charge drawdown, overheating)
  • πŸ“Ά Network failure (loss of connection) Wi-Fi/4G, mistake SIM-map)

By default, this data is stored in an encrypted form in the folder `/data/log/` and periodically sent to Xiaomi servers (if the option Automatic Reporting is enabled).

  • πŸ”’ Privacy: Logs may contain metadata about your activity (app usage time, geolocation when crashes)
  • πŸ“‰ Traffic savings: Reporting costs up to 50–100MB per month
  • ⚑ Performance: Constant log writing loads flash memory (especially on Redmi budget models) 9A/10A)
  • πŸ› οΈ Manual Diagnostics: Experienced users prefer to collect logs selectively through ADB or MatLog

⚠️ Warning: Disabling log collection may make it harder to diagnose problems when contacting Xiaomi Service Center.If the phone is warranty, save copies of logs before deactivating the function.

Method 1: Disconnect via standard MIUI settings

The easiest method is to use built-in firmware options, which is suitable for most users and does not require root rights or a PC connection. MIUI 12.5-14 and HyperOS:

Open the Settings app

Go to About Phone β†’ Reviews and Diagnostics (or Additional β†’ Privacy β†’ Diagnostics on New Versions)

Turn off sliders: Automatic reporting and problem log collection

Confirm the action in the dialog window

Restart the device (required!)|false-->

On some models (e.g. POCO F3 or Xiaomi 12T) the path may be different:

Settings β†’ Memory β†’ Cleaning β†’ Settings (cogs) β†’ Error Reports

If your firmware doesn’t have a problem log collection item, try an alternative path:

Settings β†’ Applications β†’ Application Management β†’ Three dots (menu) β†’ Special access β†’ Error Reports

⚠️ Attention: On Chinese firmware (CN ROM) The option can be hidden, and it requires a region change to Global or to display it. EEA via Mi Account.

MIUI Global

MIUI China (CN)

MIUI Europe (EEA)

HyperOS

Castom firmware (Pixel Experience, LineageOS, etc.)-->

Method 2: Disconnect via ADB (without root)

If standard settings don’t work, use Android Debug Bridge (ADB), which works on all Xiaomi devices regardless of the firmware version, but requires a computer connection.

  • πŸ–₯️ PC with installed Xiaomi drivers and ADB Tools
  • πŸ“± Included Debugging by USB on the phone (Settings) β†’ The phone. β†’ Version. MIUI β€” Press 7 times, then return to Additional β†’ For developers)
  • πŸ”Œ Cable USB Type-C (preferably original)

Execute the following commands in the terminal (command line):

adb shell


pm uninstall -k --user 0 com.miui.bugreport




pm disable-user --user 0 com.miui.analytics




settings put global bugreport_in_power_menu 0

Transcript of commands:

Team team.Action.
pm uninstall -k --user 0 com.miui.bugreportRemove the report collection application for the current user (without deleting system files)
pm disable-user --user 0 com.miui.analyticsDisables the analytics service Xiaomi responsible for sending data
settings put global bugreport_in_power_menu 0Remove the "Error Report" item from the power-off menu

Once you've done the commands, restart the device. To get it back, use:

pm install-existing --user 0 com.miui.bugreport


pm enable --user 0 com.miui.analytics

πŸ’‘

If ADB issues a device unauthorized error, check the phone's pop-up requesting debugging permission, sometimes hidden behind other notifications.

Method 3: Manual log removal (for power users)

Even after log collection is turned off, old logs continue to take up space in memory. To delete them, you will need access to root or use TWRP.

Instructions for root users:

  1. Install a root-enabled file manager (such as Root Explorer or FX File Manager).
  2. Go to /data/log/ and delete all files with extensions:.log (main logs).tar.gz (archived reports).trace (kernel tracks)

/data/anr/

/data/tombstones/

For TWRP devices:

  1. Boot in Recovery mode (turn off the phone, then press Power + Volume up).
  2. Select Advanced β†’ File Manager.
  3. Go to /data/log/ and delete all files.
  4. Run Wipe β†’ Dalvik/ART Cache to clean the cache of system applications.

Installation with Magisk Manager:

  1. Download the module in.zip format (for example, with XDA Developers).
  2. Open Magisk Manager and go to the Modules section.
  3. Click Install from Storage and select the downloaded file.
  4. Reset the device.

To check the operability of the module, use the command:

su -c "pm list packages | grep -i miui.analytics"

If the output is empty, the module works correctly.

πŸ’‘

Magisk modules are the most reliable way to disable log collection, but they require an unlocked bootloader and may conflict with some banking applications (due to SafetyNet).

How to check if the collection of journals is actually turned off

To make sure that the log collection functions are deactivated, perform the following checks:

1. Verification through Settings:

  • Open Settings β†’ About the phone β†’ Reviews and diagnostics.
  • Make sure all sliders are turned off (grey).
  • Click History of Reports – the list should be empty.

Verification through ADB:

adb shell dumpsys package com.miui.bugreport


adb shell settings get global bugreport_in_power_menu

If the first command has a disabled line in its response and the second command returns 0, the collection is disabled.

Traffic monitoring:

  • Install an application to analyze network activity (such as NetGuard or PCAPdroid).
  • Check if the device sends data to the domains: data.mistat.xiaomi.com sdkconfig.ad.xiaomi.com api.brs.intl.miui.com

File system verification:

With Root Explorer, make sure that /data/log/ folder is empty or not updated after the reboot.

Frequent problems and their solutions

When you turn off log collection, users experience common errors, and let's look at the most common ones and how to fix them:

Problem.Reason.Decision
Settings are reset after the MIUI updateSystem applications are restored when OTA-renewalRe-execute ADB commands or use the Magisk module with survive OTA function
A notification appears "Reports collection is off"The system warns of possible risksTurn off notifications for com.miui.bugreport in the settings
The device does not pass SafetyNetMagisk modules or changes to system filesInstall Universal SafetyNet Fix and enable MagiskHide
Logs keep gathering despite shutdownsMIUI Background Services Ignore SettingsUse ADB to force stop: adb shell am force-stop com.miui.analytics

If none of these methods worked, consider switching to custom firmware (like Pixel Experience or LineageOS) that doesn’t have Xiaomi Analytics services. However, note that this will require unlocking the bootloader and may take you out of warranty.

❓ Can I turn off the collection of journals without root?
Yes, use standard settings (Method 1) or ADB-Root is only required for manual log removal or Magisk module installation.
❓ Will the shutdown affect the phone?
No, the phone will work smoothly, and the only consequence is that when it crashes, it won't be able to automatically send reports to Xiaomi, but that's not critical to the user.
❓ How to disable the collection of logs on POCO F5 hyperOS?
On HyperOS, the path has changed: Settings β†’ The phone. β†’ User feedback β†’ Turn off Automatic Reporting. Use full shutdown ADB-Teams from Method 2.
❓ Can I return the collection of logs after disconnection?
Yes, turn on the sliders in the settings or perform the reverse ADB-commands: pm enable --user 0 com.miui.analytics settings put global bugreport_in_power_menu 1
❓ Why Xiaomi is collecting this data?
Officially, it is for firmware and bug fixing, but many users suspect that the data is being used for targeted advertising and behavior analytics (especially in Chinese firmware).