Android ICS Device Encryption

I am trying to start the encryption of my ICS device programmatically by running intent (Intent --> DevicePolicyManager.ACTION_START_ENCRYPTION). It works very well. I would like to know if a broadcast or sth has been sent to find out if the user clicked “encrypt device” or rejected the request. I need to notice the users decision.

My second question is about the method setStorageEncryption(admin, boolean)that is implemented in DevicePolicyManager. Does the call setStorageEncryption(admin, false)have any effect on the encryption of the device, if after that I launched the encryption intent mentioned above?

Yours faithfully

+5
source share
1 answer

DevicePolicyManager.ACTION_START_ENCRYPTION Settings -> Security -> Encrypt Phone, . 80% .

, , , , .

CommonsWare, DevicePolicyManager.getStorageEncryptionStatus().

DevicePolicyManager.setStorageEncryption(admin, false) not encrypted. .

not encrypted policy , . , Settings -> Security -> Encrypt Phone. DevicePolicyManager.ACTION_START_ENCRYPTION .

+2

All Articles