• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!

[GUIDE] Disable WiFi logging on MIUI ROM

Search This thread

prathameshsd

Senior Member
Feb 7, 2013
319
1,225
You must have noticed WLAN_LOGS folder in your internal storage with some files inside it taking up considerable amount of space. These files re-apppear even after deleting them. WLAN_LOGS : https://imgur.com/a/pq32N

After further digging I found out that MIUI devs have enabled (or should I say forgotten to disable) WiFi logging on the final build of MIUI ROM. WiFi logs are dumped as soon as you connect to any WiFi. This issue is present on official MIUI8, MIUI9 ROM and MIUI based custom ROMs such as Xiaomi.EU, MIUI Pro etc. as well.

How to disable WiFi log spam (needs root access) : Root here
  • Install any file manager app that supports root access such as Solid Explorer, MiXplorer
  • Open the app and grant root permissions
  • Go to the root folder > data > misc > wifi > cnss.diag.conf
  • Open it with the text editor and change the values as under
    Code:
    LOG_PATH_FLAG = 0
    MAX_LOG_FILE_SIZE = 1
    MAX_ARCHIVES = 1
    LOG_STORAGE_PATH =
  • Save the file and reboot your phone. WiFi logging will be disabled permanently.
 
Last edited:

dawabz94

Senior Member
Sep 24, 2010
522
104
France
Hi all,

Just sharing my solution, I wanted to avoid rooting
So I deleted the folder wan_logs and created an empty file in internal root folder with the same name
So the system finds itself unable to create the folder and consequently can't create files in there
Seems to do the job
 

paradise220

Senior Member
Aug 15, 2012
230
32
I am also using this trick in my max 2 since 5 months.just make a file through es file explorer in the root directory with name wlan_logs .
 

jututt

Senior Member
Sep 28, 2014
96
47
On my Mi9 running MIUI 11 .conf file is located at /data/vendor/wifi and log files are at /data/vendor/wlan_logs
 
Last edited:

Top Liked Posts

  • There are no posts matching your filters.
  • 37
    You must have noticed WLAN_LOGS folder in your internal storage with some files inside it taking up considerable amount of space. These files re-apppear even after deleting them. WLAN_LOGS : https://imgur.com/a/pq32N

    After further digging I found out that MIUI devs have enabled (or should I say forgotten to disable) WiFi logging on the final build of MIUI ROM. WiFi logs are dumped as soon as you connect to any WiFi. This issue is present on official MIUI8, MIUI9 ROM and MIUI based custom ROMs such as Xiaomi.EU, MIUI Pro etc. as well.

    How to disable WiFi log spam (needs root access) : Root here
    • Install any file manager app that supports root access such as Solid Explorer, MiXplorer
    • Open the app and grant root permissions
    • Go to the root folder > data > misc > wifi > cnss.diag.conf
    • Open it with the text editor and change the values as under
      Code:
      LOG_PATH_FLAG = 0
      MAX_LOG_FILE_SIZE = 1
      MAX_ARCHIVES = 1
      LOG_STORAGE_PATH =
    • Save the file and reboot your phone. WiFi logging will be disabled permanently.
    3
    Hi all,

    Just sharing my solution, I wanted to avoid rooting
    So I deleted the folder wan_logs and created an empty file in internal root folder with the same name
    So the system finds itself unable to create the folder and consequently can't create files in there
    Seems to do the job
    2
    it's disabled now on xiaomi.eu 7.10.19 dev ROM.