Ad Blockers Development Guide

As of 4.0, Samsung Internet for Android allows third-party apps to provide filters for Ad blocking. You can let users browse the web without unnecessary advertisements cluttering their screens.

Overview

Samsung Internet for Android uses the filter data provided by your apps to tidy up web pages shown to users.

In Samsung Internet for Android, the Ad blockers menu is located in the Add-ons (or Extensions in older versions) page and the pre-registered Ad blocking apps will be listed when the menu is selected.

Details for registering your app to Samsung Internet for Android is described in the Basic Guidelines section. Once registered, your app will be listed together with other pre-registered Ad blocking apps.

When your app is enabled, it will be downloaded from the registered app store and installed. Then Samsung Internet for Android will request your app to send the filter data and start using the received filter data when rendering web pages. Up to 5 Ad blocking apps can be enabled and used simultaneously.

Basic Guidelines

Filter Format

Samsung Internet for Android works with filters following the widely known Adblock Plus filter (adblockplus.org/filters) format packaged into android APK packages.

App Registration

To register your app to Samsung Internet for Android, the following preconditions need to be met.

Validation Process

The validation process from Samsung is designed to make sure that the interface between the add-on app and Samsung Internet for Android is working properly, and the add-on app can be properly enabled and disabled from Samsung Internet for Android. The intent of the validation process is to make sure that the app is not misleading the user.

You need to send the final APK package of your app to cb.web@samsung.com and follow the validation process before uploading your app to public app markets.

Detailed guidelines will be provided through e-mail, and the validation process takes about 1 to 2 week(s). Once validated, the package name and signature will be registered, and your app can be used by Samsung Internet for Android.

* Samsung reserves the rights to change the validation process without prior notice.

Updating Filter Data

Samsung Internet for Android will request the up-to-date filter data from your app whenever needed. Or, you can send a broadcast message with the intent action and data set following the below format.

Development Mode

Samsung Internet for Android provides a development mode for Ad blockers, so you can test your app before carrying out the validation process.

Install your app to your test device and type "internet://contentblock" in the URL bar of Samsung Internet for Android to enable development mode. If you launch the Add-ons menu in Settings with the development mode enabled, you will be able to select and test your Ad blocking app even if it is not validated.

Note :

Development mode is only intended for Ad blocking app developers. You must not guide app users to enable development mode in order to use your app.

Restrictions

Supported devices: Ad blockers feature is supported on every Android device with Samsung Internet for Android 4.0 and later. However, only the Samsung Galaxy devices can browse and download the pre-registered Ad blocking apps in Galaxy store. Non-Samsung Galaxy devices can download the pre-registered Ad blocking apps in the Google Play store only. Hence, for some non-Samsung Galaxy devices without Google Play Service, the Ad blockers feature will be disabled because it’s not possible to download the pre-registered Ad blocking apps from Galaxy store and Google Play store.