diff options
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2022-05-10 07:06:29 +0000 |
---|---|---|
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2022-05-10 07:06:29 +0000 |
commit | 62a7448e5cdc695e8e1175568f0beda6ca5db597 (patch) | |
tree | fdeba5f34c420afc236b72db7b97e94674b9b3b0 | |
parent | 37652f79d1a115bc2d920a68ad6846a23107c660 (diff) | |
parent | 2fafc7ad9c97dc5f78241bcdaf1e50d2975983f1 (diff) | |
download | Browser2-62a7448e5cdc695e8e1175568f0beda6ca5db597.tar.gz |
Snap for 8564071 from 2fafc7ad9c97dc5f78241bcdaf1e50d2975983f1 to mainline-extservices-releaseaml_ext_331814220aml_ext_331412000aml_ext_331312000aml_ext_331112010aml_ext_331012020android13-mainline-extservices-release
Change-Id: Ic5ee62c268082fe0e0fabfa143632d14b05c2c14
-rw-r--r-- | Android.bp | 16 | ||||
-rw-r--r-- | AndroidManifest.xml | 2 | ||||
-rw-r--r-- | OWNERS | 2 | ||||
-rw-r--r-- | README | 11 | ||||
-rw-r--r-- | src/org/chromium/webview_shell/WebViewBrowserActivity.java | 4 |
5 files changed, 27 insertions, 8 deletions
@@ -1,6 +1,22 @@ +package { + default_applicable_licenses: ["packages_apps_Browser2_license"], +} + +// Added automatically by a large-scale-change +// See: http://go/android-license-faq +license { + name: "packages_apps_Browser2_license", + visibility: [":__subpackages__"], + license_kinds: [ + "SPDX-license-identifier-BSD", + ], + // large-scale-change unable to identify any license_text files +} + android_app { name: "Browser2", sdk_version: "current", srcs: ["src/**/*.java"], + uses_libs: ["android.test.runner"], product_specific: true, } diff --git a/AndroidManifest.xml b/AndroidManifest.xml index 2dbbe9d..930ef25 100644 --- a/AndroidManifest.xml +++ b/AndroidManifest.xml @@ -10,7 +10,7 @@ android:versionCode="1" android:versionName="1.0" > - <uses-sdk android:minSdkVersion="19" android:targetSdkVersion="28" /> + <uses-sdk android:minSdkVersion="19" android:targetSdkVersion="29" /> <!-- "Normal" permissions which do not require user prompt --> <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> @@ -1,4 +1,4 @@ timvolodine@google.com -tobiasjs@google.com +torne@google.com rtenneti@google.com @@ -1,4 +1,11 @@ Browser2 is a copy of the WebViewShell, a minimal test browser using WebView. -The old Browser is no longer supported. To build a full-fledged browser for -AOSP, please follow the instructions at: +The old Browser is no longer supported. + +This is *not* a production quality browser and does not implement suitable +security UI to be used for anything other than testing WebView. This should not +be shipped in production devices, or used as the basis for implementing a real +browser. + +To build a full-fledged browser for AOSP, one option is to build a standalone +(non-WebView-based) Chromium browser by following the instructions at: https://www.chromium.org/developers/how-tos/android-build-instructions diff --git a/src/org/chromium/webview_shell/WebViewBrowserActivity.java b/src/org/chromium/webview_shell/WebViewBrowserActivity.java index 0a7b637..cce295a 100644 --- a/src/org/chromium/webview_shell/WebViewBrowserActivity.java +++ b/src/org/chromium/webview_shell/WebViewBrowserActivity.java @@ -570,21 +570,17 @@ public class WebViewBrowserActivity extends Activity implements PopupMenu.OnMenu // but we still use it because we support api level 19 and up. @SuppressWarnings("deprecation") private void initializeSettings(WebSettings settings) { - File appcache = null; File geolocation = null; StrictMode.ThreadPolicy oldPolicy = StrictMode.allowThreadDiskWrites(); - appcache = getDir("appcache", 0); geolocation = getDir("geolocation", 0); StrictMode.setThreadPolicy(oldPolicy); settings.setJavaScriptEnabled(true); // configure local storage apis and their database paths. - settings.setAppCachePath(appcache.getPath()); settings.setGeolocationDatabasePath(geolocation.getPath()); - settings.setAppCacheEnabled(true); settings.setGeolocationEnabled(true); settings.setDatabaseEnabled(true); settings.setDomStorageEnabled(true); |