سؤال

I've been requested to apply the "setStorageEncryption" in an Android App as a security policy.

Once this policy is applied, does it affect all storage memory in the device? Can it be used to only encrypt selected files?

Thanks

هل كانت مفيدة؟

المحلول

Once this policy is applied, does it affect all storage memory in the device?

Quoting the documentation:

This policy controls encryption of the secure (application data) storage area. Data written to other storage areas may or may not be encrypted, and this policy does not require or control the encryption of any other storage areas. There is one exception: If isExternalStorageEmulated() is true, then the directory returned by getExternalStorageDirectory() must be written to disk within the encrypted storage area.

Most devices have emulated external storage, by which I mean that the external storage is part of the same partition as internal storage, and isExternalStorageEmulated() would return true.

Can it be used to only encrypt selected files?

No, sorry.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top