blob: 2814e180e3ad6cf75191ac5692aab11a19410650 [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"
21 package="org.cyanogenmod.cmparts"
22 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
Steve Kondik69144e92016-10-15 01:02:13 -070039 <uses-permission android:name="cyanogenmod.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" />
Steve Kondik3281bd62016-09-09 23:55:11 -070042 <protected-broadcast android:name="cyanogenmod.platform.app.profiles.PROFILES_STATE_CHANGED" />
Steve Kondike5f76112016-09-12 22:20:04 -070043 <protected-broadcast android:name="org.cyanogenmod.cmparts.PART_CHANGED" />
Steve Kondikee8f6e82016-10-10 01:31:23 -070044 <protected-broadcast android:name="org.cyanogenmod.cmparts.REFRESH_PART" />
Zhao Wei Liew2ccca732017-01-21 00:51:22 +080045 <protected-broadcast android:name="org.cyanogenmod.cmparts.gestures.UPDATE_SETTINGS" />
Steve Kondik3281bd62016-09-09 23:55:11 -070046
Steve Kondik66dbbd52016-09-03 05:15:27 -070047 <application android:label="@string/cmparts_title"
48 android:theme="@style/Theme.Settings"
49 android:hardwareAccelerated="true"
50 android:supportsRtl="true"
51 android:defaultToDeviceProtectedStorage="true"
52 android:directBootAware="true">
53
Steve Kondik69144e92016-10-15 01:02:13 -070054 <activity android:name=".PartsActivity">
Steve Kondik7789bbb2016-09-09 03:14:20 -070055 <intent-filter>
Steve Kondik974a0ff2016-10-08 03:53:57 -070056 <action android:name="android.intent.action.MAIN" />
Steve Kondik7789bbb2016-09-09 03:14:20 -070057 <category android:name="android.intent.category.DEFAULT" />
58 </intent-filter>
Steve Kondik69144e92016-10-15 01:02:13 -070059 <meta-data
60 android:name="org.cyanogenmod.settings.summary.receiver"
61 android:value="org.cyanogenmod.cmparts.PartsUpdater" />
Steve Kondik7789bbb2016-09-09 03:14:20 -070062 </activity>
63
Steve Kondik69144e92016-10-15 01:02:13 -070064 <receiver android:name=".BootReceiver" android:enabled="true">
Steve Kondik362d0d62016-09-25 23:53:46 -070065 <intent-filter android:priority="2147483647">
66 <action android:name="android.intent.action.BOOT_COMPLETED" />
67 </intent-filter>
68 </receiver>
Steve Kondik7789bbb2016-09-09 03:14:20 -070069
Steve Kondik69144e92016-10-15 01:02:13 -070070 <receiver android:name=".PartsUpdater" android:enabled="true">
Steve Kondikee8f6e82016-10-10 01:31:23 -070071 <intent-filter>
Steve Kondik69144e92016-10-15 01:02:13 -070072 <action android:name="cyanogenmod.intent.action.UPDATE_PREFERENCE" />
73 <category android:name="android.intent.category.DEFAULT" />
Steve Kondikee8f6e82016-10-10 01:31:23 -070074 </intent-filter>
75 </receiver>
76
Steve Kondik165ebdf2016-10-07 00:17:49 -070077 <provider android:name=".search.CMPartsSearchIndexablesProvider"
78 android:authorities="org.cyanogenmod.cmparts"
79 android:multiprocess="false"
80 android:grantUriPermissions="true"
81 android:permission="android.permission.READ_SEARCH_INDEXABLES"
82 android:exported="true">
83 <intent-filter>
84 <action android:name="android.content.action.SEARCH_INDEXABLES_PROVIDER" />
85 </intent-filter>
86 </provider>
87
Steve Kondik3281bd62016-09-09 23:55:11 -070088 <!-- Privacy settings (dashboard) -->
Steve Kondikee833542016-09-20 00:44:09 -070089 <activity-alias
Sam Mortimer4f343492016-10-09 16:02:11 -070090 android:name=".PrivacySettings"
Steve Kondikee833542016-09-20 00:44:09 -070091 android:label="@string/privacy_settings_title"
92 android:targetActivity="PartsActivity">
Danny Baumann03fb1412017-01-27 08:33:08 +010093 <intent-filter android:priority="3">
Steve Kondik66dbbd52016-09-03 05:15:27 -070094 <action android:name="com.android.settings.action.EXTRA_SETTINGS" />
Steve Kondik3281bd62016-09-09 23:55:11 -070095 <action android:name="org.cyanogenmod.cmparts.PRIVACY_SETTINGS" />
96 <category android:name="android.intent.category.DEFAULT" />
Steve Kondik66dbbd52016-09-03 05:15:27 -070097 </intent-filter>
98 <meta-data
99 android:name="com.android.settings.category"
100 android:value="com.android.settings.category.personal" />
101 <meta-data
102 android:name="com.android.settings.icon"
103 android:resource="@drawable/ic_settings_privacy" />
Steve Kondik63d9c6d2016-10-11 02:34:02 -0700104 <meta-data
105 android:name="org.cyanogenmod.settings.summary.receiver"
Steve Kondik69144e92016-10-15 01:02:13 -0700106 android:value="org.cyanogenmod.cmparts.PartsUpdater" />
Steve Kondik63d9c6d2016-10-11 02:34:02 -0700107 <meta-data
108 android:name="org.cyanogenmod.settings.summary.key"
109 android:value="privacy_settings" />
Steve Kondikee833542016-09-20 00:44:09 -0700110 </activity-alias>
Steve Kondik66dbbd52016-09-03 05:15:27 -0700111
Steve Kondik3281bd62016-09-09 23:55:11 -0700112 <!-- Button settings (dashboard) -->
113 <activity-alias
114 android:name=".input.ButtonSettings"
115 android:label="@string/button_pref_title"
116 android:targetActivity="PartsActivity">
117 <intent-filter android:priority="1">
118 <action android:name="com.android.settings.action.EXTRA_SETTINGS" />
119 <action android:name="org.cyanogenmod.cmparts.BUTTON_SETTINGS" />
120 <category android:name="android.intent.category.DEFAULT" />
121 </intent-filter>
122 <meta-data
123 android:name="com.android.settings.category"
124 android:value="com.android.settings.category.device" />
125 <meta-data
126 android:name="com.android.settings.icon"
127 android:resource="@drawable/ic_settings_buttons" />
Steve Kondik63d9c6d2016-10-11 02:34:02 -0700128 <meta-data
129 android:name="org.cyanogenmod.settings.summary.receiver"
Steve Kondik69144e92016-10-15 01:02:13 -0700130 android:value="org.cyanogenmod.cmparts.PartsUpdater" />
Steve Kondik63d9c6d2016-10-11 02:34:02 -0700131 <meta-data
132 android:name="org.cyanogenmod.settings.summary.key"
133 android:value="button_settings" />
Steve Kondik3281bd62016-09-09 23:55:11 -0700134 </activity-alias>
135
Zhao Wei Liew2ccca732017-01-21 00:51:22 +0800136 <activity android:name=".gestures.KeyHandler" />
137
Steve Kondik03b56502016-09-10 17:17:25 -0700138 <!-- Profiles settings (dashboard) -->
139 <activity-alias
140 android:name=".profiles.ProfilesSettings"
141 android:label="@string/profiles_settings_title"
142 android:targetActivity="PartsActivity">
Steve Kondik73acb442016-10-09 00:24:55 -0700143 <intent-filter android:priority="1">
Steve Kondik03b56502016-09-10 17:17:25 -0700144 <action android:name="com.android.settings.action.EXTRA_SETTINGS" />
145 <action android:name="org.cyanogenmod.cmparts.PROFILES_SETTINGS" />
146 <category android:name="android.intent.category.DEFAULT" />
147 </intent-filter>
148 <meta-data
149 android:name="com.android.settings.category"
150 android:value="com.android.settings.category.personal" />
151 <meta-data
152 android:name="com.android.settings.icon"
153 android:resource="@drawable/ic_settings_profiles" />
Steve Kondik63d9c6d2016-10-11 02:34:02 -0700154 <meta-data
155 android:name="org.cyanogenmod.settings.summary.receiver"
Steve Kondik69144e92016-10-15 01:02:13 -0700156 android:value="org.cyanogenmod.cmparts.PartsUpdater" />
Steve Kondik63d9c6d2016-10-11 02:34:02 -0700157 <meta-data
158 android:name="org.cyanogenmod.settings.summary.key"
159 android:value="profiles_settings" />
Steve Kondik03b56502016-09-10 17:17:25 -0700160 </activity-alias>
161
Steve Kondik50c9fe62016-09-14 01:36:48 -0700162 <!-- Status bar settings (dashboard) -->
163 <activity-alias
164 android:name=".statusbar.StatusBarSettings"
165 android:label="@string/status_bar_title"
166 android:targetActivity="PartsActivity">
Danny Baumann03fb1412017-01-27 08:33:08 +0100167 <intent-filter android:priority="2">
Steve Kondik50c9fe62016-09-14 01:36:48 -0700168 <action android:name="com.android.settings.action.EXTRA_SETTINGS" />
169 <action android:name="org.cyanogenmod.cmparts.STATUS_BAR_SETTINGS" />
170 <category android:name="android.intent.category.DEFAULT" />
171 </intent-filter>
172 <meta-data
173 android:name="com.android.settings.category"
Danny Baumann03fb1412017-01-27 08:33:08 +0100174 android:value="com.android.settings.category.personal" />
Steve Kondik50c9fe62016-09-14 01:36:48 -0700175 <meta-data
176 android:name="com.android.settings.icon"
177 android:resource="@drawable/ic_settings_statusbar" />
Steve Kondik63d9c6d2016-10-11 02:34:02 -0700178 <meta-data
179 android:name="org.cyanogenmod.settings.summary.receiver"
Steve Kondik69144e92016-10-15 01:02:13 -0700180 android:value="org.cyanogenmod.cmparts.PartsUpdater" />
Steve Kondik63d9c6d2016-10-11 02:34:02 -0700181 <meta-data
182 android:name="org.cyanogenmod.settings.summary.key"
183 android:value="status_bar_settings" />
Steve Kondik50c9fe62016-09-14 01:36:48 -0700184 </activity-alias>
185
Steve Kondikcd4f0ee2016-09-26 00:23:57 -0700186 <!-- Anonymous Statistics -->
187 <receiver android:name=".cmstats.ReportingServiceManager"
188 android:enabled="true"
189 android:exported="false"
190 android:label="ReportingServiceManager">
191 <intent-filter>
192 <action android:name="android.intent.action.BOOT_COMPLETED" />
193 <action android:name="org.cyanogenmod.cmparts.action.TRIGGER_REPORT_METRICS" />
194 </intent-filter>
195 </receiver>
196
197 <service android:label="ReportingService"
198 android:enabled="true"
199 android:exported="false"
200 android:name=".cmstats.ReportingService">
201 </service>
202
203 <service android:name=".cmstats.StatsUploadJobService"
204 android:permission="android.permission.BIND_JOB_SERVICE" />
205
206 <service android:name=".cmstats.ReportingService"
207 android:label="ReportingService"
208 android:enabled="true"
209 android:exported="false" />
210
Steve Kondik63d9c6d2016-10-11 02:34:02 -0700211 <!-- Weather settings -->
Steve Kondik3b9691d2016-10-08 21:42:35 -0700212 <activity-alias
213 android:name=".weather.WeatherServiceSettings"
214 android:label="@string/weather_settings_title"
215 android:targetActivity="PartsActivity">
216 <intent-filter android:priority="1">
217 <action android:name="cyanogenmod.intent.action.MANAGE_WEATHER_PROVIDER_SERVICES" />
218 <category android:name="android.intent.category.DEFAULT" />
219 </intent-filter>
220 </activity-alias>
221
Maxim Becker4677ce62017-02-09 14:07:50 +0100222 <activity android:name=".profiles.NFCProfile">
223 <intent-filter>
224 <action android:name="android.nfc.action.NDEF_DISCOVERED"/>
225 <category android:name="android.intent.category.DEFAULT"/>
226 <data android:mimeType="cm/profile" />
227 </intent-filter>
228 </activity>
229
230 <activity
231 android:name=".profiles.NFCProfileSelect"
232 android:label="@string/profile_select"
233 android:excludeFromRecents="true"/>
234
Steve Kondik66dbbd52016-09-03 05:15:27 -0700235 </application>
236</manifest>