且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何隐藏SD卡在Android上的文件夹

更新时间:2023-09-28 08:27:40

请一个文件夹或文件 为preFIX 以文件夹或文件名。

Make a folder or file with . as prefix to folder or file name.

编辑:由于Android是基本的Linux同样的事情发生在隐藏的目录和文件,只需创建一个目录或文件,用'。' preFIX名。

As android is basic linux the same thing happen in hide directory and files, just create a directory or file with'.' prefix name.

因此​​,它在所有Android API版本的工作。其次的东西有可用于Android也显示这种类型的隐藏的目录和文件的一些浏览器的工具。因此,它不是一个安全的方式,

So its worked in all android api version. And second things there are some browser tool available for android which also display this type of hidden directories and files. So its not a secure way,

有关在存储内部存储的数据在你的应用程序包的很好,但是从这个如果设备是植根那么任何人都可以访问它。

For storing data in internal storage in your application's package its fine, but from this if device is rooted then anyone can access it.

所以,唯一的办法是为您的文件和目录使用的加密/解密。

So, the only way is use encryption/decryption for your files and directories.