yashsingh1/xdaforums huggingface dataset:
[Magisk] rignfool:
Then you should, IMHO, link to the app in the OP and the module repo description... Because it's too easy..
[Magisk] Zackptg5:
Good point, done. I still find my automate script easier but that's the nice thing about having options, to each their own :)
[Magisk] Zackptg5:
Already updated to v3.4, the sweet app by [MENTION=3042933]megakaban[/MENTION] is now in the module! Also, using magisk busybox applets is glitchy at times so changed the paths to the actual magisk busybox binary in data
[Magisk] _optical_:
HI!

I've try to upgrade to the new V3.4 (now I'm on V3.2) but I receive this error:

Somebody can help me?

Thanks
[Magisk] guest4711:
Looks like a corrupt download. Download again (verify md5 to be sure).
[Magisk] _optical_:
Try to download many times but always the same message...

I' need to install Busybox? Because the V3.2 work great without!
[Magisk] guest4711:
Nope. Should install without.

Try to open the zip with your preferred filemanager (e.g. MiXplorer) and verify it's contents (or expand it into a subdirectory). If this failes, your download is bad. If that works, try again to install... You have magisk>=15.0 installed, haven't you?
[Magisk] _optical_:
no...it's seen installed but the command su - c hosts m doesn't work (with 3.2 work without a problem)

Now I've remove the module and try to reinstall.....but I recive the previously error on zip file.

Opened with Solid explorer and I can see the contents...

Magisk v15.3

---------- Post added at 10:47 AM ---------- Previous post was at 10:42 AM ----------

I dont' know how...but after a reboot....now V3.4 result installed!
[Magisk] Tiagomullerbr:
No update in commands after update to 3.3 and 3.4...
[Magisk] _optical_:
Is possible reinstall 3.2?

If yes where I can download it?

Thank you
[Magisk] jacklul:
I don't get it why bundling the app with the script while people can simply install it from the store.

I would suggest adding optional selection while installing to ask user if he wants the app or not (look collective dolby atmos thread, installers ask user to select version by using vol+ vol- keys).
[Magisk] _optical_:
Resolved

After install Busybox with Magisk Module, all works great!
[Magisk] Null.Dot:
Thanks for this Module! Working great!
[Magisk] Shep156:
I am getting the same problem, freshly rooted, installed busybox and Magisk working, I tried Adguard and AdAway first but deleted them to try this, after rebooting and disabling both blockers, I still get an failure to install after following all tips suggested here.

Any thoughts?
[Magisk] Didgeridoohan:
Do you have the same error while installing? How about uploading that install log?
[Magisk] Shep156:
Sure thing, and correct I have that exact same error while installing.

I had to make a new account so I don't think I'm able to upload files just yet..?

This is verbatim what the log file says though, I'm running Magisk 15.3

Copying zip to temp directory

- Installing Unified_Hosts_Adblock-v3.4.zip

*******************************

Please install Magisk v15.0+!

*******************************

Failed!

! Installation failed
[Magisk] Didgeridoohan:
Well... Actually no. You're not having the same issue as the user you quoted. If you have that error, it points to there being something wrong with your Magisk installation. Can you install other modules?
[Magisk] Shep156:
You're right, didn't read it thoroughly, I installed a busybox module successfully but others I have tried give me the same error (Please install version 15.0+).
[Magisk] Didgeridoohan:
Uhm... What address is that script trying to download from? That's not the address to Steven Black's hosts files... You sure you got the correct module?

---------- Post added at 20:56 ---------- Previous post was at 20:43 ----------

To keep the OT out of this thread I answered you in the General Support thread instead.
[Magisk] ConnerJSP:
5 star

Hello Zackptg5,

I appreciate the work you have done and am enjoying the app, it works exceptionally well for how simple it is. In fact, it's the simplicity that makes it so wonderful; it made the process across devices consistent.
​

Thank you, JSP
[Magisk] abacate123:
Hey [MENTION=3495032]Megakaban_[/MENTION] and [MENTION=6037748]Zackptg5[/MENTION], just came here to say thanks for the latest update with the new GUI companion app.

