blob: a420996e03ba0afc4feca8a3c7bc659a0f5a8354 [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
Michael W26cc2292023-10-01 16:18:54 +020012 <uses-sdk
13 android:minSdkVersion="24"
14 android:targetSdkVersion="24" />
Steve Kondik66dbbd52016-09-03 05:15:27 -070015
Steve Kondikeeeadb52016-09-07 02:21:07 -070016 <uses-permission android:name="android.permission.WRITE_MEDIA_STORAGE" />
17 <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
18 <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
19 <uses-permission android:name="android.permission.WRITE_SETTINGS" />
20 <uses-permission android:name="android.permission.WRITE_SECURE_SETTINGS" />
21 <uses-permission android:name="android.permission.DEVICE_POWER" />
22 <uses-permission android:name="android.permission.CHANGE_CONFIGURATION" />
Steve Kondik03b56502016-09-10 17:17:25 -070023 <uses-permission android:name="android.permission.BIND_DEVICE_ADMIN" />
Steve Kondik362d0d62016-09-25 23:53:46 -070024 <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
Steve Kondik165ebdf2016-10-07 00:17:49 -070025 <uses-permission android:name="android.permission.READ_SEARCH_INDEXABLES" />
Ashwin R C5d6a8c62020-05-27 15:17:10 +000026 <uses-permission android:name="android.permission.VIBRATE" />
Steve Kondikeeeadb52016-09-07 02:21:07 -070027
Sam Mortimer32a2abb2017-09-18 21:40:24 -070028 <uses-permission android:name="lineageos.permission.MANAGE_REMOTE_PREFERENCES" />
Steve Kondik7789bbb2016-09-09 03:14:20 -070029
Rashed Abdel-Tawab3427dba2017-10-08 21:41:34 -040030 <protected-broadcast android:name="lineageos.intent.action.UPDATE_POWER_MENU" />
Sam Mortimer32a2abb2017-09-18 21:40:24 -070031 <protected-broadcast android:name="lineageos.platform.app.profiles.PROFILES_STATE_CHANGED" />
32 <protected-broadcast android:name="org.lineageos.lineageparts.PART_CHANGED" />
33 <protected-broadcast android:name="org.lineageos.lineageparts.REFRESH_PART" />
34 <protected-broadcast android:name="org.lineageos.lineageparts.gestures.UPDATE_SETTINGS" />
Steve Kondik3281bd62016-09-09 23:55:11 -070035
Michael W26cc2292023-10-01 16:18:54 +020036 <application
37 android:defaultToDeviceProtectedStorage="true"
38 android:directBootAware="true"
39 android:hardwareAccelerated="true"
40 android:icon="@mipmap/ic_launcher"
41 android:label="@string/lineageparts_title"
42 android:supportsRtl="true"
43 android:theme="@style/Theme.SubSettingsBase">
Steve Kondik66dbbd52016-09-03 05:15:27 -070044
Michael W26cc2292023-10-01 16:18:54 +020045 <activity
46 android:name=".PartsActivity"
47 android:configChanges="orientation|keyboardHidden|screenSize">
Steve Kondik7789bbb2016-09-09 03:14:20 -070048 <intent-filter>
Steve Kondik974a0ff2016-10-08 03:53:57 -070049 <action android:name="android.intent.action.MAIN" />
Steve Kondik7789bbb2016-09-09 03:14:20 -070050 <category android:name="android.intent.category.DEFAULT" />
51 </intent-filter>
Steve Kondik69144e92016-10-15 01:02:13 -070052 <meta-data
Sam Mortimer32a2abb2017-09-18 21:40:24 -070053 android:name="org.lineageos.settings.summary.receiver"
54 android:value="org.lineageos.lineageparts.PartsUpdater" />
Steve Kondik7789bbb2016-09-09 03:14:20 -070055 </activity>
56
Michael W26cc2292023-10-01 16:18:54 +020057 <activity
58 android:name=".trust.TrustOnBoardingActivity"
Luca Stefani5fba0142018-06-10 17:12:58 +020059 android:enabled="true"
Michael W26cc2292023-10-01 16:18:54 +020060 android:excludeFromRecents="true"
61 android:exported="true"
62 android:label="@string/trust_title"
63 android:theme="@style/OnBoardingStyle">
Joey8d100d32018-04-07 14:12:34 +020064 <intent-filter android:priority="-4">
65 <action android:name="org.lineageos.lineageparts.TRUST_HINT" />
66 <category android:name="android.intent.category.DEFAULT" />
67 </intent-filter>
68 </activity>
69
Michael W26cc2292023-10-01 16:18:54 +020070 <receiver
71 android:name=".BootReceiver"
72 android:enabled="true">
Steve Kondik362d0d62016-09-25 23:53:46 -070073 <intent-filter android:priority="2147483647">
74 <action android:name="android.intent.action.BOOT_COMPLETED" />
75 </intent-filter>
76 </receiver>
Steve Kondik7789bbb2016-09-09 03:14:20 -070077
Michael W26cc2292023-10-01 16:18:54 +020078 <receiver
79 android:name=".PartsUpdater"
80 android:enabled="true">
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"
102 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"
113 android:label="@string/button_pref_title"
114 android:targetActivity="PartsActivity">
Paul Keithcbddb5c2019-09-07 16:24:38 -0500115 <intent-filter>
116 <action android:name="com.android.settings.action.IA_SETTINGS" />
Sam Mortimer32a2abb2017-09-18 21:40:24 -0700117 <action android:name="org.lineageos.lineageparts.BUTTON_SETTINGS" />
Steve Kondik3281bd62016-09-09 23:55:11 -0700118 <category android:name="android.intent.category.DEFAULT" />
119 </intent-filter>
Michael W26cc2292023-10-01 16:18:54 +0200120
Steve Kondik3281bd62016-09-09 23:55:11 -0700121 <meta-data
122 android:name="com.android.settings.category"
Simon Shields196aaa42017-11-24 16:38:47 +1100123 android:value="com.android.settings.category.ia.system" />
Steve Kondik3281bd62016-09-09 23:55:11 -0700124 <meta-data
LuK13375816d9f2021-10-09 20:03:16 +0200125 android:name="com.android.settings.icon"
126 android:resource="@drawable/ic_settings_buttons" />
127 <meta-data
128 android:name="com.android.settings.icon_tintable"
129 android:value="true" />
130 <meta-data
Paul Keithcbddb5c2019-09-07 16:24:38 -0500131 android:name="com.android.settings.order"
132 android:value="-256" />
133 <meta-data
DroidFreak32214dacb2023-05-01 22:46:09 +0530134 android:name="com.android.settings.profile"
135 android:value="primary_profile_only" />
136 <meta-data
Simon Shields196aaa42017-11-24 16:38:47 +1100137 android:name="com.android.settings.summary"
Paul Keithcbddb5c2019-09-07 16:24:38 -0500138 android:resource="@string/summary_empty" />
Steve Kondik3281bd62016-09-09 23:55:11 -0700139 </activity-alias>
140
Zhao Wei Liew2ccca732017-01-21 00:51:22 +0800141 <activity android:name=".gestures.KeyHandler" />
142
Ethan Chend629eb42017-10-05 00:50:26 -0700143 <!-- Profiles settings (System category) -->
Steve Kondik03b56502016-09-10 17:17:25 -0700144 <activity-alias
145 android:name=".profiles.ProfilesSettings"
146 android:label="@string/profiles_settings_title"
147 android:targetActivity="PartsActivity">
Paul Keithcbddb5c2019-09-07 16:24:38 -0500148 <intent-filter>
149 <action android:name="com.android.settings.action.IA_SETTINGS" />
Sam Mortimer32a2abb2017-09-18 21:40:24 -0700150 <action android:name="org.lineageos.lineageparts.PROFILES_SETTINGS" />
Steve Kondik03b56502016-09-10 17:17:25 -0700151 <category android:name="android.intent.category.DEFAULT" />
152 </intent-filter>
Michael W26cc2292023-10-01 16:18:54 +0200153
Steve Kondik03b56502016-09-10 17:17:25 -0700154 <meta-data
155 android:name="com.android.settings.category"
Ethan Chend629eb42017-10-05 00:50:26 -0700156 android:value="com.android.settings.category.ia.system" />
Steve Kondik03b56502016-09-10 17:17:25 -0700157 <meta-data
LuK13375816d9f2021-10-09 20:03:16 +0200158 android:name="com.android.settings.icon"
159 android:resource="@drawable/ic_settings_profiles" />
160 <meta-data
161 android:name="com.android.settings.icon_tintable"
162 android:value="true" />
163 <meta-data
Paul Keithcbddb5c2019-09-07 16:24:38 -0500164 android:name="com.android.settings.order"
165 android:value="-255" />
166 <meta-data
DroidFreak32214dacb2023-05-01 22:46:09 +0530167 android:name="com.android.settings.profile"
168 android:value="primary_profile_only" />
169 <meta-data
Ethan Chend629eb42017-10-05 00:50:26 -0700170 android:name="com.android.settings.summary"
171 android:resource="@string/summary_empty" />
Steve Kondik03b56502016-09-10 17:17:25 -0700172 </activity-alias>
173
Bruno Martins5c824992017-10-18 19:39:45 +0100174 <!-- Status bar settings (System category) -->
Steve Kondik50c9fe62016-09-14 01:36:48 -0700175 <activity-alias
176 android:name=".statusbar.StatusBarSettings"
177 android:label="@string/status_bar_title"
178 android:targetActivity="PartsActivity">
Paul Keithcbddb5c2019-09-07 16:24:38 -0500179 <intent-filter>
180 <action android:name="com.android.settings.action.IA_SETTINGS" />
Sam Mortimer32a2abb2017-09-18 21:40:24 -0700181 <action android:name="org.lineageos.lineageparts.STATUS_BAR_SETTINGS" />
Steve Kondik50c9fe62016-09-14 01:36:48 -0700182 <category android:name="android.intent.category.DEFAULT" />
183 </intent-filter>
Michael W26cc2292023-10-01 16:18:54 +0200184
Steve Kondik50c9fe62016-09-14 01:36:48 -0700185 <meta-data
186 android:name="com.android.settings.category"
Bruno Martins5c824992017-10-18 19:39:45 +0100187 android:value="com.android.settings.category.ia.system" />
Steve Kondik50c9fe62016-09-14 01:36:48 -0700188 <meta-data
LuK13375816d9f2021-10-09 20:03:16 +0200189 android:name="com.android.settings.icon"
190 android:resource="@drawable/ic_settings_statusbar" />
191 <meta-data
192 android:name="com.android.settings.icon_tintable"
193 android:value="true" />
194 <meta-data
Paul Keithcbddb5c2019-09-07 16:24:38 -0500195 android:name="com.android.settings.order"
196 android:value="-254" />
197 <meta-data
DroidFreak32214dacb2023-05-01 22:46:09 +0530198 android:name="com.android.settings.profile"
199 android:value="primary_profile_only" />
200 <meta-data
Bruno Martins5c824992017-10-18 19:39:45 +0100201 android:name="com.android.settings.summary"
202 android:resource="@string/summary_empty" />
Steve Kondik50c9fe62016-09-14 01:36:48 -0700203 </activity-alias>
204
Paul Keithcbddb5c2019-09-07 16:24:38 -0500205 <!-- Trust interface (Privacy category) -->
Joey8d100d32018-04-07 14:12:34 +0200206 <activity-alias
207 android:name=".trust.TrustPreferences"
208 android:label="@string/trust_title"
209 android:targetActivity="PartsActivity">
Paul Keithcbddb5c2019-09-07 16:24:38 -0500210 <intent-filter>
211 <action android:name="com.android.settings.action.IA_SETTINGS" />
Joey8d100d32018-04-07 14:12:34 +0200212 <action android:name="org.lineageos.lineageparts.TRUST_INTERFACE" />
213 <category android:name="android.intent.category.DEFAULT" />
214 </intent-filter>
Michael W26cc2292023-10-01 16:18:54 +0200215
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>
Michael W26cc2292023-10-01 16:18:54 +0200240
Bruno Martinscf2f02e2019-09-12 14:00:37 +0100241 <meta-data
242 android:name="com.android.settings.category"
243 android:value="com.android.settings.category.ia.my_device_info" />
244 <meta-data
245 android:name="com.android.settings.order"
Bruno Martins2c9043b2021-12-31 16:29:07 +0000246 android:value="2" />
Bruno Martinscf2f02e2019-09-12 14:00:37 +0100247 <meta-data
DroidFreak32214dacb2023-05-01 22:46:09 +0530248 android:name="com.android.settings.profile"
249 android:value="primary_profile_only" />
250 <meta-data
Bruno Martinscf2f02e2019-09-12 14:00:37 +0100251 android:name="com.android.settings.summary"
252 android:resource="@string/summary_empty" />
253 </activity-alias>
254
Steve Kondikcd4f0ee2016-09-26 00:23:57 -0700255 <!-- Anonymous Statistics -->
Michael W26cc2292023-10-01 16:18:54 +0200256 <receiver
257 android:name=".lineagestats.ReportingServiceManager"
Steve Kondikcd4f0ee2016-09-26 00:23:57 -0700258 android:enabled="true"
259 android:exported="false"
260 android:label="ReportingServiceManager">
261 <intent-filter>
262 <action android:name="android.intent.action.BOOT_COMPLETED" />
Sam Mortimer32a2abb2017-09-18 21:40:24 -0700263 <action android:name="org.lineageos.lineageparts.action.TRIGGER_REPORT_METRICS" />
Steve Kondikcd4f0ee2016-09-26 00:23:57 -0700264 </intent-filter>
265 </receiver>
266
Michael W26cc2292023-10-01 16:18:54 +0200267 <service
268 android:name=".lineagestats.ReportingService"
269 android:enabled="true"
270 android:exported="false"
271 android:label="ReportingService" />
Steve Kondikcd4f0ee2016-09-26 00:23:57 -0700272
Michael W26cc2292023-10-01 16:18:54 +0200273 <service
274 android:name=".lineagestats.StatsUploadJobService"
275 android:permission="android.permission.BIND_JOB_SERVICE" />
Steve Kondikcd4f0ee2016-09-26 00:23:57 -0700276
Maxim Becker4677ce62017-02-09 14:07:50 +0100277 <activity android:name=".profiles.NFCProfile">
278 <intent-filter>
Michael W26cc2292023-10-01 16:18:54 +0200279 <action android:name="android.nfc.action.NDEF_DISCOVERED" />
280 <category android:name="android.intent.category.DEFAULT" />
Bruno Martins84b8a8e2018-02-22 12:22:05 +0000281 <data android:mimeType="lineage/profile" />
Maxim Becker4677ce62017-02-09 14:07:50 +0100282 </intent-filter>
283 </activity>
284
285 <activity
286 android:name=".profiles.NFCProfileSelect"
Michael W26cc2292023-10-01 16:18:54 +0200287 android:excludeFromRecents="true"
288 android:label="@string/profile_select" />
Maxim Becker4677ce62017-02-09 14:07:50 +0100289
Michael W26cc2292023-10-01 16:18:54 +0200290 <activity
291 android:name=".logo.PlatLogoActivity"
292 android:configChanges="orientation|keyboardHidden"
293 android:theme="@style/EggStyle">
Michael Bestas03645f22014-11-13 21:22:46 +0200294 <intent-filter>
295 <action android:name="android.intent.action.MAIN" />
296 <category android:name="android.intent.category.DEFAULT" />
297 </intent-filter>
298 </activity>
299
Michael W26cc2292023-10-01 16:18:54 +0200300 <activity
301 android:name=".egg.octo.Ocquarium"
302 android:label="@string/egg_title"
303 android:theme="@style/EggStyle">
meganukebmp9a6ac452017-12-29 19:45:22 +0200304 <intent-filter>
Michael W26cc2292023-10-01 16:18:54 +0200305 <action android:name="org.lineageos.lineageparts.EASTER_EGG" />
meganukebmp9a6ac452017-12-29 19:45:22 +0200306 <category android:name="android.intent.category.DEFAULT" />
307 <category android:name="com.android.internal.category.PLATLOGO" />
308 </intent-filter>
309 </activity>
310
Steve Kondik66dbbd52016-09-03 05:15:27 -0700311 </application>
312</manifest>