Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

/etc/hosts not being modified #31

Open
4W4I5 opened this issue Feb 22, 2024 · 1 comment
Open

/etc/hosts not being modified #31

4W4I5 opened this issue Feb 22, 2024 · 1 comment

Comments

@4W4I5
Copy link

4W4I5 commented Feb 22, 2024

I have tried using 2.11, 2.10, 2.9, and 2.8 installed with Magisk 27 and lsposed. The hosts file is not being updated i.e. using 'cat /etc/hosts' prints the 2 default hosts entries.

QUICK_FIX (i am not responsible for any damages caused by not following precautions of being root):
Since this is a magisk module it is safe to assume that root privileges are possible.

  • Get root in termux with su
  • Download the latest module on your phone and unzip it
  • the AdBlock hosts file is 'system/etc'/hosts in the downloaded zip and rename it to something just to be safe. I used adblockhost
  • cd to the 'system/etc' directory in the extracted zip folder
  • 'su cat adblockhost >> /etc/hosts'

I am repeating myself. Be very careful as a slight typo has a chance to ruin your phone. I will not be held responsible for that. This is just a quick fix till the repo author's scripts are fixed

@4W4I5
Copy link
Author

4W4I5 commented Feb 22, 2024

i wanted to add that testing the new hosts file however gave a 70ish % score on toolz
figured someone might want to know how good it works

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant