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

Commit c80a968d authored by MingWei's avatar MingWei
Browse files

Update the protection level of EXECUTE_APP_FUNCTIONS permission

Flag: android.permission.flags.app_function_access_api_enabled
Bug: 421137583
Test: Existing coverage
Change-Id: I07acbd8cc4b03c25febf84e8908d618ef1b0bd38
parent c92c6491
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -98,7 +98,7 @@ package android {
    field public static final String DUMP = "android.permission.DUMP";
    field public static final String ENFORCE_UPDATE_OWNERSHIP = "android.permission.ENFORCE_UPDATE_OWNERSHIP";
    field public static final String EXECUTE_APP_ACTION = "android.permission.EXECUTE_APP_ACTION";
    field @FlaggedApi("android.app.appfunctions.flags.enable_app_function_manager") public static final String EXECUTE_APP_FUNCTIONS = "android.permission.EXECUTE_APP_FUNCTIONS";
    field public static final String EXECUTE_APP_FUNCTIONS = "android.permission.EXECUTE_APP_FUNCTIONS";
    field public static final String EXPAND_STATUS_BAR = "android.permission.EXPAND_STATUS_BAR";
    field @FlaggedApi("android.xr.xr_manifest_entries") public static final String EYE_TRACKING_COARSE = "android.permission.EYE_TRACKING_COARSE";
    field @FlaggedApi("android.xr.xr_manifest_entries") public static final String EYE_TRACKING_FINE = "android.permission.EYE_TRACKING_FINE";
+13 −3
Original line number Diff line number Diff line
@@ -8589,12 +8589,22 @@
    <!-- Allows an application to perform actions on behalf of users inside of
         applications.
         <p>This permission is currently only granted to privileged system apps.
         <p>Protection level: internal|privileged
         @FlaggedApi(android.app.appfunctions.flags.Flags.FLAG_ENABLE_APP_FUNCTION_MANAGER)  -->
         <p>Protection level: internal|privileged -->
    <permission android:name="android.permission.EXECUTE_APP_FUNCTIONS"
        android:featureFlag="android.app.appfunctions.flags.enable_app_function_manager"
        android:featureFlag="!android.permission.flags.app_function_access_api_enabled"
        android:protectionLevel="internal|privileged" />

    <!-- Allows an application to perform actions on behalf of users inside of
     applications.
     <p>To execute a function in another app, an application must first hold the
        android.permission.EXECUTE_APP_FUNCTIONS permission. In addition, the application must be
        on a device allowlist, and its ability to execute functions is subject to user approval or
        disapproval.
     <p>Protection level: normal -->
    <permission android:name="android.permission.EXECUTE_APP_FUNCTIONS"
        android:featureFlag="android.permission.flags.app_function_access_api_enabled"
        android:protectionLevel="normal" />

    <!-- Allows an application to display its suggestions using the autofill framework.
         <p>For now, this permission is only granted to the Browser application.
         <p>Protection level: internal|role