Coder Social home page Coder Social logo

adaway / adaway Goto Github PK

View Code? Open in Web Editor NEW
6.5K 225.0 550.0 39.76 MB

AdAway is a free and open source ad blocker for Android.

Home Page: https://adaway.org

License: GNU General Public License v3.0

Makefile 0.74% C 76.28% HTML 9.88% Shell 0.44% Assembly 0.23% Awk 0.06% Java 7.84% Yacc 0.30% Lex 0.16% Python 0.14% C++ 0.77% Roff 3.16%
android ad-blocker hosts vpn blocker

adaway's Introduction

AdAway logo AdAway

Build Status Sonarcloud Status GitHub Downloads GitHub Sponsors License: GPL v3

AdAway is an open source ad blocker for Android using the hosts file and local vpn.

Home screen Preferences screen Root based ad blocker screen Backup and restore screen Help screen

For more information visit https://adaway.org

Installing

There are two kinds of release:

  • The preview builds: on the bleeding edge of development - for testers or adventurous
  • The stable builds: ready for every day usage - for end users

Preview builds

Requirements: Android 8 Oreo or above

For users with bugs, there may be preview builds available from the XDA development thread and AdAway official website. It is recommended to try those builds to see if your issue is resolved before creating an issue. The preview builds may contain bug fixes or new features for new android versions.

Get it on official AdAway website Get it on XDA forum

Stable builds

Requirements:

  • Android Android 8 Oreo or above

After preview builds have been tested by the more technical or responsive community within the forums, we will then post the stable build to F-Droid.

Get it on official AdAway website Get it on F-Droid

For devices older than Android 8 Oreo, use the version 4 of AdAway.

Get Host File Sources

See the Wiki, in particular the page HostsSources for an assorted list of sources you can use in AdAway. Add the ones you like to the AdAway "Hosts sources" section.

Getting Help

You can post Issues here or obtain more detailed community support via the XDA developer thread.

Contributing

You want to be involved in the project? Welcome onboard!
Check the contributing guide to learn how to report bugs, suggest features and make you first code contribution 👍

If you are looking for translating the application in your language, the translating guide is for you.

Project Status

AdAway is actively developed by:

We do not forget the past maintainers:

And we thank a lot to the original author:

Permissions

AdAway requires the following permissions:

  • INTERNET to download hosts files and application updates. It can send bug reports and telemetry if the user wants to (opt-in only)
  • ACCESS_NETWORK_STATE to restart VPN on network connection change
  • RECEIVE_BOOT_COMPLETED to start the VPN on boot
  • FOREGROUND_SERVICE to run the VPN service in foreground
  • POST_NOTIFICATIONS to post notifications about hosts source update, application update and VPN controls. All notifications can be enabled or disabled independently.
  • REQUEST_INSTALL_PACKAGES to update the application using the builtin updater
  • QUERY_ALL_PACKAGES to let the user pick the applications to exclude from VPN

Licenses

AdAway is licensed under the GPLv3+.
The file LICENSE includes the full license text. For more details, check the license notes.

adaway's People

Contributors

0-kaladin avatar alexanderzandt avatar brijrajparmar27 avatar d4rken avatar damoasda avatar davisnt avatar daywalk3r666 avatar edent avatar hainish avatar icepuente avatar ja-som avatar joshndroid avatar kitt3000 avatar kreach3r avatar lozone avatar matttter avatar maxpelly avatar msfjarvis avatar muzena avatar pec0ra avatar perfectslayer avatar pylersm avatar sanjay900 avatar strel avatar tacothedank avatar transifex-integration[bot] avatar tstaylor7 avatar vankog avatar vladi69 avatar web3gurung avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

adaway's Issues

Sugestion to supplement host file

Original author: [email protected] (August 06, 2011 18:37:47)

This lines seem to remove ads from Angry Birds. None of supported host sources includes them:

