| <?xml version="1.0" encoding="utf-8"?> |
| |
| <!-- |
| Copyright (C) 2017 The Android Open Source Project |
| |
| Licensed under the Apache License, Version 2.0 (the "License"); |
| you may not use this file except in compliance with the License. |
| You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
| --> |
| |
| <manifest xmlns:android="http://schemas.android.com/apk/res/android" |
| package="com.android.car.settings" |
| coreApp="true" |
| android:sharedUserId="android.uid.system" |
| android:versionCode="1" |
| android:versionName="1.0"> |
| |
| <uses-sdk |
| android:minSdkVersion="24" |
| android:targetSdkVersion="24"/> |
| |
| <uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/> |
| <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/> |
| <uses-permission android:name="android.permission.BACKUP"/> |
| <uses-permission android:name="android.permission.BLUETOOTH"/> |
| <uses-permission android:name="android.permission.BLUETOOTH_ADMIN"/> |
| <uses-permission android:name="android.permission.CHANGE_WIFI_STATE"/> |
| <uses-permission android:name="android.permission.CLEAR_APP_USER_DATA"/> |
| <uses-permission android:name="android.permission.DELETE_CACHE_FILES"/> |
| <uses-permission android:name="android.permission.DUMP"/> |
| <uses-permission android:name="android.permission.FORCE_STOP_PACKAGES"/> |
| <uses-permission android:name="android.permission.GET_ACCOUNTS_PRIVILEGED"/> |
| <uses-permission android:name="android.permission.GET_PACKAGE_SIZE"/> |
| <uses-permission android:name="android.permission.INJECT_EVENTS"/> |
| <uses-permission android:name="android.permission.INTERNET"/> |
| <uses-permission android:name="android.permission.MANAGE_ACCOUNTS"/> |
| <uses-permission android:name="android.permission.MANAGE_USERS"/> |
| <uses-permission android:name="android.permission.MASTER_CLEAR" /> |
| <uses-permission android:name="android.permission.NETWORK_SETTINGS" /> |
| <uses-permission android:name="android.permission.OVERRIDE_WIFI_CONFIG"/> |
| <uses-permission android:name="android.permission.READ_CONTACTS"/> |
| <uses-permission android:name="android.permission.REBOOT"/> |
| <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/> |
| <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"/> |
| <uses-permission android:name="android.permission.SET_PREFERRED_APPLICATIONS"/> |
| <uses-permission android:name="android.permission.SET_TIME"/> |
| <uses-permission android:name="android.permission.SET_TIME_ZONE"/> |
| <uses-permission android:name="android.permission.START_FOREGROUND"/> |
| <uses-permission android:name="android.permission.WRITE_MEDIA_STORAGE"/> |
| <uses-permission android:name="android.permission.WRITE_SETTINGS"/> |
| <uses-permission android:name="android.permission.WRITE_SECURE_SETTINGS"/> |
| |
| <application |
| android:icon="@drawable/ic_launcher_settings" |
| android:theme="@style/CarSettingTheme" |
| android:label="@string/settings_label" |
| android:requiredForAllUsers="true" |
| android:directBootAware="true" |
| android:supportsRtl="true"> |
| |
| <activity |
| android:name=".common.CarSettingActivity" |
| android:label="@string/settings_label" |
| android:launchMode="singleTask" |
| android:windowSoftInputMode="adjustPan" |
| android:exported="true"> |
| <!-- Set priority high enough to trump the phone setting app --> |
| <intent-filter android:priority="1"> |
| <action android:name="android.settings.SETTINGS" /> |
| <category android:name="android.intent.category.DEFAULT"/> |
| </intent-filter> |
| |
| <!-- Handles wifi related intent --> |
| <intent-filter android:priority="1"> |
| <action android:name="android.settings.WIFI_SETTINGS" /> |
| <category android:name="android.intent.category.DEFAULT" /> |
| </intent-filter> |
| <intent-filter android:priority="1"> |
| <action android:name="android.net.wifi.PICK_WIFI_NETWORK" /> |
| <category android:name="android.intent.category.DEFAULT" /> |
| </intent-filter> |
| |
| <meta-data android:name="distractionOptimized" android:value="true"/> |
| </activity> |
| |
| <!-- Alias for launcher activity only, as this belongs to each profile. --> |
| <!-- TODO: once phone setting is removed from car system image, set priority to 1 --> |
| <activity-alias android:name="Settings" |
| android:label="@string/settings_label" |
| android:launchMode="singleTask" |
| android:targetActivity=".common.CarSettingActivity"> |
| <intent-filter android:priority="10"> |
| <action android:name="android.intent.action.MAIN" /> |
| <category android:name="android.intent.category.DEFAULT" /> |
| <category android:name="android.intent.category.LAUNCHER" /> |
| </intent-filter> |
| </activity-alias> |
| |
| <activity android:name=".bluetooth.BluetoothPairingDialog" |
| android:excludeFromRecents="true" |
| android:windowSoftInputMode="stateVisible|adjustResize" |
| android:taskAffinity="car.settings.bluetooth" |
| android:launchMode="singleTask" |
| android:theme="@*android:style/Theme.DeviceDefault.Settings.Dialog.NoActionBar"> |
| </activity> |
| |
| <activity android:name=".accounts.AddAccountActivity" |
| android:theme="@android:style/Theme.Translucent.NoTitleBar" |
| android:configChanges="orientation|keyboardHidden|screenSize"> |
| <intent-filter> |
| <action android:name="android.car.settings.ADD_ACCOUNT_SETTINGS" /> |
| <category android:name="android.intent.category.DEFAULT" /> |
| </intent-filter> |
| </activity> |
| |
| <activity android:name=".security.SettingsScreenLockActivity" |
| android:configChanges="orientation|keyboardHidden|screenSize" |
| android:windowSoftInputMode="adjustResize"> |
| <intent-filter> |
| <action android:name="android.car.settings.SCREEN_LOCK_ACTIVITY" /> |
| <category android:name="android.intent.category.DEFAULT" /> |
| </intent-filter> |
| <meta-data android:name="distractionOptimized" android:value="true"/> |
| </activity> |
| |
| <activity android:name=".security.SetupWizardScreenLockActivity" |
| android:theme="@style/Theme.Car.SetupWizard.NoActionBar.Accent" |
| android:configChanges="orientation|keyboardHidden|screenSize" |
| android:windowSoftInputMode="adjustResize"> |
| <intent-filter> |
| <action android:name="android.car.settings.SETUP_WIZARD_SCREEN_LOCK_ACTIVITY" /> |
| <category android:name="android.intent.category.DEFAULT" /> |
| </intent-filter> |
| <meta-data android:name="distractionOptimized" android:value="true"/> |
| </activity> |
| |
| <activity android:name=".security.CheckLockActivity" |
| android:configChanges="orientation|keyboardHidden|screenSize" |
| android:windowSoftInputMode="adjustResize"> |
| </activity> |
| |
| <activity android:name=".system.ThirdPartyLicensesActivity" |
| android:configChanges="orientation|keyboardHidden|screenSize" |
| android:windowSoftInputMode="adjustResize"> |
| </activity> |
| |
| <!-- This logic is copied from phone.--> |
| <!-- Ensures there's lightweight fallback activity when no other MAIN/HOME activity is present.--> |
| <activity android:name=".FallbackHome" |
| android:excludeFromRecents="true" |
| android:label="" |
| android:screenOrientation="nosensor" |
| android:theme="@style/FallbackHome"> |
| <intent-filter android:priority="-900"> |
| <action android:name="android.intent.action.MAIN" /> |
| <category android:name="android.intent.category.HOME" /> |
| <category android:name="android.intent.category.DEFAULT" /> |
| </intent-filter> |
| </activity> |
| |
| <service android:name=".bluetooth.BluetoothPairingService" /> |
| |
| <receiver android:name=".bluetooth.BluetoothPairingRequest"> |
| <intent-filter> |
| <action android:name="android.bluetooth.device.action.PAIRING_REQUEST" /> |
| </intent-filter> |
| </receiver> |
| |
| <!-- FileProvider to share a generated license html file. |
| Note that "com.android.settings.files" is set here as its authorities because a Uri |
| permission grant should be allowed to share a file with an external browser but it is |
| allowed only for Settings' authorities in ActivityManagerService. --> |
| <provider android:name="androidx.core.content.FileProvider" |
| android:authorities="com.android.settings.files" |
| android:grantUriPermissions="true" |
| android:exported="false"> |
| <meta-data android:name="android.support.FILE_PROVIDER_PATHS" |
| android:resource="@xml/file_paths" /> |
| </provider> |
| |
| </application> |
| </manifest> |