Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c21b01f8 authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Add additional manifest attributes to handle purpose declaration app...

Merge "Add additional manifest attributes to handle purpose declaration app compatibility." into main
parents 64196ba7 bae6d0eb
Loading
Loading
Loading
Loading
+11 −1
Original line number Original line Diff line number Diff line
@@ -2453,6 +2453,10 @@
             is currently only supported for normal permissions defined within the platform
             is currently only supported for normal permissions defined within the platform
             manifest. -->
             manifest. -->
        <attr name="requiresPurpose" format="boolean" />
        <attr name="requiresPurpose" format="boolean" />
        <!-- Required to be set when {@code requiresPurpose} is {@code true}; optional otherwise.
             Use it to specify the app's minimum target SDK version for which purpose validation
             should be enforced in order to prevent app compatibility issues. -->
        <attr name="requiresPurposeTargetSdkVersion"  format="integer" />
</declare-styleable>
</declare-styleable>


    <!-- The <code>valid-purpose</code> tag is used to specify valid purpose(s) for a permission.
    <!-- The <code>valid-purpose</code> tag is used to specify valid purpose(s) for a permission.
@@ -2463,6 +2467,12 @@
    <declare-styleable name="AndroidManifestValidPurpose" parent="AndroidManifestPermission">
    <declare-styleable name="AndroidManifestValidPurpose" parent="AndroidManifestPermission">
        <!-- Specify the name of the valid purpose. -->
        <!-- Specify the name of the valid purpose. -->
        <attr name="name" />
        <attr name="name" />
        <!-- Optional: This is mainly intended to deprecate a pre-defined purpose. Specify the max
             target SDK version for which this purpose is valid. Not specifying this attribute
             signifies the purpose is valid indefinitely. To avoid app compatibility issues, DO NOT
             simply delete the purpose from the manifest. Note that deprecation of purposes cannot
             be done retroactively on older platform versions. -->
        <attr name="maxTargetSdkVersion" format="integer" />
    </declare-styleable>
    </declare-styleable>


    <!-- The <code>permission-group</code> tag declares a logical grouping of
    <!-- The <code>permission-group</code> tag declares a logical grouping of