AdAway 0,0,3,2,1,2,-2,1

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


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

For more information visit

Get it on F-Droid


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


AdAway is currently maintained by 0-kaladin and Dāvis Mošenkovs. The original author is Dominik Schürmann.

Build with Gradle

Build Executables

  1. Have NDK directory in your PATH (
  2. Change to “AdAway” directory with cd AdAway
  3. Execute ndk-build to compile native binaries.

Build APK

  1. Have Android SDK “tools”, “platform-tools”, and “build-tools” directories in your PATH (
  2. Open the Android SDK Manager (shell command: android). Expand the Extras directory and install “Android Support Repository”
  3. Export ANDROID_HOME pointing to your Android SDK
  4. Execute ./gradlew renameExecutables (IMPORTANT unusual step!)
  5. Execute ./gradlew build


Fork AdAway and do a Pull Request. I will merge your changes back into the main project.


I am using the newest Android Studio for development. Development with Eclipse is currently not possible because I am using the new project structure.

  1. Clone the project from github
  2. From Android Studio: File -> Import Project -> Select the cloned top folder
  3. Import project from external model -> choose Gradle


Translations are hosted on Transifex, which is configured by “.tx/config”.

  1. To pull newest translations install transifex client (e.g. apt-get install transifex-client)
  2. Config Transifex client with “~/.transifexrc”
  3. Go into root folder of git repo
  4. execute tx pull (tx pull -a to get all languages)


Coding Style


  • Indentation: 4 spaces, no tabs
  • Maximum line width for code and comments: 100
  • Opening braces don’t go on their own line
  • Field names: Non-public, non-static fields start with m.
  • Acronyms are words: Treat acronyms as words in names, yielding !XmlHttpRequest, getUrl(), etc.



  • XML Maximum line width 999
  • XML: Split multiple attributes each on a new line (Eclipse: Properties -> XML -> XML Files -> Editor)
  • XML: Indent using spaces with Indention size 4 (Eclipse: Properties -> XML -> XML Files -> Editor)



Forked from the following sources and slightly modified to compile!


Please review the following commits for the changes made to the sources above in order for them to compile in this project:


AdAway is licensed under the GPLv3+.
The file LICENSE includes the full license text.


AdAway is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

AdAway is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with AdAway. If not, see



  • status_enabled.svg, status_disabled.svg, status_update.svg
    Dropbox Emblems Tango by Charles A.
    Creative Commons Attribution 3.0 Unported License

  • status_fail.svg
    Faenza Icons

  • icon.svg, banner.svg
    AdAway by Dominik Schürmann
    New version by Alin Ţoţea-Radu

  • Menu Icons
    Original Android Icons

Related Repositories



Extending and consolidating hosts files from several well-curated sources like,,,, and potentially others. You can optionally invoke extensions to block additional sites by category. SHALLOW ...



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



Block filter for Adblock Plus, uBlock Origin, uBlock, 1Blocker and AdAway ...



a small script to add domains hosting ads to the hosts file to block them ...



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

Top Contributors

dschuermann 0-kaladin DavisNT Lozone Joery edent Cadiducho Human Phoenix09 Dennis123789 rindeal Hainish d4rken strel


-   v3.1.2 zip tar
-   v3.1.1 zip tar
-   v3.1 zip tar
-   v3.0.2 zip tar
-   v3.0.1 zip tar
-   v3.0 zip tar
-   v2.9.2 zip tar
-   v2.9.1 zip tar
-   v2.9 zip tar
-   v2.8.1 zip tar
-   v2.8 zip tar
-   v2.7 zip tar
-   v2.6 zip tar
-   v2.5 zip tar
-   v2.4 zip tar
-   v2.3 zip tar
-   v2.2 zip tar
-   v2.1 zip tar
-   v2.0 zip tar