3

Basically, I need to save some files in my app. For that, I use the directory returned by getFilesDir() method (like here).

This works fine, but on some devices (I know at least two), files named hw_cached_resid.list or aware_learning_data appear in this folder. Why is this happening and how to avoid this?

UPDATE: Google search revealed nothing, but GutHub code search luckily found one reference of hw_cached_resid.list. Turns out, it's from some (decompiled!) Huawei firmware, more specifically - com.huawei.iaware app.

Huawei's documentation says the Huawei Mate 9 uses something called iAware System, a machine learning platform that learns your usage and preempt changes between apps as well as pre-loading frequently used apps.

(quote from here)

Phantômaxx
  • 37,901
  • 21
  • 84
  • 115
Lev Leontev
  • 2,538
  • 2
  • 19
  • 31

1 Answers1

2

It looks like it's a bug with built-in software of Huawei phones (some temporary files don't get deleted).

Thus, the only way to fix it (without contacting Huawei) - just to check if those files exist and delete them.

Lev Leontev
  • 2,538
  • 2
  • 19
  • 31