That's just great and much more user-friendly. I've been using your module since the beginning. Good job and keep it up buddy.

I'd like to make just a little request (I know it's too soon for it, but well), could you please add a black theme for the companion app when it's possible? Just a little detail that I think would be nice, and would fit better with my theme here as well xD , Thanks.
[Magisk] guest4711:
I have a little problem with the companion app: Because it does not declare it needs internet access (in manifest) I have no chance to whitelist it in my afwall+. So it cannot download anything ;-(

So it is useless for me.
[Magisk] madbat99:
Try asking the developer of the app in the playstore.
[Magisk] Megakaban_:
App works just like any terminal emulator, which doesn't require internet permission. Adding it will not help in your situation

---------- Post added at 01:53 PM ---------- Previous post was at 01:50 PM ----------

I will add it
[Magisk] guest4711:
But Terminal-Emulator for Android - https://f-droid.org/app/jackpal.androidterm - is recognized by AFWall+ (Control network traffic) - https://f-droid.org/app/dev.ukanth.ufirewall - because its manifest states it uses internet (afaik).
[Magisk] Megakaban_:
I've installed theese apps, granted terminal emulator internet access in afwall, tried to update hosts and get "connection refused" error
[Magisk] Zackptg5:
Updated to v3.5 - app updated to v1.3! Thanks to [MENTION=3495032]Megakaban_[/MENTION]
[Magisk] abacate123:
Nice one, he added the black theme, thanks :)
[Magisk] alma23:
App disappeared after update on AOSP Extended (Oreo 8.1), adblocker working fine through terminal emulator.

EDIT: the app reappeared a few days later, I can not tell why. Installed the module again after a clean flash of the same ROM and the problem hasn't come back.
[Magisk] jordirpz:
+1

Oreo(8.0) OOS beta 4
[Magisk] mapbond:
Hi

I want add a game named war robots to whitelist but unable to add it. Can anyone tell me process.

Have a look of screenshot i added whitelist but unsuccessful.
[Magisk] Ygor Cortes:
Same here!

---------- Post added at 11:10 PM ---------- Previous post was at 11:08 PM ----------

Forgot to add: OnePlus 5 running Codename Phoenix (Oreo 8.1).
[Magisk] Ainz_Ooal_Gown:
htc_ocnwhl:/ $ su

htc_ocnwhl:/ # hosts

Unified Hosts Adblocker

: applet not found

: applet not found

' unexpectedhosts[54]: syntax error: 'in

1|htc_ocnwhl:/ # su -c hosts arg1 arg2 arg3

Unified Hosts Adblocker

: applet not found

: applet not found

' unexpectedhosts[54]: syntax error: 'in

1|htc_ocnwhl:/ # hosts

Unified Hosts Adblocker

: applet not found

: applet not found

' unexpectedhosts[54]: syntax error: 'in

1|htc_ocnwhl:/ #
[Magisk] yiannis1621991:
With the latest update (3.5) the app disappeared.
[Magisk] mapbond:
Any help
[Magisk] R324D:
Update to 3.5, error while applying whitelist with regex..

$ su -c hosts fgp wr
Unified Hosts Adblocker
* Last updated: **January 23 2018**.
No updates available

Connecting to raw.githubusercontent.com (151.101.8.133:443)
hosts 100% |*******| 1570k 0:00:00 ETA

Applying Whitelist (regex)
bionic/libc/upstream-netbsd/lib/libc/regex/regerror.c:175: regerror: assertion "errbuf != NULL" failed
Aborted
$
[Magisk] kep2008:
Can you add Russian? :D
[Magisk] Null.Dot:
Thank you for this fantastic module!

I think it would be better if you add auto update feature in the app! That would be great imho.
[Magisk] bounti:
Can I use this together with adaway? Or is it either or?
[Magisk] jenslody:
Both use the devices hosts-file and do basically the same (at least if you use adaway in systemless mode).

