roger xue | 843fbc4 | 2017-02-22 16:20:08 -0800 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | |
| 3 | <!-- |
| 4 | Copyright (C) 2017 The Android Open Source 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 | package="com.android.car.settings" |
Roger Xue | b5a8941 | 2018-11-09 23:32:38 +0000 | [diff] [blame] | 21 | coreApp="true" |
roger xue | 843fbc4 | 2017-02-22 16:20:08 -0800 | [diff] [blame] | 22 | android:sharedUserId="android.uid.system" |
| 23 | android:versionCode="1" |
| 24 | android:versionName="1.0"> |
| 25 | |
| 26 | <uses-sdk |
Rakesh Iyer | bb3d78e | 2017-04-26 14:54:39 -0700 | [diff] [blame] | 27 | android:minSdkVersion="24" |
| 28 | android:targetSdkVersion="24"/> |
roger xue | 843fbc4 | 2017-02-22 16:20:08 -0800 | [diff] [blame] | 29 | |
| 30 | <uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/> |
| 31 | <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/> |
| 32 | <uses-permission android:name="android.permission.BACKUP"/> |
| 33 | <uses-permission android:name="android.permission.BLUETOOTH"/> |
| 34 | <uses-permission android:name="android.permission.BLUETOOTH_ADMIN"/> |
| 35 | <uses-permission android:name="android.permission.CHANGE_WIFI_STATE"/> |
| 36 | <uses-permission android:name="android.permission.CLEAR_APP_USER_DATA"/> |
| 37 | <uses-permission android:name="android.permission.DELETE_CACHE_FILES"/> |
| 38 | <uses-permission android:name="android.permission.DUMP"/> |
| 39 | <uses-permission android:name="android.permission.FORCE_STOP_PACKAGES"/> |
| 40 | <uses-permission android:name="android.permission.GET_ACCOUNTS_PRIVILEGED"/> |
| 41 | <uses-permission android:name="android.permission.GET_PACKAGE_SIZE"/> |
| 42 | <uses-permission android:name="android.permission.INJECT_EVENTS"/> |
| 43 | <uses-permission android:name="android.permission.INTERNET"/> |
| 44 | <uses-permission android:name="android.permission.MANAGE_ACCOUNTS"/> |
| 45 | <uses-permission android:name="android.permission.MANAGE_USERS"/> |
Roshan Agrawal | 24cdfec | 2018-04-04 19:12:55 -0700 | [diff] [blame] | 46 | <uses-permission android:name="android.permission.MASTER_CLEAR" /> |
kevinjm | 11dfade | 2018-04-26 17:53:30 -0700 | [diff] [blame] | 47 | <uses-permission android:name="android.permission.NETWORK_SETTINGS" /> |
roger xue | 843fbc4 | 2017-02-22 16:20:08 -0800 | [diff] [blame] | 48 | <uses-permission android:name="android.permission.OVERRIDE_WIFI_CONFIG"/> |
| 49 | <uses-permission android:name="android.permission.READ_CONTACTS"/> |
| 50 | <uses-permission android:name="android.permission.REBOOT"/> |
| 51 | <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/> |
| 52 | <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"/> |
| 53 | <uses-permission android:name="android.permission.SET_PREFERRED_APPLICATIONS"/> |
| 54 | <uses-permission android:name="android.permission.SET_TIME"/> |
| 55 | <uses-permission android:name="android.permission.SET_TIME_ZONE"/> |
Lujiang Xue | 12d4eb1 | 2018-02-07 13:09:13 -0800 | [diff] [blame] | 56 | <uses-permission android:name="android.permission.START_FOREGROUND"/> |
roger xue | 843fbc4 | 2017-02-22 16:20:08 -0800 | [diff] [blame] | 57 | <uses-permission android:name="android.permission.WRITE_MEDIA_STORAGE"/> |
| 58 | <uses-permission android:name="android.permission.WRITE_SETTINGS"/> |
| 59 | <uses-permission android:name="android.permission.WRITE_SECURE_SETTINGS"/> |
| 60 | |
| 61 | <application |
| 62 | android:icon="@drawable/ic_launcher_settings" |
roger xue | 24b5080 | 2017-04-04 11:59:04 -0700 | [diff] [blame] | 63 | android:theme="@style/CarSettingTheme" |
Jian Jin | 92b8558 | 2018-06-05 15:35:21 -0700 | [diff] [blame] | 64 | android:label="@string/settings_label" |
Roger Xue | b5a8941 | 2018-11-09 23:32:38 +0000 | [diff] [blame] | 65 | android:requiredForAllUsers="true" |
| 66 | android:directBootAware="true" |
Jian Jin | 92b8558 | 2018-06-05 15:35:21 -0700 | [diff] [blame] | 67 | android:supportsRtl="true"> |
roger xue | 843fbc4 | 2017-02-22 16:20:08 -0800 | [diff] [blame] | 68 | |
| 69 | <activity |
roger xue | 24b5080 | 2017-04-04 11:59:04 -0700 | [diff] [blame] | 70 | android:name=".common.CarSettingActivity" |
roger xue | 843fbc4 | 2017-02-22 16:20:08 -0800 | [diff] [blame] | 71 | android:label="@string/settings_label" |
Lujiang Xue | 0daa919 | 2017-12-06 11:48:39 -0800 | [diff] [blame] | 72 | android:launchMode="singleTask" |
Lujiang Xue | eaff6c3 | 2018-04-10 08:20:29 -0700 | [diff] [blame] | 73 | android:windowSoftInputMode="adjustPan" |
Lujiang Xue | 0daa919 | 2017-12-06 11:48:39 -0800 | [diff] [blame] | 74 | android:exported="true"> |
Lujiang Xue | 73f4573 | 2018-04-05 09:42:19 -0700 | [diff] [blame] | 75 | <!-- Set priority high enough to trump the phone setting app --> |
Roger Xue | b5a8941 | 2018-11-09 23:32:38 +0000 | [diff] [blame] | 76 | <intent-filter android:priority="1"> |
Lujiang Xue | 73f4573 | 2018-04-05 09:42:19 -0700 | [diff] [blame] | 77 | <action android:name="android.settings.SETTINGS" /> |
Lujiang Xue | 0daa919 | 2017-12-06 11:48:39 -0800 | [diff] [blame] | 78 | <category android:name="android.intent.category.DEFAULT"/> |
Lujiang Xue | 0daa919 | 2017-12-06 11:48:39 -0800 | [diff] [blame] | 79 | </intent-filter> |
Lujiang Xue | c1be6f6 | 2018-06-25 14:45:59 -0700 | [diff] [blame] | 80 | |
| 81 | <!-- Handles wifi related intent --> |
| 82 | <intent-filter android:priority="1"> |
| 83 | <action android:name="android.settings.WIFI_SETTINGS" /> |
Lujiang Xue | f402bff | 2018-12-19 16:02:39 -0800 | [diff] [blame] | 84 | <action android:name="android.settings.WIRELESS_SETTINGS" /> |
Lujiang Xue | c1be6f6 | 2018-06-25 14:45:59 -0700 | [diff] [blame] | 85 | <category android:name="android.intent.category.DEFAULT" /> |
| 86 | </intent-filter> |
Lujiang Xue | c1be6f6 | 2018-06-25 14:45:59 -0700 | [diff] [blame] | 87 | |
Lujiang Xue | 8d6a985 | 2018-12-17 10:19:18 -0800 | [diff] [blame] | 88 | <intent-filter android:priority="100"> |
| 89 | <action android:name="android.net.wifi.PICK_WIFI_NETWORK" /> |
| 90 | <category android:name="android.intent.category.DEFAULT" /> |
| 91 | </intent-filter> |
| 92 | |
Lujiang Xue | f402bff | 2018-12-19 16:02:39 -0800 | [diff] [blame] | 93 | <intent-filter android:priority="1"> |
Lujiang Xue | a7813ff | 2019-01-15 09:02:34 -0800 | [diff] [blame^] | 94 | <action android:name="android.settings.NIGHT_DISPLAY_SETTINGS" /> |
| 95 | <category android:name="android.intent.category.DEFAULT" /> |
| 96 | </intent-filter> |
| 97 | |
| 98 | <intent-filter android:priority="1"> |
Lujiang Xue | f402bff | 2018-12-19 16:02:39 -0800 | [diff] [blame] | 99 | <action android:name="android.settings.USER_SETTINGS" /> |
| 100 | <category android:name="android.intent.category.DEFAULT" /> |
| 101 | </intent-filter> |
| 102 | |
| 103 | <intent-filter android:priority="1"> |
| 104 | <action android:name="android.settings.BLUETOOTH_SETTINGS" /> |
| 105 | <category android:name="android.intent.category.DEFAULT" /> |
| 106 | </intent-filter> |
| 107 | |
| 108 | <intent-filter android:priority="1"> |
Lujiang Xue | a7813ff | 2019-01-15 09:02:34 -0800 | [diff] [blame^] | 109 | <action android:name="android.settings.DEVICE_INFO_SETTINGS" /> |
| 110 | <category android:name="android.intent.category.DEFAULT" /> |
| 111 | </intent-filter> |
| 112 | |
| 113 | <intent-filter android:priority="1"> |
| 114 | <action android:name="android.settings.APPLICATION_DETAILS_SETTINGS" /> |
| 115 | <category android:name="android.intent.category.DEFAULT" /> |
| 116 | </intent-filter> |
| 117 | |
| 118 | <intent-filter android:priority="1"> |
Lujiang Xue | f402bff | 2018-12-19 16:02:39 -0800 | [diff] [blame] | 119 | <action android:name="android.settings.DATE_SETTINGS" /> |
| 120 | <category android:name="android.intent.category.DEFAULT" /> |
| 121 | </intent-filter> |
| 122 | |
| 123 | <intent-filter android:priority="1"> |
| 124 | <action android:name="android.settings.SOUND_SETTINGS" /> |
| 125 | <category android:name="android.intent.category.DEFAULT" /> |
| 126 | </intent-filter> |
| 127 | |
| 128 | <intent-filter android:priority="1"> |
| 129 | <action android:name="android.settings.DISPLAY_SETTINGS" /> |
| 130 | <action android:name="android.settings.NIGHT_DISPLAY_SETTINGS" /> |
| 131 | <category android:name="android.intent.category.DEFAULT" /> |
| 132 | </intent-filter> |
| 133 | |
| 134 | <intent-filter android:priority="1"> |
| 135 | <action android:name="android.settings.APPLICATION_SETTINGS" /> |
| 136 | <action android:name="android.settings.MANAGE_APPLICATIONS_SETTINGS" /> |
| 137 | <action android:name="android.settings.MANAGE_ALL_APPLICATIONS_SETTINGS" /> |
| 138 | <category android:name="android.intent.category.DEFAULT" /> |
| 139 | </intent-filter> |
| 140 | |
Lujiang Xue | 8d6a985 | 2018-12-17 10:19:18 -0800 | [diff] [blame] | 141 | <intent-filter android:priority="100"> |
| 142 | <action android:name="android.settings.LOCATION_SOURCE_SETTINGS" /> |
| 143 | <category android:name="android.intent.category.DEFAULT" /> |
| 144 | </intent-filter> |
| 145 | |
Roshan Agrawal | d47b9de | 2018-12-26 19:54:20 -0800 | [diff] [blame] | 146 | <intent-filter android:priority="100"> |
| 147 | <action android:name="android.settings.SYNC_SETTINGS" /> |
| 148 | <category android:name="android.intent.category.DEFAULT" /> |
| 149 | </intent-filter> |
| 150 | |
| 151 | <intent-filter android:priority="100"> |
| 152 | <action android:name="android.settings.ADD_ACCOUNT_SETTINGS" /> |
| 153 | <category android:name="android.intent.category.DEFAULT" /> |
| 154 | </intent-filter> |
| 155 | |
Lujiang Xue | a12477f | 2018-04-10 08:20:29 -0700 | [diff] [blame] | 156 | <meta-data android:name="distractionOptimized" android:value="true"/> |
Lujiang Xue | 0daa919 | 2017-12-06 11:48:39 -0800 | [diff] [blame] | 157 | </activity> |
| 158 | |
Roger Xue | b5a8941 | 2018-11-09 23:32:38 +0000 | [diff] [blame] | 159 | <!-- Alias for launcher activity only, as this belongs to each profile. --> |
| 160 | <!-- TODO: once phone setting is removed from car system image, set priority to 1 --> |
| 161 | <activity-alias android:name="Settings" |
| 162 | android:label="@string/settings_label" |
| 163 | android:launchMode="singleTask" |
| 164 | android:targetActivity=".common.CarSettingActivity"> |
| 165 | <intent-filter android:priority="10"> |
| 166 | <action android:name="android.intent.action.MAIN" /> |
| 167 | <category android:name="android.intent.category.DEFAULT" /> |
| 168 | <category android:name="android.intent.category.LAUNCHER" /> |
| 169 | </intent-filter> |
Lujiang Xue | 8b0e2a7 | 2019-01-08 11:34:26 -0800 | [diff] [blame] | 170 | <meta-data android:name="distractionOptimized" android:value="true"/> |
Roger Xue | b5a8941 | 2018-11-09 23:32:38 +0000 | [diff] [blame] | 171 | </activity-alias> |
| 172 | |
Lujiang Xue | 63d561d | 2017-10-27 13:36:00 -0700 | [diff] [blame] | 173 | <activity android:name=".bluetooth.BluetoothPairingDialog" |
| 174 | android:excludeFromRecents="true" |
| 175 | android:windowSoftInputMode="stateVisible|adjustResize" |
kevinjm | 9908183 | 2018-10-17 17:08:10 -0700 | [diff] [blame] | 176 | android:taskAffinity="car.settings.bluetooth" |
| 177 | android:launchMode="singleTask" |
Lujiang Xue | 63d561d | 2017-10-27 13:36:00 -0700 | [diff] [blame] | 178 | android:theme="@*android:style/Theme.DeviceDefault.Settings.Dialog.NoActionBar"> |
Lujiang Xue | 8b0e2a7 | 2019-01-08 11:34:26 -0800 | [diff] [blame] | 179 | <meta-data android:name="distractionOptimized" android:value="true"/> |
Lujiang Xue | 63d561d | 2017-10-27 13:36:00 -0700 | [diff] [blame] | 180 | </activity> |
| 181 | |
Ying | 710fced | 2017-11-13 13:00:51 -0800 | [diff] [blame] | 182 | <activity android:name=".accounts.AddAccountActivity" |
| 183 | android:theme="@android:style/Theme.Translucent.NoTitleBar" |
Roshan Agrawal | d47b9de | 2018-12-26 19:54:20 -0800 | [diff] [blame] | 184 | android:configChanges="orientation|keyboardHidden|screenSize"/> |
Ying | 710fced | 2017-11-13 13:00:51 -0800 | [diff] [blame] | 185 | |
Jian Jin | 8ac4604 | 2018-04-26 17:27:47 -0700 | [diff] [blame] | 186 | <activity android:name=".security.SettingsScreenLockActivity" |
Jian Jin | ac9f996 | 2018-05-17 15:34:29 -0700 | [diff] [blame] | 187 | android:configChanges="orientation|keyboardHidden|screenSize" |
| 188 | android:windowSoftInputMode="adjustResize"> |
davidln | d3e3534 | 2018-10-05 10:37:46 -0700 | [diff] [blame] | 189 | <intent-filter> |
| 190 | <action android:name="android.car.settings.SCREEN_LOCK_ACTIVITY" /> |
| 191 | <category android:name="android.intent.category.DEFAULT" /> |
| 192 | </intent-filter> |
Jian Jin | 21425d3 | 2018-10-22 14:28:59 -0700 | [diff] [blame] | 193 | <meta-data android:name="distractionOptimized" android:value="true"/> |
Jian Jin | 8ac4604 | 2018-04-26 17:27:47 -0700 | [diff] [blame] | 194 | </activity> |
| 195 | |
Jian Jin | 7ab6903 | 2018-04-16 11:21:16 -0700 | [diff] [blame] | 196 | <activity android:name=".security.SetupWizardScreenLockActivity" |
Roshan Agrawal | 881d4a0 | 2018-08-07 17:04:44 -0700 | [diff] [blame] | 197 | android:theme="@style/Theme.Car.SetupWizard.NoActionBar.Accent" |
Jian Jin | ac9f996 | 2018-05-17 15:34:29 -0700 | [diff] [blame] | 198 | android:configChanges="orientation|keyboardHidden|screenSize" |
| 199 | android:windowSoftInputMode="adjustResize"> |
Ying | 96da041 | 2018-02-07 12:09:10 -0800 | [diff] [blame] | 200 | <intent-filter> |
Jian Jin | 7ab6903 | 2018-04-16 11:21:16 -0700 | [diff] [blame] | 201 | <action android:name="android.car.settings.SETUP_WIZARD_SCREEN_LOCK_ACTIVITY" /> |
Jian Jin | 6212e0f | 2018-03-19 16:22:46 -0700 | [diff] [blame] | 202 | <category android:name="android.intent.category.DEFAULT" /> |
| 203 | </intent-filter> |
Jian Jin | 839baf4 | 2018-07-09 13:22:52 -0700 | [diff] [blame] | 204 | <meta-data android:name="distractionOptimized" android:value="true"/> |
Jian Jin | 6212e0f | 2018-03-19 16:22:46 -0700 | [diff] [blame] | 205 | </activity> |
| 206 | |
davidln | bdd4423 | 2018-07-03 13:38:13 -0700 | [diff] [blame] | 207 | <activity android:name=".security.CheckLockActivity" |
| 208 | android:configChanges="orientation|keyboardHidden|screenSize" |
| 209 | android:windowSoftInputMode="adjustResize"> |
| 210 | </activity> |
| 211 | |
Jian Jin | a7f06f8 | 2018-08-06 16:34:03 -0700 | [diff] [blame] | 212 | <activity android:name=".system.ThirdPartyLicensesActivity" |
| 213 | android:configChanges="orientation|keyboardHidden|screenSize" |
| 214 | android:windowSoftInputMode="adjustResize"> |
| 215 | </activity> |
| 216 | |
Lujiang Xue | 0c6dd2d | 2018-10-02 13:46:00 -0700 | [diff] [blame] | 217 | <!-- This logic is copied from phone.--> |
| 218 | <!-- Ensures there's lightweight fallback activity when no other MAIN/HOME activity is present.--> |
| 219 | <activity android:name=".FallbackHome" |
| 220 | android:excludeFromRecents="true" |
| 221 | android:label="" |
| 222 | android:screenOrientation="nosensor" |
| 223 | android:theme="@style/FallbackHome"> |
Lujiang Xue | 630fe0a | 2018-11-13 13:51:02 -0800 | [diff] [blame] | 224 | <intent-filter android:priority="-900"> |
Lujiang Xue | 0c6dd2d | 2018-10-02 13:46:00 -0700 | [diff] [blame] | 225 | <action android:name="android.intent.action.MAIN" /> |
| 226 | <category android:name="android.intent.category.HOME" /> |
| 227 | <category android:name="android.intent.category.DEFAULT" /> |
| 228 | </intent-filter> |
Lujiang Xue | ee7dacb | 2018-12-03 12:38:11 -0800 | [diff] [blame] | 229 | <meta-data android:name="distractionOptimized" android:value="true"/> |
Lujiang Xue | 0c6dd2d | 2018-10-02 13:46:00 -0700 | [diff] [blame] | 230 | </activity> |
| 231 | |
Lujiang Xue | 63d561d | 2017-10-27 13:36:00 -0700 | [diff] [blame] | 232 | <service android:name=".bluetooth.BluetoothPairingService" /> |
| 233 | |
| 234 | <receiver android:name=".bluetooth.BluetoothPairingRequest"> |
| 235 | <intent-filter> |
| 236 | <action android:name="android.bluetooth.device.action.PAIRING_REQUEST" /> |
| 237 | </intent-filter> |
| 238 | </receiver> |
| 239 | |
Jian Jin | a7f06f8 | 2018-08-06 16:34:03 -0700 | [diff] [blame] | 240 | <!-- FileProvider to share a generated license html file. |
| 241 | Note that "com.android.settings.files" is set here as its authorities because a Uri |
| 242 | permission grant should be allowed to share a file with an external browser but it is |
| 243 | allowed only for Settings' authorities in ActivityManagerService. --> |
| 244 | <provider android:name="androidx.core.content.FileProvider" |
| 245 | android:authorities="com.android.settings.files" |
| 246 | android:grantUriPermissions="true" |
| 247 | android:exported="false"> |
| 248 | <meta-data android:name="android.support.FILE_PROVIDER_PATHS" |
| 249 | android:resource="@xml/file_paths" /> |
| 250 | </provider> |
| 251 | |
roger xue | 843fbc4 | 2017-02-22 16:20:08 -0800 | [diff] [blame] | 252 | </application> |
| 253 | </manifest> |