127.0.0.1 rovio.appads.com
127.0.0.1 rovio0.appads.com
127.0.0.1 rovio1.appads.com
127.0.0.1 rovio2.appads.com
127.0.0.1 rovio3.appads.com
127.0.0.1 rovio4.appads.com
127.0.0.1 rovio5.appads.com
127.0.0.1 rovio6.appads.com
127.0.0.1 rovio7.appads.com
127.0.0.1 rovio8.appads.com
127.0.0.1 rovio9.appads.com
127.0.0.1 rovio10.appads.com
127.0.0.1 rovio11.appads.com
127.0.0.1 rovio12.appads.com
127.0.0.1 rovio13.appads.com
127.0.0.1 rovio14.appads.com
127.0.0.1 rovio15.appads.com
127.0.0.1 rovio16.appads.com
127.0.0.1 rovio17.appads.com
127.0.0.1 rovio18.appads.com
127.0.0.1 rovio19.appads.com
127.0.0.1 rovio20.appads.com
127.0.0.1 rovio21.appads.com
127.0.0.1 rovio22.appads.com
127.0.0.1 rovio23.appads.com
127.0.0.1 rovio24.appads.com
127.0.0.1 rovio25.appads.com
127.0.0.1 rovio26.appads.com
127.0.0.1 rovio27.appads.com
127.0.0.1 rovio28.appads.com
127.0.0.1 rovio29.appads.com
127.0.0.1 rovio30.appads.com
127.0.0.1 rovio31.appads.com
127.0.0.1 rovio32.appads.com
127.0.0.1 rovio33.appads.com
127.0.0.1 rovio34.appads.com
127.0.0.1 rovio35.appads.com
127.0.0.1 rovio36.appads.com
127.0.0.1 rovio37.appads.com
127.0.0.1 rovio38.appads.com
127.0.0.1 rovio39.appads.com
127.0.0.1 rovio40.appads.com
127.0.0.1 rovio41.appads.com
127.0.0.1 rovio42.appads.com
127.0.0.1 rovio43.appads.com
127.0.0.1 rovio44.appads.com
127.0.0.1 rovio45.appads.com
127.0.0.1 rovio46.appads.com
127.0.0.1 rovio47.appads.com
127.0.0.1 rovio48.appads.com
127.0.0.1 rovio49.appads.com
127.0.0.1 rovio50.appads.com
127.0.0.1 rovio51.appads.com
127.0.0.1 rovio52.appads.com
127.0.0.1 rovio53.appads.com
127.0.0.1 rovio54.appads.com
127.0.0.1 rovio55.appads.com
127.0.0.1 rovio56.appads.com
127.0.0.1 rovio57.appads.com
127.0.0.1 rovio58.appads.com
127.0.0.1 rovio59.appads.com
127.0.0.1 rovio60.appads.com
127.0.0.1 rovio61.appads.com
127.0.0.1 rovio62.appads.com
127.0.0.1 rovio63.appads.com
127.0.0.1 rovio64.appads.com
127.0.0.1 rovio65.appads.com
127.0.0.1 rovio66.appads.com
127.0.0.1 rovio67.appads.com
127.0.0.1 rovio68.appads.com
127.0.0.1 rovio69.appads.com
127.0.0.1 rovio70.appads.com
127.0.0.1 rovio71.appads.com
127.0.0.1 rovio72.appads.com
127.0.0.1 rovio73.appads.com
127.0.0.1 rovio74.appads.com
127.0.0.1 rovio75.appads.com
127.0.0.1 rovio76.appads.com
127.0.0.1 rovio77.appads.com
127.0.0.1 rovio78.appads.com
127.0.0.1 rovio79.appads.com
127.0.0.1 rovio80.appads.com
127.0.0.1 rovio81.appads.com
127.0.0.1 rovio82.appads.com
127.0.0.1 rovio83.appads.com
127.0.0.1 rovio84.appads.com
127.0.0.1 rovio85.appads.com
127.0.0.1 rovio86.appads.com
127.0.0.1 rovio87.appads.com
127.0.0.1 rovio88.appads.com
127.0.0.1 rovio89.appads.com
127.0.0.1 rovio90.appads.com
127.0.0.1 rovio91.appads.com
127.0.0.1 rovio92.appads.com
127.0.0.1 rovio93.appads.com
127.0.0.1 rovio94.appads.com
127.0.0.1 rovio95.appads.com
127.0.0.1 rovio96.appads.com
127.0.0.1 rovio97.appads.com
127.0.0.1 rovio98.appads.com
127.0.0.1 rovio99.appads.com
127.0.0.1 rovio100.appads.com
127.0.0.1 rovio101.appads.com
127.0.0.1 rovio102.appads.com
127.0.0.1 rovio103.appads.com
127.0.0.1 rovio104.appads.com
127.0.0.1 rovio105.appads.com
127.0.0.1 rovio106.appads.com
127.0.0.1 rovio107.appads.com
127.0.0.1 rovio108.appads.com
127.0.0.1 rovio109.appads.com
127.0.0.1 caggsm-img.appads.com
127.0.0.1 rovio-news-app.angrybirdsgame.com
127.0.0.1 an.appads.com
127.0.0.1 rovio-news-assets.angrybirdsgame.com

