[GUIDE] Disable WiFi logging on MIUI ROM

Search This thread

prathameshsd

Senior Member
Feb 7, 2013
318
1,232
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
 

Adi!@#

Senior Member
Oct 23, 2015
495
72
New Delhi
Location

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

Where did you find that folder ? Please shre the location
 

sirarisma

Senior Member
Oct 25, 2013
121
10
Old DCIM trick xD
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
232
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 .
 

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.