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
33 lines
1.5 KiB
XML
33 lines
1.5 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!--
|
|
Copyright (C) 2017-2020 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.
|
|
-->
|
|
<permissions>
|
|
<privapp-permissions package="org.lineageos.setupwizard">
|
|
<permission name="android.permission.BACKUP"/>
|
|
<permission name="android.permission.CHANGE_COMPONENT_ENABLED_STATE"/>
|
|
<permission name="android.permission.CHANGE_CONFIGURATION"/>
|
|
<permission name="android.permission.GET_ACCOUNTS_PRIVILEGED"/>
|
|
<permission name="android.permission.INTERACT_ACROSS_USERS"/>
|
|
<permission name="android.permission.LOCAL_MAC_ADDRESS"/>
|
|
<permission name="android.permission.MANAGE_USERS"/>
|
|
<permission name="android.permission.READ_PRIVILEGED_PHONE_STATE"/>
|
|
<permission name="android.permission.SET_TIME"/>
|
|
<permission name="android.permission.SET_TIME_ZONE"/>
|
|
<permission name="android.permission.STATUS_BAR"/>
|
|
<permission name="android.permission.WRITE_SECURE_SETTINGS"/>
|
|
</privapp-permissions>
|
|
</permissions>
|