From 8a68fdaf045848376f2e31a645fb3970868842ad Mon Sep 17 00:00:00 2001 From: Tim Volodine Date: Fri, 12 Jun 2020 19:25:57 +0100 Subject: [Browser2] Update target_sdk version to 29 (Q) Update Browser2 to target Android Q (API level 29). Bug: 143990997 Test: manual Change-Id: I0750489508556872e632b0a1bd3688b7a8bb07df --- AndroidManifest.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" > - + -- cgit v1.2.3 From bc86d7361f64780509598c01b1c5ad7e44f8822b Mon Sep 17 00:00:00 2001 From: Ulya Trafimovich Date: Tue, 1 Sep 2020 12:05:13 +0100 Subject: Add information. The required "android.test.runner" is in the manifest for Browser2, and it must be explicitly added to `uses_libs` because it is not among the app dependencies and Soong cannot add it automatically. Bug: 132357300 Test: lunch cf_x86_phone-userdebug && m Change-Id: I0cd3307068c03cf7645db434c8dbbf7972a9dd50 --- Android.bp | 1 + 1 file changed, 1 insertion(+) diff --git a/Android.bp b/Android.bp index e04b939..8eaa545 100644 --- a/Android.bp +++ b/Android.bp @@ -2,5 +2,6 @@ android_app { name: "Browser2", sdk_version: "current", srcs: ["src/**/*.java"], + uses_libs: ["android.test.runner"], product_specific: true, } -- cgit v1.2.3 From b77bfca7a0aaff3e4740a67a24873c7218b00768 Mon Sep 17 00:00:00 2001 From: Bob Badour Date: Fri, 12 Feb 2021 17:51:27 -0800 Subject: [LSC] Add LOCAL_LICENSE_KINDS to packages/apps/Browser2 Added SPDX-license-identifier-BSD to: Android.bp Bug: 68860345 Bug: 151177513 Bug: 151953481 Test: m all Exempt-From-Owner-Approval: janitorial work Change-Id: I94134adf3ba4bae5a57ea910ed76eec2f69b169c --- Android.bp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/Android.bp b/Android.bp index 8eaa545..cb30f33 100644 --- a/Android.bp +++ b/Android.bp @@ -1,3 +1,18 @@ +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", -- cgit v1.2.3 From 226a035deeed15b13f876d1dcd396a7568e2ea95 Mon Sep 17 00:00:00 2001 From: "Torne (Richard Coles)" Date: Mon, 22 Mar 2021 15:33:20 -0400 Subject: Clarify that this is not a real browser. Make it clear in the README that this is not a production quality browser and should not be shipped in production devices. Bug: 181148088 Test: n/a Change-Id: I4509307e35468abd6a139e0ed1d0cf6c9a25cfcd --- OWNERS | 2 +- README | 11 +++++++++-- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/OWNERS b/OWNERS index 452a499..c43c5d6 100644 --- a/OWNERS +++ b/OWNERS @@ -1,4 +1,4 @@ timvolodine@google.com -tobiasjs@google.com +torne@google.com rtenneti@google.com diff --git a/README b/README index 57d75d5..ec31115 100644 --- a/README +++ b/README @@ -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 -- cgit v1.2.3 From d5a30e6537be4f99b60fa9db737102d7f67195a2 Mon Sep 17 00:00:00 2001 From: "Torne (Richard Coles)" Date: Mon, 22 Mar 2021 15:33:20 -0400 Subject: Clarify that this is not a real browser. Make it clear in the README that this is not a production quality browser and should not be shipped in production devices. Bug: 181148088 Test: n/a Change-Id: I4509307e35468abd6a139e0ed1d0cf6c9a25cfcd Merged-In: I4509307e35468abd6a139e0ed1d0cf6c9a25cfcd (cherry picked from commit 226a035deeed15b13f876d1dcd396a7568e2ea95) --- OWNERS | 2 +- README | 11 +++++++++-- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/OWNERS b/OWNERS index 452a499..c43c5d6 100644 --- a/OWNERS +++ b/OWNERS @@ -1,4 +1,4 @@ timvolodine@google.com -tobiasjs@google.com +torne@google.com rtenneti@google.com diff --git a/README b/README index 57d75d5..ec31115 100644 --- a/README +++ b/README @@ -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 -- cgit v1.2.3 From 2fafc7ad9c97dc5f78241bcdaf1e50d2975983f1 Mon Sep 17 00:00:00 2001 From: "Torne (Richard Coles)" Date: Fri, 10 Sep 2021 16:27:33 -0400 Subject: Remove appcache references. AppCache is deprecated and the APIs will be removed; remove references in the test browser. Bug: 199287927 Test: m Browser2 Change-Id: I1e00a1b506db818fec91a27065972268991d99bf --- src/org/chromium/webview_shell/WebViewBrowserActivity.java | 4 ---- 1 file changed, 4 deletions(-) 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); -- cgit v1.2.3