Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 83ce8835 authored by Charles He's avatar Charles He Committed by Android (Google) Code Review
Browse files

Merge "Add alert dialog when always-on VPN disconnects."

parents 82532403 7376f6c1
Loading
Loading
Loading
Loading
+6 −2
Original line number Original line Diff line number Diff line
@@ -2197,10 +2197,14 @@
    <string name="config_customAdbPublicKeyConfirmationSecondaryUserComponent"
    <string name="config_customAdbPublicKeyConfirmationSecondaryUserComponent"
            >com.android.systemui/com.android.systemui.usb.UsbDebuggingSecondaryUserActivity</string>
            >com.android.systemui/com.android.systemui.usb.UsbDebuggingSecondaryUserActivity</string>


    <!-- Name of the CustomDialog that is used for VPN -->
    <!-- Name of the dialog that is used to request the user's consent to VPN connection -->
    <string name="config_customVpnConfirmDialogComponent"
    <string name="config_customVpnConfirmDialogComponent" translatable="false"
            >com.android.vpndialogs/com.android.vpndialogs.ConfirmDialog</string>
            >com.android.vpndialogs/com.android.vpndialogs.ConfirmDialog</string>


    <!-- Name of the dialog that is used to inform the user that always-on VPN is disconnected -->
    <string name="config_customVpnAlwaysOnDisconnectedDialogComponent" translatable="false"
            >com.android.vpndialogs/com.android.vpndialogs.AlwaysOnDisconnectedDialog</string>

    <!-- Apps that are authorized to access shared accounts, overridden by product overlays -->
    <!-- Apps that are authorized to access shared accounts, overridden by product overlays -->
    <string name="config_appsAuthorizedForSharedAccounts" translatable="false">;com.android.settings;</string>
    <string name="config_appsAuthorizedForSharedAccounts" translatable="false">;com.android.settings;</string>


+12 −7
Original line number Original line Diff line number Diff line
@@ -3444,16 +3444,21 @@
    <!-- The text of the notification when VPN is active with a session name. -->
    <!-- The text of the notification when VPN is active with a session name. -->
    <string name="vpn_text_long">Connected to <xliff:g id="session" example="office">%s</xliff:g>. Tap to manage the network.</string>
    <string name="vpn_text_long">Connected to <xliff:g id="session" example="office">%s</xliff:g>. Tap to manage the network.</string>


    <!-- Notification title when connecting to lockdown VPN. -->
    <!-- Notification title when connecting to always-on VPN, a VPN that's set to always stay
         connected. -->
    <string name="vpn_lockdown_connecting">Always-on VPN connecting\u2026</string>
    <string name="vpn_lockdown_connecting">Always-on VPN connecting\u2026</string>
    <!-- Notification title when connected to lockdown VPN. -->
    <!-- Notification title when connected to always-on VPN, a VPN that's set to always stay
         connected. -->
    <string name="vpn_lockdown_connected">Always-on VPN connected</string>
    <string name="vpn_lockdown_connected">Always-on VPN connected</string>
    <!-- Notification title when not connected to lockdown VPN. -->
    <!-- Notification title when not connected to always-on VPN, a VPN that's set to always stay
    <string name="vpn_lockdown_disconnected">Always-on VPN disconnected</string>
         connected. -->
    <!-- Notification title when error connecting to lockdown VPN. -->
    <string name="vpn_lockdown_disconnected">Disconnected from always-on VPN</string>
    <!-- Notification title when error connecting to always-on VPN, a VPN that's set to always stay
         connected. -->
    <string name="vpn_lockdown_error">Always-on VPN error</string>
    <string name="vpn_lockdown_error">Always-on VPN error</string>
    <!-- Notification body that indicates user can touch to configure lockdown VPN connection. -->
    <!-- Notification body that indicates user can touch to configure always-on VPN, a VPN that's
    <string name="vpn_lockdown_config">Tap to set up</string>
         set to always stay connected. -->
    <string name="vpn_lockdown_config">Change network or VPN settings</string>


    <!-- Localized strings for WebView -->
    <!-- Localized strings for WebView -->
    <!-- Label for button in a WebView that will open a chooser to choose a file to upload -->
    <!-- Label for button in a WebView that will open a chooser to choose a file to upload -->
+1 −0
Original line number Original line Diff line number Diff line
@@ -2002,6 +2002,7 @@
  <java-symbol type="string" name="config_customAdbPublicKeyConfirmationComponent" />
  <java-symbol type="string" name="config_customAdbPublicKeyConfirmationComponent" />
  <java-symbol type="string" name="config_customAdbPublicKeyConfirmationSecondaryUserComponent" />
  <java-symbol type="string" name="config_customAdbPublicKeyConfirmationSecondaryUserComponent" />
  <java-symbol type="string" name="config_customVpnConfirmDialogComponent" />
  <java-symbol type="string" name="config_customVpnConfirmDialogComponent" />
  <java-symbol type="string" name="config_customVpnAlwaysOnDisconnectedDialogComponent" />
  <java-symbol type="string" name="config_defaultNetworkScorerPackageName" />
  <java-symbol type="string" name="config_defaultNetworkScorerPackageName" />
  <java-symbol type="string" name="config_persistentDataPackageName" />
  <java-symbol type="string" name="config_persistentDataPackageName" />


+18 −8
Original line number Original line Diff line number Diff line
@@ -24,6 +24,7 @@


    <application android:label="VpnDialogs"
    <application android:label="VpnDialogs"
                 android:allowBackup="false">
                 android:allowBackup="false">

        <activity android:name=".ConfirmDialog"
        <activity android:name=".ConfirmDialog"
                  android:theme="@android:style/Theme.Material.Light.Dialog.Alert">
                  android:theme="@android:style/Theme.Material.Light.Dialog.Alert">
            <intent-filter>
            <intent-filter>
@@ -34,11 +35,20 @@


        <activity android:name=".ManageDialog"
        <activity android:name=".ManageDialog"
                  android:theme="@android:style/Theme.Material.Light.Dialog.Alert"
                  android:theme="@android:style/Theme.Material.Light.Dialog.Alert"
                android:noHistory="true">
                  android:noHistory="true"
            <intent-filter>
                  android:excludeFromRecents="true"
                <action android:name="android.intent.action.MAIN"/>
                  android:permission="android.permission.NETWORK_SETTINGS"
                <category android:name="android.intent.category.DEFAULT"/>
                  android:exported="true">
            </intent-filter>
        </activity>
        </activity>

        <activity android:name=".AlwaysOnDisconnectedDialog"
                  android:label="@string/always_on_disconnected_title"
                  android:theme="@android:style/Theme.Material.Light.Dialog.Alert"
                  android:noHistory="true"
                  android:excludeFromRecents="true"
                  android:permission="android.permission.NETWORK_SETTINGS"
                  android:exported="true">
        </activity>

    </application>
    </application>
</manifest>
</manifest>
+25 −0
Original line number Original line Diff line number Diff line
<?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.
-->

<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:padding="24dp">
    <TextView android:id="@+id/message"
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"/>
</ScrollView>
Loading