xref: /aosp_15_r20/external/angle/src/android_system_settings/src/com/android/angle/AndroidManifest.xml (revision 8975f5c5ed3d1c378011245431ada316dfb6f244)
1<?xml version="1.0" encoding="utf-8"?>
2<!--
3    Copyright 2019 The Android Open Source Project
4
5    Licensed under the Apache License, Version 2.0 (the "License");
6    you may not use this file except in compliance with the License.
7    You may obtain a copy of the License at
8
9      http://www.apache.org/licenses/LICENSE-2.0
10
11    Unless required by applicable law or agreed to in writing, software
12    distributed under the License is distributed on an "AS IS" BASIS,
13    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14    See the License for the specific language governing permissions and
15    limitations under the License.
16 -->
17
18<manifest xmlns:android="http://schemas.android.com/apk/res/android"
19          android:versionCode="100"
20          android:versionName="100"
21          package="com.android.angle">
22
23    <uses-permission android:name="android.permission.WRITE_SECURE_SETTINGS" />
24    <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
25    <uses-permission android:name="android.permission.QUERY_ALL_PACKAGES" />
26
27    <application android:allowBackup="false"
28                 android:label="Android System Angle"
29                 android:icon="@drawable/icon"
30                 android:extractNativeLibs="false"
31                 android:forceQueryable="true"
32                 android:multiArch="true">
33
34        <activity android:name="com.android.angle.MainActivity"
35                  android:label="@string/angle_preferences"
36                  android:description="@string/angle_preferences_summary"
37                  android:theme="@style/Theme.Settings"
38                  android:visibleToInstantApps="true"
39                  android:launchMode="singleTask"
40                  android:exported="true">
41            <intent-filter>
42                <action android:name="android.intent.action.MAIN"/>
43                <category android:name="android.intent.category.INFO"/>
44            </intent-filter>
45
46            <!-- Indicate that this PKG is ANGLE. -->
47            <intent-filter android:priority="1">
48                <action android:name="android.app.action.ANGLE_FOR_ANDROID" />
49                <category android:name="android.intent.category.DEFAULT" />
50            </intent-filter>
51
52            <intent-filter>
53                <action android:name="android.service.quicksettings.action.QS_TILE_PREFERENCES" />
54            </intent-filter>
55
56            <!-- Mark this fragment as a dynamic setting in the development category. -->
57            <intent-filter>
58                <action android:name="com.android.settings.action.IA_SETTINGS" />
59            </intent-filter>
60            <meta-data android:name="com.android.settings.category"
61                       android:value="com.android.settings.category.ia.development" />
62            <meta-data android:name="com.android.settings.summary" android:resource="@string/angle_preferences_summary" />
63            <meta-data android:name="com.android.settings.order" android:value="20" />
64            <meta-data android:name="com.android.settings.profile" android:value="primary_profile_only" />
65            <meta-data android:name="instantapps.clients.allowed" android:value="true" />
66        </activity>
67
68        <receiver android:name="com.android.angle.common.Receiver"
69                  android:directBootAware="true"
70                  android:exported="true">
71            <intent-filter>
72                <action android:name="android.intent.action.BOOT_COMPLETED" />
73                <action android:name="android.intent.action.MY_PACKAGE_REPLACED" />
74                <action android:name="android.app.action.ANGLE_FOR_ANDROID_TOAST_MESSAGE" />
75            </intent-filter>
76        </receiver>
77
78        <provider
79            android:name="com.android.angle.common.SearchProvider"
80            android:authorities="com.android.angle"
81            android:multiprocess="false"
82            android:grantUriPermissions="true"
83            android:permission="android.permission.READ_SEARCH_INDEXABLES"
84            android:exported="true">
85            <intent-filter>
86                <action android:name="android.content.action.SEARCH_INDEXABLES_PROVIDER" />
87            </intent-filter>
88        </provider>
89    </application>
90</manifest>
91