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

Commit 532739af authored by Xiaoyu Jin's avatar Xiaoyu Jin Committed by Lingyun Zhao
Browse files

Define a new permission for appsearch isolated storage service

This permission will be used for only allowing platform-signed modules to
call AppSearch isolated_storage_service.

Bug: b/394401673
Flag: com.android.appsearch.flags.enable_isolated_storage
Test: AppSearchSessionCtsTest

Change-Id: I6dc25f2c3fb894fcb6711e0a4a055dbf9cd06cb2
parent b95b3b96
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -182,6 +182,7 @@ android_app {
        "aconfig_settingslib_flags",
        "telephony_flags",
        "update_engine_aconfig_declarations",
        "appsearch_aconfig_flags",
    ],
}

+9 −0
Original line number Diff line number Diff line
@@ -8484,6 +8484,15 @@
    <permission android:name="android.permission.READ_HOME_APP_SEARCH_DATA"
        android:protectionLevel="internal|role" />

    <!-- Must be required by an {@link com.android.server.appsearch.isolated_storage_service.IsolatedStorageService}
         to ensure that only the system can bind to it.
         <p>Protection level: signature
         @hide
    -->
    <permission android:name="android.permission.BIND_APP_SEARCH_ISOLATED_STORAGE_SERVICE"
        android:protectionLevel="signature"
        android:featureFlag= "com.android.appsearch.flags.enable_isolated_storage" />

    <!-- Allows an assistive application to perform actions on behalf of users inside of
         applications.
         <p>For now, this permission is only granted to the Assistant application selected by