brave-browser
brave-browser copied to clipboard
[Android] Safe Browsing doesn't work in android-core (Follow up to #8381)
Description
Safe Browsing isn't blocking anything in android core.
Steps to reproduce
- Visit https://testsafebrowsing.appspot.com/
- Try all of the links in the "Webpage Warnings"
Actual result
Not blocked.
Expected result
Should be showing the red interstitial pages just like on desktop.
Issue reproduces how often
Easy
Issue happens on
- Current Play Store version? NA
- Beta build? NA
Device details
- Install type (ARM, x86): All
- Device (Phone, Tablet, Phablet): All
- Android version: All
Brave version
1.5.x Android-core release
Website problems only
- Does the issue resolve itself when disabling Brave Shields? NA
- Does the issue resolve itself when disabling Brave Rewards? NA
- Is the issue reproducible on the latest version of Chrome? NA
Additional information
Follow up to #8381
Any updates to this issue? I think it would be good to have on Mobile, at least on Android, maybe iOS, since this feature is on Desktop. With the ability for users to turn it off of course. I for one would have it on just to be on the more secure side.
Hi there @OnlinePlayer865 - we are making progress 😄 We're wrapping up this feature on iOS (see https://github.com/brave/brave-ios/pull/1339) and are looking to merge soon (iOS product version 1.19?). We can then look at doing this on Android after taking care of some other priority work. I believe @jumde would be able to look at this in the next few months. Thanks for your patience! 😄
Perfect! Didn't think to check the iOS page. Thank you for the info!
As mentioned in the security review, we decided against having our own implementation and went with Apple's built-in one.
For Android, we could either reuse the desktop implementation (this is what Firefox does on Android) or go with the SafetyNet API.
Any progress on this ? Brave still has no safebrowsing working on Android :/
We'll be starting work on this soon 😄 Doing some pre-work to see what is needed. We had taken a first step with https://github.com/brave/brave-browser/pull/8664 (which looks correct) but that didn't work
I verified our Android build servers are setting the safebrowsing_api_endpoint
value. Will update when I find out more.
Verified PASSED
using 1.48.134
on a Google Pixel XL
(arm64
) running Android 9
Steps:
- installed
1.48.134
- launched Brave
- opened
brave://flags
- set
Safe Browsing
toEnabled
- relaunched Brave
- tapped the 3-dots menu
- tapped
Settings
- tapped
Brave Shields & privacy
- tapped on
Safe Browsing
(defaulted toOff
) - tapped on
Standard protection
- loaded
https://testsafebrowsing.appspot.com/
- went through the
Webpage warnings
tests
Confirmed I got Safe Browsing
warnings for each condition except malware, bad assets
(will investigate)
Brave Shields & privacy |
Safe Browsing |
---|---|
![]() |
![]() |
phishing warning |
malware warning |
malware, bad subresource |
unwanted software warning |
malware, bad assets |
billing warning |
---|---|---|---|---|---|
![]() |
![]() |
![]() |
![]() |
(loaded assets; shouldn't have) | ![]() |