MCPcopy Index your code
hub / github.com/adblockplus/adblockplusandroid

github.com/adblockplus/adblockplusandroid @1.3

Chat with this repo
repository ↗ · DeepWiki ↗ · release 1.3 ↗ · + Follow
1,049 symbols 2,547 edges 103 files 355 documented · 34%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Adblock Plus for Android

An Android app that runs a proxy to block ads.

Buildling with Ant

Requirements

Building

In the project directory, create the file local.properties and set sdk.dir and ndk.dir to where you installed it, e.g.:

sdk.dir = /some/where/sdk
ndk.dir = /some/where/ndk

Then run:

ant debug

Running

Connect an Android device or start the Android Emulator, then run:

ant debug install

Finally, you can run Adblock Plus from the launcher.

Building with Eclipse

Requirements

Building

  1. Ensure the NDKROOT environment variable points to your NDK directory.
  2. Select Import in the File menu, then Existing Android Projects Into Workspace.
  3. Select the project directory (adblockplusandroid) as Root Directory.
  4. Select the projects Adblock Plus, library and android-switch-backport.
  5. Revert any local changes to .classpath in adblockplusandroid and adblockplusandroid/submodules/android-switch-backport.

Running

  1. Connect an Android device or start the Android Emulator.
  2. In Eclipse, select the Adblock Plus project, then run it as an Android Application.

Extension points exported contracts — how you extend this code

Handler (Interface)
The interface for writing HTTP handlers. Provides basic functionality to accept HTTP requests and dispatch to methods t [6 …
src/sunlabs/brazil/server/Handler.java
ProxyConfigurator (Interface)
Interface for different proxy registration types. Constructor must always succeed, do any work that may fail in {@link P [8 …
src/org/adblockplus/android/configurators/ProxyConfigurator.java
SocketFactory (Interface)
This interface is used as a heap to control the allocation of sockets. An instance of this interface can be passed t [2 …
src/sunlabs/brazil/util/SocketFactory.java
Disposable (Interface)
(no doc) [30 implementers]
src/org/adblockplus/libadblockplus/Disposable.java
HttpSocketPool (Interface)
This interface represents a cache of idle sockets. Once a request has been handled, the now-idle socket can be remember [2 …
src/sunlabs/brazil/util/http/HttpSocketPool.java
OnConnectHandler (Interface)
(no doc) [1 implementers]
src/org/adblockplus/android/ServiceBinder.java
Filter (Interface)
This interface is used by the Regexp class to generate the replacement string for each pattern match found [2 implementers]
src/sunlabs/brazil/util/regexp/Regexp.java

Core symbols most depended-on inside this repo

length
called by 166
src/org/apache/commons/lang/StringUtils.java
append
called by 148
src/sunlabs/brazil/util/StringMap.java
substring
called by 74
src/org/apache/commons/lang/StringUtils.java
write
called by 62
src/org/adblockplus/ChunkedOutputStream.java
get
called by 48
src/sunlabs/brazil/util/http/HttpSocketPool.java
isEmpty
called by 48
src/org/apache/commons/lang/StringUtils.java
equals
called by 36
src/org/adblockplus/libadblockplus/Filter.java
size
called by 27
src/sunlabs/brazil/util/StringMap.java

Shape

Method 852
Class 125
Function 58
Enum 7
Interface 7

Languages

Java91%
C++9%

Modules by API surface

src/org/apache/commons/lang/StringUtils.java94 symbols
src/sunlabs/brazil/util/http/HttpRequest.java55 symbols
src/sunlabs/brazil/properties/PropertiesList.java43 symbols
src/sunlabs/brazil/util/regexp/Regexp.java38 symbols
src/org/adblockplus/android/ProxyService.java29 symbols
src/org/adblockplus/android/AdblockPlus.java27 symbols
src/org/adblockplus/libadblockplus/FilterEngine.java26 symbols
src/sunlabs/brazil/server/Request.java25 symbols
src/org/adblockplus/android/Preferences.java25 symbols
src/org/adblockplus/libadblockplus/JsValue.java22 symbols
src/org/adblockplus/android/configurators/ManualProxyConfigurator.java20 symbols
src/org/adblockplus/libadblockplus/JsEngine.java19 symbols

For agents

$ claude mcp add adblockplusandroid \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact