检查Android的文件系统加密 [英] Check if Android filesystem is encrypted
问题描述
我们正在为Android开发安全的应用程序。它需要用户保持他们的加密设备的文件系统,但是我们必须检查这一事实,并禁止使用的应用程序。是否有可能来检查文件系统的加密?还有一些与Android和其中一些设备; 3.0支持加密,例如摩托罗拉RAZR。这将是有趣的了解在此类设备上的加密。
We are developing secure application for Android. It's required for users to keep filesystems of their devices encrypted, but we have to check this fact and forbid to use app. Is it possible to check if filesystem is encrypted? Also there are some devices with Android < 3.0 that supports encryption, for example Motorola RAZR. It would be interesting to know about encryption on such devices.
推荐答案
如果您的应用程序注册为的设备管理,你可以叫 getStorageEncryptionStatus()
在 DevicePolicyManager
来找出的加密状态设备,对于API级别11或更高。
If your app is registered as a device admin, you can call getStorageEncryptionStatus()
on DevicePolicyManager
to find out the encryption status of the device, for API Level 11 and higher.
有关较低的空气污染水平的任何全设备加密,请联系设备制造商。
For any whole-device encryption on lower API levels, please contact the device manufacturer.
这篇关于检查Android的文件系统加密的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!