Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the entitlement "Data Protection" good for when creating an Apple App ID?

I have always been using the best possible data protection in my iOS apps. This means I saved all my files with the flag “available when unlocked, this device only”. Back then this "just worked". Now I have found that there is a new setting when creating an App ID (see screenshot) where I can explicitly enable data protection.

This is how I understand the new option. Can somebody please confirm?

  • If it is enabled it seems as if all files inside the documents folder will be protected automatically using the selected protection mode. Correct?
  • If it is disabled, can I still set the flags using NSFileManager?

enter image description here

like image 901
Krumelur Avatar asked Apr 29 '14 17:04

Krumelur


People also ask

What is Data Protection Apple?

Data protection is an iOS feature that you use to secure your app's files and prevent unauthorized access to them. Data protection is enabled automatically when the user sets an active passcode for the device. You read and write your files normally, but the system encrypts and decrypts your content behind the scenes.

What are iOS entitlements?

Entitlements are special app capabilities and security permissions granted to applications that are correctly configured to use them. In iOS, apps run in a sandbox, which provides a set of rules that limit access between the application and certain system resources or user data.

How do I check iOS app entitlements?

Check Your Entitlements Files Each target in your app may have its own entitlements file. To locate the entitlements file associated with a particular target, look at the the Code Signing Entitlements file setting inside of the Signing settings displayed in your Build Settings.


1 Answers

  • If it is enabled it seems as if all files inside the documents folder will be protected automatically using the selected protection mode. Correct? - YES
  • If it is disabled, can I still set the flags using NSFileManager? - YES
  • if it is enabled, can I still set the flags using NSFileManager? - YES

You can test it by try to download the application content.

like image 71
jpulikkottil Avatar answered Sep 22 '22 04:09

jpulikkottil