<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2024 The Android Open Source Project

     Licensed under the Apache License, Version 2.0 (the "License");
     you may not use this file except in compliance with the License.
     You may obtain a copy of the License at

          http://www.apache.org/licenses/LICENSE-2.0

     Unless required by applicable law or agreed to in writing, software
     distributed under the License is distributed on an "AS IS" BASIS,
     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     See the License for the specific language governing permissions and
     limitations under the License.
-->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
  package="com.android.appsearch.apk">

    <!-- TODO(b/359911502): Remove this permission along with the other app functionality that
           exists in app search once the new app function implementation is done.
         Allows system applications to execute app functions provided by apps through AppSearch. -->
    <permission android:name="android.permission.EXECUTE_APP_FUNCTION"
                android:protectionLevel="internal|role" />
    <uses-permission android:name="android.permission.MANAGE_VIRTUAL_MACHINE" />
    <uses-permission android:name="android.permission.USE_RELAXED_MICRODROID_ROLLBACK_PROTECTION" />
    <uses-feature android:name="android.software.virtualization_framework" android:required="true" />
    <application android:allowBackup="false"  android:directBootAware="true">
        <!-- Only non-decreasing ROLLBACK_INDEX value is allowed. In case of security fixes, we'll
        increase the ROLLBACK_INDEX value to prevent rolling pVM back to old versions with lower
        ROLLBACK_INDEX value. -->
        <property android:name="android.system.virtualmachine.ROLLBACK_INDEX" android:value="1" />
        <property android:name="android.system.virtualmachine.ENCRYPTED_STORE_MODE" android:value="1" />
        <service
            android:name="com.android.server.appsearch.isolated_storage_service.IsolatedStorageService"
            android:exported="true"
            android:permission="android.permission.BIND_APP_SEARCH_ISOLATED_STORAGE_SERVICE">
            <intent-filter>
                <action android:name="com.android.appsearch.ISOLATED_STORAGE_SERVICE" />
            </intent-filter>
        </service>
    </application>

</manifest>