Maybe them is a simple way to add them to host the final host file.

Original issue: http://code.google.com/p/ad-away/issues/detail?id=25

Applying failed

Original author: [email protected] (August 19, 2011 10:04:27)

What steps will reproduce the problem?

  1. I installed AdAway
  2. I tried to enable AdAway
  3. I Became following Error Message on my HTC Desire with GingerVillain 2.8 - "Applying the hosts file to your system failed! You can try to set another target hosts file in preference"

What is the expected output? What do you see instead?

What version of the product are you using? On what operating system?
Market Version - HTC Desire with GingerVillain 2.8

Please provide any additional information below.

Original issue: http://code.google.com/p/ad-away/issues/detail?id=49

wrong error msg writing file to /data/data/

Original author: [email protected] (August 08, 2011 16:16:55)

set storage location to /data/data/
let AdAway update the host file
-> generic error message about filesystem possibly being read-only

it seems AdAway checks whether /system/etc/hosts was created properly but as the file was created in /data/data/hosts and no symlink was created (yet) that check fails

suggestion:

  1. check the file that was created (so either /system/etc/ or /data/data/)
    -> if file couldn't be read: error msg about read-only FS
  2. if /data/data: check /system/etc/
    -> if fail: error: "file written but no symlink existing"

Original issue: http://code.google.com/p/ad-away/issues/detail?id=37

it's frozen: rebooted/removed battery not in task mgr not in Titanium Pro please help.

Original author: [email protected] (August 16, 2011 01:03:36)

What steps will reproduce the problem? Adaway is stuck at 29%, even though it says it's complete in my market account. it's not in task manager it's not in my list of applications even in Titanium Pro (I am rooted). Please I want this unstuck now -- this is a really bad defect, am I going to have to wipe my phone? I turned it off and on twice. I also removed the battery. It's now been stuck for half an hour and I can't get rid of it!
can i delete it via usb or something? I don't want to brick my phone, please help, thank you.
Amy
please write directly to me at [email protected].
fyi, I have a Samsung Galaxy Prevail. I'm on Froyo 2.2

Original issue: http://code.google.com/p/ad-away/issues/detail?id=45

sqlite bug in android 2.1

Original author: [email protected] (August 07, 2011 10:27:05)

I/NotificationService(
1207): enqueueToast pkg=org.jtb.alogcat
callback=android.app.ITransientNotification$Stub$Proxy@45ae9178 duration=1

D/alogcat (10728): stopping ...
D/alogcat (10728): starting ...
D/alogcat (10728): stopped
D/dalvikvm( 1207): GC freed 11516 objects / 529424 bytes in 171ms
W/InputManagerService( 1207): Window already focused, ignoring focus gain
of: com.android.internal.view.IInputMethodClient$Stub$Proxy@45d1ce20

D/alogcat (10728): stopping ...
D/alogcat (10728): stopped
I/ActivityManager( 1207): Starting activity: Intent {
act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER]
flg=0x10000000 cmp=org.adaway/.AdAway }

