blob: d23d3174967ff842413fc38b14fb9b5fb15cd019 [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
5 *
6 * Licensed under the Apache License, Version 2.0 (the "License");
7 * you may not use this file except in compliance with the License.
8 * You may obtain a copy of the License at
9 *
10 * http://www.apache.org/licenses/LICENSE-2.0
11 *
12 * Unless required by applicable law or agreed to in writing, software
13 * distributed under the License is distributed on an "AS IS" BASIS,
14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 * See the License for the specific language governing permissions and
16 * limitations under the License.
17 */
18-->
19<manifest xmlns:android="http://schemas.android.com/apk/res/android"
20 xmlns:androidprv="http://schemas.android.com/apk/prv/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" />
Steve Kondikeeeadb52016-09-07 02:21:07 -070038
Sam Mortimer32a2abb2017-09-18 21:40:24 -070039 <uses-permission android:name="lineageos.permission.MANAGE_REMOTE_PREFERENCES" />
Steve Kondik7789bbb2016-09-09 03:14:20 -070040
Luca Stefaniebd042e2017-01-03 21:17:16 +010041 <protected-broadcast android:name="android.intent.action.UPDATE_POWER_MENU" />
Sam Mortimer32a2abb2017-09-18 21:40:24 -070042 <protected-broadcast android:name="lineageos.platform.app.profiles.PROFILES_STATE_CHANGED" />
43 <protected-broadcast android:name="org.lineageos.lineageparts.PART_CHANGED" />
44 <protected-broadcast android:name="org.lineageos.lineageparts.REFRESH_PART" />
45 <protected-broadcast android:name="org.lineageos.lineageparts.gestures.UPDATE_SETTINGS" />
Steve Kondik3281bd62016-09-09 23:55:11 -070046
Sam Mortimer32a2abb2017-09-18 21:40:24 -070047 <application android:label="@string/lineageparts_title"
Steve Kondik66dbbd52016-09-03 05:15:27 -070048 android:theme="@style/Theme.Settings"
49 android:hardwareAccelerated="true"
50 android:supportsRtl="true"
51 android:defaultToDeviceProtectedStorage="true"
52 android:directBootAware="true">
53
LuK1337ceadf252017-06-01 12:42:54 +020054 <activity android:name=".PartsActivity"
55 android:configChanges="orientation|keyboardHidden|screenSize">
Steve Kondik7789bbb2016-09-09 03:14:20 -070056 <intent-filter>
Steve Kondik974a0ff2016-10-08 03:53:57 -070057 <action android:name="android.intent.action.MAIN" />
Steve Kondik7789bbb2016-09-09 03:14:20 -070058 <category android:name="android.intent.category.DEFAULT" />
59 </intent-filter>
Steve Kondik69144e92016-10-15 01:02:13 -070060 <meta-data
Sam Mortimer32a2abb2017-09-18 21:40:24 -070061 android:name="org.lineageos.settings.summary.receiver"
62 android:value="org.lineageos.lineageparts.PartsUpdater" />
Steve Kondik7789bbb2016-09-09 03:14:20 -070063 </activity>
64
Sam Mortimerf83ce0e2017-09-13 15:31:56 -070065 <!--
Steve Kondik69144e92016-10-15 01:02:13 -070066 <receiver android:name=".BootReceiver" android:enabled="true">
Steve Kondik362d0d62016-09-25 23:53:46 -070067 <intent-filter android:priority="2147483647">
68 <action android:name="android.intent.action.BOOT_COMPLETED" />
69 </intent-filter>
70 </receiver>
Sam Mortimerf83ce0e2017-09-13 15:31:56 -070071 -->
Steve Kondik7789bbb2016-09-09 03:14:20 -070072
Steve Kondik69144e92016-10-15 01:02:13 -070073 <receiver android:name=".PartsUpdater" android:enabled="true">
Steve Kondikee8f6e82016-10-10 01:31:23 -070074 <intent-filter>
Sam Mortimer32a2abb2017-09-18 21:40:24 -070075 <action android:name="lineageos.intent.action.UPDATE_PREFERENCE" />
Steve Kondik69144e92016-10-15 01:02:13 -070076 <category android:name="android.intent.category.DEFAULT" />
Steve Kondikee8f6e82016-10-10 01:31:23 -070077 </intent-filter>
78 </receiver>
79
Sam Mortimer32a2abb2017-09-18 21:40:24 -070080 <provider android:name=".search.LineagePartsSearchIndexablesProvider"
81 android:authorities="org.lineageos.lineageparts"
Steve Kondik165ebdf2016-10-07 00:17:49 -070082 android:multiprocess="false"
83 android:grantUriPermissions="true"
84 android:permission="android.permission.READ_SEARCH_INDEXABLES"
85 android:exported="true">
86 <intent-filter>
87 <action android:name="android.content.action.SEARCH_INDEXABLES_PROVIDER" />
88 </intent-filter>
89 </provider>
90
Steve Kondik3281bd62016-09-09 23:55:11 -070091 <!-- Privacy settings (dashboard) -->
Sam Mortimerf83ce0e2017-09-13 15:31:56 -070092 <!--
Steve Kondikee833542016-09-20 00:44:09 -070093 <activity-alias
Sam Mortimer4f343492016-10-09 16:02:11 -070094 android:name=".PrivacySettings"
Steve Kondikee833542016-09-20 00:44:09 -070095 android:label="@string/privacy_settings_title"
96 android:targetActivity="PartsActivity">
Danny Baumann03fb1412017-01-27 08:33:08 +010097 <intent-filter android:priority="3">
Steve Kondik66dbbd52016-09-03 05:15:27 -070098 <action android:name="com.android.settings.action.EXTRA_SETTINGS" />
Sam Mortimer32a2abb2017-09-18 21:40:24 -070099 <action android:name="org.lineageos.lineageparts.PRIVACY_SETTINGS" />
Steve Kondik3281bd62016-09-09 23:55:11 -0700100 <category android:name="android.intent.category.DEFAULT" />
Steve Kondik66dbbd52016-09-03 05:15:27 -0700101 </intent-filter>
102 <meta-data
103 android:name="com.android.settings.category"
104 android:value="com.android.settings.category.personal" />
105 <meta-data
106 android:name="com.android.settings.icon"
107 android:resource="@drawable/ic_settings_privacy" />
Steve Kondik63d9c6d2016-10-11 02:34:02 -0700108 <meta-data
Sam Mortimer32a2abb2017-09-18 21:40:24 -0700109 android:name="org.lineageos.settings.summary.receiver"
110 android:value="org.lineageos.lineageparts.PartsUpdater" />
Steve Kondik63d9c6d2016-10-11 02:34:02 -0700111 <meta-data
Sam Mortimer32a2abb2017-09-18 21:40:24 -0700112 android:name="org.lineageos.settings.summary.key"
Steve Kondik63d9c6d2016-10-11 02:34:02 -0700113 android:value="privacy_settings" />
Steve Kondikee833542016-09-20 00:44:09 -0700114 </activity-alias>
Sam Mortimerf83ce0e2017-09-13 15:31:56 -0700115 -->
Steve Kondik66dbbd52016-09-03 05:15:27 -0700116
Steve Kondik3281bd62016-09-09 23:55:11 -0700117 <!-- Button settings (dashboard) -->
Sam Mortimerf83ce0e2017-09-13 15:31:56 -0700118 <!--
Steve Kondik3281bd62016-09-09 23:55:11 -0700119 <activity-alias
120 android:name=".input.ButtonSettings"
121 android:label="@string/button_pref_title"
122 android:targetActivity="PartsActivity">
123 <intent-filter android:priority="1">
124 <action android:name="com.android.settings.action.EXTRA_SETTINGS" />
Sam Mortimer32a2abb2017-09-18 21:40:24 -0700125 <action android:name="org.lineageos.lineageparts.BUTTON_SETTINGS" />
Steve Kondik3281bd62016-09-09 23:55:11 -0700126 <category android:name="android.intent.category.DEFAULT" />
127 </intent-filter>
128 <meta-data
129 android:name="com.android.settings.category"
130 android:value="com.android.settings.category.device" />
131 <meta-data
132 android:name="com.android.settings.icon"
133 android:resource="@drawable/ic_settings_buttons" />
Steve Kondik63d9c6d2016-10-11 02:34:02 -0700134 <meta-data
Sam Mortimer32a2abb2017-09-18 21:40:24 -0700135 android:name="org.lineageos.settings.summary.receiver"
136 android:value="org.lineageos.lineageparts.PartsUpdater" />
Steve Kondik63d9c6d2016-10-11 02:34:02 -0700137 <meta-data
Sam Mortimer32a2abb2017-09-18 21:40:24 -0700138 android:name="org.lineageos.settings.summary.key"
Steve Kondik63d9c6d2016-10-11 02:34:02 -0700139 android:value="button_settings" />
Steve Kondik3281bd62016-09-09 23:55:11 -0700140 </activity-alias>
Sam Mortimerf83ce0e2017-09-13 15:31:56 -0700141 -->
Steve Kondik3281bd62016-09-09 23:55:11 -0700142
Sam Mortimerf83ce0e2017-09-13 15:31:56 -0700143 <!--
Zhao Wei Liew2ccca732017-01-21 00:51:22 +0800144 <activity android:name=".gestures.KeyHandler" />
Sam Mortimerf83ce0e2017-09-13 15:31:56 -0700145 -->
Zhao Wei Liew2ccca732017-01-21 00:51:22 +0800146
Steve Kondik03b56502016-09-10 17:17:25 -0700147 <!-- Profiles settings (dashboard) -->
Sam Mortimerf83ce0e2017-09-13 15:31:56 -0700148 <!--
Steve Kondik03b56502016-09-10 17:17:25 -0700149 <activity-alias
150 android:name=".profiles.ProfilesSettings"
151 android:label="@string/profiles_settings_title"
152 android:targetActivity="PartsActivity">
Steve Kondik73acb442016-10-09 00:24:55 -0700153 <intent-filter android:priority="1">
Steve Kondik03b56502016-09-10 17:17:25 -0700154 <action android:name="com.android.settings.action.EXTRA_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>
158 <meta-data
159 android:name="com.android.settings.category"
160 android:value="com.android.settings.category.personal" />
161 <meta-data
162 android:name="com.android.settings.icon"
163 android:resource="@drawable/ic_settings_profiles" />
Steve Kondik63d9c6d2016-10-11 02:34:02 -0700164 <meta-data
Sam Mortimer32a2abb2017-09-18 21:40:24 -0700165 android:name="org.lineageos.settings.summary.receiver"
166 android:value="org.lineageos.lineageparts.PartsUpdater" />
Steve Kondik63d9c6d2016-10-11 02:34:02 -0700167 <meta-data
Sam Mortimer32a2abb2017-09-18 21:40:24 -0700168 android:name="org.lineageos.settings.summary.key"
Steve Kondik63d9c6d2016-10-11 02:34:02 -0700169 android:value="profiles_settings" />
Steve Kondik03b56502016-09-10 17:17:25 -0700170 </activity-alias>
Sam Mortimerf83ce0e2017-09-13 15:31:56 -0700171 -->
Steve Kondik03b56502016-09-10 17:17:25 -0700172
Steve Kondik50c9fe62016-09-14 01:36:48 -0700173 <!-- Status bar settings (dashboard) -->
Sam Mortimerf83ce0e2017-09-13 15:31:56 -0700174 <!--
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">
Danny Baumann03fb1412017-01-27 08:33:08 +0100179 <intent-filter android:priority="2">
Steve Kondik50c9fe62016-09-14 01:36:48 -0700180 <action android:name="com.android.settings.action.EXTRA_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>
184 <meta-data
185 android:name="com.android.settings.category"
Danny Baumann03fb1412017-01-27 08:33:08 +0100186 android:value="com.android.settings.category.personal" />
Steve Kondik50c9fe62016-09-14 01:36:48 -0700187 <meta-data
188 android:name="com.android.settings.icon"
189 android:resource="@drawable/ic_settings_statusbar" />
Steve Kondik63d9c6d2016-10-11 02:34:02 -0700190 <meta-data
Sam Mortimer32a2abb2017-09-18 21:40:24 -0700191 android:name="org.lineageos.settings.summary.receiver"
192 android:value="org.lineageos.lineageparts.PartsUpdater" />
Steve Kondik63d9c6d2016-10-11 02:34:02 -0700193 <meta-data
Sam Mortimer32a2abb2017-09-18 21:40:24 -0700194 android:name="org.lineageos.settings.summary.key"
Steve Kondik63d9c6d2016-10-11 02:34:02 -0700195 android:value="status_bar_settings" />
Steve Kondik50c9fe62016-09-14 01:36:48 -0700196 </activity-alias>
Sam Mortimerf83ce0e2017-09-13 15:31:56 -0700197 -->
Steve Kondik50c9fe62016-09-14 01:36:48 -0700198
Steve Kondikcd4f0ee2016-09-26 00:23:57 -0700199 <!-- Anonymous Statistics -->
Sam Mortimerf83ce0e2017-09-13 15:31:56 -0700200 <!--
Sam Mortimer32a2abb2017-09-18 21:40:24 -0700201 <receiver android:name=".lineagestats.ReportingServiceManager"
Steve Kondikcd4f0ee2016-09-26 00:23:57 -0700202 android:enabled="true"
203 android:exported="false"
204 android:label="ReportingServiceManager">
205 <intent-filter>
206 <action android:name="android.intent.action.BOOT_COMPLETED" />
Sam Mortimer32a2abb2017-09-18 21:40:24 -0700207 <action android:name="org.lineageos.lineageparts.action.TRIGGER_REPORT_METRICS" />
Steve Kondikcd4f0ee2016-09-26 00:23:57 -0700208 </intent-filter>
209 </receiver>
210
211 <service android:label="ReportingService"
212 android:enabled="true"
213 android:exported="false"
Sam Mortimer32a2abb2017-09-18 21:40:24 -0700214 android:name=".lineagestats.ReportingService">
Steve Kondikcd4f0ee2016-09-26 00:23:57 -0700215 </service>
216
Sam Mortimer32a2abb2017-09-18 21:40:24 -0700217 <service android:name=".lineagestats.StatsUploadJobService"
Steve Kondikcd4f0ee2016-09-26 00:23:57 -0700218 android:permission="android.permission.BIND_JOB_SERVICE" />
219
Sam Mortimer32a2abb2017-09-18 21:40:24 -0700220 <service android:name=".lineagestats.ReportingService"
Steve Kondikcd4f0ee2016-09-26 00:23:57 -0700221 android:label="ReportingService"
222 android:enabled="true"
223 android:exported="false" />
Sam Mortimerf83ce0e2017-09-13 15:31:56 -0700224 -->
Steve Kondikcd4f0ee2016-09-26 00:23:57 -0700225
Steve Kondik63d9c6d2016-10-11 02:34:02 -0700226 <!-- Weather settings -->
Sam Mortimerf83ce0e2017-09-13 15:31:56 -0700227 <!--
Steve Kondik3b9691d2016-10-08 21:42:35 -0700228 <activity-alias
229 android:name=".weather.WeatherServiceSettings"
230 android:label="@string/weather_settings_title"
231 android:targetActivity="PartsActivity">
232 <intent-filter android:priority="1">
Sam Mortimer32a2abb2017-09-18 21:40:24 -0700233 <action android:name="lineageos.intent.action.MANAGE_WEATHER_PROVIDER_SERVICES" />
Steve Kondik3b9691d2016-10-08 21:42:35 -0700234 <category android:name="android.intent.category.DEFAULT" />
235 </intent-filter>
236 </activity-alias>
Sam Mortimerf83ce0e2017-09-13 15:31:56 -0700237 -->
Steve Kondik3b9691d2016-10-08 21:42:35 -0700238
Sam Mortimerf83ce0e2017-09-13 15:31:56 -0700239 <!--
Maxim Becker4677ce62017-02-09 14:07:50 +0100240 <activity android:name=".profiles.NFCProfile">
241 <intent-filter>
242 <action android:name="android.nfc.action.NDEF_DISCOVERED"/>
243 <category android:name="android.intent.category.DEFAULT"/>
244 <data android:mimeType="cm/profile" />
245 </intent-filter>
246 </activity>
Sam Mortimerf83ce0e2017-09-13 15:31:56 -0700247 -->
Maxim Becker4677ce62017-02-09 14:07:50 +0100248
Sam Mortimerf83ce0e2017-09-13 15:31:56 -0700249 <!--
Maxim Becker4677ce62017-02-09 14:07:50 +0100250 <activity
251 android:name=".profiles.NFCProfileSelect"
252 android:label="@string/profile_select"
253 android:excludeFromRecents="true"/>
Sam Mortimerf83ce0e2017-09-13 15:31:56 -0700254 -->
Maxim Becker4677ce62017-02-09 14:07:50 +0100255
Steve Kondik66dbbd52016-09-03 05:15:27 -0700256 </application>
257</manifest>