diff options
author | Arne Schwabe <arne@rfc2549.org> | 2013-04-06 19:46:07 +0200 |
---|---|---|
committer | Arne Schwabe <arne@rfc2549.org> | 2013-04-06 19:46:07 +0200 |
commit | bde3a3f780cc668619076df96147b76be1c4ab64 (patch) | |
tree | 0c47b7894df388844ef3b9a806711b704c227b3d /res | |
parent | ad2256b6fe9c211d06321d99590cb457427d8e7d (diff) |
Add external API with security.
Diffstat (limited to 'res')
-rw-r--r-- | res/layout/api_confirm.xml | 57 | ||||
-rwxr-xr-x | res/values/strings.xml | 4 |
2 files changed, 61 insertions, 0 deletions
diff --git a/res/layout/api_confirm.xml b/res/layout/api_confirm.xml new file mode 100644 index 00000000..bad20cc0 --- /dev/null +++ b/res/layout/api_confirm.xml @@ -0,0 +1,57 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2011 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"> + <LinearLayout android:layout_width="match_parent" + android:layout_height="wrap_content" + android:orientation="vertical" + android:padding="3mm"> + + <LinearLayout android:layout_width="match_parent" + android:layout_height="wrap_content" + android:orientation="horizontal" + android:gravity="center_vertical"> + + <ImageView android:id="@+id/icon" + android:layout_width="@android:dimen/app_icon_size" + android:layout_height="@android:dimen/app_icon_size" + android:paddingRight="1mm"/> + + <TextView android:id="@+id/prompt" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:textSize="18sp"/> + </LinearLayout> + + <TextView android:id="@+id/warning" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:paddingTop="1mm" + android:paddingBottom="1mm" + android:text="@string/remote_warning" + android:textSize="18sp"/> + + <CheckBox android:id="@+id/check" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:text="@string/remote_trust" + android:textSize="20sp" + android:checked="false"/> + </LinearLayout> +</ScrollView>
\ No newline at end of file diff --git a/res/values/strings.xml b/res/values/strings.xml index cdc42288..3e969f18 100755 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -277,5 +277,9 @@ <string name="rdn_prefix">RDN prefix</string> <string name="tls_remote_deprecated">tls-remote (DEPRECATED)</string> <string name="help_translate">You can help translating by visiting http://crowdin.net/project/ics-openvpn/invite</string> + <!-- Dialog title to identify the request from a VPN application. [CHAR LIMIT=60] --> + <string name="prompt">%1$s attempts to control %2$s</string> + <string name="remote_warning">By proceeding, you are giving the application permission to completely control OpenVPN for Android and to intercept all network traffic. <b> Do NOT accept unless you trust the application. </b> Otherwise, you run the risk of having your data compromised by malicious software."</string> + <string name="remote_trust">I trust this application.</string> </resources>
\ No newline at end of file |