I/ActivityManager( 1207): Start proc org.adaway for activity
org.adaway/.AdAway: pid=10746 uid=10059 gids={3003}

I/dalvikvm(10746): Debugger thread not active, ignoring DDM send
(t=0x41504e4d l=38)

I/ActivityManager( 1207): Process org.jtb.alogcat (pid 10728) has died.
I/dalvikvm(10746): Debugger thread not active, ignoring DDM send
(t=0x41504e4d l=24)

I/RootTools v0.9.1(10746): Checking for Root binary
I/RootTools v0.9.1(10746): Checking for Root access
I/global (10746): Default buffer size used in BufferedReader constructor.
It would be better to be explicit if an 8k-char buffer is required.

D/su (10753): 10059 org.adaway executing 0 /system/bin/sh using shell
/system/bin/sh : sh

I/ActivityManager( 1207): Start proc com.noshufou.android.su for broadcast
com.noshufou.android.su/.SuNotificationReceiver: pid=10756 uid=10096
gids={1015, 3003}

I/RootTools v0.9.1(10746): Access Given
I/RootTools v0.9.1(10746): Checking for BusyBox
I/global (10746): Default buffer size used in BufferedReader constructor.
It would be better to be explicit if an 8k-char buffer is required.

I/dalvikvm(10756): Debugger thread not active, ignoring DDM send
(t=0x41504e4d l=38)

I/dalvikvm(10756): Debugger thread not active, ignoring DDM send
(t=0x41504e4d l=50)

D/su (10761): 10059 org.adaway executing 0 /system/bin/sh using shell
/system/bin/sh : sh

I/global (10746): Default buffer size used in BufferedReader constructor.
It would be better to be explicit if an 8k-char buffer is required.

D/AndroidRuntime(10746): Shutting down VM
W/dalvikvm(10746): threadid=3: thread exiting with uncaught exception
(group=0x40026160)

E/AndroidRuntime(10746): Uncaught handler: thread main exiting due to
uncaught exception

_E/AndroidRuntime(10746): java.lang.RuntimeException: Unable to start
activity ComponentInfo{org.adaway/org.adaway.AdAway}:
android.database.sqlite.SQLiteException: near "1": syntax error: , while
compiling: SELECT id, url, enabled FROM hosts_sources WHERE enabled is 1
ORDER BY url asc

E/AndroidRuntime(10746): at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2503)

E/AndroidRuntime(10746): at
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2519)

E/AndroidRuntime(10746): at
android.app.ActivityThread.access$2200(ActivityThread.java:123)

E/AndroidRuntime(10746): at
android.app.ActivityThread$H.handleMessage(ActivityThread.java:1870)

E/AndroidRuntime(10746): at
android.os.Handler.dispatchMessage(Handler.java:99)

E/AndroidRuntime(10746): at android.os.Looper.loop(Looper.java:123)
E/AndroidRuntime(10746): at
android.app.ActivityThread.main(ActivityThread.java:4370)

E/AndroidRuntime(10746): at java.lang.reflect.Method.invokeNative(Native
Method)

E/AndroidRuntime(10746): at
java.lang.reflect.Method.invoke(Method.java:521)

E/AndroidRuntime(10746): at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
*
*E/AndroidRuntime(10746): at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)

E/AndroidRuntime(10746): at dalvik.system.NativeStart.main(Native Method)
_E/AndroidRuntime(10746): Caused by:
android.database.sqlite.SQLiteException: near "1": syntax error: , while
compiling: SELECT id, url, enabled FROM hosts_sources WHERE enabled is 1
ORDER BY url asc

E/AndroidRuntime(10746): at
android.database.sqlite.SQLiteProgram.native_compile(Native Method)

E/AndroidRuntime(10746): at
android.database.sqlite.SQLiteProgram.compile(SQLiteProgram.java:110)

E/AndroidRuntime(10746): at
android.database.sqlite.SQLiteProgram.<init>(SQLiteProgram.java:59)

