blob: 7f3dc723005895f40ef788b23ad1a35c5e1c5e2e [file] [log] [blame]
Steve Kondik66dbbd52016-09-03 05:15:27 -07001<?xml version="1.0" encoding="utf-8"?>
2<!--
3/**
4 * Copyright 2016, The CyanogenMod Project
DroidFreak32214dacb2023-05-01 22:46:09 +05305 * Copyright 2017-2023, The LineageOS Project
Steve Kondik66dbbd52016-09-03 05:15:27 -07006 *
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
10 *
11 * http://www.apache.org/licenses/LICENSE-2.0
12 *
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
18 */
19-->
20<manifest xmlns:android="http://schemas.android.com/apk/res/android"
Sam Mortimer32a2abb2017-09-18 21:40:24 -070021 package="org.lineageos.lineageparts"
Steve Kondik66dbbd52016-09-03 05:15:27 -070022 android:versionCode="1"
23 android:versionName="1.0"
24 android:sharedUserId="android.uid.system">
25
26 <uses-sdk android:minSdkVersion="24" android:targetSdkVersion="24" />
27
Steve Kondikeeeadb52016-09-07 02:21:07 -070028 <uses-permission android:name="android.permission.WRITE_MEDIA_STORAGE" />
29 <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
30 <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
31 <uses-permission android:name="android.permission.WRITE_SETTINGS" />
32 <uses-permission android:name="android.permission.WRITE_SECURE_SETTINGS" />
33 <uses-permission android:name="android.permission.DEVICE_POWER" />
34 <uses-permission android:name="android.permission.CHANGE_CONFIGURATION" />
Steve Kondik03b56502016-09-10 17:17:25 -070035 <uses-permission android:name="android.permission.BIND_DEVICE_ADMIN" />
Steve Kondik362d0d62016-09-25 23:53:46 -070036 <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
Steve Kondik165ebdf2016-10-07 00:17:49 -070037 <uses-permission android:name="android.permission.READ_SEARCH_INDEXABLES" />
Ashwin R C5d6a8c62020-05-27 15:17:10 +000038 <uses-permission android:name="android.permission.VIBRATE" />
Steve Kondikeeeadb52016-09-07 02:21:07 -070039
Sam Mortimer32a2abb2017-09-18 21:40:24 -070040 <uses-permission android:name="lineageos.permission.MANAGE_REMOTE_PREFERENCES" />
Steve Kondik7789bbb2016-09-09 03:14:20 -070041
Rashed Abdel-Tawab3427dba2017-10-08 21:41:34 -040042 <protected-broadcast android:name="lineageos.intent.action.UPDATE_POWER_MENU" />
Sam Mortimer32a2abb2017-09-18 21:40:24 -070043 <protected-broadcast android:name="lineageos.platform.app.profiles.PROFILES_STATE_CHANGED" />
44 <protected-broadcast android:name="org.lineageos.lineageparts.PART_CHANGED" />
45 <protected-broadcast android:name="org.lineageos.lineageparts.REFRESH_PART" />
46 <protected-broadcast android:name="org.lineageos.lineageparts.gestures.UPDATE_SETTINGS" />
Steve Kondik3281bd62016-09-09 23:55:11 -070047
Sam Mortimer32a2abb2017-09-18 21:40:24 -070048 <application android:label="@string/lineageparts_title"
Asher Simondsa9a48062018-02-14 16:38:10 +020049 android:icon="@mipmap/ic_launcher"
Bruno Martins2c9043b2021-12-31 16:29:07 +000050 android:theme="@style/Theme.SubSettingsBase"
Steve Kondik66dbbd52016-09-03 05:15:27 -070051 android:hardwareAccelerated="true"
52 android:supportsRtl="true"
53 android:defaultToDeviceProtectedStorage="true"
54 android:directBootAware="true">
55
LuK1337ceadf252017-06-01 12:42:54 +020056 <activity android:name=".PartsActivity"
57 android:configChanges="orientation|keyboardHidden|screenSize">
Steve Kondik7789bbb2016-09-09 03:14:20 -070058 <intent-filter>
Steve Kondik974a0ff2016-10-08 03:53:57 -070059 <action android:name="android.intent.action.MAIN" />
Steve Kondik7789bbb2016-09-09 03:14:20 -070060 <category android:name="android.intent.category.DEFAULT" />
61 </intent-filter>
Steve Kondik69144e92016-10-15 01:02:13 -070062 <meta-data
Sam Mortimer32a2abb2017-09-18 21:40:24 -070063 android:name="org.lineageos.settings.summary.receiver"
64 android:value="org.lineageos.lineageparts.PartsUpdater" />
Steve Kondik7789bbb2016-09-09 03:14:20 -070065 </activity>
66
Joey8d100d32018-04-07 14:12:34 +020067 <activity android:name=".trust.TrustOnBoardingActivity"
68 android:label="@string/trust_title"
69 android:theme="@style/OnBoardingStyle"
70 android:exported="true"
Luca Stefani5fba0142018-06-10 17:12:58 +020071 android:enabled="true"
72 android:excludeFromRecents="true">
Joey8d100d32018-04-07 14:12:34 +020073 <intent-filter android:priority="-4">
74 <action android:name="org.lineageos.lineageparts.TRUST_HINT" />
75 <category android:name="android.intent.category.DEFAULT" />
76 </intent-filter>
77 </activity>
78
Steve Kondik69144e92016-10-15 01:02:13 -070079 <receiver android:name=".BootReceiver" android:enabled="true">
Steve Kondik362d0d62016-09-25 23:53:46 -070080 <intent-filter android:priority="2147483647">
81 <action android:name="android.intent.action.BOOT_COMPLETED" />
82 </intent-filter>
83 </receiver>
Steve Kondik7789bbb2016-09-09 03:14:20 -070084
Steve Kondik69144e92016-10-15 01:02:13 -070085 <receiver android:name=".PartsUpdater" android:enabled="true">
Steve Kondikee8f6e82016-10-10 01:31:23 -070086 <intent-filter>
Sam Mortimer32a2abb2017-09-18 21:40:24 -070087 <action android:name="lineageos.intent.action.UPDATE_PREFERENCE" />
Steve Kondik69144e92016-10-15 01:02:13 -070088 <category android:name="android.intent.category.DEFAULT" />
Steve Kondikee8f6e82016-10-10 01:31:23 -070089 </intent-filter>
90 </receiver>
91
Sam Mortimer32a2abb2017-09-18 21:40:24 -070092 <provider android:name=".search.LineagePartsSearchIndexablesProvider"
93 android:authorities="org.lineageos.lineageparts"
Steve Kondik165ebdf2016-10-07 00:17:49 -070094 android:multiprocess="false"
95 android:grantUriPermissions="true"
96 android:permission="android.permission.READ_SEARCH_INDEXABLES"
97 android:exported="true">
98 <intent-filter>
99 <action android:name="android.content.action.SEARCH_INDEXABLES_PROVIDER" />
100 </intent-filter>
101 </provider>
102
Danny Trunkdcbebe62023-01-22 21:31:08 +0100103 <!-- Charging control settings (Battery category) -->
104 <activity-alias
105 android:name=".health.ChargingControlSettings"
106 android:label="@string/charging_control_title"
107 android:targetActivity="PartsActivity">
108 <intent-filter>
109 <action android:name="org.lineageos.lineageparts.CHARGING_CONTROL_SETTINGS" />
110 <category android:name="android.intent.category.DEFAULT" />
111 </intent-filter>
112 </activity-alias>
113
Simon Shields196aaa42017-11-24 16:38:47 +1100114 <!-- Button settings (System category) -->
Steve Kondik3281bd62016-09-09 23:55:11 -0700115 <activity-alias
116 android:name=".input.ButtonSettings"
117 android:label="@string/button_pref_title"
118 android:targetActivity="PartsActivity">
Paul Keithcbddb5c2019-09-07 16:24:38 -0500119 <intent-filter>
120 <action android:name="com.android.settings.action.IA_SETTINGS" />
Sam Mortimer32a2abb2017-09-18 21:40:24 -0700121 <action android:name="org.lineageos.lineageparts.BUTTON_SETTINGS" />
Steve Kondik3281bd62016-09-09 23:55:11 -0700122 <category android:name="android.intent.category.DEFAULT" />
123 </intent-filter>
124 <meta-data
125 android:name="com.android.settings.category"
Simon Shields196aaa42017-11-24 16:38:47 +1100126 android:value="com.android.settings.category.ia.system" />
Steve Kondik3281bd62016-09-09 23:55:11 -0700127 <meta-data
LuK13375816d9f2021-10-09 20:03:16 +0200128 android:name="com.android.settings.icon"
129 android:resource="@drawable/ic_settings_buttons" />
130 <meta-data
131 android:name="com.android.settings.icon_tintable"
132 android:value="true" />
133 <meta-data
Paul Keithcbddb5c2019-09-07 16:24:38 -0500134 android:name="com.android.settings.order"
135 android:value="-256" />
136 <meta-data
DroidFreak32214dacb2023-05-01 22:46:09 +0530137 android:name="com.android.settings.profile"
138 android:value="primary_profile_only" />
139 <meta-data
Simon Shields196aaa42017-11-24 16:38:47 +1100140 android:name="com.android.settings.summary"
Paul Keithcbddb5c2019-09-07 16:24:38 -0500141 android:resource="@string/summary_empty" />
Steve Kondik3281bd62016-09-09 23:55:11 -0700142 </activity-alias>
143
Zhao Wei Liew2ccca732017-01-21 00:51:22 +0800144 <activity android:name=".gestures.KeyHandler" />
145
Ethan Chend629eb42017-10-05 00:50:26 -0700146 <!-- Profiles settings (System category) -->
Steve Kondik03b56502016-09-10 17:17:25 -0700147 <activity-alias
148 android:name=".profiles.ProfilesSettings"
149 android:label="@string/profiles_settings_title"
150 android:targetActivity="PartsActivity">
Paul Keithcbddb5c2019-09-07 16:24:38 -0500151 <intent-filter>
152 <action android:name="com.android.settings.action.IA_SETTINGS" />
Sam Mortimer32a2abb2017-09-18 21:40:24 -0700153 <action android:name="org.lineageos.lineageparts.PROFILES_SETTINGS" />
Steve Kondik03b56502016-09-10 17:17:25 -0700154 <category android:name="android.intent.category.DEFAULT" />
155 </intent-filter>
156 <meta-data
157 android:name="com.android.settings.category"
Ethan Chend629eb42017-10-05 00:50:26 -0700158 android:value="com.android.settings.category.ia.system" />
Steve Kondik03b56502016-09-10 17:17:25 -0700159 <meta-data
LuK13375816d9f2021-10-09 20:03:16 +0200160 android:name="com.android.settings.icon"
161 android:resource="@drawable/ic_settings_profiles" />
162 <meta-data
163 android:name="com.android.settings.icon_tintable"
164 android:value="true" />
165 <meta-data
Paul Keithcbddb5c2019-09-07 16:24:38 -0500166 android:name="com.android.settings.order"
167 android:value="-255" />
168 <meta-data
DroidFreak32214dacb2023-05-01 22:46:09 +0530169 android:name="com.android.settings.profile"
170 android:value="primary_profile_only" />
171 <meta-data
Ethan Chend629eb42017-10-05 00:50:26 -0700172 android:name="com.android.settings.summary"
173 android:resource="@string/summary_empty" />
Steve Kondik03b56502016-09-10 17:17:25 -0700174 </activity-alias>
175
Bruno Martins5c824992017-10-18 19:39:45 +0100176 <!-- Status bar settings (System category) -->
Steve Kondik50c9fe62016-09-14 01:36:48 -0700177 <activity-alias
178 android:name=".statusbar.StatusBarSettings"
179 android:label="@string/status_bar_title"
180 android:targetActivity="PartsActivity">
Paul Keithcbddb5c2019-09-07 16:24:38 -0500181 <intent-filter>
182 <action android:name="com.android.settings.action.IA_SETTINGS" />
Sam Mortimer32a2abb2017-09-18 21:40:24 -0700183 <action android:name="org.lineageos.lineageparts.STATUS_BAR_SETTINGS" />
Steve Kondik50c9fe62016-09-14 01:36:48 -0700184 <category android:name="android.intent.category.DEFAULT" />
185 </intent-filter>
186 <meta-data
187 android:name="com.android.settings.category"
Bruno Martins5c824992017-10-18 19:39:45 +0100188 android:value="com.android.settings.category.ia.system" />
Steve Kondik50c9fe62016-09-14 01:36:48 -0700189 <meta-data
LuK13375816d9f2021-10-09 20:03:16 +0200190 android:name="com.android.settings.icon"
191 android:resource="@drawable/ic_settings_statusbar" />
192 <meta-data
193 android:name="com.android.settings.icon_tintable"
194 android:value="true" />
195 <meta-data
Paul Keithcbddb5c2019-09-07 16:24:38 -0500196 android:name="com.android.settings.order"
197 android:value="-254" />
198 <meta-data
DroidFreak32214dacb2023-05-01 22:46:09 +0530199 android:name="com.android.settings.profile"
200 android:value="primary_profile_only" />
201 <meta-data
Bruno Martins5c824992017-10-18 19:39:45 +0100202 android:name="com.android.settings.summary"
203 android:resource="@string/summary_empty" />
Steve Kondik50c9fe62016-09-14 01:36:48 -0700204 </activity-alias>
205
Paul Keithcbddb5c2019-09-07 16:24:38 -0500206 <!-- Trust interface (Privacy category) -->
Joey8d100d32018-04-07 14:12:34 +0200207 <activity-alias
208 android:name=".trust.TrustPreferences"
209 android:label="@string/trust_title"
210 android:targetActivity="PartsActivity">
Paul Keithcbddb5c2019-09-07 16:24:38 -0500211 <intent-filter>
212 <action android:name="com.android.settings.action.IA_SETTINGS" />
Joey8d100d32018-04-07 14:12:34 +0200213 <action android:name="org.lineageos.lineageparts.TRUST_INTERFACE" />
214 <category android:name="android.intent.category.DEFAULT" />
215 </intent-filter>
Paul Keithcbddb5c2019-09-07 16:24:38 -0500216 <meta-data
217 android:name="com.android.settings.category"
218 android:value="com.android.settings.category.ia.privacy" />
219 <meta-data
220 android:name="com.android.settings.order"
Nicholas Lim779f45a2023-05-18 00:30:31 +0800221 android:value="-256" />
Paul Keithcbddb5c2019-09-07 16:24:38 -0500222 <meta-data
DroidFreak32214dacb2023-05-01 22:46:09 +0530223 android:name="com.android.settings.profile"
224 android:value="primary_profile_only" />
225 <meta-data
Paul Keithcbddb5c2019-09-07 16:24:38 -0500226 android:name="com.android.settings.summary"
Nicholas Lim779f45a2023-05-18 00:30:31 +0800227 android:resource="@string/trust_summary" />
Joey8d100d32018-04-07 14:12:34 +0200228 </activity-alias>
229
Bruno Martinscf2f02e2019-09-12 14:00:37 +0100230 <!-- Contributors Cloud (MyDeviceInfo category) -->
231 <activity-alias
232 android:name=".contributors.ContributorsCloudFragment"
233 android:label="@string/contributors_cloud_fragment_title"
234 android:targetActivity="PartsActivity">
235 <intent-filter>
236 <action android:name="com.android.settings.action.IA_SETTINGS" />
237 <action android:name="org.lineageos.lineageparts.CONTRIBUTORS_CLOUD" />
238 <category android:name="android.intent.category.DEFAULT" />
239 </intent-filter>
240 <meta-data
241 android:name="com.android.settings.category"
242 android:value="com.android.settings.category.ia.my_device_info" />
243 <meta-data
244 android:name="com.android.settings.order"
Bruno Martins2c9043b2021-12-31 16:29:07 +0000245 android:value="2" />
Bruno Martinscf2f02e2019-09-12 14:00:37 +0100246 <meta-data
DroidFreak32214dacb2023-05-01 22:46:09 +0530247 android:name="com.android.settings.profile"
248 android:value="primary_profile_only" />
249 <meta-data
Bruno Martinscf2f02e2019-09-12 14:00:37 +0100250 android:name="com.android.settings.summary"
251 android:resource="@string/summary_empty" />
252 </activity-alias>
253
Steve Kondikcd4f0ee2016-09-26 00:23:57 -0700254 <!-- Anonymous Statistics -->
Sam Mortimer32a2abb2017-09-18 21:40:24 -0700255 <receiver android:name=".lineagestats.ReportingServiceManager"
Steve Kondikcd4f0ee2016-09-26 00:23:57 -0700256 android:enabled="true"
257 android:exported="false"
258 android:label="ReportingServiceManager">
259 <intent-filter>
260 <action android:name="android.intent.action.BOOT_COMPLETED" />
Sam Mortimer32a2abb2017-09-18 21:40:24 -0700261 <action android:name="org.lineageos.lineageparts.action.TRIGGER_REPORT_METRICS" />
Steve Kondikcd4f0ee2016-09-26 00:23:57 -0700262 </intent-filter>
263 </receiver>
264
Sam Mortimer32a2abb2017-09-18 21:40:24 -0700265 <service android:name=".lineagestats.StatsUploadJobService"
Steve Kondikcd4f0ee2016-09-26 00:23:57 -0700266 android:permission="android.permission.BIND_JOB_SERVICE" />
267
Sam Mortimer32a2abb2017-09-18 21:40:24 -0700268 <service android:name=".lineagestats.ReportingService"
Steve Kondikcd4f0ee2016-09-26 00:23:57 -0700269 android:label="ReportingService"
270 android:enabled="true"
271 android:exported="false" />
272
Maxim Becker4677ce62017-02-09 14:07:50 +0100273 <activity android:name=".profiles.NFCProfile">
274 <intent-filter>
275 <action android:name="android.nfc.action.NDEF_DISCOVERED"/>
276 <category android:name="android.intent.category.DEFAULT"/>
Bruno Martins84b8a8e2018-02-22 12:22:05 +0000277 <data android:mimeType="lineage/profile" />
Maxim Becker4677ce62017-02-09 14:07:50 +0100278 </intent-filter>
279 </activity>
280
281 <activity
282 android:name=".profiles.NFCProfileSelect"
283 android:label="@string/profile_select"
284 android:excludeFromRecents="true"/>
285
Michael Bestas03645f22014-11-13 21:22:46 +0200286 <activity android:name=".logo.PlatLogoActivity"
LuK133777c18262022-05-29 21:14:00 +0200287 android:theme="@style/EggStyle"
Michael Bestas03645f22014-11-13 21:22:46 +0200288 android:configChanges="orientation|keyboardHidden">
289 <intent-filter>
290 <action android:name="android.intent.action.MAIN" />
291 <category android:name="android.intent.category.DEFAULT" />
292 </intent-filter>
293 </activity>
294
meganukebmp9a6ac452017-12-29 19:45:22 +0200295 <activity android:name=".egg.octo.Ocquarium"
LuK133777c18262022-05-29 21:14:00 +0200296 android:theme="@style/EggStyle"
meganukebmp9a6ac452017-12-29 19:45:22 +0200297 android:label="@string/egg_title">
298 <intent-filter>
299 <action android:name="org.lineageos.lineageparts.EASTER_EGG"/>
300 <category android:name="android.intent.category.DEFAULT" />
301 <category android:name="com.android.internal.category.PLATLOGO" />
302 </intent-filter>
303 </activity>
304
Steve Kondik66dbbd52016-09-03 05:15:27 -0700305 </application>
306</manifest>