[go: nahoru, domu]

  1. Docs: Typo fixes.
    
    Test: ./cdd_gen.sh --version 9 --branch pie-dev
    Change-Id: Ic4a076c8c09bcae2317edc4251502caedef3a3d1
    
  2. CDD: Expand allowed encryption implementation
    
    Previously, if a device had AES performance <= 50 MiB/sec, it
    had two options: Encryption with AES, or no encryption.
    
    We add a third option for this class of device: Encryption
    with Adiantum.  Adiantum provides better performance than AES
    on this class of device, while still providing strong protection.
    
    Note there is no change to the requirement that devices with
    AES performance > 50 MiB/sec MUST encrypt with AES.
    
    Test: None
    Change-Id: Ib612f2c8ebdb7631e3963f50020436a6af8d6ec5
    
  3. Docs: Consistent use of terms preinstalled and third-party.
    
    Test: make_cdd.py --version  <version-number> --branch <branch>
    Change-Id: I98b896d819fc5652aba1d19bf82d15670b6287a0
    
  4. Docs: Errata for Android 9 CDD.
    
    - Fixed Section 9.10 by removing C-2-1 due to the introduction of C-0-2
    - Fixed typos in other sections
    
    Bug: 112010610
    
    Test: ./cdd_gen.sh --version 9 --branch pie-dev
    Change-Id: Ie4003beb20425a7fc83cf68ea23772aca389b85b
    
  5. CDD: Move the req of supporting encryption under perf carve-out
    
    - Ensure the consistent security across devices
    - Replace the carve-out of secure lock screen with the perf carve-out
     for supporting encryption
    
    Test: None
    Bug: 71909258
    Change-Id: Ied56bb0bdd99e3f27e68c13829073c5982019c74
    
  6. CDD: Clarifying kernel page table isolation
    
    - Modifying the requirement language for C-0-12(kernel page table isolation)
     requirement to add clarity.
    
    Bug: 79088532
    Change-Id: If3b3da40b78203c177cb4b833ea49837336a72b7
    
  7. CDD: Require logging of some basic events available to app developers through statsd.
    
    Enlist required fields to be more specific about what is
    needed for developer tools and what is needed for privacy.
    
    Bug: 76161779
    Bug: 74125988
    
    Test: None
    Change-Id: I4ff9a73f72c3270caaac0f116297d666a58561fb
    
  8. CDD: Requirements for services that have access to "android.permission.RECOVER_KEYSTORE"
    
    - Prevent brute-force attacks on the lockscreen knowledge factor.
    
    Bug: 73599998
    
    Test: None
    Change-Id: I8f7fa701b11f015e26429c4683a36d37aa2faa47
    
  9. CDD: Add section about Android Protected Confirmation API
    
     - Device implementations with secure hardware may implement the
       Android Protected Confirmation API to request the user to
       approve a textual message.
    
    Bug: 73001803
    Test: n/a
    Change-Id: I96c5929b0b4ab99b31a9fe7ca0ac82710f94cdca
    
  10. CDD: Update CDD language for biometrics and lockscreen.
    
    This CL makes CDD changes that are aimed at providing more explicit
    guidance on creating secure biometric based unlocks, and on
    consolidating the CDD language for secure lockscreens to make the
    authentication model consistent with our security bar.
    
    More specifically, it changes the following things:
    (1) A new section similar to "7.3.10 Fingerprint Sensors" that's more
    generic and applicable to all biometric sensors. Should have mostly
    the same constraints but slightly altered where necessary.
    (2) Language that deals with match-on-chip solutions for biometrics.
    (3) A new requirement in 9.11 that mandates keeping a minimum
    Sleep timeout of at most 15 seconds.
    (4) New requirements in "9.11.1 Secure Lock Screens" that:
      (a) Constrain what a primary authentication can be.
      (b) Adds information related to alternate biometric unlocks and
      adhering to the SAR/IAR bar that was introduced in the 8.1 CDD
      (c) Adds requirements around 'passive' biometric unlocks like Face
      when used to unlock keystore keys.
      (d) Clarifies some language around falling back to requiring primary
      auth every 72 hours for all non-primary modes of authentication
    (5) Removes the API requirement to return false for both the KeyguardManager.isKeyguardSecure() and the KeyguardManager.isDeviceSecure() methods.
    
    Bug: 73723272
    Bug: 77656214
    Bug: 111053551
    Test: --
    Change-Id: Iede9eba5ac79de56802cd830c3dc4e521f40e098
    
  11. CDD: 9.10. Device Integrity: Change verified boot items from SR to MUST.
    
    Change STRONGLY RECOMMENDED to MUST for verified boot items and slight
    cleanup of language used:
    
     - MUST use tamper-evident storage: for storing whether the bootloader
       is unlocked. Tamper-evident storage means that the boot loader can
       detect if the storage has been tampered with from inside Android.
    
     - MUST prompt the user, while using the device, and require physical
       confirmation before allowing a transition from boot loader locked
       mode to boot loader unlocked mode.
    
     - MUST implement rollback protection for the partitions used by
       Android (e.g. boot, system partitions) and use tamper-evident
       storage for storing the metadata used for determining the minimum
       allowable OS version.
    
    Test: n/a
    Bug: 72919368
    Change-Id: Ifcb0c994cb86f92a422dcde6fa6da1ca064d4ca0
    
  12. CDD: Update CDD changes for CFI and IOSAN
    
    This CL renames section 9.7 to 'Security Features' (instead of kernel
    security features), and adds a new sub-section for userspace specific
    security feature advice. There's only a single recommendation in for
    P, but we will be using this section to add more details and
    recommendations/constraints for Q.
    
    Bug: 73724250
    Test: --
    
    Change-Id: If45c5fd9b7668dcafc9ce8dbd2a59b9c4418ca42
    
  13. CDD: StrongBox requirements
    
    - Tighten the security by supporting StrongBox.
    - Clarifying the requirements if StrongBox is supported.
    
    Bug: 73002261
    Test: N/A
    Change-Id: I9834ced2e697bee013cb0725f31745826da1f0c5
    
  14. CDD: Require verified boot on all devices, including low ram devices
    
    We remove the low RAM exception for verified boot.
    
    Test: None
    Bug: 73374550
    Change-Id: I340e8753c8648bbe2a68426123851359d4cba1cb
    
  15. Docs: clarify that that CONFIG_ARM_LPAE is not allowed for 32-bit ARM
    
    - It's incompatible with PAN emulation for arm32 kernels.
    - This is already implicitly tested when checking for
    CONFIG_CPU_SW_DOMAIN_PAN.
    
    Bug: 109828784, 74078653, 79088532, 73728376
    Test: n/a
    Change-Id: Idb6a96d6f8c13a959b4bdc2c5580294beeff2d7c
    
  16. CDD: Allow escrow keys to unlock CE storage.
    
    - Much of the purpose of escrow keys is to allow storage
      to be unlocked when a user forgets their LSKF, so we
      must allow this in CDD.
    
    Bug: 111561428
    Test: Documentation change.
    Change-Id: I0de44228e35728713405a8d84ec3b8e6f8a9ecbf
    
  17. CDD: Recommend metadata encryption
    
    - Tighten the security.
    
    Bug: 73662717
    Test: Compiled and inspected HTML
    Change-Id: Ib2be403ef2db8525c9ad579a289eca79132696e9
    
  18. CDD: MUST NOT send user's private data off the device without the user's consent
    
    - Ensure that user's private data is protected and is not sent off the device without user's consent.
    
    Bug: 74620344
    Change-Id: I41559d7d3903ea3d44d1471abe896ad7698ef6be
    Test: N/A
    
  19. CDD: Require to include only the data with 'DEST_AUTO' in the incident report
    
    Ensure that the data other than `DEST_AUTO` is not included in the report for
    privacy protection. As fields or messages annotated with DEST_AUTO
    can be sent by automatic means, without per-sending user consent. The user
    still must have previously accepted a consent to share this information.
    
    Bug: 76161779
    Test: N/A
    Change-Id: I813c96d43395b092ab0e8681893cf205723d26bb
    
  20. CCD: Add recommendations for Full Stack Integrity
    
    Android P adds support for extending the protections of Verified Boot
    beyond OS partitions to privileged apps that are installed on /data.
    This change recommends that device implementations perform
    integrity checks of these privileged apps.
    
    Test: None
    Bug: 73001552
    Change-Id: I773c4ad431ab0f2c16a762ba342653502ea98912
    
  21. CDD: Tightening kernel security requirements from SR to MUST
    
    - The tightened MUST requirements are applicable for devices that
    originally ship with API level 28 and above.
    
    These security requirements provide better protections for the kernel by
    mitigating common classes of vulnerabilities and privilege escalation
    techniques.
    
    Bug: 74078653
    Bug: 79088532
    Bug: 73728376
    Test: n/a
    Change-Id: I62450948e5474939d94b22b280d11a6d56e35f3e
    
  22. CDD: Describe subscription plan security model.
    
    Bug: 71816837
    Test: ./cdd_gen.sh
    Change-Id: I670a694bd37436e71b37f4746c5261d2d93b6b91
    
  23. CDD: add per-app selinux requirements for P
    
    Apps that target Android P can no longer share data with other apps
    using world-accessible Unix permissions. This change improves the
    integrity of the Android Application Sandbox, particularly the
    requirement that an app's private data is accessible only by that
    app. [1]
    
    To share files with another another app, use a content provider
    or shared space in external storage.
    
    This feature enforces an existing requirement that files saved in
    internal storage are accessible by the owning app. [2]
    
    [1] https://developer.android.com/guide/topics/data/data-storage.html#filesInternal
    [2] https://developer.android.com/training/data-storage/files.html#PublicFiles
    
    Bug: 73728376
    Test: n/a
    Change-Id: Ib2a93fde25f660782f315d5e02978637680f7594
    
  24. CDD: Clarify the key attestation is required only for new devices
    
    - Add the clarification note for 9.11 [C-1-4].
    - Clarified for old devices with earlier version of Android to be
    exempted from the key attestation requirement.
    
    Bug: 72461553
    Change-Id: I9b14119bcd67b5aa2063b3fb21b995fd658fc9d7
    
  25. CDD: Require verified boot when device has enough RAM vs.
    good AES-crypto performance
    
    Update verified boot requirement to be MUST for devices that report
    feature flag android.hardware.ram.normal
    
    Bug: 35039737
    Test: N/A
    Change-Id: If7346873f92879a551935b55597762a46b5e89c8
    
  26. CDD: Require secure storage of lock screen credentials
    
    - With credential-based Factory Reset Protection, the
    credential handle is stored on an unencrypted partition. To maintain
    security guarantees, implementations must make sure that the handle
    does not leak information about the credential.
    
    Bug: 64209214
    Test: n/a
    Change-Id: I55f15cc75502016824d9307c03d947c4041744b0
    
  27. CDD: Changes to measure biometric unlock security.
    
    Adds imposter and spoof acceptance rate metrics for biometric based
    unlocks, and mandates showing a disclosure of the risks involved when
    an unlock modality does not meet the bar.
    
    Bug: 66013719
    Bug: 63910023
    Test: N/A
    Change-Id: I6a129481c0036c756f8c7d95cf3da1bab9f3f0f1
    
  28. CDD: AES encrypt the encryption key by default
    
    For Android O-MR1 we are requiring that all encryption keys are
    encrypted with AES by default, unless the user explicitly opts out.
    
    Bug: 33744049
    Change-Id: Ic74dcd960ef89b752f580bd2ce2e42acca643c1f
    Test: Not necessary -- this is a policy change.
    
  29. Docs: Move dev-specific reqs to Ch 2.
    
    Test: python make_cdd.py --version <version-number>  --branch <mybranch>
    
    Bug: 64164626
    Merged-In: Ie091c0be79ad4a797f26a60e95ee2594f053f804
    Change-Id: Ie091c0be79ad4a797f26a60e95ee2594f053f804
    (cherry picked from commit 0ece682cb7f915f4289ba6d7b5c86957e6d5d276)
    (cherry picked from commit d72cc3b7971126e352c0c8fd83693f458d3785ec)
    
  30. Docs: Move dev-specific reqs to Ch 2.
    
    Test: python make_cdd.py --version <version-number>  --branch <mybranch>
    
    Bug: 64164626
    Change-Id: Ie091c0be79ad4a797f26a60e95ee2594f053f804
    (cherry picked from commit 0ece682cb7f915f4289ba6d7b5c86957e6d5d276)
    
  31. CDD: add requirement for always-on VPN opt-out.
    
    Require UI implementations to observe the always-on VPN opt-out manifest
    flag in app manifest, if such implementation exists.
    
    See VpnService.SERVICE_META_DATA_SUPPORTS_ALWAYS_ON
    
    Bug: 65561270
    Test: N/A
    Change-Id: Ie0b5ea506affbec0ab3b0268c2539bc0184721aa
    
  32. Docs: Misc fixes for CDD.
    
    Bug: 67405273
    
    Test: make_cdd.py --version 8.0 --branch "oc-dev"
    Change-Id: Icee371d41284f56ef6d9ad90ab8992c94134d5bd
    
  33. CDD: O errata changes
    
    Fixes to missing/incorrect id's in CDD.
    Bug: 66482816
    Test: N/A
    
    Change-Id: I8241e1f96f7bc2c5d9e190e96da87fcb504cde02
    
  34. Docs: Move dev-specific reqs to Ch 2.
    
    Test: python make_cdd.py --version <version-number>  --branch <mybranch>
    
    Bug: 64164626
    Change-Id: Ie091c0be79ad4a797f26a60e95ee2594f053f804
    
  35. Docs: Restructure section 9.9.
    
    Part of restructuring work for CDD.
    
    Test: N/A
    Bug: 64811960
    Change-Id: If35c39e10f621e1b9bad51eb9a89770815d2226d
    
  36. Docs: Restructure section 9.14.
    
    Part of restructuring work for CDD.
    
    Test: N/A
    Bug: 64811960
    Change-Id: I8f106180bb29452ce3de28ba100dcb76dae74737
    
  37. Docs: Restructure section 9.6.
    
    Part of restructuring work for CDD.
    
    Test: N/A
    
    Bug: 64811960
    
    Change-Id: I82b2f7099ec8811980b90b7a6969b5865fd25740
    
  38. Docs: Restructure section 9.11
    
    Part of restructuring work for CDD.
    
    Test: N/A
    Bug: 64811960
    Change-Id: I2d8ccd24e8572d397f38718088cc43274962bf12
    
  39. Docs: Restructure section 9.10.
    
    Part of restructuring work for CDD.
    
    Test: N/A
    Bug: 64811960
    Change-Id: Ic2ce057ffc3d072c4aacd52d4f0c8ebe578e9c61
    
  40. Docs: Restructure CDD section 9.1.
    
    Part of restructuring work for CDD.
    
    Test: N/A
    Bug: 64811960
    Change-Id: I912f83d868078cc90345766ce6dc5e05efc8078c
    
  41. Docs: Restructure section 9.8.
    
    Part of restructuring work for CDD.
    
    Test: N/A
    Bug: 64811960
    Change-Id: I33113c2c4b5026ecd9155d5dc5c2a81743db3407
    
  42. Docs: Restructure section 9.2.
    
    Part of restructuring work for CDD.
    
    Test: N/A
    Bug: 64811960
    Change-Id: I9cf7fbb4938b714682b434da196b2321a9b9bcea
    
  43. Docs: Restructure section 9.13.
    
    Part of restructuring work for CDD.
    
    Test: N/A
    Bug: 64811960
    
    Change-Id: Icb98a0c74708c61cec94db74d04e17ec38ab819b
    
  44. Docs: Restructure section 9.7.
    
    Part of restructuring work for CDD.
    
    Test: N/A
    Bug: 64811960
    Change-Id: I076fa1c1ce0a11ebc20e90e088cbd64b08046832
    
  45. Docs: Restructured section 9.5.
    
    Part of restructuring work for CDD.
    
    Test: N/A
    Bug: 64811960
    Change-Id: If8e02513604ce19e695e0033ea5a98a6a2d5c00b
    
  46. Docs: Restructure section 9.12.
    
    Part of restructuring work for CDD.
    
    Test: N/A
    Bug: 64811960
    Change-Id: I4402611e292482ed38e508716677c6b6c61be94d
    
  47. Docs: Restructure section 9.3.
    
    Part of restructuring work for CDD.
    
    Test: N/A
    Bug: 64811960
    Change-Id: If9d5d1be2b256923d669efe6c66b9d901ba0513b
    
  48. Docs: Restructure section 9.4.
    
    Part of restructuring work for CDD.
    
    Test: N/A
    Bug: 64811960
    Change-Id: I730c279f6067ad1002bb1c75dde664246f7eaa8d
    
  49. Docs: Restructure CDD section 9.0.
    
    Part of restructuring work for CDD.
    
    Test: N/A
    Bug: 64811960
    Change-Id: I840ca61cace0f61fe85353fcedca0627a8647ca7
    
  50. CDD: Add req for the trust agent escrow token system API
    
    Add requirements to account for the new methods in
    TrustAgentService that allow unlocking a device based on escrow
    tokens.
    
    Bug: 36237319
    Test: Documentation update.
    Change-Id: I38cec1d94bbcbcbf97782308dc800abf650d6532
    
  51. CDD: Require checking the primary authentication periodically
    
    - Added this requirement for the following reasons:
    - Security; The supplemental unlocks are less secure than the primary
    credential so limit the risk by periodically asking for the main
    password.
    - Usability; Make sure the user enters their primary knowledge factor
    often enough not to forget it.
    
    Bug: 38314942
    Change-Id: I664813f58f5881c51500559eb7175fd759885d9e
    
  52. CDD: Updated Kernel security requirements.
    
    Added requirements to make sure the Android ecosystem has
    a minimum safe bar for kernel configurations.
    
    Bug: 36371578
    Test: N/A
    Change-Id: Iea6207dfd5805392ea1bbdf232004d32cc19ff52
    
  53. CDD:  Require indicating to the user the impact of TrustAgentService
    on screen locks.
    
    TrustAgentService is able to change the behavior of screen locks, and
    hence such a state has to be indicated to the end user in a more
    transparent way.
    
    Test: description only
    Bug: 35849818
    Change-Id: Id4e1cd29bbfc2e2c51ee0d852a30983a69c4786a
    
  54. CDD: Require user affordances to grant/revoke PACKAGE_USAGE_STATS
    permission.
    
    Without the user-accessible mechanism, the android.app.usage package
    APIs can't be granted/revoked despite the API documents for the
    android.app.usage package multiple times referring to
    "However, declaring the permission implies intention to use the API
    and the user of the device can grant permission through the Settings
    application."
    
    Bug: 34107152
    Test: N/A
    Change-Id: Ie7385f54c024a72e943bf7b6d33b13d0b7ce6806
    
  55. CDD: Clarify requirement for alternative authentication method
    
    - This update is to ensure that the authentication method, used for
    secure lock screen, behaves as documented in SDK so that the related
    APIs work correctly for third-party apps. 
    
    Bug: 37426035
    
    Change-Id: I01659d6cafce1654810bf6c3c76f1016f3bd6cce
    
  56. CDD: Updated Privacy section with req. related to Ambient Sound Service.
    
    Bug: 37323391
    Test: N/A
    Change-Id: I20380f9ec103ec140ceeadc3c63605e8fcb1fa0a
    
  57. CDD: Require support for hardware-backed key attestation
    
    - Attestation will provide a way for developers to verify off-device
    that a particular key has the expected security properties.
    - This is important for trustworthy security designs for particularly
    sensitive applications, e.g. payment & banking.
    
    Bug:33676518, 30974815
    Change-Id: I92c39b69e26a7c7cd8c32dd4689de52b0cc8f1f0
    
  58. CDD: Require a default passcode to wrap the encryption key
    
    If the user has not specified a lock screen credential, the process for
    recovering the disk encryption key should still be bound to Keymaster
    and the root of trust, so that an attacker who changes the OS to an
    unsigned OS can't easily recover the disk encryption key. A default
    passcode is the easy way to achieve that.
    
    Given this, we are changing "SHOULD" to "MUST".
    
    Bug: 33744049
    Change-Id: I8e5026f394a8e4e6902f2b86449b367b6668f13b
    
  59. CDD: Add recommendations for Verified Boot
    
    Android Verified Boot or AVB (aka Verified Boot 2.0) is added to
    Android 8.0, replacing the old Verified Boot feature and improving
    security including the rollback prevention feature.
    
    AVB requires adding a new disk partition, so can only be applied to
    new device launches. However we're adding recommendations to support
    these new features and also highlighting that there is an open-source
    implementation that can be used to support the features as Android
    Verified Boot would allow better integrity of the Android security model
    that app developers would rely on.
    
    Bug: 33676518
    Change-Id: I6ff469ae61387038094a71bef0fa82b6455d1308
    
  60. CDD: Users or app developers MUST NOT change SELinux Policies.
    
    SELinux is the mandatory access control system used by Android. The
    security rules manage access to every part of the system. Allowing users
    or developers to change SELinux policies could either:
    
    1) Add new security holes, allowing the compromise of application or
    user data; or
    2) Improperly reduce functionality, which could prevent applications
    from working properly and introduce bugs.
    
    A stable SELinux implementation is in app developer and user's best
    interest, as it ensure consistency across the Android ecosystem.
    
    Bug: 34278546
    Test: N/A
    Change-Id: I690082859980083f3cd4305e86da5ff100baec5e
    
  61. CDD: Require privileged permissions only to be granted when explicitly
    whitelisted per app/permission
    
    This is to ensure that the standard android permission model is kept
    consistent as documented in the Android SDK.
    See https://developer.android.com/guide/topics/permissions/requesting.html
    and https://developer.android.com/reference/android/content/pm/PermissionInfo.html#PROTECTION_FLAG_PRIVILEGED
    
    Bug:33499917
    Test: manual
    Change-Id: Ie1f18dcb6cfb6d4a5329b0f0eb52f7feb3ed9a7e
    
  62. Docs: Add missing newline at EOF
    
    Test: N/A
    Change-Id: Ia22922cd8affb795e435748b362718b2ceab6f23
    
  63. CDD: Updated VPN disclosure requirements for privacy
    
    The AOSP implementation of Android 8.0, have made improvements to the
    VPN user interface in order to better emphasize the risk differences
    between VPNs and root CAs by making the VPN user interface of the
    warning explicit as to what is happening.
    
    Bug: 36031671
    Test: N/A
    Change-Id: I50bf21e18fe893fa8deeb741096fde1ff66e8cdf
    
  64. CDD: Requirement for retention duration of user selection history.
    
    Rewords "retention length" to "retention period".
    
    bug: 33423136
    
    Test: skipped.
    Change-Id: I79a7660a835a698546aac8821ff0c9e34184e9f6
    
  65. CDD: Require checking the primary authentication periodically
    
    - Added this requirement for the following reasons:
    - Security; The supplemental unlocks are less secure than the primary
    credential so limit the risk by periodically asking for the main password. 
    - Usability; Make sure the user enters their primary knowledge factor
    often enough not to forget it.
    
    Bug: 38314942
    Change-Id: I708bd3db39868ad42d7ec4ad9632b2982c3979b6
    
  66. CDD: "Clarify what are the conditions to be met in order
          to be classified as hadware backed and secure hardware".
    
    Bug: 34343011
    Change-Id: Iae36445e9eaad40704ab500d26cab4b94d8dd592
    
  67. CDD: Requirement for retention duration of user selection history.
    
    Android 8.0 introduces the Smart sharing API, it learns about users'
    personalized sharing preferences and better understands for each type of
    content which are the right apps to share with. To support this API,
    device implementations MUST keep a reasonable retention length of users'
    sharing histories. It is Strongly Recommended to use the default
    retention length.
    
    bug: 33423136
    
    Test: skipped.
    
    Change-Id: I94bc1278aa2bfd11dce728e96bba61aa380d139b
    
  68. CDD: Clarified hardware-backed keystore requirement.
    
    Bug: 35126445
    Change-Id: Ie6ebddc9e242ab3bb508235a49d210dcbeed21a6
    (cherry picked from commit 82acfb1241373cfe6f59a88a7f10b24d3c26c95a)
    
  69. CDD: Clarified hardware-backed keystore requirement.
    
    Bug: 35126445
    Change-Id: Ie6ebddc9e242ab3bb508235a49d210dcbeed21a6
    
  70. Docs: Final cleanup for CDD source.
    
       - Fix rowspan in table in section 2.1.
       - Put markdown links on a single line.
       - Escape parentheses in URLs.
       - Fix some internal links with dashes instead of underscores.
       - Replace tabs with spaces.
       - Other misc. cleanup.
    
    Bug: 32070486
    Change-Id: Ie44202b5a0bfe7133505880a0a9c74f08a9bac1f
    
  71. CDD:  Clarify that the system privileged permissions are not granted
          to all apps on the system image.
    
    Since Android 6.0, as already documented in the SDK (https://developer.android.com/reference/android/content/pm/PermissionInfo.html#PROTECTION_FLAG_SYSTEM),
    not all apps in the system image are granted privilged permissions.
    This requirements clarifies what mechanism would be used to implement
    what is described in the SDK.
    
    BUG: 33111571
    Change-Id: Ia9b78470d764e105cb6c7e0c76a163050ace2e99
    
  72. CDD: Functionality to provide encryption support.
    
    Some Device Policy Controller(DPC)s may use the
    DevicePolicyManager.getStorageEncryptionStatus() and expect
    ENCRYPTION_STATUS_ACTIVE only as the valid state, and would keep asking
    the user to add a password upon getting the
    ENCRYPTION_STATUS_ACTIVE_DEFAULT_KEY state. While enabling,encryption
    of the master key (i.e. enabling the secure boot) would have some
    downside on the user experience upon when the device is rebooted etc.
    Each enterprise might have their own security policy and should be able
    to choose the trade-off of user experience in favor of the security
    benefits.
    
    BUG: 27207717
    Change-Id: I2ee43f349395b9e86e4abce511497b66c2dc79dd
    
  73. CDD: Require system privileged permissions to only be granted to apps
         pre-installed in the whitelisted path.
    
    The system permissions should not be extended to any app, just because
    it's part of the system image but restricted to apps that are planned
    to be part of the system. The API name change in Android 6.0 from
    PROTECTION_FLAG_SYSTEM to PROTECTION_FLAG_PRIVILEGED further
    adds to this point.
    
    BUG: 33111571
    Change-Id: Ibee24f8e424dc844e8cb49d5a7a0b56c3e3801aa
    
  74. Docs: Final cleanup for CDD source.
    
       - Fix rowspan in table in section 2.1.
       - Put markdown links on a single line.
       - Escape parentheses in URLs.
       - Fix some internal links with dashes instead of underscores.
       - Replace tabs with spaces.
       - Other misc. cleanup.
    
    Bug: 32070486
    Change-Id: Ie44202b5a0bfe7133505880a0a9c74f08a9bac1f
    
  75. CDD: Clarify secure lock screen requirements.
    
    As some device implementations started to add or modify the
    authentication methods for the lock screen, and more APIs
    are making an assumption on the security of the lock screen
    credentials, we are clarifying the requirements of what
    is a secure lock screen.
    
    Bug: 27246863
    
    Change-Id: I618999405a862125348758ae34a40701bfaa1b62
    
  76. Docs: Fix list formatting.
    
    Bug: 32070486
    Change-Id: I1f57cd40a7018c3ac9125c8616df0647a56068e2
    
  77. Docs: Fix link to seccomp-tsync material.
    
    Bug: 32070486
    Change-Id: I4bd044ce9dfcb7892f5bee1082e4a2dbe96f664c
    
  78. Docs: Renumber duplicate section number.
    
    Bug: 32070486
    Change-Id: I19bd018ef4a9385792ef6f06ce86ca9ee76359fa
    
  79. CDD: Direct boot and FBE requirements
    
    Android N provide support for filebase encryption, allowing files to be
    encrypted with seperate keys bound to either the device or users'
    credentials. This allows system processe that do not handle sensitive
    user data (telephony, alarms, etc) to start before the user enters the
    credentials and elimiate the double boot necessary for full disk
    encryption.
    
    This requires the following changes and afforances in the CDD:
    - Sufficiently performant devices, with lockscreens, must use
      either FBE or FDE.
    - Added Direct Boot Requirements
    -- All Device must implement Direct Boot, regardless of encryption.
    - Added FBE Requirements
    -- DE anf CE keys must be bound to HW keystore and hardware
       root of trust (VB).
    -- Must not be able to disable "secure startup" option on FBE
       devices. (In earlier versions of android the FDE implementation
       supported a "secure startup" option which required the user to
       provide their credentials before the device could boot. This option
       was disabled by default. FBE and Direct Boot provides a better
       solution and device implementations MUST NOT offer any method to
       unlock the CE protected storage without the user supplied
       credentials.)
    -- MUST Support AES encryption as implemented in AOSP, MAY support
       others but AOSP MUST be used be default.
    -- SHOULD make essential preloaded app directBootAware.
    
    FDE requirements remain semantically unchanged, except it is not
    required if the device implementaion use FBE.
    
    Updated 3_10_accessibility to require that any pre-installed
    accessibilty service MUST be direct boot aware on FBE devices.
    
    BUG: 25897972
    BUG: 27207717
    
    Change-Id: I36fbce4937ebc161b09fdcb507db44f7b8990a3e
    
  80. CDD: Require splitted mediaserver processes to improve security.
    
    Android 7.0 has architectual changes to mediaserver. Previous versions
    of android used a single, monolithic mediaserver process with great many
    permissions (camera access, audio access, video driver access, etc).
    Android 7.0 splits the mediaserver process into several new processes
    that each require a much smaller set of permission.
    
    This new architecture is secure and ensures that even if a process is
    compromised, malicious code does not have access to the full set of
    permissions previously held by mediaserver.
    
    Bug: 28422586
    
    Change-Id: I337c293b26fd9d6effc3ac8f22b2388e69452571
    
  81. CDD: Location change for sepolicy on N.
    
    Bug: 32003330
    Bug: 28169245
    
    Change-Id: I26778cdce481b073fcbfed94027b56ffd9b1366f
    
  82. Docs: Spell check
    
    Change-Id: If9bf9affdf9d0ebc38f2a675e05ef620e03417ae
    
  83. CDD: Require consistent system-wide root CAs across all Android 
    
    Android 7.0 is supporting the use case of apps to be configured with
    app-specific root Certificate Authority (CA). Hence, now the policy
    on the preinstalled root certificates in the system-trusted CA store
    are more strictly enforced to make it harder to undermine the security
    of the data communication from Android device implementations.
    
    The guideline to handle public certificates are as below.
    
    - Deprecated public CAs: MUST NOT be added.
    - New public CAs not yet in AOSP: wait these public CAs to complete the
      Mozilla CA inclusion process and then file a feature request against
      Android (https://code.google.com/p/android/issues/entry to include the
      new public root CA to AOSP.
    - private CAs that may be needed to securely access application servers
      or MNO(carrier) infrastructure, see:
      https://developer.android.com/training/articles/security-config.html
    
    Bug: 18335321
    
    Change-Id: I49bbc894c700d70d8049f9535550547fe1fce8e1
    
  84. CDD: Clarify req. to notify if data traffic can be monitored.
    
    Bug: 27665217
    
    Change-Id: Ie99bb1cee95e797b6acb40a096b3b006c52340a8
    
  85. CDD: Introduce Safe Mode Requirements
    
    Safe Mode, enabling users to boot into a state where only preinstalled
    system apps are allowed to run, empowers the Android device users to
    uninstall third-party apps.
    
    The support of this mode is now STRONGLY RECOMMENDED as this mode can
    be used to address cases where third-party apps might be interfering
    with the user's capability to uninstall such apps.
    
    Bug: 27337663
    
    Change-Id: Ib921dc3ef7cca6db68d22e23d2063fdfb2877586
    
  86. CDD: Add requirement for seccomp-BPF with TSYNC
    
    Bug: 21472592
    
    Change-Id: I05c79bae3b370faa34e3738adf9ac205f9dce248
    
  87. CDD: Require reporting of flash lock status
    
    Android 7.0 adds a new mechanism to report the flash lock state of the
    bootloader up to the framework so that system services and apps can
    utilize the signal.
    
    This change also changes the name of the section from "verified boot"
    to "device integrity" to be more general.
    
    Bug: 28236305
    
    Change-Id: I53664b0e9e4f6f1a9072519aff1ea3d89e3b89d7
    
  88. CDD: Strict verified boot reqs. unless user has opted-out
    
    Clarify when a verified boot may complete the booting sequence despite
    failing the verification.
    
    Clarify when verified boot may accept modifications to verified
    partitions.
    
    Bug: 27368088
    
    Change-Id: Ic3db05f8cdffb88e1aecfcb89914e7ecd1a2e9b6
    
  89. CDD: Security measures to protect vehicle systems
    
    The potential impact of malicious or unintentional interaction
    with the vehicle network and systems may be catastrophic. There
    are several required mitigation strategies for Android Automotive
    implementations.
    
    Change-Id: Ie732227b07aef901e155299e640d920fd7ea3f0f
    
  90. CDD: Automotive device usable in guest account
    
    Vehicles may be highly personalized Android devices. However
    the lack of a user-specific profile should never prevent a
    driver from operating basic vehicle functions, e.g., turning
    on the radio to listen to a traffic report.
    
    Change-Id: Ief633d78cb128f5464d623ed9029a7345b9903bc
    
  91. CDD: Allow DPC to set VPN, without user consent.
    
    Android 7.0 introduces a new API method for the Device Policy Manager
    (DPC) to enable VPN.
    
    As an app being DPC already implicitly means there is consent from
    the device owner to manage the device, there is no more need to provide
    separate consent to progamatically enable VPN.
    
    
    Bug: 27736570
    
    Change-Id: Ief2917844457b8bad1f1e9e19f4df808008801e7
    
  92. CDD: Require hardware-backed keystores
    
    Previously in Android 6.0, the hardware-backed keystore was a
    strongly recommended security feature, but noted as to become
    a mandatory requirement in the next API version.
    
    The implementation of an exponential backoff algorithm is now also
    required, whereas previously it was only recommended.
    
    
    Bug: 27126435
    
    Change-Id: I9f360107feb58a39a021199cfce8f7804d5bbbfc
    
  93. Docs: Add CDD docs and the build script, and test examples
    
    Bug: 25199595
    This is based on the amended final CDD for M, hosted as commit
    1846a9622485855d572705a7972116caf0be3669 on the AOSP master branch.
    
    Change-Id: Ic3bd96cd652f7d7b13def03a4ca1f04645c34255