E/AndroidRuntime(10746): at
android.database.sqlite.SQLiteQuery.<init>(SQLiteQuery.java:49)

E/AndroidRuntime(10746): at
android.database.sqlite.SQLiteDirectCursorDriver.query(SQLiteDirectCursorDriver.java:49)
*
*E/AndroidRuntime(10746): at
android.database.sqlite.SQLiteDatabase.rawQueryWithFactory(SQLiteDatabase.java:1221)
*
*E/AndroidRuntime(10746): at
android.database.sqlite.SQLiteDatabase.queryWithFactory(SQLiteDatabase.java:1108)
*
*E/AndroidRuntime(10746): at
android.database.sqlite.SQLiteDatabase.query(SQLiteDatabase.java:1066)

E/AndroidRuntime(10746): at
android.database.sqlite.SQLiteDatabase.query(SQLiteDatabase.java:1143)

E/AndroidRuntime(10746): at
org.adaway.utils.DatabaseHelper.getAllEnabledHostsSources(DatabaseHelper.java:145)
*
*E/AndroidRuntime(10746): at
org.adaway.AdAway.checkOnCreate(AdAway.java:210)

E/AndroidRuntime(10746): at org.adaway.AdAway.onCreate(AdAway.java:196)
E/AndroidRuntime(10746): at
android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)

E/AndroidRuntime(10746): at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2466)

E/AndroidRuntime(10746): ... 11 more
E/SemcCheckin(10746): Get crash dump level : java.io.FileNotFoundException:
/data/semc-checkin/crashdump

W/ActivityManager( 1207): Unable to start service Intent {
act=com.sonyericsson.android.jcrashcatcher.action.BUGREPORT_AUTO
cmp=com.sonyericsson.android.jcrashcatcher/.JCrashCatcherService (has
extras) }: not found

I/Process ( 1207): Sending signal. PID: 10746 SIG: 3
I/dalvikvm(10746): threadid=7: reacting to signal 3
I/dalvikvm(10746): Wrote stack trace to '/data/anr/traces.txt'
D/dalvikvm( 9785): GC freed 3075 objects / 491568 bytes in 94ms
E/SemcCheckin( 9785): Get Crash Level : java.io.FileNotFoundException:
/data/semc-checkin/crashdump

W/Process ( 1207): Unable to open /proc/10728/status
I/Process (10746): Sending signal. PID: 10746 SIG: 9
I/ActivityManager( 1207): Process org.adaway (pid 10746) has died.
I/UsageStats( 1207): Unexpected resume of com.google.code.appsorganizer
while already resumed in org.adaway

D/dalvikvm(10542): GC freed 2190 objects / 412128 bytes in 112ms
W/InputManagerService( 1207): Window already focused, ignoring focus gain
of: com.android.internal.view.IInputMethodClient$Stub$Proxy@45a978d0

I/ActivityManager( 1207): Starting activity: Intent {
act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER]
flg=0x10000000 cmp=org.jtb.alogcat/.LogActivity }

I/ActivityManager( 1207): Start proc org.jtb.alogcat for activity
org.jtb.alogcat/.LogActivity: pid=10769 uid=10115 gids={1007, 1015}

I/dalvikvm(10769): Debugger thread not active, ignoring DDM send
(t=0x41504e4d l=38)

I/dalvikvm(10769): Debugger thread not active, ignoring DDM send
(t=0x41504e4d l=34)

I/NotificationService( 1207): enqueueToast pkg=org.jtb.alogcat
callback=android.app.ITransientNotification$Stub$Proxy@459a4060 duration=1

D/alogcat (10769): starting ...
D/alogcat (10769): canceling periodic saves
I/ActivityManager( 1207): Displayed activity org.jtb.alogcat/.LogActivity:
407 ms (total 7416 ms)

D/dalvikvm(10769): GC freed 2340 objects / 200048 bytes in 71ms
I/ActivityManager( 1207): Process com.noshufou.android.su (pid 10756) has
died.

Original issue: http://code.google.com/p/ad-away/issues/detail?id=28

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.