blob: dda7137283a5536e576522d70a3aa3d8b0f18d0e [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
DroidFreak320d1cf5b2024-02-03 02:34:15 +05304 SPDX-FileCopyrightText: 2017-2024 The LineageOS Project
Michael W26cc2292023-10-01 16:18:54 +02005 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"
Dominik Baronellif6849362022-10-13 09:05:22 +020038 android:label="@string/shiftparts_title"
Michael W26cc2292023-10-01 16:18:54 +020039 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
Dominik Baronelli8cf1b602022-10-12 07:58:58 +020055<!--
Michael W26cc2292023-10-01 16:18:54 +020056 <activity
57 android:name=".trust.TrustOnBoardingActivity"
Luca Stefani5fba0142018-06-10 17:12:58 +020058 android:enabled="true"
Michael W26cc2292023-10-01 16:18:54 +020059 android:excludeFromRecents="true"
60 android:exported="true"
61 android:label="@string/trust_title"
62 android:theme="@style/OnBoardingStyle">
Joey8d100d32018-04-07 14:12:34 +020063 <intent-filter android:priority="-4">
64 <action android:name="org.lineageos.lineageparts.TRUST_HINT" />
65 <category android:name="android.intent.category.DEFAULT" />
66 </intent-filter>
67 </activity>
Dominik Baronelli8cf1b602022-10-12 07:58:58 +020068-->
Joey8d100d32018-04-07 14:12:34 +020069
Michael W26cc2292023-10-01 16:18:54 +020070 <receiver
71 android:name=".BootReceiver"
Michael Bestasaa0a6d82023-02-09 03:01:32 +020072 android:enabled="true"
73 android:exported="false">
Steve Kondik362d0d62016-09-25 23:53:46 -070074 <intent-filter android:priority="2147483647">
75 <action android:name="android.intent.action.BOOT_COMPLETED" />
76 </intent-filter>
77 </receiver>
Steve Kondik7789bbb2016-09-09 03:14:20 -070078
Michael W26cc2292023-10-01 16:18:54 +020079 <receiver
80 android:name=".PartsUpdater"
Michael Bestasaa0a6d82023-02-09 03:01:32 +020081 android:enabled="true"
82 android:exported="false">
Steve Kondikee8f6e82016-10-10 01:31:23 -070083 <intent-filter>
Sam Mortimer32a2abb2017-09-18 21:40:24 -070084 <action android:name="lineageos.intent.action.UPDATE_PREFERENCE" />
Steve Kondik69144e92016-10-15 01:02:13 -070085 <category android:name="android.intent.category.DEFAULT" />
Steve Kondikee8f6e82016-10-10 01:31:23 -070086 </intent-filter>
87 </receiver>
88
Michael W26cc2292023-10-01 16:18:54 +020089 <provider
90 android:name=".search.LineagePartsSearchIndexablesProvider"
91 android:authorities="org.lineageos.lineageparts"
92 android:exported="true"
93 android:grantUriPermissions="true"
94 android:multiprocess="false"
95 android:permission="android.permission.READ_SEARCH_INDEXABLES">
Steve Kondik165ebdf2016-10-07 00:17:49 -070096 <intent-filter>
97 <action android:name="android.content.action.SEARCH_INDEXABLES_PROVIDER" />
98 </intent-filter>
99 </provider>
100
Danny Trunkdcbebe62023-01-22 21:31:08 +0100101 <!-- Charging control settings (Battery category) -->
102 <activity-alias
103 android:name=".health.ChargingControlSettings"
Michael Bestasaa0a6d82023-02-09 03:01:32 +0200104 android:exported="true"
Danny Trunkdcbebe62023-01-22 21:31:08 +0100105 android:label="@string/charging_control_title"
106 android:targetActivity="PartsActivity">
107 <intent-filter>
108 <action android:name="org.lineageos.lineageparts.CHARGING_CONTROL_SETTINGS" />
109 <category android:name="android.intent.category.DEFAULT" />
110 </intent-filter>
111 </activity-alias>
112
Simon Shields196aaa42017-11-24 16:38:47 +1100113 <!-- Button settings (System category) -->
Steve Kondik3281bd62016-09-09 23:55:11 -0700114 <activity-alias
115 android:name=".input.ButtonSettings"
Michael Bestasaa0a6d82023-02-09 03:01:32 +0200116 android:exported="true"
Steve Kondik3281bd62016-09-09 23:55:11 -0700117 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>
Michael W26cc2292023-10-01 16:18:54 +0200124
Steve Kondik3281bd62016-09-09 23:55:11 -0700125 <meta-data
126 android:name="com.android.settings.category"
Simon Shields196aaa42017-11-24 16:38:47 +1100127 android:value="com.android.settings.category.ia.system" />
Steve Kondik3281bd62016-09-09 23:55:11 -0700128 <meta-data
LuK13375816d9f2021-10-09 20:03:16 +0200129 android:name="com.android.settings.icon"
130 android:resource="@drawable/ic_settings_buttons" />
131 <meta-data
132 android:name="com.android.settings.icon_tintable"
133 android:value="true" />
134 <meta-data
Paul Keithcbddb5c2019-09-07 16:24:38 -0500135 android:name="com.android.settings.order"
136 android:value="-256" />
137 <meta-data
DroidFreak32214dacb2023-05-01 22:46:09 +0530138 android:name="com.android.settings.profile"
139 android:value="primary_profile_only" />
140 <meta-data
Simon Shields196aaa42017-11-24 16:38:47 +1100141 android:name="com.android.settings.summary"
Paul Keithcbddb5c2019-09-07 16:24:38 -0500142 android:resource="@string/summary_empty" />
Steve Kondik3281bd62016-09-09 23:55:11 -0700143 </activity-alias>
144
Zhao Wei Liew2ccca732017-01-21 00:51:22 +0800145 <activity android:name=".gestures.KeyHandler" />
146
Ethan Chend629eb42017-10-05 00:50:26 -0700147 <!-- Profiles settings (System category) -->
Steve Kondik03b56502016-09-10 17:17:25 -0700148 <activity-alias
149 android:name=".profiles.ProfilesSettings"
Michael Bestasaa0a6d82023-02-09 03:01:32 +0200150 android:exported="true"
Steve Kondik03b56502016-09-10 17:17:25 -0700151 android:label="@string/profiles_settings_title"
152 android:targetActivity="PartsActivity">
Paul Keithcbddb5c2019-09-07 16:24:38 -0500153 <intent-filter>
154 <action android:name="com.android.settings.action.IA_SETTINGS" />
Sam Mortimer32a2abb2017-09-18 21:40:24 -0700155 <action android:name="org.lineageos.lineageparts.PROFILES_SETTINGS" />
Steve Kondik03b56502016-09-10 17:17:25 -0700156 <category android:name="android.intent.category.DEFAULT" />
157 </intent-filter>
Michael W26cc2292023-10-01 16:18:54 +0200158
Steve Kondik03b56502016-09-10 17:17:25 -0700159 <meta-data
160 android:name="com.android.settings.category"
Ethan Chend629eb42017-10-05 00:50:26 -0700161 android:value="com.android.settings.category.ia.system" />
Steve Kondik03b56502016-09-10 17:17:25 -0700162 <meta-data
LuK13375816d9f2021-10-09 20:03:16 +0200163 android:name="com.android.settings.icon"
164 android:resource="@drawable/ic_settings_profiles" />
165 <meta-data
166 android:name="com.android.settings.icon_tintable"
167 android:value="true" />
168 <meta-data
Paul Keithcbddb5c2019-09-07 16:24:38 -0500169 android:name="com.android.settings.order"
170 android:value="-255" />
171 <meta-data
DroidFreak32214dacb2023-05-01 22:46:09 +0530172 android:name="com.android.settings.profile"
173 android:value="primary_profile_only" />
174 <meta-data
Ethan Chend629eb42017-10-05 00:50:26 -0700175 android:name="com.android.settings.summary"
176 android:resource="@string/summary_empty" />
Steve Kondik03b56502016-09-10 17:17:25 -0700177 </activity-alias>
178
DroidFreak320d1cf5b2024-02-03 02:34:15 +0530179 <!-- Rotation settings -->
180 <activity-alias
181 android:name=".hardware.DisplayRotation"
182 android:exported="true"
183 android:targetActivity="PartsActivity">
184 <intent-filter>
185 <action android:name="org.lineageos.lineageparts.DISPLAY_ROTATION" />
186 <category android:name="android.intent.category.DEFAULT" />
187 </intent-filter>
188 </activity-alias>
189
Bruno Martins5c824992017-10-18 19:39:45 +0100190 <!-- Status bar settings (System category) -->
Steve Kondik50c9fe62016-09-14 01:36:48 -0700191 <activity-alias
192 android:name=".statusbar.StatusBarSettings"
Michael Bestasaa0a6d82023-02-09 03:01:32 +0200193 android:exported="true"
Steve Kondik50c9fe62016-09-14 01:36:48 -0700194 android:label="@string/status_bar_title"
195 android:targetActivity="PartsActivity">
Paul Keithcbddb5c2019-09-07 16:24:38 -0500196 <intent-filter>
197 <action android:name="com.android.settings.action.IA_SETTINGS" />
Sam Mortimer32a2abb2017-09-18 21:40:24 -0700198 <action android:name="org.lineageos.lineageparts.STATUS_BAR_SETTINGS" />
Steve Kondik50c9fe62016-09-14 01:36:48 -0700199 <category android:name="android.intent.category.DEFAULT" />
200 </intent-filter>
Michael W26cc2292023-10-01 16:18:54 +0200201
Steve Kondik50c9fe62016-09-14 01:36:48 -0700202 <meta-data
203 android:name="com.android.settings.category"
Bruno Martins5c824992017-10-18 19:39:45 +0100204 android:value="com.android.settings.category.ia.system" />
Steve Kondik50c9fe62016-09-14 01:36:48 -0700205 <meta-data
LuK13375816d9f2021-10-09 20:03:16 +0200206 android:name="com.android.settings.icon"
207 android:resource="@drawable/ic_settings_statusbar" />
208 <meta-data
209 android:name="com.android.settings.icon_tintable"
210 android:value="true" />
211 <meta-data
Paul Keithcbddb5c2019-09-07 16:24:38 -0500212 android:name="com.android.settings.order"
213 android:value="-254" />
214 <meta-data
DroidFreak32214dacb2023-05-01 22:46:09 +0530215 android:name="com.android.settings.profile"
216 android:value="primary_profile_only" />
217 <meta-data
Bruno Martins5c824992017-10-18 19:39:45 +0100218 android:name="com.android.settings.summary"
219 android:resource="@string/summary_empty" />
Steve Kondik50c9fe62016-09-14 01:36:48 -0700220 </activity-alias>
221
Paul Keithcbddb5c2019-09-07 16:24:38 -0500222 <!-- Trust interface (Privacy category) -->
Dominik Baronelli8cf1b602022-10-12 07:58:58 +0200223<!--
Joey8d100d32018-04-07 14:12:34 +0200224 <activity-alias
225 android:name=".trust.TrustPreferences"
Michael Bestasaa0a6d82023-02-09 03:01:32 +0200226 android:exported="true"
Joey8d100d32018-04-07 14:12:34 +0200227 android:label="@string/trust_title"
228 android:targetActivity="PartsActivity">
Paul Keithcbddb5c2019-09-07 16:24:38 -0500229 <intent-filter>
230 <action android:name="com.android.settings.action.IA_SETTINGS" />
Joey8d100d32018-04-07 14:12:34 +0200231 <action android:name="org.lineageos.lineageparts.TRUST_INTERFACE" />
232 <category android:name="android.intent.category.DEFAULT" />
233 </intent-filter>
Michael W26cc2292023-10-01 16:18:54 +0200234
Paul Keithcbddb5c2019-09-07 16:24:38 -0500235 <meta-data
236 android:name="com.android.settings.category"
237 android:value="com.android.settings.category.ia.privacy" />
238 <meta-data
239 android:name="com.android.settings.order"
Nicholas Lim779f45a2023-05-18 00:30:31 +0800240 android:value="-256" />
Paul Keithcbddb5c2019-09-07 16:24:38 -0500241 <meta-data
DroidFreak32214dacb2023-05-01 22:46:09 +0530242 android:name="com.android.settings.profile"
243 android:value="primary_profile_only" />
244 <meta-data
Paul Keithcbddb5c2019-09-07 16:24:38 -0500245 android:name="com.android.settings.summary"
Nicholas Lim779f45a2023-05-18 00:30:31 +0800246 android:resource="@string/trust_summary" />
Joey8d100d32018-04-07 14:12:34 +0200247 </activity-alias>
Dominik Baronelli8cf1b602022-10-12 07:58:58 +0200248-->
Joey8d100d32018-04-07 14:12:34 +0200249
Bruno Martinscf2f02e2019-09-12 14:00:37 +0100250 <!-- Contributors Cloud (MyDeviceInfo category) -->
Dominik Baronellic8761a62022-10-14 11:56:48 +0200251<!--
Bruno Martinscf2f02e2019-09-12 14:00:37 +0100252 <activity-alias
253 android:name=".contributors.ContributorsCloudFragment"
Michael Bestasaa0a6d82023-02-09 03:01:32 +0200254 android:exported="true"
Bruno Martinscf2f02e2019-09-12 14:00:37 +0100255 android:label="@string/contributors_cloud_fragment_title"
256 android:targetActivity="PartsActivity">
257 <intent-filter>
258 <action android:name="com.android.settings.action.IA_SETTINGS" />
259 <action android:name="org.lineageos.lineageparts.CONTRIBUTORS_CLOUD" />
260 <category android:name="android.intent.category.DEFAULT" />
261 </intent-filter>
Michael W26cc2292023-10-01 16:18:54 +0200262
Bruno Martinscf2f02e2019-09-12 14:00:37 +0100263 <meta-data
264 android:name="com.android.settings.category"
265 android:value="com.android.settings.category.ia.my_device_info" />
266 <meta-data
267 android:name="com.android.settings.order"
Bruno Martins2c9043b2021-12-31 16:29:07 +0000268 android:value="2" />
Bruno Martinscf2f02e2019-09-12 14:00:37 +0100269 <meta-data
DroidFreak32214dacb2023-05-01 22:46:09 +0530270 android:name="com.android.settings.profile"
271 android:value="primary_profile_only" />
272 <meta-data
Bruno Martinscf2f02e2019-09-12 14:00:37 +0100273 android:name="com.android.settings.summary"
274 android:resource="@string/summary_empty" />
275 </activity-alias>
Dominik Baronellic8761a62022-10-14 11:56:48 +0200276-->
Bruno Martinscf2f02e2019-09-12 14:00:37 +0100277
Steve Kondikcd4f0ee2016-09-26 00:23:57 -0700278 <!-- Anonymous Statistics -->
Dominik Baronelli1ffcc192022-10-11 13:33:08 +0200279<!--
Michael W26cc2292023-10-01 16:18:54 +0200280 <receiver
281 android:name=".lineagestats.ReportingServiceManager"
Steve Kondikcd4f0ee2016-09-26 00:23:57 -0700282 android:enabled="true"
283 android:exported="false"
284 android:label="ReportingServiceManager">
285 <intent-filter>
286 <action android:name="android.intent.action.BOOT_COMPLETED" />
Sam Mortimer32a2abb2017-09-18 21:40:24 -0700287 <action android:name="org.lineageos.lineageparts.action.TRIGGER_REPORT_METRICS" />
Steve Kondikcd4f0ee2016-09-26 00:23:57 -0700288 </intent-filter>
289 </receiver>
290
Michael W26cc2292023-10-01 16:18:54 +0200291 <service
292 android:name=".lineagestats.ReportingService"
293 android:enabled="true"
294 android:exported="false"
295 android:label="ReportingService" />
Steve Kondikcd4f0ee2016-09-26 00:23:57 -0700296
Michael W26cc2292023-10-01 16:18:54 +0200297 <service
298 android:name=".lineagestats.StatsUploadJobService"
299 android:permission="android.permission.BIND_JOB_SERVICE" />
Dominik Baronelli1ffcc192022-10-11 13:33:08 +0200300-->
Steve Kondikcd4f0ee2016-09-26 00:23:57 -0700301
Michael Bestasaa0a6d82023-02-09 03:01:32 +0200302 <activity
303 android:name=".profiles.NFCProfile"
304 android:exported="true">
Maxim Becker4677ce62017-02-09 14:07:50 +0100305 <intent-filter>
Michael W26cc2292023-10-01 16:18:54 +0200306 <action android:name="android.nfc.action.NDEF_DISCOVERED" />
307 <category android:name="android.intent.category.DEFAULT" />
Bruno Martins84b8a8e2018-02-22 12:22:05 +0000308 <data android:mimeType="lineage/profile" />
Maxim Becker4677ce62017-02-09 14:07:50 +0100309 </intent-filter>
310 </activity>
311
312 <activity
313 android:name=".profiles.NFCProfileSelect"
Michael W26cc2292023-10-01 16:18:54 +0200314 android:excludeFromRecents="true"
315 android:label="@string/profile_select" />
Maxim Becker4677ce62017-02-09 14:07:50 +0100316
Michael W26cc2292023-10-01 16:18:54 +0200317 <activity
318 android:name=".logo.PlatLogoActivity"
319 android:configChanges="orientation|keyboardHidden"
Michael Bestasaa0a6d82023-02-09 03:01:32 +0200320 android:exported="true"
Michael W26cc2292023-10-01 16:18:54 +0200321 android:theme="@style/EggStyle">
Michael Bestas03645f22014-11-13 21:22:46 +0200322 <intent-filter>
323 <action android:name="android.intent.action.MAIN" />
324 <category android:name="android.intent.category.DEFAULT" />
325 </intent-filter>
326 </activity>
327
Michael W26cc2292023-10-01 16:18:54 +0200328 <activity
329 android:name=".egg.octo.Ocquarium"
Michael Bestasaa0a6d82023-02-09 03:01:32 +0200330 android:exported="true"
Michael W26cc2292023-10-01 16:18:54 +0200331 android:label="@string/egg_title"
332 android:theme="@style/EggStyle">
meganukebmp9a6ac452017-12-29 19:45:22 +0200333 <intent-filter>
Michael W26cc2292023-10-01 16:18:54 +0200334 <action android:name="org.lineageos.lineageparts.EASTER_EGG" />
meganukebmp9a6ac452017-12-29 19:45:22 +0200335 <category android:name="android.intent.category.DEFAULT" />
336 <category android:name="com.android.internal.category.PLATLOGO" />
337 </intent-filter>
338 </activity>
339
Steve Kondik66dbbd52016-09-03 05:15:27 -0700340 </application>
341</manifest>