So no, you can not use both at the same time and it does not make sense in my opinion.
[Magisk] andrepgaspar:
Is everyone having problems with v3.5 or is safe for me to update?
[Magisk] Zackptg5:
Works fine for me. If 3.4 worked for you, then 3.5 will. All it did was update the app
[Magisk] asanford:
Same issue here. Has anyone resolved this?
[Magisk] y2kbugleung:
Excuse me, may I request a feature, to import a blacklist (or whitelist) from a url?

I want to block out-going traffic to a range of IP, such as IP of a specific country.

Below is a site I can find IP range list from:

https://lite.ip2location.com/ip-address-ranges-by-country

Thank you very much.
[Magisk] sak0071:
Hi How to Please!?
[Magisk] kamarilla:
I finally solve my problem. I have found that i had a proxy set at my company APN configuration. That shouldn't be there.

Now working perfectly.

Thanks a lot!!
[Magisk] Flowah123:
Hi [MENTION=6037748]Zackptg5[/MENTION], don't know if I have to ask to you or to [MENTION=3495032]Megakaban_[/MENTION] (I think he's the right one),

can you please add a GUI to manage white and black lists from the app? Thank you.
[Magisk] jdegreef:
I assume this will disable all blocking but what should I do to remove only 1 list or 2 ?
[Magisk] guest4711:
Deselect these lists and update...
[Magisk] jdegreef:
Whoaw, that's a fast reply. :)

You mean if I run

su -c hosts mfg

and then

su -c hosts mf

that will remove "g" ?
[Magisk] guest4711:
Yep.
[Magisk] Null.Dot:
Report :

I think the app has wrong permissions
[Magisk] Zackptg5:
Ummm, that's a very unhelpful report and the app has proper permissions (standard 644)
[Magisk] Null.Dot:
The app folder has 777 permission
[Magisk] abacate123:
The folder, if you check the apk itself, it'll be 644.
[Magisk] ExMM:
Found a way to make it appear again, at least it worked for me:

First, make sure you have installed unified hosts manager from the magisk modules, then:

1) Go to your root directory into system/priv-app/Unified Host Manager folder.

2) Proceed to Install the Unified Host Manager apk normally, by clicking on the APK icon.

