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

Commit 7089d40a authored by Kiran Ramachandra's avatar Kiran Ramachandra
Browse files

Made permission privileged to grant access to ExtServices

To enable OTP detection, ExtServices requires the ACCESS_TEXT_CLASSIFIER_BY_TYPE permission to access specific TextClassifier. Because ExtServices cannot utilize the role, the permission is being added as privileged to allow its granting.

Bug: 377229653
Bug: 388899782
Test: atest FrameworksCoreTests:TextClassificationManagerTest CtsTextClassifierTestCases:TextClassificationManagerTest CtsPermissionPolicyTestCases:PermissionPolicyTest
Flag: android.permission.flags.text_classifier_choice_api_enabled

Change-Id: I606227245a6c80f5717df92bfd3760f21ee11d11
parent 241cfec9
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -8985,13 +8985,13 @@

    <!-- @SystemApi
        @FlaggedApi("android.permission.flags.text_classifier_choice_api_enabled")
        This permission is required to access the specific text classifier you need from the
        This permission is required to access the specific text classifier from the
        TextClassificationManager.
        <p>Protection level: signature|role
        <p>Protection level: signature|role|privileged
    @hide
    -->
    <permission android:name="android.permission.ACCESS_TEXT_CLASSIFIER_BY_TYPE"
        android:protectionLevel="signature|role"
        android:protectionLevel="signature|role|privileged"
        android:featureFlag="android.permission.flags.text_classifier_choice_api_enabled"/>

    <!-- Attribution for Geofencing service. -->
+2 −0
Original line number Diff line number Diff line
@@ -619,6 +619,8 @@ applications that come with the platform
        <permission name="android.permission.MANAGE_GLOBAL_PICTURE_QUALITY_SERVICE"/>
        <permission name="android.permission.MANAGE_GLOBAL_SOUND_QUALITY_SERVICE"/>
        <permission name="android.permission.READ_COLOR_ZONES"/>
        <!-- Permission required for CTS test - CtsTextClassifierTestCases -->
        <permission name="android.permission.ACCESS_TEXT_CLASSIFIER_BY_TYPE"/>
    </privapp-permissions>

    <privapp-permissions package="com.android.statementservice">