blob: a3b2e43e4213ddfdc30c0671c28a58420a7e972b [file] [log] [blame]
Michael W26cc2292023-10-01 16:18:54 +02001<?xml version="1.0" encoding="utf-8"?><!--
2 SPDX-FileCopyrightText: 2016 The CyanogenMod Project
3 SPDX-FileCopyrightText: 2017-2023 The LineageOS Project
4 SPDX-License-Identifier: Apache-2.0
Steve Kondik66dbbd52016-09-03 05:15:27 -07005-->
6<manifest xmlns:android="http://schemas.android.com/apk/res/android"
Sam Mortimer32a2abb2017-09-18 21:40:24 -07007 package="org.lineageos.lineageparts"
Michael W26cc2292023-10-01 16:18:54 +02008 android:sharedUserId="android.uid.system"
Steve Kondik66dbbd52016-09-03 05:15:27 -07009 android:versionCode="1"
Michael W26cc2292023-10-01 16:18:54 +020010 android:versionName="1.0">
Steve Kondik66dbbd52016-09-03 05:15:27 -070011
Steve Kondikeeeadb52016-09-07 02:21:07 -070012 <uses-permission android:name="android.permission.WRITE_MEDIA_STORAGE" />
13 <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
14 <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
15 <uses-permission android:name="android.permission.WRITE_SETTINGS" />
16 <uses-permission android:name="android.permission.WRITE_SECURE_SETTINGS" />
17 <uses-permission android:name="android.permission.DEVICE_POWER" />
18 <uses-permission android:name="android.permission.CHANGE_CONFIGURATION" />
Steve Kondik03b56502016-09-10 17:17:25 -070019 <uses-permission android:name="android.permission.BIND_DEVICE_ADMIN" />
Steve Kondik362d0d62016-09-25 23:53:46 -070020 <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
Steve Kondik165ebdf2016-10-07 00:17:49 -070021 <uses-permission android:name="android.permission.READ_SEARCH_INDEXABLES" />
Ashwin R C5d6a8c62020-05-27 15:17:10 +000022 <uses-permission android:name="android.permission.VIBRATE" />
Steve Kondikeeeadb52016-09-07 02:21:07 -070023
Sam Mortimer32a2abb2017-09-18 21:40:24 -070024 <uses-permission android:name="lineageos.permission.MANAGE_REMOTE_PREFERENCES" />
Steve Kondik7789bbb2016-09-09 03:14:20 -070025
Rashed Abdel-Tawab3427dba2017-10-08 21:41:34 -040026 <protected-broadcast android:name="lineageos.intent.action.UPDATE_POWER_MENU" />
Sam Mortimer32a2abb2017-09-18 21:40:24 -070027 <protected-broadcast android:name="lineageos.platform.app.profiles.PROFILES_STATE_CHANGED" />
28 <protected-broadcast android:name="org.lineageos.lineageparts.PART_CHANGED" />
29 <protected-broadcast android:name="org.lineageos.lineageparts.REFRESH_PART" />
30 <protected-broadcast android:name="org.lineageos.lineageparts.gestures.UPDATE_SETTINGS" />
Steve Kondik3281bd62016-09-09 23:55:11 -070031
Michael W26cc2292023-10-01 16:18:54 +020032 <application
33 android:defaultToDeviceProtectedStorage="true"
34 android:directBootAware="true"
35 android:hardwareAccelerated="true"
36 android:icon="@mipmap/ic_launcher"
37 android:label="@string/lineageparts_title"
38 android:supportsRtl="true"
39 android:theme="@style/Theme.SubSettingsBase">
Steve Kondik66dbbd52016-09-03 05:15:27 -070040
Michael W26cc2292023-10-01 16:18:54 +020041 <activity
42 android:name=".PartsActivity"
Michael Bestasaa0a6d82023-02-09 03:01:32 +020043 android:configChanges="orientation|keyboardHidden|screenSize"
44 android:exported="true">
Steve Kondik7789bbb2016-09-09 03:14:20 -070045 <intent-filter>
Steve Kondik974a0ff2016-10-08 03:53:57 -070046 <action android:name="android.intent.action.MAIN" />
Steve Kondik7789bbb2016-09-09 03:14:20 -070047 <category android:name="android.intent.category.DEFAULT" />
48 </intent-filter>
Steve Kondik69144e92016-10-15 01:02:13 -070049 <meta-data
Sam Mortimer32a2abb2017-09-18 21:40:24 -070050 android:name="org.lineageos.settings.summary.receiver"
51 android:value="org.lineageos.lineageparts.PartsUpdater" />
Steve Kondik7789bbb2016-09-09 03:14:20 -070052 </activity>
53
Michael W26cc2292023-10-01 16:18:54 +020054 <activity
55 android:name=".trust.TrustOnBoardingActivity"
Luca Stefani5fba0142018-06-10 17:12:58 +020056 android:enabled="true"
Michael W26cc2292023-10-01 16:18:54 +020057 android:excludeFromRecents="true"
58 android:exported="true"
59 android:label="@string/trust_title"
60 android:theme="@style/OnBoardingStyle">
Joey8d100d32018-04-07 14:12:34 +020061 <intent-filter android:priority="-4">
62 <action android:name="org.lineageos.lineageparts.TRUST_HINT" />
63 <category android:name="android.intent.category.DEFAULT" />
64 </intent-filter>
65 </activity>
66
Michael W26cc2292023-10-01 16:18:54 +020067 <receiver
68 android:name=".BootReceiver"
Michael Bestasaa0a6d82023-02-09 03:01:32 +020069 android:enabled="true"
70 android:exported="false">
Steve Kondik362d0d62016-09-25 23:53:46 -070071 <intent-filter android:priority="2147483647">
72 <action android:name="android.intent.action.BOOT_COMPLETED" />
73 </intent-filter>
74 </receiver>
Steve Kondik7789bbb2016-09-09 03:14:20 -070075
Michael W26cc2292023-10-01 16:18:54 +020076 <receiver
77 android:name=".PartsUpdater"
Michael Bestasaa0a6d82023-02-09 03:01:32 +020078 android:enabled="true"
79 android:exported="false">
Steve Kondikee8f6e82016-10-10 01:31:23 -070080 <intent-filter>
Sam Mortimer32a2abb2017-09-18 21:40:24 -070081 <action android:name="lineageos.intent.action.UPDATE_PREFERENCE" />
Steve Kondik69144e92016-10-15 01:02:13 -070082 <category android:name="android.intent.category.DEFAULT" />
Steve Kondikee8f6e82016-10-10 01:31:23 -070083 </intent-filter>
84 </receiver>
85
Michael W26cc2292023-10-01 16:18:54 +020086 <provider
87 android:name=".search.LineagePartsSearchIndexablesProvider"
88 android:authorities="org.lineageos.lineageparts"
89 android:exported="true"
90 android:grantUriPermissions="true"
91 android:multiprocess="false"
92 android:permission="android.permission.READ_SEARCH_INDEXABLES">
Steve Kondik165ebdf2016-10-07 00:17:49 -070093 <intent-filter>
94 <action android:name="android.content.action.SEARCH_INDEXABLES_PROVIDER" />
95 </intent-filter>
96 </provider>
97
Danny Trunkdcbebe62023-01-22 21:31:08 +010098 <!-- Charging control settings (Battery category) -->
99 <activity-alias
100 android:name=".health.ChargingControlSettings"
Michael Bestasaa0a6d82023-02-09 03:01:32 +0200101 android:exported="true"
Danny Trunkdcbebe62023-01-22 21:31:08 +0100102 android:label="@string/charging_control_title"
103 android:targetActivity="PartsActivity">
104 <intent-filter>
105 <action android:name="org.lineageos.lineageparts.CHARGING_CONTROL_SETTINGS" />
106 <category android:name="android.intent.category.DEFAULT" />
107 </intent-filter>
108 </activity-alias>
109
Simon Shields196aaa42017-11-24 16:38:47 +1100110 <!-- Button settings (System category) -->
Steve Kondik3281bd62016-09-09 23:55:11 -0700111 <activity-alias
112 android:name=".input.ButtonSettings"
Michael Bestasaa0a6d82023-02-09 03:01:32 +0200113 android:exported="true"
Steve Kondik3281bd62016-09-09 23:55:11 -0700114 android:label="@string/button_pref_title"
115 android:targetActivity="PartsActivity">
Paul Keithcbddb5c2019-09-07 16:24:38 -0500116 <intent-filter>
117 <action android:name="com.android.settings.action.IA_SETTINGS" />
Sam Mortimer32a2abb2017-09-18 21:40:24 -0700118 <action android:name="org.lineageos.lineageparts.BUTTON_SETTINGS" />
Steve Kondik3281bd62016-09-09 23:55:11 -0700119 <category android:name="android.intent.category.DEFAULT" />
120 </intent-filter>
Michael W26cc2292023-10-01 16:18:54 +0200121
Steve Kondik3281bd62016-09-09 23:55:11 -0700122 <meta-data
123 android:name="com.android.settings.category"
Simon Shields196aaa42017-11-24 16:38:47 +1100124 android:value="com.android.settings.category.ia.system" />
Steve Kondik3281bd62016-09-09 23:55:11 -0700125 <meta-data
LuK13375816d9f2021-10-09 20:03:16 +0200126 android:name="com.android.settings.icon"
127 android:resource="@drawable/ic_settings_buttons" />
128 <meta-data
129 android:name="com.android.settings.icon_tintable"
130 android:value="true" />
131 <meta-data
Paul Keithcbddb5c2019-09-07 16:24:38 -0500132 android:name="com.android.settings.order"
133 android:value="-256" />
134 <meta-data
DroidFreak32214dacb2023-05-01 22:46:09 +0530135 android:name="com.android.settings.profile"
136 android:value="primary_profile_only" />
137 <meta-data
Simon Shields196aaa42017-11-24 16:38:47 +1100138 android:name="com.android.settings.summary"
Paul Keithcbddb5c2019-09-07 16:24:38 -0500139 android:resource="@string/summary_empty" />
Steve Kondik3281bd62016-09-09 23:55:11 -0700140 </activity-alias>
141
Zhao Wei Liew2ccca732017-01-21 00:51:22 +0800142 <activity android:name=".gestures.KeyHandler" />
143
Ethan Chend629eb42017-10-05 00:50:26 -0700144 <!-- Profiles settings (System category) -->
Steve Kondik03b56502016-09-10 17:17:25 -0700145 <activity-alias
146 android:name=".profiles.ProfilesSettings"
Michael Bestasaa0a6d82023-02-09 03:01:32 +0200147 android:exported="true"
Steve Kondik03b56502016-09-10 17:17:25 -0700148 android:label="@string/profiles_settings_title"
149 android:targetActivity="PartsActivity">
Paul Keithcbddb5c2019-09-07 16:24:38 -0500150 <intent-filter>
151 <action android:name="com.android.settings.action.IA_SETTINGS" />
Sam Mortimer32a2abb2017-09-18 21:40:24 -0700152 <action android:name="org.lineageos.lineageparts.PROFILES_SETTINGS" />
Steve Kondik03b56502016-09-10 17:17:25 -0700153 <category android:name="android.intent.category.DEFAULT" />
154 </intent-filter>
Michael W26cc2292023-10-01 16:18:54 +0200155
Steve Kondik03b56502016-09-10 17:17:25 -0700156 <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"
Michael Bestasaa0a6d82023-02-09 03:01:32 +0200179 android:exported="true"
Steve Kondik50c9fe62016-09-14 01:36:48 -0700180 android:label="@string/status_bar_title"
181 android:targetActivity="PartsActivity">
Paul Keithcbddb5c2019-09-07 16:24:38 -0500182 <intent-filter>
183 <action android:name="com.android.settings.action.IA_SETTINGS" />
Sam Mortimer32a2abb2017-09-18 21:40:24 -0700184 <action android:name="org.lineageos.lineageparts.STATUS_BAR_SETTINGS" />
Steve Kondik50c9fe62016-09-14 01:36:48 -0700185 <category android:name="android.intent.category.DEFAULT" />
186 </intent-filter>
Michael W26cc2292023-10-01 16:18:54 +0200187
Steve Kondik50c9fe62016-09-14 01:36:48 -0700188 <meta-data
189 android:name="com.android.settings.category"
Bruno Martins5c824992017-10-18 19:39:45 +0100190 android:value="com.android.settings.category.ia.system" />
Steve Kondik50c9fe62016-09-14 01:36:48 -0700191 <meta-data
LuK13375816d9f2021-10-09 20:03:16 +0200192 android:name="com.android.settings.icon"
193 android:resource="@drawable/ic_settings_statusbar" />
194 <meta-data
195 android:name="com.android.settings.icon_tintable"
196 android:value="true" />
197 <meta-data
Paul Keithcbddb5c2019-09-07 16:24:38 -0500198 android:name="com.android.settings.order"
199 android:value="-254" />
200 <meta-data
DroidFreak32214dacb2023-05-01 22:46:09 +0530201 android:name="com.android.settings.profile"
202 android:value="primary_profile_only" />
203 <meta-data
Bruno Martins5c824992017-10-18 19:39:45 +0100204 android:name="com.android.settings.summary"
205 android:resource="@string/summary_empty" />
Steve Kondik50c9fe62016-09-14 01:36:48 -0700206 </activity-alias>
207
Paul Keithcbddb5c2019-09-07 16:24:38 -0500208 <!-- Trust interface (Privacy category) -->
Joey8d100d32018-04-07 14:12:34 +0200209 <activity-alias
210 android:name=".trust.TrustPreferences"
Michael Bestasaa0a6d82023-02-09 03:01:32 +0200211 android:exported="true"
Joey8d100d32018-04-07 14:12:34 +0200212 android:label="@string/trust_title"
213 android:targetActivity="PartsActivity">
Paul Keithcbddb5c2019-09-07 16:24:38 -0500214 <intent-filter>
215 <action android:name="com.android.settings.action.IA_SETTINGS" />
Joey8d100d32018-04-07 14:12:34 +0200216 <action android:name="org.lineageos.lineageparts.TRUST_INTERFACE" />
217 <category android:name="android.intent.category.DEFAULT" />
218 </intent-filter>
Michael W26cc2292023-10-01 16:18:54 +0200219
Paul Keithcbddb5c2019-09-07 16:24:38 -0500220 <meta-data
221 android:name="com.android.settings.category"
222 android:value="com.android.settings.category.ia.privacy" />
223 <meta-data
224 android:name="com.android.settings.order"
Nicholas Lim779f45a2023-05-18 00:30:31 +0800225 android:value="-256" />
Paul Keithcbddb5c2019-09-07 16:24:38 -0500226 <meta-data
DroidFreak32214dacb2023-05-01 22:46:09 +0530227 android:name="com.android.settings.profile"
228 android:value="primary_profile_only" />
229 <meta-data
Paul Keithcbddb5c2019-09-07 16:24:38 -0500230 android:name="com.android.settings.summary"
Nicholas Lim779f45a2023-05-18 00:30:31 +0800231 android:resource="@string/trust_summary" />
Joey8d100d32018-04-07 14:12:34 +0200232 </activity-alias>
233
Bruno Martinscf2f02e2019-09-12 14:00:37 +0100234 <!-- Contributors Cloud (MyDeviceInfo category) -->
235 <activity-alias
236 android:name=".contributors.ContributorsCloudFragment"
Michael Bestasaa0a6d82023-02-09 03:01:32 +0200237 android:exported="true"
Bruno Martinscf2f02e2019-09-12 14:00:37 +0100238 android:label="@string/contributors_cloud_fragment_title"
239 android:targetActivity="PartsActivity">
240 <intent-filter>
241 <action android:name="com.android.settings.action.IA_SETTINGS" />
242 <action android:name="org.lineageos.lineageparts.CONTRIBUTORS_CLOUD" />
243 <category android:name="android.intent.category.DEFAULT" />
244 </intent-filter>
Michael W26cc2292023-10-01 16:18:54 +0200245
Bruno Martinscf2f02e2019-09-12 14:00:37 +0100246 <meta-data
247 android:name="com.android.settings.category"
248 android:value="com.android.settings.category.ia.my_device_info" />
249 <meta-data
250 android:name="com.android.settings.order"
Bruno Martins2c9043b2021-12-31 16:29:07 +0000251 android:value="2" />
Bruno Martinscf2f02e2019-09-12 14:00:37 +0100252 <meta-data
DroidFreak32214dacb2023-05-01 22:46:09 +0530253 android:name="com.android.settings.profile"
254 android:value="primary_profile_only" />
255 <meta-data
Bruno Martinscf2f02e2019-09-12 14:00:37 +0100256 android:name="com.android.settings.summary"
257 android:resource="@string/summary_empty" />
258 </activity-alias>
259
Steve Kondikcd4f0ee2016-09-26 00:23:57 -0700260 <!-- Anonymous Statistics -->
Michael W26cc2292023-10-01 16:18:54 +0200261 <receiver
262 android:name=".lineagestats.ReportingServiceManager"
Steve Kondikcd4f0ee2016-09-26 00:23:57 -0700263 android:enabled="true"
264 android:exported="false"
265 android:label="ReportingServiceManager">
266 <intent-filter>
267 <action android:name="android.intent.action.BOOT_COMPLETED" />
Sam Mortimer32a2abb2017-09-18 21:40:24 -0700268 <action android:name="org.lineageos.lineageparts.action.TRIGGER_REPORT_METRICS" />
Steve Kondikcd4f0ee2016-09-26 00:23:57 -0700269 </intent-filter>
270 </receiver>
271
Michael W26cc2292023-10-01 16:18:54 +0200272 <service
273 android:name=".lineagestats.ReportingService"
274 android:enabled="true"
275 android:exported="false"
276 android:label="ReportingService" />
Steve Kondikcd4f0ee2016-09-26 00:23:57 -0700277
Michael W26cc2292023-10-01 16:18:54 +0200278 <service
279 android:name=".lineagestats.StatsUploadJobService"
280 android:permission="android.permission.BIND_JOB_SERVICE" />
Steve Kondikcd4f0ee2016-09-26 00:23:57 -0700281
Michael Bestasaa0a6d82023-02-09 03:01:32 +0200282 <activity
283 android:name=".profiles.NFCProfile"
284 android:exported="true">
Maxim Becker4677ce62017-02-09 14:07:50 +0100285 <intent-filter>
Michael W26cc2292023-10-01 16:18:54 +0200286 <action android:name="android.nfc.action.NDEF_DISCOVERED" />
287 <category android:name="android.intent.category.DEFAULT" />
Bruno Martins84b8a8e2018-02-22 12:22:05 +0000288 <data android:mimeType="lineage/profile" />
Maxim Becker4677ce62017-02-09 14:07:50 +0100289 </intent-filter>
290 </activity>
291
292 <activity
293 android:name=".profiles.NFCProfileSelect"
Michael W26cc2292023-10-01 16:18:54 +0200294 android:excludeFromRecents="true"
295 android:label="@string/profile_select" />
Maxim Becker4677ce62017-02-09 14:07:50 +0100296
Michael W26cc2292023-10-01 16:18:54 +0200297 <activity
298 android:name=".logo.PlatLogoActivity"
299 android:configChanges="orientation|keyboardHidden"
Michael Bestasaa0a6d82023-02-09 03:01:32 +0200300 android:exported="true"
Michael W26cc2292023-10-01 16:18:54 +0200301 android:theme="@style/EggStyle">
Michael Bestas03645f22014-11-13 21:22:46 +0200302 <intent-filter>
303 <action android:name="android.intent.action.MAIN" />
304 <category android:name="android.intent.category.DEFAULT" />
305 </intent-filter>
306 </activity>
307
Michael W26cc2292023-10-01 16:18:54 +0200308 <activity
309 android:name=".egg.octo.Ocquarium"
Michael Bestasaa0a6d82023-02-09 03:01:32 +0200310 android:exported="true"
Michael W26cc2292023-10-01 16:18:54 +0200311 android:label="@string/egg_title"
312 android:theme="@style/EggStyle">
meganukebmp9a6ac452017-12-29 19:45:22 +0200313 <intent-filter>
Michael W26cc2292023-10-01 16:18:54 +0200314 <action android:name="org.lineageos.lineageparts.EASTER_EGG" />
meganukebmp9a6ac452017-12-29 19:45:22 +0200315 <category android:name="android.intent.category.DEFAULT" />
316 <category android:name="com.android.internal.category.PLATLOGO" />
317 </intent-filter>
318 </activity>
319
Steve Kondik66dbbd52016-09-03 05:15:27 -0700320 </application>
321</manifest>