It will give you a warning, something like: "this app will not work if you don't have a module installed, bla, bla" (I don't remember exactly what), but keep proceeding with the installation.

After that it suppose to appear again in the drawer.
[Magisk] BIGWORM:
I have a GoogleTagManager process trying to reach http at the sound of around 200 hit/second when playing Google Play Music. XDA suggested whitelisting googletagmanager.com, but that doesn't seem to be working. Any ideas? I've tried both GoogleTagManager.com and googletag* as a wildcard. Not sure if I'm doing it right now. I ended up having to uninstall Play Music for the moment. =/
[Magisk] Zackptg5:
That error happens when the script can't find magisk busybox. The path for magisk busybox is set to /data/adb/magisk/busybox so you'll want to check that on your device and modify the alias lines at the top of the hosts script if needed. But considering that all magisk installs should use the same path, it makes me think there's something wonky with your magisk install itself

You could try

.*googletag.*

with whitelist regex
[Magisk] BIGWORM:
I'll give it a shot and report back. Thank you much.

*edit* Awesome. Seems to have worked. That format for the wildcard is definitely confusing, lol. Thanks for the help.
[Magisk] cirillo30:
hi guys, if I use this module and activate host systemless, I do not pass the safety net
[Magisk] Zackptg5:
That's unrelated to safetynet. Since hosts is systemless, it can't trigger safetynet (that's the whole point of it). Something else is breaking it on your device. This is a good place to start: https://xdaforums.com/apps/magisk/guide-magisk-troubleshooting-t3641417
[Magisk] cirillo30:
Thanks for replying, I found this in the article:

Systemless hosts

Some users have reported issues with MagiskHide if systemless hosts is enabled in Magisk Manager settings. Try disabling it and rebooting to see if it fixes your issue
[Magisk] Dazed No More:
I absolutely love this module and it has worked like a charm on many different ROMS/betas until last night. Wiped everything and did a clean install of Oreo and now I'm faced with the /data/adb/magisk/BusyBox not found error in terminal emulator, and the GUI app just hangs at updating hosts. I've uninstalled and reinstalled both BusyBox and unified hosts in different orders to no avail...any ideas?

Edit: now this morning the BusyBox error still exists but the GUI finally installed/updated and the ad blocker is physically working....weird.
[Magisk] Citizen_Snips:
Working great here on my Nexus 6P.
[Magisk] rignfool:
It's not this modules fault... Or if it is... It's really not...

This module injects 2 binaries into /system/bin/

Nothing happens extra at boot... So
[Magisk] Psychav:
I'm getting the same on my Xperia Z2. Latest stock MM.

Stuck at boot logo.

Any ideas for debugging appreciated.
[Magisk] Didgeridoohan:
From just installing this module? Or after you've run the commands in terminal? Did you have a fully functioning Magisk installation before?

So many questions, so few details...
[Magisk] Kapil Tapsi:
Flashed module with twrp. Stuck at bootlogo
[Magisk] Zackptg5:
This module doesn't do much of anything that would affect boot. If you're not booting, then the issue lies with magisk. Can you boot up with magisk v12 installed?
[Magisk] rignfool:
Try this...

After flashing, boot the device...

When it hangs... Use your devices 'get me to bootloader' key combo, choose restart system

See if it boots then...

I had that issue for about 2 seconds... Not sure if it's this module that I had flashed... But I went into the bootloader and right back out and it booted
[Magisk] android_smater:
Hii dev

This is white list which help to work facebook and Instagram. Because after selecting social in ad block list fb not working

Accept one link

127.0.0.1 sdk.adincube.com this is blacklist
[Magisk] justjr:
You expect to social to work when you block social? I'm confused.
[Magisk] Psychav:
I had a working stock MM rom with Magisk v12 and the option for systemless hosts enabled in Magisk Manager's settings. Installed the zip within Magisk Manager (not TWRP as others have mentioned) and rebooted. I couldn't run 'hosts' prior to rebooting because it wasn't injected into the system yet.

Upon rebooting I'm stuck at the boot logo. I used aromafm to delete magisk.img, TWRP to reinstall magisk v12 and return to a running phone.
[Magisk] rignfool:
See my post at the top of the last page...

Try to go to bootloader when hanging at the splash screen and then restart system... Worked for me...

Also... If you really like this module... You can set up Tasker to retrieve the file you want using HTTPGet... And then just move it with Run Shell... Same effect...
[Magisk] Zackptg5:
Can I add this troubleshooting steps to the OP?
[Magisk] LilSasa:
Hi. I have installed this module and it causes an issue that Wi-Fi passwords are not remembered.

Does it alter secure storage setting in build.prop in any way? :(
[Magisk] Didgeridoohan:
This module adds two files to /system/bin, wget and a script to download the hosts file of your choice. That's it...
[Magisk] rignfool:
It's your thread...

I don't know if it really works... It just worked for me...

And when I think about it... It really makes no sense why it worked... But it did
[Magisk] haz.my:
Installed through magisk manager. Somehow after rebolt i cant load the manager & other root required apps. Please help me

..
[Magisk] coolguy_16:
I'm facing these problems on this module-

1. Typing the option "mfg" doesn't work at all. It throws an error saying don't insert spaces between letters. Infact any letter combination with 'm' leads to that error.

2. How is the whitelist file supposed to be created?

I tried first creating a whitelist file with www.apkmirror.com as content. The module was able to read it but this is the error I'm getting-

osprey_ud2:/ $ su

osprey_ud2:/ # hosts

Unified Hosts Adblocker

* Last updated: **April 17 2017**.

No updates available

You can use any combination of the letters below

For example: inputting 'fps' would yield master+fakenews+porn+social

Select an option below:

--------------------------------

'm' for adware+malware

'f' for master+fakenews

'g' for master+gambling

'p' for master+porn

's' for master+social

To disable, just toggle the enable systemless hosts in magisk manager

'w' to add whitelist

'q' to quit: w

Applying Whitelist

mv: temp: Read-only file system

grep: temp: No such file or directory

rm: temp: No such file or directory
[Magisk] Zackptg5:
1. That's to be expected. If you read the fine print, the m option (master) is included already in each other. So you'll want to type "fg"

2. Something in the recent updates I made must have broken that. I'll try to fix it and push an update. Thanks for letting me know

Edit: found the issue with whitelist, will push out an update soon
[Magisk] Zackptg5:
Version 1.9 released, see OP for changes. Bugfix release
[Magisk] htc-3333:
Have the same problem with v1.9 on MM, root's disappeared, system runs very buggy, popup error massages every minute. Reinstallation of SU didn't help.

HOW to uninstall your module to revert back?
[Magisk] Didgeridoohan:
Yup... That's correct. There have been these kinds of reports earlier.

Since it's outside the topic for this thread, go to the general support thread and post a magisk_debug.log from when you've had systemless hosts enabled and done a failed SafetyNet check. You'll first have to install the beta version of v15.3 though. The only difference is the verbose logging and you'll find the log in /data/adb.
[Magisk] BIGWORM:
I stand corrected, looks like the regex didn't work.
[Magisk] DooDah0:
I have the same issue with Redmi Note 4 and LineageOS 15.0. I've tried reinstalling everything but still can't get it to work. "error" message when trying to update.
[Magisk] Zackptg5:
There may be more sites that need removed then. You can always open the hosts file before and after to see if the googletag entries are still there
[Magisk] Zackptg5:
Updated uha to v3.6! See OP for changelog. Hopefully this fixes the weird issues people were having
[Magisk] BIGWORM:
So would I be wanting to white or black list it?
[Magisk] Zackptg5:
Since you want to allow the site, you want to whitelist it. What I'm saying is that you can open the hosts file, search for a googletag entry to verify it's there. Then apply whitelist, check hosts again to see if the entry is now gone which means that the whitelist worked. If whitelist worked but it's still being blocked, then there's more websites involved that will need whitelisted
[Magisk] BIGWORM:
K yeah, thought so. Is there any way of checking outside of that catlog?
[Magisk] Zackptg5:
Not that I'm aware of but I'm no expert in that realm of things. Just out of curiosity, why do you want to unblock it? I though it was another analytics tool
[Magisk] BIGWORM:
Well was mainly going off of what xda portal article suggested, because it's taking a beating to my battery.
[Magisk] stanlin salu:
When I try to install it, shows error.. even when tried through terminal?

Syntax error? :rolleyes:
[Magisk] guest4711:
Hard to help without neccessary informations:

Please tell us the text of the errormsg. Or post a screenshot. And how about install log from magisk manager?

Did you try to install it as magisk module trough Magisk Manager? Which version of magisk do you use?
[Magisk] stanlin salu:
Figured it out... Thanks ;)
[Magisk] tvcat-xda:
I'm using the latest version but i got the following error

"wget: can't open '/sbin/.core/img/.core/hosts': Read-only file system"

how do i fix this? thanks.
[Magisk] guest4711:
It's sound like a problem with some ROMs mounting magisk.img, see the magisk thread, e.g. https://xdaforums.com/apps/magisk/beta-magisk-v13-0-0980cb6-t3618589/post75438611

And have a look into your magisk logs...

To analyze your problem one would need a lot more of information, e.g. magisk version, ROM version, device modell, logs...
[Magisk] Ayy Lmaoq:
I install it through magisk 15.3 but all it does is boot into twrp recovery. I'm clueless about this stuff so I apologize if I sound dumb. Did I miss a step? I did activiste the systemless host thing in magisk
[Magisk] Zackptg5:
That sounds like a magisk problem. Uninstall and reinstall magisk, then flash this module
[Magisk] tvcat-xda:
[MENTION=8010004]guest4711[/MENTION]

Magisk - 15.3

UHA - 3.6

Huawei Mate 8 - B594

This is the Magisk log, i clear log then reboot. https://pastebin.com/tu0kiYA5
[Magisk] Slok 00:
do u have any idea why this happens? magisk 15.3 on htc u11+
[Magisk] nineninety:
Hi, i still see ads in my phone :"

I can't use Adaway in my existing rom :'(

Miui9 eu dev version
[Magisk] guest4711:
Thanks. I don't see any problems there. So please paste the output of a terminal session where you enter

su -c mount | grep .core/img
[Magisk] piku2008:
one of the best magisk adblocker module I have come by .... just run smooth like silk ....

using Samsung Note 4 Lineage OS Unofficial
[Magisk] tvcat-xda:
/dev/block/loop0 on /sbin/.core/img type ext4 (rw,seclabel,relatime,data=ordered)
[Magisk] guest4711:
So it should be read-write, what is ok. Did you prefix your hosts command by "su -c", e.g. " su -c hosts f"?
[Magisk] tvcat-xda:
yes, i did

HWNXT:/ $ su -c hosts fg

Unified Hosts Adblocker
* Last updated: **February 02 2018**.
No updates available

Connecting to raw.githubusercontent.com (151.101.76.133:443)
wget: can't open '/sbin/.core/img/.core/hosts': Read-only file system
wget: write error: Broken pipe
HWNXT:/ $
[Magisk] BishnoiAkshay29:
After flashing 3.6 app is no longer there ? What to do
[Magisk] xpdragon:
The app is in /vendor/app/Unified Hosts Manager. I installed it from there.
[Magisk] jenslody:
Can you check if the loop-mount is still read-write after this ?

There is a bug (or feature) on some devices, where the os (probably the kernel) changes the loop-mounts to readonly on first write access.
[Magisk] Cibet22:
How to delete the host file?

I already uncheck on Magisk module. But the problem still persist. I cant access Twitter, Instagram, Facebook. Thanks

-----

Solved
[Magisk] guest4711:
Don't use the "s" option if you want to access "social networks".

To restore the default hostfile simply disable "systemless hosts" in MagiskManager and reboot.
[Magisk] tvcat-xda:
hmm...still same RW

HWNXT:/ $ su -c mount | grep .core/img
/dev/block/loop0 on /sbin/.core/img type ext4 (rw,seclabel,relatime,data=ordered)
HWNXT:/ $ su -c hosts fg

Unified Hosts Adblocker
* Last updated: **February 02 2018**.
No updates available

Connecting to raw.githubusercontent.com (151.101.76.133:443)
wget: can't open '/sbin/.core/img/.core/hosts': Read-only file system
wget: write error: Broken pipe
HWNXT:/ $ su -c mount | grep .core/img
/dev/block/loop0 on /sbin/.core/img type ext4 (rw,seclabel,relatime,data=ordered)
HWNXT:/ $

AdAway working fine.
[Magisk] Oxanp:
Hi guys,

Since last 2 versions i can't get update hots file. Now the app show error with busybox:

/system/bin/hosts[16]: /sbin/.core/busybox/wget: not found

/system/bin/hosts[17]: /sbin/.core/busybox/grep: not found

Ty!
[Magisk] guest4711:
You need magisk >= 15.0 for this module to work. If you use an older magisk version and do not like to update it you need an older version of this module...
[Magisk] stanlin salu:
You can try installing Adaway and add steven blacks host files.. it will work..
[Magisk] Oxanp:
I have installed 15.3 :rolleyes:
[Magisk] guest4711:
Then there is a problem with your magisk installation. Never versions of Magisk (afaik since 15.0) install its own busybox. And there should be links for wget, grep, etc.

u0_a183@:/ # su -c ls -l /sbin/.core/busybox
lrwxrwxrwx root root 2018-02-06 20:03 [ -> /sbin/.core/mirror/bin/busybox
lrwxrwxrwx root root 2018-02-06 20:03 [[ -> /sbin/.core/mirror/bin/busybox
...
lrwxrwxrwx root root 2018-02-06 20:03 grep -> /sbin/.core/mirror/bin/busybox
...
...
lrwxrwxrwx root root 2018-02-06 20:03 wget-> /sbin/.core/mirror/bin/busybox
u0_a183@:/ #