diff options
-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); |