1<?xml version="1.0" encoding="utf-8"?> 2<!-- 3/* 4 * Copyright (C) 2014 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 xmlns:tools="http://schemas.android.com/tools" 21 package="com.android.captiveportallogin" 22 android:versionCode="330400000" 23 android:versionName="330400000"> 24 25 <uses-permission android:name="android.permission.INTERNET" /> 26 <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> 27 <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" /> 28 <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /> 29 <uses-permission android:name="android.permission.READ_DEVICE_CONFIG" /> 30 <uses-permission android:name="android.permission.MAINLINE_NETWORK_STACK" /> 31 <uses-permission android:name="android.permission.FOREGROUND_SERVICE" /> 32 <uses-permission android:name="android.permission.POST_NOTIFICATIONS"/> 33 34 <!-- The login activity can start downloads, and in cases where the download is an APK, 35 tapping on the notification to open the downloaded file will cause the package installer to 36 start and verify this permission. 37 If this permission is requested, the package installer will prompt the user to grant the 38 permission in Settings. If the user has granted the permission, they will be able to install the 39 package. 40 Not requesting this permission would cause the package manager to silently ignore the 41 notification tap. 42 Applications may be offered on portals such as airline wifi, in which case installing the app 43 from the portal can be useful. --> 44 <uses-permission android:name="android.permission.REQUEST_INSTALL_PACKAGES" /> 45 46 <application android:label="@string/app_name" 47 android:icon="@drawable/app_icon" 48 android:usesCleartextTraffic="true" 49 android:supportsRtl="true" > 50 <activity 51 android:name="com.android.captiveportallogin.CaptivePortalLoginActivity" 52 android:label="@string/action_bar_label" 53 android:theme="@style/AppTheme" 54 android:exported="true" 55 android:configChanges="keyboardHidden|orientation|screenSize" > 56 <intent-filter> 57 <action android:name="android.net.conn.CAPTIVE_PORTAL"/> 58 <category android:name="android.intent.category.DEFAULT"/> 59 </intent-filter> 60 </activity> 61 <service android:name=".DownloadService" android:exported="false" /> 62 <provider 63 android:name="androidx.core.content.FileProvider" 64 android:authorities="com.android.captiveportallogin.fileprovider" 65 android:exported="false" 66 android:grantUriPermissions="true"> 67 <meta-data 68 android:name="android.support.FILE_PROVIDER_PATHS" 69 android:resource="@xml/file_paths"/> 70 </provider> 71 </application> 72</manifest> 73