Menu

When I call the Knox SDK API method setExternalStorageEncryption, why doesn't the device prompt the user to encrypt?

When an app calls the API method setExternalStorageEncryption(), a device notification appears only if there is a change in the SD card state. There are several scenarios:

  • SD card is already encrypted, and you call setExternalStorageEncryption(true). No notification appears in this case, as there is no change in the SD card state.
  • SD card is not encrypted, and you call setExternalStorageEncryption(true). A notification appears to prompt users to Tap to Mount SD Card. If the user taps Apply, this enables SD card encryption.
  • SD card is not encrypted, and you call setExternalStorageEncryption(false), the notification is ignored or cancelled.

If the user ignores or cancels the notification to Tap to Mount SD Card, they will not be prompted again, even if you call the API method setExternalStorageEncryption(true) again. To get the notification again, restart the device or re-mount the SD card.

Share it: