blob: 44e8323b731a29938c6ebfecac5123de1d30b638 [file] [log] [blame]
Michael W9fbeb192023-10-01 17:45:23 +02001<?xml version="1.0" encoding="utf-8"?>
2<!--
Michael W26cc2292023-10-01 16:18:54 +02003 SPDX-FileCopyrightText: 2016 The CyanogenMod Project
4 SPDX-FileCopyrightText: 2017-2023 The LineageOS Project
5 SPDX-License-Identifier: Apache-2.0
Steve Kondik66dbbd52016-09-03 05:15:27 -07006-->
7<manifest xmlns:android="http://schemas.android.com/apk/res/android"
Sam Mortimer32a2abb2017-09-18 21:40:24 -07008 package="org.lineageos.lineageparts"
Michael W26cc2292023-10-01 16:18:54 +02009 android:sharedUserId="android.uid.system"
Steve Kondik66dbbd52016-09-03 05:15:27 -070010 android:versionCode="1"
Michael W26cc2292023-10-01 16:18:54 +020011 android:versionName="1.0">
Steve Kondik66dbbd52016-09-03 05:15:27 -070012
Steve Kondikeeeadb52016-09-07 02:21:07 -070013 <uses-permission android:name="android.permission.WRITE_MEDIA_STORAGE" />
14 <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
15 <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
16 <uses-permission android:name="android.permission.WRITE_SETTINGS" />
17 <uses-permission android:name="android.permission.WRITE_SECURE_SETTINGS" />
18 <uses-permission android:name="android.permission.DEVICE_POWER" />
19 <uses-permission android:name="android.permission.CHANGE_CONFIGURATION" />
Steve Kondik03b56502016-09-10 17:17:25 -070020 <uses-permission android:name="android.permission.BIND_DEVICE_ADMIN" />
Steve Kondik362d0d62016-09-25 23:53:46 -070021 <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
Steve Kondik165ebdf2016-10-07 00:17:49 -070022 <uses-permission android:name="android.permission.READ_SEARCH_INDEXABLES" />
Ashwin R C5d6a8c62020-05-27 15:17:10 +000023 <uses-permission android:name="android.permission.VIBRATE" />
Steve Kondikeeeadb52016-09-07 02:21:07 -070024
Sam Mortimer32a2abb2017-09-18 21:40:24 -070025 <uses-permission android:name="lineageos.permission.MANAGE_REMOTE_PREFERENCES" />
Steve Kondik7789bbb2016-09-09 03:14:20 -070026
Rashed Abdel-Tawab3427dba2017-10-08 21:41:34 -040027 <protected-broadcast android:name="lineageos.intent.action.UPDATE_POWER_MENU" />
Sam Mortimer32a2abb2017-09-18 21:40:24 -070028 <protected-broadcast android:name="lineageos.platform.app.profiles.PROFILES_STATE_CHANGED" />
29 <protected-broadcast android:name="org.lineageos.lineageparts.PART_CHANGED" />
30 <protected-broadcast android:name="org.lineageos.lineageparts.REFRESH_PART" />
31 <protected-broadcast android:name="org.lineageos.lineageparts.gestures.UPDATE_SETTINGS" />
Steve Kondik3281bd62016-09-09 23:55:11 -070032
Michael W26cc2292023-10-01 16:18:54 +020033 <application
34 android:defaultToDeviceProtectedStorage="true"
35 android:directBootAware="true"
36 android:hardwareAccelerated="true"
37 android:icon="@mipmap/ic_launcher"
38 android:label="@string/lineageparts_title"
39 android:supportsRtl="true"
40 android:theme="@style/Theme.SubSettingsBase">
Steve Kondik66dbbd52016-09-03 05:15:27 -070041
Michael W26cc2292023-10-01 16:18:54 +020042 <activity
43 android:name=".PartsActivity"
Michael Bestasaa0a6d82023-02-09 03:01:32 +020044 android:configChanges="orientation|keyboardHidden|screenSize"
45 android:exported="true">
Steve Kondik7789bbb2016-09-09 03:14:20 -070046 <intent-filter>
Steve Kondik974a0ff2016-10-08 03:53:57 -070047 <action android:name="android.intent.action.MAIN" />
Steve Kondik7789bbb2016-09-09 03:14:20 -070048 <category android:name="android.intent.category.DEFAULT" />
49 </intent-filter>
Steve Kondik69144e92016-10-15 01:02:13 -070050 <meta-data
Sam Mortimer32a2abb2017-09-18 21:40:24 -070051 android:name="org.lineageos.settings.summary.receiver"
52 android:value="org.lineageos.lineageparts.PartsUpdater" />
Steve Kondik7789bbb2016-09-09 03:14:20 -070053 </activity>
54
Michael W26cc2292023-10-01 16:18:54 +020055 <activity
56 android:name=".trust.TrustOnBoardingActivity"
Luca Stefani5fba0142018-06-10 17:12:58 +020057 android:enabled="true"
Michael W26cc2292023-10-01 16:18:54 +020058 android:excludeFromRecents="true"
59 android:exported="true"
60 android:label="@string/trust_title"
61 android:theme="@style/OnBoardingStyle">
Joey8d100d32018-04-07 14:12:34 +020062 <intent-filter android:priority="-4">
63 <action android:name="org.lineageos.lineageparts.TRUST_HINT" />
64 <category android:name="android.intent.category.DEFAULT" />
65 </intent-filter>
66 </activity>
67
Michael W26cc2292023-10-01 16:18:54 +020068 <receiver
69 android:name=".BootReceiver"
Michael Bestasaa0a6d82023-02-09 03:01:32 +020070 android:enabled="true"
71 android:exported="false">
Steve Kondik362d0d62016-09-25 23:53:46 -070072 <intent-filter android:priority="2147483647">
73 <action android:name="android.intent.action.BOOT_COMPLETED" />
74 </intent-filter>
75 </receiver>
Steve Kondik7789bbb2016-09-09 03:14:20 -070076
Michael W26cc2292023-10-01 16:18:54 +020077 <receiver
78 android:name=".PartsUpdater"
Michael Bestasaa0a6d82023-02-09 03:01:32 +020079 android:enabled="true"
80 android:exported="false">
Steve Kondikee8f6e82016-10-10 01:31:23 -070081 <intent-filter>
Sam Mortimer32a2abb2017-09-18 21:40:24 -070082 <action android:name="lineageos.intent.action.UPDATE_PREFERENCE" />
Steve Kondik69144e92016-10-15 01:02:13 -070083 <category android:name="android.intent.category.DEFAULT" />
Steve Kondikee8f6e82016-10-10 01:31:23 -070084 </intent-filter>
85 </receiver>
86
Michael W26cc2292023-10-01 16:18:54 +020087 <provider
88 android:name=".search.LineagePartsSearchIndexablesProvider"
89 android:authorities="org.lineageos.lineageparts"
90 android:exported="true"
91 android:grantUriPermissions="true"
92 android:multiprocess="false"
93 android:permission="android.permission.READ_SEARCH_INDEXABLES">
Steve Kondik165ebdf2016-10-07 00:17:49 -070094 <intent-filter>
95 <action android:name="android.content.action.SEARCH_INDEXABLES_PROVIDER" />
96 </intent-filter>
97 </provider>
98
Danny Trunkdcbebe62023-01-22 21:31:08 +010099 <!-- Charging control settings (Battery category) -->
100 <activity-alias
101 android:name=".health.ChargingControlSettings"
Michael Bestasaa0a6d82023-02-09 03:01:32 +0200102 android:exported="true"
Danny Trunkdcbebe62023-01-22 21:31:08 +0100103 android:label="@string/charging_control_title"
104 android:targetActivity="PartsActivity">
105 <intent-filter>
106 <action android:name="org.lineageos.lineageparts.CHARGING_CONTROL_SETTINGS" />
107 <category android:name="android.intent.category.DEFAULT" />
108 </intent-filter>
109 </activity-alias>
110
Simon Shields196aaa42017-11-24 16:38:47 +1100111 <!-- Button settings (System category) -->
Steve Kondik3281bd62016-09-09 23:55:11 -0700112 <activity-alias
113 android:name=".input.ButtonSettings"
Michael Bestasaa0a6d82023-02-09 03:01:32 +0200114 android:exported="true"
Steve Kondik3281bd62016-09-09 23:55:11 -0700115 android:label="@string/button_pref_title"
116 android:targetActivity="PartsActivity">
Paul Keithcbddb5c2019-09-07 16:24:38 -0500117 <intent-filter>
118 <action android:name="com.android.settings.action.IA_SETTINGS" />
Sam Mortimer32a2abb2017-09-18 21:40:24 -0700119 <action android:name="org.lineageos.lineageparts.BUTTON_SETTINGS" />
Steve Kondik3281bd62016-09-09 23:55:11 -0700120 <category android:name="android.intent.category.DEFAULT" />
121 </intent-filter>
Michael W26cc2292023-10-01 16:18:54 +0200122
Steve Kondik3281bd62016-09-09 23:55:11 -0700123 <meta-data
124 android:name="com.android.settings.category"
Simon Shields196aaa42017-11-24 16:38:47 +1100125 android:value="com.android.settings.category.ia.system" />
Steve Kondik3281bd62016-09-09 23:55:11 -0700126 <meta-data
LuK13375816d9f2021-10-09 20:03:16 +0200127 android:name="com.android.settings.icon"
128 android:resource="@drawable/ic_settings_buttons" />
129 <meta-data
130 android:name="com.android.settings.icon_tintable"
131 android:value="true" />
132 <meta-data
Paul Keithcbddb5c2019-09-07 16:24:38 -0500133 android:name="com.android.settings.order"
134 android:value="-256" />
135 <meta-data
DroidFreak32214dacb2023-05-01 22:46:09 +0530136 android:name="com.android.settings.profile"
137 android:value="primary_profile_only" />
138 <meta-data
Simon Shields196aaa42017-11-24 16:38:47 +1100139 android:name="com.android.settings.summary"
Paul Keithcbddb5c2019-09-07 16:24:38 -0500140 android:resource="@string/summary_empty" />
Steve Kondik3281bd62016-09-09 23:55:11 -0700141 </activity-alias>
142
Zhao Wei Liew2ccca732017-01-21 00:51:22 +0800143 <activity android:name=".gestures.KeyHandler" />
144
Ethan Chend629eb42017-10-05 00:50:26 -0700145 <!-- Profiles settings (System category) -->
Steve Kondik03b56502016-09-10 17:17:25 -0700146 <activity-alias
147 android:name=".profiles.ProfilesSettings"
Michael Bestasaa0a6d82023-02-09 03:01:32 +0200148 android:exported="true"
Steve Kondik03b56502016-09-10 17:17:25 -0700149 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>
Michael W26cc2292023-10-01 16:18:54 +0200156
Steve Kondik03b56502016-09-10 17:17:25 -0700157 <meta-data
158 android:name="com.android.settings.category"
Ethan Chend629eb42017-10-05 00:50:26 -0700159 android:value="com.android.settings.category.ia.system" />
Steve Kondik03b56502016-09-10 17:17:25 -0700160 <meta-data
LuK13375816d9f2021-10-09 20:03:16 +0200161 android:name="com.android.settings.icon"
162 android:resource="@drawable/ic_settings_profiles" />
163 <meta-data
164 android:name="com.android.settings.icon_tintable"
165 android:value="true" />
166 <meta-data
Paul Keithcbddb5c2019-09-07 16:24:38 -0500167 android:name="com.android.settings.order"
168 android:value="-255" />
169 <meta-data
DroidFreak32214dacb2023-05-01 22:46:09 +0530170 android:name="com.android.settings.profile"
171 android:value="primary_profile_only" />
172 <meta-data
Ethan Chend629eb42017-10-05 00:50:26 -0700173 android:name="com.android.settings.summary"
174 android:resource="@string/summary_empty" />
Steve Kondik03b56502016-09-10 17:17:25 -0700175 </activity-alias>
176
Bruno Martins5c824992017-10-18 19:39:45 +0100177 <!-- Status bar settings (System category) -->
Steve Kondik50c9fe62016-09-14 01:36:48 -0700178 <activity-alias
179 android:name=".statusbar.StatusBarSettings"
Michael Bestasaa0a6d82023-02-09 03:01:32 +0200180 android:exported="true"
Steve Kondik50c9fe62016-09-14 01:36:48 -0700181 android:label="@string/status_bar_title"
182 android:targetActivity="PartsActivity">
Paul Keithcbddb5c2019-09-07 16:24:38 -0500183 <intent-filter>
184 <action android:name="com.android.settings.action.IA_SETTINGS" />
Sam Mortimer32a2abb2017-09-18 21:40:24 -0700185 <action android:name="org.lineageos.lineageparts.STATUS_BAR_SETTINGS" />
Steve Kondik50c9fe62016-09-14 01:36:48 -0700186 <category android:name="android.intent.category.DEFAULT" />
187 </intent-filter>
Michael W26cc2292023-10-01 16:18:54 +0200188
Steve Kondik50c9fe62016-09-14 01:36:48 -0700189 <meta-data
190 android:name="com.android.settings.category"
Bruno Martins5c824992017-10-18 19:39:45 +0100191 android:value="com.android.settings.category.ia.system" />
Steve Kondik50c9fe62016-09-14 01:36:48 -0700192 <meta-data
LuK13375816d9f2021-10-09 20:03:16 +0200193 android:name="com.android.settings.icon"
194 android:resource="@drawable/ic_settings_statusbar" />
195 <meta-data
196 android:name="com.android.settings.icon_tintable"
197 android:value="true" />
198 <meta-data
Paul Keithcbddb5c2019-09-07 16:24:38 -0500199 android:name="com.android.settings.order"
200 android:value="-254" />
201 <meta-data
DroidFreak32214dacb2023-05-01 22:46:09 +0530202 android:name="com.android.settings.profile"
203 android:value="primary_profile_only" />
204 <meta-data
Bruno Martins5c824992017-10-18 19:39:45 +0100205 android:name="com.android.settings.summary"
206 android:resource="@string/summary_empty" />
Steve Kondik50c9fe62016-09-14 01:36:48 -0700207 </activity-alias>
208
Paul Keithcbddb5c2019-09-07 16:24:38 -0500209 <!-- Trust interface (Privacy category) -->
Joey8d100d32018-04-07 14:12:34 +0200210 <activity-alias
211 android:name=".trust.TrustPreferences"
Michael Bestasaa0a6d82023-02-09 03:01:32 +0200212 android:exported="true"
Joey8d100d32018-04-07 14:12:34 +0200213 android:label="@string/trust_title"
214 android:targetActivity="PartsActivity">
Paul Keithcbddb5c2019-09-07 16:24:38 -0500215 <intent-filter>
216 <action android:name="com.android.settings.action.IA_SETTINGS" />
Joey8d100d32018-04-07 14:12:34 +0200217 <action android:name="org.lineageos.lineageparts.TRUST_INTERFACE" />
218 <category android:name="android.intent.category.DEFAULT" />
219 </intent-filter>
Michael W26cc2292023-10-01 16:18:54 +0200220
Paul Keithcbddb5c2019-09-07 16:24:38 -0500221 <meta-data
222 android:name="com.android.settings.category"
223 android:value="com.android.settings.category.ia.privacy" />
224 <meta-data
225 android:name="com.android.settings.order"
Nicholas Lim779f45a2023-05-18 00:30:31 +0800226 android:value="-256" />
Paul Keithcbddb5c2019-09-07 16:24:38 -0500227 <meta-data
DroidFreak32214dacb2023-05-01 22:46:09 +0530228 android:name="com.android.settings.profile"
229 android:value="primary_profile_only" />
230 <meta-data
Paul Keithcbddb5c2019-09-07 16:24:38 -0500231 android:name="com.android.settings.summary"
Nicholas Lim779f45a2023-05-18 00:30:31 +0800232 android:resource="@string/trust_summary" />
Joey8d100d32018-04-07 14:12:34 +0200233 </activity-alias>
234
Bruno Martinscf2f02e2019-09-12 14:00:37 +0100235 <!-- Contributors Cloud (MyDeviceInfo category) -->
236 <activity-alias
237 android:name=".contributors.ContributorsCloudFragment"
Michael Bestasaa0a6d82023-02-09 03:01:32 +0200238 android:exported="true"
Bruno Martinscf2f02e2019-09-12 14:00:37 +0100239 android:label="@string/contributors_cloud_fragment_title"
240 android:targetActivity="PartsActivity">
241 <intent-filter>
242 <action android:name="com.android.settings.action.IA_SETTINGS" />
243 <action android:name="org.lineageos.lineageparts.CONTRIBUTORS_CLOUD" />
244 <category android:name="android.intent.category.DEFAULT" />
245 </intent-filter>
Michael W26cc2292023-10-01 16:18:54 +0200246
Bruno Martinscf2f02e2019-09-12 14:00:37 +0100247 <meta-data
248 android:name="com.android.settings.category"
249 android:value="com.android.settings.category.ia.my_device_info" />
250 <meta-data
251 android:name="com.android.settings.order"
Bruno Martins2c9043b2021-12-31 16:29:07 +0000252 android:value="2" />
Bruno Martinscf2f02e2019-09-12 14:00:37 +0100253 <meta-data
DroidFreak32214dacb2023-05-01 22:46:09 +0530254 android:name="com.android.settings.profile"
255 android:value="primary_profile_only" />
256 <meta-data
Bruno Martinscf2f02e2019-09-12 14:00:37 +0100257 android:name="com.android.settings.summary"
258 android:resource="@string/summary_empty" />
259 </activity-alias>
260
Steve Kondikcd4f0ee2016-09-26 00:23:57 -0700261 <!-- Anonymous Statistics -->
Michael W26cc2292023-10-01 16:18:54 +0200262 <receiver
263 android:name=".lineagestats.ReportingServiceManager"
Steve Kondikcd4f0ee2016-09-26 00:23:57 -0700264 android:enabled="true"
265 android:exported="false"
266 android:label="ReportingServiceManager">
267 <intent-filter>
268 <action android:name="android.intent.action.BOOT_COMPLETED" />
Sam Mortimer32a2abb2017-09-18 21:40:24 -0700269 <action android:name="org.lineageos.lineageparts.action.TRIGGER_REPORT_METRICS" />
Steve Kondikcd4f0ee2016-09-26 00:23:57 -0700270 </intent-filter>
271 </receiver>
272
Michael W26cc2292023-10-01 16:18:54 +0200273 <service
274 android:name=".lineagestats.ReportingService"
275 android:enabled="true"
276 android:exported="false"
277 android:label="ReportingService" />
Steve Kondikcd4f0ee2016-09-26 00:23:57 -0700278
Michael W26cc2292023-10-01 16:18:54 +0200279 <service
280 android:name=".lineagestats.StatsUploadJobService"
281 android:permission="android.permission.BIND_JOB_SERVICE" />
Steve Kondikcd4f0ee2016-09-26 00:23:57 -0700282
Michael Bestasaa0a6d82023-02-09 03:01:32 +0200283 <activity
284 android:name=".profiles.NFCProfile"
285 android:exported="true">
Maxim Becker4677ce62017-02-09 14:07:50 +0100286 <intent-filter>
Michael W26cc2292023-10-01 16:18:54 +0200287 <action android:name="android.nfc.action.NDEF_DISCOVERED" />
288 <category android:name="android.intent.category.DEFAULT" />
Bruno Martins84b8a8e2018-02-22 12:22:05 +0000289 <data android:mimeType="lineage/profile" />
Maxim Becker4677ce62017-02-09 14:07:50 +0100290 </intent-filter>
291 </activity>
292
293 <activity
294 android:name=".profiles.NFCProfileSelect"
Michael W26cc2292023-10-01 16:18:54 +0200295 android:excludeFromRecents="true"
296 android:label="@string/profile_select" />
Maxim Becker4677ce62017-02-09 14:07:50 +0100297
Michael W26cc2292023-10-01 16:18:54 +0200298 <activity
299 android:name=".logo.PlatLogoActivity"
300 android:configChanges="orientation|keyboardHidden"
Michael Bestasaa0a6d82023-02-09 03:01:32 +0200301 android:exported="true"
Michael W26cc2292023-10-01 16:18:54 +0200302 android:theme="@style/EggStyle">
Michael Bestas03645f22014-11-13 21:22:46 +0200303 <intent-filter>
304 <action android:name="android.intent.action.MAIN" />
305 <category android:name="android.intent.category.DEFAULT" />
306 </intent-filter>
307 </activity>
308
Michael W26cc2292023-10-01 16:18:54 +0200309 <activity
310 android:name=".egg.octo.Ocquarium"
Michael Bestasaa0a6d82023-02-09 03:01:32 +0200311 android:exported="true"
Michael W26cc2292023-10-01 16:18:54 +0200312 android:label="@string/egg_title"
313 android:theme="@style/EggStyle">
meganukebmp9a6ac452017-12-29 19:45:22 +0200314 <intent-filter>
Michael W26cc2292023-10-01 16:18:54 +0200315 <action android:name="org.lineageos.lineageparts.EASTER_EGG" />
meganukebmp9a6ac452017-12-29 19:45:22 +0200316 <category android:name="android.intent.category.DEFAULT" />
317 <category android:name="com.android.internal.category.PLATLOGO" />
318 </intent-filter>
319 </activity>
320
Steve Kondik66dbbd52016-09-03 05:15:27 -0700321 </application>
322</manifest>