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

An ad blocker that uses the hosts file. The hosts file contains a list of mappings between hostnames and IP addresses. When an app requests an ad, that request is directed to which does nothing. There are options to run a web server to respond to blocked hostnames and to direct requests to the IP address of your choosing. You can download hosts files from the app but it is possible to use your own and to add certain sites to the white- and black-lists.

Requires root as the hosts files is located in /system which is normally read-only.

From version AdAway 5.6.0:
All versions
June 19, 2021
March 8, 2021
February 14, 2021
January 27, 2021
July 29, 2020
June 22, 2020
January 20, 2020
December 26, 2019
November 10, 2019
October 9, 2019