also adaway, which does the same or can be used in root mode to edit the hosts file.
I use the hosts file from there, and edit it manually via "adb root" (lineageos. root only via adb)