Safe Browsing not working on Android

228 views
Skip to first unread message

Mitchell

unread,
Jul 7, 2025, 11:15:45 AMJul 7
to Chromium-dev
I tried  https://testsafebrowsing.appspot.com/ and the examples aren't blocked even with api keys set that work on desktop. Is there anything special I need to do since it seems it works for third party browsers like brave.

Daniel Rubery

unread,
Jul 8, 2025, 1:02:34 PMJul 8
to Chromium-dev, Mitchell
By default, Android uses a different implementation of the Safe Browsing database: RemoteSafeBrowsingDatabaseManager instead of V4LocalDatabaseManager. That implementation depends on GMS so that multiple Android apps can share one set of Safe Browsing lists, and unfortunately has some Google-internal code involved. You'll need to provide your own implementation of SafeBrowsingApiHandler to replace the internal code.

I don't know much about Brave's implementation, but https://github.com/brave/brave-core/blob/master/components/safe_browsing/android/java/src/org/chromium/components/safe_browsing/BraveSafeBrowsingApiHandler.java certainly looks like a useful thing for you to look at.

Reply all
Reply to author
Forward
0 new messages