简体   繁体   English

华为特定的OS风格在我的文件文件夹中创建奇怪的文件

[英]Huawei specific OS flavour creating weird files in my files folder

Basically, I need to save some files in my app. 基本上,我需要在应用程序中保存一些文件。 For that, I use the directory returned by getFilesDir() method (like here ). 为此,我使用了getFilesDir()方法返回的目录(如此 )。

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. 这可以正常工作,但在某些设备(我至少知道两个)上,名为hw_cached_resid.listaware_learning_data文件会出现在此文件夹中。 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 . 更新: Google搜索没有发现任何内容,但是GutHub代码搜索幸运地找到了hw_cached_resid.list 一个引用 Turns out, it's from some (decompiled!) Huawei firmware, more specifically - com.huawei.iaware app. 事实证明,它来自某些(已反编译!)华为固件,更具体地说com.huawei.iaware应用。

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. 华为的文档说,华为Mate 9使用了一种称为iAware System的机器学习平台,它可以学习您的使用情况并抢占应用程序之间的更改以及预先加载常用的应用程序。

(quote from here ) (从这里引用)

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. 因此,解决该问题的唯一方法(无需联系华为)-仅检查这些文件是否存在并删除它们。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM