[solved] "internal Storage Running Out" Notification After Clean Flash

Discussion in 'Xiaomi Redmi Note 4 / 4X / GLOBAL' started by CosmicDan, Oct 4, 2016.

Tags:
  1. Getting a constant nag notification "Internal Storage Running Out" only in Xiaomi.eu firmware after CLEAN flash. My settings clearly shows internal storage has ~10GB free space, but lots of things just refuse to work e.g. Play Store downloads because it thinks the device is full.

    Here is how I installed the firmware:

    1) Unlocked Bootloader
    2) Flashed TWRP
    3) Noticed that /data would not mount, so did "fastboot format userdata"
    4) Installed latest Redmi Note 4 weekly firmware
    5) Went through setup wizard all OK

    I tried flashing China Developer ROM with MiFlash *and* SP Flash Tool and repeating the above steps to no avail. I also tried doing "Format Data" option in TWRP instead of the fastboot method. Nothing works.

    I also tried to fastboot flash the stock recovery, then do a Factory Reset via the firmware, but still it's broken.

    Seems to be a ROM bug, since it does not happen with official China nor Global firmware. But why has it not been reported yet? What is special about my device?

    :(
     
  2. #2CosmicDan,Oct 4, 2016
    Last edited: Oct 4, 2016
    From logcat, this seems to be related:


    10-04 15:09:04.088 1165 1180 D SettingsInterface: from settings cache , name = sys_storage_threshold_percentage , value = null

    10-04 15:09:04.088 1165 1180 D SettingsInterface: from settings cache , name = sys_storage_threshold_max_bytes , value = null

    ...those values should not be null. I will try to manually insert these values into the settings.db table and see what happens.

    EDIT: Injecting them worked, it reads the new default values, but it didn't solve the original problem afterall.


    Anyway, here's a dump of df command (the Settings > Storage also reports correct values).

    Code:
    Filesystem  Size  Used  Free  Blksize
    /dev  855.9M  128.0K  855.8M  4096
    /var  855.9M  0.0K  855.9M  4096
    /sys/fs/cgroup  855.9M  0.0K  855.9M  4096
    /sys/fs/cgroup/memory: Permission denied
    /mnt  855.9M  0.0K  855.9M  4096
    /sys/fs/cgroup  855.9M  0.0K  855.9M  4096
    /sys/fs/cgroup/memory: Permission denied
    /system  2.9G  1.5G  1.4G  4096
    /data  10.2G  266.7M  9.9G  4096
    /cache  418.4M  440.0K  418.0M  4096
    /protect_f  3.9M  68.0K  3.8M  4096
    /protect_s  9.2M  100.0K  9.1M  4096
    /nvdata  27.5M  5.7M  21.8M  4096
    /nvcfg  3.9M  80.0K  3.8M  4096
    /cust  501.7M  20.8M  480.9M  4096
    /storage  855.9M  0.0K  855.9M  4096
    /mnt/runtime/default/emulated: Permission denied
    /storage/emulated  10.2G  266.7M  9.9G  4096
    /mnt/runtime/read/emulated: Permission denied
    /mnt/runtime/write/emulated: Permission denied
    /mnt/media_rw/7746-1316: Permission denied
    /mnt/runtime/default/7746-1316: Permission denied
    /storage/7746-1316  59.6G  837.2M  58.8G  32768
    /mnt/runtime/read/7746-1316: Permission denied
    /mnt/runtime/write/7746-1316: Permission denied
     
  3. Disregard... did a Wipe Data (not Format Data) in TWRP *before* installing the firmware and it now works. Craziest thing, but whatever :)
     

Share Our Site