├── .gitignore ├── res ├── drawable │ ├── icon.png │ ├── ic_menu_star.png │ ├── ic_menu_windows.png │ └── stat_notify_proxy.png ├── drawable-hdpi │ ├── icon.png │ ├── ic_menu_star.png │ ├── ic_menu_windows.png │ └── stat_notify_proxy.png ├── layout │ ├── simple_list_item_1.xml │ ├── import_url.xml │ ├── main.xml │ └── about.xml ├── values │ ├── update.xml │ └── strings.xml ├── menu │ └── menu.xml └── values-de │ └── strings.xml ├── .classpath ├── default.properties ├── .project ├── src └── de │ └── ub0r │ └── android │ └── adBlock │ ├── ProxyStarter.java │ ├── AdBlock.java │ └── Proxy.java ├── AndroidManifest.xml ├── .settings └── org.eclipse.jdt.ui.prefs └── COPYING /.gitignore: -------------------------------------------------------------------------------- 1 | bin 2 | gen 3 | local.properties 4 | wiki 5 | -------------------------------------------------------------------------------- /res/drawable/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/felixb/adBlock/HEAD/res/drawable/icon.png -------------------------------------------------------------------------------- /res/drawable-hdpi/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/felixb/adBlock/HEAD/res/drawable-hdpi/icon.png -------------------------------------------------------------------------------- /res/drawable/ic_menu_star.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/felixb/adBlock/HEAD/res/drawable/ic_menu_star.png -------------------------------------------------------------------------------- /res/drawable-hdpi/ic_menu_star.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/felixb/adBlock/HEAD/res/drawable-hdpi/ic_menu_star.png -------------------------------------------------------------------------------- /res/drawable/ic_menu_windows.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/felixb/adBlock/HEAD/res/drawable/ic_menu_windows.png -------------------------------------------------------------------------------- /res/drawable/stat_notify_proxy.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/felixb/adBlock/HEAD/res/drawable/stat_notify_proxy.png -------------------------------------------------------------------------------- /res/drawable-hdpi/ic_menu_windows.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/felixb/adBlock/HEAD/res/drawable-hdpi/ic_menu_windows.png -------------------------------------------------------------------------------- /res/drawable-hdpi/stat_notify_proxy.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/felixb/adBlock/HEAD/res/drawable-hdpi/stat_notify_proxy.png -------------------------------------------------------------------------------- /.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /default.properties: -------------------------------------------------------------------------------- 1 | # This file is automatically generated by Android Tools. 2 | # Do not modify this file -- YOUR CHANGES WILL BE ERASED! 3 | # 4 | # This file must be checked in Version Control Systems. 5 | # 6 | # To customize properties used by the Ant build system use, 7 | # "build.properties", and override values to adapt the script to your 8 | # project structure. 9 | 10 | # Indicates whether an apk should be generated for each density. 11 | split.density=false 12 | # Project target. 13 | target=android-8 14 | apk-configurations= 15 | -------------------------------------------------------------------------------- /res/layout/simple_list_item_1.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 12 | 19 | 24 | -------------------------------------------------------------------------------- /.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | adblock 4 | 5 | 6 | 7 | 8 | 9 | com.android.ide.eclipse.adt.ResourceManagerBuilder 10 | 11 | 12 | 13 | 14 | com.android.ide.eclipse.adt.PreCompilerBuilder 15 | 16 | 17 | 18 | 19 | org.eclipse.jdt.core.javabuilder 20 | 21 | 22 | 23 | 24 | com.android.ide.eclipse.adt.ApkBuilder 25 | 26 | 27 | 28 | 29 | net.sf.eclipsecs.core.CheckstyleBuilder 30 | 31 | 32 | 33 | 34 | 35 | com.android.ide.eclipse.adt.AndroidNature 36 | org.eclipse.jdt.core.javanature 37 | net.sf.eclipsecs.core.CheckstyleNature 38 | 39 | 40 | -------------------------------------------------------------------------------- /res/values/update.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 12 | 20 | 21 | 22 | v0.5: add hi-res icons, remove google and admob from whitelist 23 | v0.4: fix for cyanogen mod 4.2.5 24 | v0.3: add changelog, add default filter, reduce mem usage, fix protocoll issue, add german translation, fix for android 2.0 25 | v0.0.2: initial market release 26 | 27 | 28 | -------------------------------------------------------------------------------- /src/de/ub0r/android/adBlock/ProxyStarter.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2010 Felix Bechstein 3 | * 4 | * This file is part of AdBlock. 5 | * 6 | * This program is free software; you can redistribute it and/or modify it under 7 | * the terms of the GNU General Public License as published by the Free Software 8 | * Foundation; either version 3 of the License, or (at your option) any later 9 | * version. 10 | * 11 | * This program is distributed in the hope that it will be useful, but WITHOUT 12 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 13 | * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more 14 | * details. 15 | * 16 | * You should have received a copy of the GNU General Public License along with 17 | * this program; If not, see . 18 | */ 19 | 20 | package de.ub0r.android.adBlock; 21 | 22 | import android.content.BroadcastReceiver; 23 | import android.content.Context; 24 | import android.content.Intent; 25 | 26 | /** 27 | * ProxyStarter listens to any Broadcast. It'l start the Proxy Service on 28 | * receive. 29 | * 30 | * @author Felix Bechstein 31 | */ 32 | public class ProxyStarter extends BroadcastReceiver { 33 | 34 | /** 35 | * {@inheritDoc} 36 | */ 37 | @Override 38 | public final void onReceive(final Context context, final Intent intent) { 39 | context.startService(new Intent(context, Proxy.class)); 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /res/menu/menu.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 11 | 19 | 20 | 22 | 25 | 27 | 29 | 31 | 32 | -------------------------------------------------------------------------------- /res/layout/import_url.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 11 | 19 | 22 | 24 | 26 |