The captive_portal_server setting is deprecated, and hard-wiring it as a string is also probably a bad idea. Since it's deprecated, this code will miss an override via the modern settings. This also hard-wired a slightly different fallback than ConnectivityService, and simply adjusting it here wouldn't stop that from happening again. It's best to just use the privileged API for obtaining the proper value. The choice of LOCAL_MAC_ADDRESS as the permission for this is a bit strange, but that's what is required, probably because a better fit didn't exist. Change-Id: I78d07d5ff96598cebf6d4ed032fe1516791836fe
318 lines
15 KiB
XML
318 lines
15 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!--
|
|
Copyright (C) 2013 The CyanogenMod Project
|
|
Copyright (C) 2017,2019 The LineageOS 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"
|
|
xmlns:androidprv="http://schemas.android.com/apk/prv/res/android"
|
|
package="org.lineageos.setupwizard"
|
|
android:versionCode="5"
|
|
android:sharedUserId="android.uid.system">
|
|
|
|
<uses-permission android:name="android.permission.CHANGE_CONFIGURATION" />
|
|
<uses-permission android:name="android.permission.STATUS_BAR" />
|
|
<uses-permission android:name="android.permission.WRITE_SETTINGS" />
|
|
<uses-permission android:name="android.permission.WRITE_SECURE_SETTINGS" />
|
|
<uses-permission android:name="android.permission.SET_TIME_ZONE" />
|
|
<uses-permission android:name="android.permission.SET_TIME" />
|
|
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
|
|
<uses-permission android:name="android.permission.CHANGE_NETWORK_STATE"/>
|
|
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
|
|
<uses-permission android:name="android.permission.CHANGE_WIFI_STATE" />
|
|
<uses-permission android:name="android.permission.INTERNET"/>
|
|
<uses-permission android:name="android.permission.GET_ACCOUNTS_PRIVILEGED" />
|
|
<uses-permission android:name="android.permission.READ_PRIVILEGED_PHONE_STATE" />
|
|
<uses-permission android:name="android.permission.MANAGE_ACCOUNTS" />
|
|
<uses-permission android:name="android.permission.INTERACT_ACROSS_USERS" />
|
|
<uses-permission android:name="android.permission.MANAGE_USERS" />
|
|
<uses-permission android:name="android.permission.CHANGE_COMPONENT_ENABLED_STATE" />
|
|
<uses-permission android:name="android.permission.EXPAND_STATUS_BAR" />
|
|
<uses-permission android:name="lineageos.permission.HARDWARE_ABSTRACTION_ACCESS" />
|
|
<uses-permission android:name="android.permission.BACKUP" />
|
|
<uses-permission android:name="android.permission.LOCAL_MAC_ADDRESS" />
|
|
<uses-permission android:name="lineageos.permission.FINISH_SETUP" />
|
|
<uses-permission android:name="lineageos.permission.WRITE_SETTINGS" />
|
|
<uses-permission android:name="lineageos.permission.WRITE_SECURE_SETTINGS" />
|
|
|
|
<permission
|
|
android:name="lineageos.permission.FINISH_SETUP"
|
|
android:protectionLevel="signatureOrSystem" />
|
|
|
|
<protected-broadcast android:name="org.lineageos.setupwizard.SETUP_FINISHED"
|
|
android:permission="lineageos.permission.FINISH_SETUP"/>
|
|
|
|
<application android:label="@string/app_name"
|
|
android:icon="@mipmap/ic_launcher"
|
|
android:theme="@style/Theme.Setup"
|
|
android:uiOptions="none"
|
|
android:taskAffinity="com.android.wizard"
|
|
android:name=".SetupWizardApp">
|
|
|
|
|
|
<activity android:theme="@style/NoDisplay"
|
|
android:label="@string/activity_label_empty"
|
|
android:name=".wizardmanager.WizardManager"
|
|
android:enabled="false"
|
|
android:exported="false"
|
|
android:excludeFromRecents="true"
|
|
android:configChanges="keyboard|keyboardHidden|mcc|mnc|orientation|screenSize"
|
|
android:immersive="true">
|
|
<intent-filter>
|
|
<action android:name="com.android.wizard.LOAD" />
|
|
<action android:name="com.android.wizard.NEXT" />
|
|
<category android:name="android.intent.category.DEFAULT" />
|
|
</intent-filter>
|
|
</activity>
|
|
|
|
<activity android:name=".SetupWizardActivity"
|
|
android:label="@string/activity_label_empty"
|
|
android:lockTaskMode="normal"
|
|
android:launchMode="singleTask"
|
|
android:excludeFromRecents="true"
|
|
android:configChanges="keyboard|keyboardHidden|mcc|mnc|orientation|screenSize"
|
|
android:immersive="true"
|
|
android:windowSoftInputMode="stateAlwaysHidden"
|
|
android:theme="@style/NoDisplay">
|
|
|
|
<intent-filter android:priority="9">
|
|
<action android:name="android.intent.action.MAIN" />
|
|
<action android:name="android.intent.action.DEVICE_INITIALIZATION_WIZARD" />
|
|
<category android:name="android.intent.category.HOME" />
|
|
<category android:name="android.intent.category.DEFAULT" />
|
|
</intent-filter>
|
|
</activity>
|
|
|
|
<activity android:name=".BluetoothSetupActivity"
|
|
android:label="@string/activity_label_empty"
|
|
android:excludeFromRecents="true"
|
|
android:configChanges="mcc|mnc"
|
|
android:immersive="true"
|
|
android:windowSoftInputMode="stateAlwaysHidden">
|
|
<intent-filter>
|
|
<action android:name="org.lineageos.setupwizard.LINEAGE_BLUETOOTH_SETUP" />
|
|
<category android:name="android.intent.category.DEFAULT" />
|
|
</intent-filter>
|
|
</activity>
|
|
|
|
<activity android:name=".WelcomeActivity"
|
|
android:label="@string/activity_label_empty"
|
|
android:excludeFromRecents="true"
|
|
android:configChanges="mcc|mnc"
|
|
android:immersive="true"
|
|
android:windowSoftInputMode="stateAlwaysHidden">
|
|
<intent-filter>
|
|
<action android:name="org.lineageos.setupwizard.LINEAGE_WELCOME" />
|
|
<category android:name="android.intent.category.DEFAULT" />
|
|
</intent-filter>
|
|
</activity>
|
|
|
|
<activity android:name=".LocaleActivity"
|
|
android:label="@string/activity_label_empty"
|
|
android:excludeFromRecents="true"
|
|
android:configChanges="mcc|mnc"
|
|
android:immersive="true"
|
|
android:windowSoftInputMode="stateAlwaysHidden">
|
|
<intent-filter>
|
|
<action android:name="org.lineageos.setupwizard.LINEAGE_LOCALE" />
|
|
<category android:name="android.intent.category.DEFAULT" />
|
|
</intent-filter>
|
|
</activity>
|
|
|
|
<activity android:name=".DateTimeActivity"
|
|
android:label="@string/activity_label_empty"
|
|
android:excludeFromRecents="true"
|
|
android:configChanges="mcc|mnc"
|
|
android:immersive="true"
|
|
android:windowSoftInputMode="stateAlwaysHidden">
|
|
<intent-filter>
|
|
<action android:name="org.lineageos.setupwizard.LINEAGE_DATETIME" />
|
|
<category android:name="android.intent.category.DEFAULT" />
|
|
</intent-filter>
|
|
</activity>
|
|
|
|
<activity android:name=".WifiSetupActivity"
|
|
android:label="@string/activity_label_empty"
|
|
android:excludeFromRecents="true"
|
|
android:configChanges="mcc|mnc"
|
|
android:immersive="true"
|
|
android:exported="false"
|
|
android:windowSoftInputMode="stateAlwaysHidden">
|
|
<intent-filter>
|
|
<action android:name="org.lineageos.setupwizard.LINEAGE_WIFI_SETUP" />
|
|
<category android:name="android.intent.category.DEFAULT" />
|
|
</intent-filter>
|
|
</activity>
|
|
|
|
<activity android:name=".CaptivePortalSetupActivity"
|
|
android:label="@string/activity_label_empty"
|
|
android:excludeFromRecents="true"
|
|
android:configChanges="mcc|mnc"
|
|
android:immersive="true"
|
|
android:exported="false"
|
|
android:windowSoftInputMode="stateAlwaysHidden">
|
|
<intent-filter>
|
|
<action android:name="org.lineageos.setupwizard.LINEAGE_CAPTIVE_PORTAL_SETUP" />
|
|
<category android:name="android.intent.category.DEFAULT" />
|
|
</intent-filter>
|
|
</activity>
|
|
|
|
<activity android:name=".SimMissingActivity"
|
|
android:label="@string/activity_label_empty"
|
|
android:excludeFromRecents="true"
|
|
android:configChanges="mcc|mnc"
|
|
android:immersive="true"
|
|
android:exported="false"
|
|
android:windowSoftInputMode="stateAlwaysHidden">
|
|
<intent-filter>
|
|
<action android:name="org.lineageos.setupwizard.LINEAGE_SIM_MISSING" />
|
|
<category android:name="android.intent.category.DEFAULT" />
|
|
</intent-filter>
|
|
</activity>
|
|
|
|
<activity android:name=".ChooseDataSimActivity"
|
|
android:label="@string/activity_label_empty"
|
|
android:excludeFromRecents="true"
|
|
android:configChanges="mcc|mnc"
|
|
android:immersive="true"
|
|
android:exported="false"
|
|
android:windowSoftInputMode="stateAlwaysHidden">
|
|
<intent-filter>
|
|
<action android:name="org.lineageos.setupwizard.LINEAGE_CHOOSE_DATA_SIM" />
|
|
<category android:name="android.intent.category.DEFAULT" />
|
|
</intent-filter>
|
|
</activity>
|
|
|
|
<activity android:name=".MobileDataActivity"
|
|
android:label="@string/activity_label_empty"
|
|
android:excludeFromRecents="true"
|
|
android:configChanges="mcc|mnc"
|
|
android:immersive="true"
|
|
android:exported="false"
|
|
android:windowSoftInputMode="stateAlwaysHidden">
|
|
<intent-filter>
|
|
<action android:name="org.lineageos.setupwizard.LINEAGE_ENABLE_MOBILE_DATA" />
|
|
<category android:name="android.intent.category.DEFAULT" />
|
|
</intent-filter>
|
|
</activity>
|
|
|
|
<activity android:name=".LocationSettingsActivity"
|
|
android:label="@string/activity_label_empty"
|
|
android:excludeFromRecents="true"
|
|
android:configChanges="mcc|mnc"
|
|
android:immersive="true"
|
|
android:exported="false"
|
|
android:windowSoftInputMode="stateAlwaysHidden">
|
|
<intent-filter>
|
|
<action android:name="org.lineageos.setupwizard.LINEAGE_LOCATION_SETTINGS" />
|
|
<category android:name="android.intent.category.DEFAULT" />
|
|
</intent-filter>
|
|
</activity>
|
|
|
|
<activity android:name=".LineageSettingsActivity"
|
|
android:label="@string/activity_label_empty"
|
|
android:excludeFromRecents="true"
|
|
android:configChanges="mcc|mnc"
|
|
android:immersive="true"
|
|
android:windowSoftInputMode="stateAlwaysHidden">
|
|
<intent-filter>
|
|
<action android:name="org.lineageos.setupwizard.LINEAGE_SETTINGS" />
|
|
<category android:name="android.intent.category.DEFAULT" />
|
|
</intent-filter>
|
|
</activity>
|
|
|
|
<activity android:name=".FingerprintActivity"
|
|
android:label="@string/activity_label_empty"
|
|
android:excludeFromRecents="true"
|
|
android:configChanges="mcc|mnc"
|
|
android:immersive="true"
|
|
android:exported="false"
|
|
android:windowSoftInputMode="stateAlwaysHidden">
|
|
<intent-filter>
|
|
<action android:name="org.lineageos.setupwizard.LINEAGE_FINGERPRINT_SETTINGS" />
|
|
<category android:name="android.intent.category.DEFAULT" />
|
|
</intent-filter>
|
|
</activity>
|
|
|
|
<activity android:name=".ScreenLockActivity"
|
|
android:label="@string/activity_label_empty"
|
|
android:excludeFromRecents="true"
|
|
android:configChanges="mcc|mnc"
|
|
android:immersive="true"
|
|
android:exported="false"
|
|
android:windowSoftInputMode="stateAlwaysHidden">
|
|
<intent-filter>
|
|
<action android:name="org.lineageos.setupwizard.LINEAGE_LOCKSCREEN_SETTINGS" />
|
|
<category android:name="android.intent.category.DEFAULT" />
|
|
</intent-filter>
|
|
</activity>
|
|
|
|
<activity android:name=".backup.RestoreIntroActivity"
|
|
android:label="@string/activity_label_empty"
|
|
android:excludeFromRecents="true"
|
|
android:configChanges="mcc|mnc"
|
|
android:immersive="true"
|
|
android:exported="false"
|
|
android:windowSoftInputMode="stateAlwaysHidden">
|
|
<intent-filter>
|
|
<action android:name="org.lineageos.setupwizard.LINEAGE_RESTORE_BACKUP"/>
|
|
<category android:name="android.intent.category.DEFAULT"/>
|
|
</intent-filter>
|
|
</activity>
|
|
|
|
<activity android:name=".FinishActivity"
|
|
android:label="@string/activity_label_empty"
|
|
android:excludeFromRecents="true"
|
|
android:configChanges="mcc|mnc"
|
|
android:immersive="true"
|
|
android:windowSoftInputMode="stateAlwaysHidden">
|
|
<intent-filter>
|
|
<action android:name="org.lineageos.setupwizard.LINEAGE_SETUP_COMPLETE" />
|
|
<category android:name="android.intent.category.DEFAULT" />
|
|
</intent-filter>
|
|
</activity>
|
|
|
|
<activity android:name=".SetupWizardExitActivity"
|
|
android:configChanges="keyboard|keyboardHidden|mcc|mnc|orientation|screenSize"
|
|
android:excludeFromRecents="true"
|
|
android:immersive="true"
|
|
android:label="@@string/activity_label_empty"
|
|
android:theme="@style/NoDisplay">
|
|
<intent-filter>
|
|
<action android:name="org.lineageos.setupwizard.EXIT"/>
|
|
<category android:name="android.intent.category.DEFAULT"/>
|
|
</intent-filter>
|
|
</activity>
|
|
|
|
<activity android:name=".SetupWizardTestActivity"
|
|
android:configChanges="keyboard|keyboardHidden|mcc|mnc|orientation|screenSize"
|
|
android:exported="false"
|
|
android:immersive="true"
|
|
android:label="@string/activity_label_empty"
|
|
android:launchMode="singleInstance"
|
|
android:theme="@style/NoDisplay"/>
|
|
|
|
<receiver android:name=".PartnerReceiver">
|
|
<intent-filter>
|
|
<action android:name="com.android.setupwizard.action.PARTNER_CUSTOMIZATION" />
|
|
<action android:name="com.google.android.tvsetup.action.PARTNER_CUSTOMIZATION" />
|
|
<category android:name="android.intent.category.DEFAULT" />
|
|
</intent-filter>
|
|
</receiver>
|
|
|
|
<service android:name=".SetupWizardExitService"
|
|
android:exported="false"/>
|
|
</application>
|
|
</manifest>
|