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 ReportsIf 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 0Transcript of commands:
| Team team. | Action. |
|---|---|
| pm uninstall -k --user 0 com.miui.bugreport | Remove the report collection application for the current user (without deleting system files) |
| pm disable-user --user 0 com.miui.analytics | Disables the analytics service Xiaomi responsible for sending data |
| settings put global bugreport_in_power_menu 0 | Remove 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:
- Install a root-enabled file manager (such as Root Explorer or FX File Manager).
- 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:
- Boot in Recovery mode (turn off the phone, then press Power + Volume up).
- Select Advanced β File Manager.
- Go to /data/log/ and delete all files.
- Run Wipe β Dalvik/ART Cache to clean the cache of system applications.
Installation with Magisk Manager:
- Download the module in.zip format (for example, with XDA Developers).
- Open Magisk Manager and go to the Modules section.
- Click Install from Storage and select the downloaded file.
- 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_menuIf 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 update | System applications are restored when OTA-renewal | Re-execute ADB commands or use the Magisk module with survive OTA function |
| A notification appears "Reports collection is off" | The system warns of possible risks | Turn off notifications for com.miui.bugreport in the settings |
| The device does not pass SafetyNet | Magisk modules or changes to system files | Install Universal SafetyNet Fix and enable MagiskHide |
| Logs keep gathering despite shutdowns | MIUI Background Services Ignore Settings | Use 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.