yashsingh1/xdaforums huggingface dataset:
[LG V30 Questions & Answers] atmfrank:
I am curious what problems this release addresses. Spectre/Meltdown or performance improvements, or both? If anyone knows a place where AT&T or LG posts the release update notes, that would be great to know. One improvement I noticed is memory management. I always keep close watch over free memory, something back from the days of 1GB RAM phones. It has improved with this version.
[LG V30 Questions & Answers] ChazzMatt:
Spectre/Meltdown fixes will be in "February" dated LG security updates.

See this post:

https://xdaforums.com/showthread.php?p=75527189

Especially the bottom.

Sent from my official open market LG US998 V30+
[Samsung Galaxy Note 8 Questions and Answers] vojopd:
Why edge rss panel wont work? It suddenly stopped, saying no internet connection... I had this problem on s7 edge too... :/
[Sony Xperia XZ Questions & Answers] amjad_2020:
i had made bakcup for XZ dual-SIM F8332 when i unlock it but i have lost it now i have try EMMA but don't support F8332 error / Please refer to update session 0fe01a70-68dc-4777-8b93-d0bc2f536b98 if you need to contact Emma support.

i have downloaded the latest update android O but my device doesn't install so i install it with flashtool how can i make update install automatic
[ZTE Nubia Z17  Questions & Answers] Deeoon:
Hello,

I'm looking for a way to have the play store and Gapps on the Nubia z17 mini S

If anyone can help me it is with pleasure

Sorry for my bad english
[ZTE Nubia Z17  Questions & Answers] jelocum:
Sme problems

I can use correctly the Play Store updating/downloading services. Sometimes work or sometimes not.

Also Google keep not sync

Also my battery drains fastly

Any comment? Any ROM suggestion?

Thanks
[Android General] EsperanzaHz:
Best adaway app I have ever used! Simple and effective! Works amazingly well! Congratulations to the Dev!! And thank you for sharing this amazing app with us! :laugh:
[Android General] MishaalRahman:
Can you post some screenshots of the QS tile, and the Profile in Tasker?
[Android General] mkhcb:
Done
[Android General] BlueSky_Vincent:
Perhaps, you can make hide option for the icon.
[Android General] bagarwa:
I have a Pixel 2XL, stock Android 8.1 Feb, Magisk 15.4. I do have AdAway installed + enabled and I have systemless hosts enabled in the settings of Magisk Manager.

I imported the AdBlocker task via your xml to my Tasker. Tapped the check mark of the task configuration screen, got the "Applied" toast msg. And yet, I don't see an AdBlocker QS tile in the QS edit panel.

I went to the AdBlocker task configuration page again and tapped the run ( |> ) button at bottom left. The task ran, I got the "AdBlocker enabled" toast. I get "Disabled" in AdAway app. I tap the run button again, I get the "AdBlocker disabled" toast. AdAway still says "Disabled".

And still no AdBlocker QS tile in the QS edit panel.

I'm guessing I'm doing something wrong. Could you please let me know what?
[Android General] buffal0b1ll:
Drag the first Unset Tasker tile up to the active QS tiles section. This works independent of AdAway so don't expect the status to toggle back to enabled in AdAway when the tile activates AdBlocking. I found that I had to close and reopen chrome to test that the ad blocking was indeed turned off (probably because of caching). And then again after turning it back on. It works a treat. Now to decide if I want to give up AdAway webserver functionality and use this tile as my Adblock solution as a daily driver.
[Android General] nadeem_naddy:
Soryy i did not get the process. Could anybody pls provide Steps to implement?
[Android General] buffal0b1ll:
[MENTION=4930863]mkhcb[/MENTION] this is brilliant. I've always wanted an AdAway toggle and this is the next best thing:) Maybe even better!

I copied line 11 and inserted it as new line 22 to make the disable action collapse the quick settings panel too. I hope you'll consider adding to your version here too.

Thanks again!
[Android General] mkhcb:
Go to Tasker settings/preferences> Action> make sure #2 says AdBlocker
[Android General] mkhcb:
Do you own a copy of Tasker?

Thanks for picking that up! Away from my computer now but, I'll eventually update the main post.
[Android General] ainurrofiq:
[MENTION=4930863]mkhcb[/MENTION]

After re-enable adblocking, the ads still exist, do I need to reboot it? To completely enable adblocking?

Edit :

I need to download host from adaway again to make it full working , no need to reboot.

Thanks dev,

I hope next update will let the toggle seamlessly change the adblocking. Without even touching adaway again, :good:
[Android General] Desmanto:
Thanks for the idea. I have actually want to do this already for a long time. But always forgot it when I have leisure time to do it. Since I rarely need to disable the adblock.

I just take a peek at your xml. I have already my own concept actually. I simply create another non blocking hosts file and rename it to "hosts.clean". Then query the size of current hosts file using du command. If it is bigger than 100 bytes (true, which means adblocking), rename the current hosts file to "hosts.block". Then rename "hosts.clean" to hosts. Thus replacing the hosts with non-blocking one. Give toast that adblock has been disabled.

False branch will reverse it, rename hosts to "hosts.clean" and "hosts.block" to hosts, enabling the ad blocking. Toast adblock has been enabled.

It is so fast, just realize we don't even need to flush the dns cache. I don't redownload the hosts file, as I don't update the hosts file too frequently. Future expansion, probably I will make timeout for reverting back to hosts file. Example only disable the adblock for 15 minutes and reverting back after timeout. But it is good for now.

The core concept only require 5 elements in Automagic.
[Android General] Ajendra25:
Good job :good:

Can you please share your wallpaper??
[Android General] tiliarou:
No QS button is shown on my Xperia Z3 (LP 5.0.1) when using the APK. I saw the toast when launching the app but nothing else.
[Android General] Software Guru:
Many thanks for your efforts
[Android General] yan_saputra:
Can someone teach me how to import settings + tutorials on YouTube? I am very new to using tasker ... ?????

(Asus ZF2, ZE551ML, Custom ROM RR Nougat V7.1.2, Root SU V2.82 / No Magisk).

https://www.dropbox.com/s/7vifdssfh6xxow0/Screenshot_20180215-154755.png?dl=0

https://www.dropbox.com/s/d09ib0nlljuzlap/Screenshot_20180215-154820.png?dl=0

https://www.dropbox.com/s/qcvorun1i9t1khe/Screenshot_20180215-145236.png?dl=0
[Android General] whosucks:
Really cool task, I didn't even KNOW Tasker had its own programmable Quick Setting Tiles. I just added a proper icon cause i'm anal and a date check so I didn't have to download the hosts files every time.
[Android General] buffal0b1ll:
You don't need AdAway anymore. Just close and open your browser if you still see ads after enabling. They're being cached. AdAway does this too.
[Android General] ainurrofiq:
So, if I don't need adaway anymore. what host is used by your apps? Or first install adaway, tick systemless host on magisk manager, and download the host. Reboot. Install your apps. And forget about adaway? Is this what you mean?
[Android General] mkhcb:
My original version was similar to this. However, I notice ad detection/links evolve by the second and consequently, the need to update the host files.
[Android General] mkhcb:
This downloads the host files automatically from:

https://adaway.org/hosts.txt

http://winhelp2002.mvps.org/hosts.txt

http://hosts-file.net/.\ad_servers.txt

http://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&showintro=0&mimetype=plaintext

This works independently from the AdAway App.

The script essentially saves the online txt files onto your phone (hence the need for storage permission), compiles it into 1 file called host, and places that host file into /etc/. When you wish to undo the adblocking, the script trashes the current host and creates a blank host file.
[Android General] ainurrofiq:
Cool , can we add another host ? Maybe in the future? Or blacklisting n whitelisting,,

Thanks
[Android General] mkhcb:
Care to share the icon you used?

Open tasker> click the tasks tab> press down on the tasks tab till a new menu opens> select import

I have the original image on my old phone. Maybe [MENTION=4316643]tugapower[/MENTION] can upload it here or send it to me via telegram. Else, you'll have to wait till I get home. He was the one who gave me that wallpaper. Although it is my current wallpaper, it has been adapted for my screen and its resolution is probably not optimal.

You can already do that manually. Navigate to /sdcard/AdBlocker and create extra files called extra_host.txt, blacklist.txt, etc (name really does not matter as long as they are txt files). Then appropriate the host files accordingly. The script will compile all txt files into 1, when it makes the host file.
[Android General] ainurrofiq:
Okay I'll try n will report back soon

Edit. It works. But sometimes I need to press toggle n the app couple of time (and reboot if it won't download it)for it to downloading the host, I just added stevenblack fake gambling news n porn, (it's so good, please consider this to be included in next release ) and couple of blacklist n whitelist
[Android General] Ajendra25:
Ok Thanks. Surely I'll wait till you get home :)
[Android General] mkhcb:
Special thanks to [MENTION=4316643]tugapower[/MENTION] for sending this via telegram.
[Android General] fire1951:
I am trying to use your apk and also trying to use your XML file with no success. I am running Marshmallow 6.0.1 . Will it work on any version of android? First I downloaded the apk, cannot really tell that it is doing anything but giving me a toast that says it is enabled. Next I downloaded the XML file , Tasker said bad data format. I noticed that the version of Tasker in the file was 5.1 , I figured that maybe that was the problem, so I installed the latest version Tasker , tried to import the XML , still getting bad data format error. Please help .Thanks.
[Android General] mkhcb:
If the apk says enabled, then it worked and you should see ads blocked when browsing the internet.

As for the xml issue, would you mind sharing a screenshot of the error?
[Android General] whosucks:
Sure, although its literally just adaway's icon with the white cut out.
[Android General] fire1951:
Perhaps I don't understand what exactly this is supposed to do. I had the impression that the apk was supposed to disable/enable the ad blocking like a toggle , ie hit it once... Ad blocking enabled.....hit again, ad blocking disabled.( without having to reboot). Is this not the case? As far as a screenshot of the error, all it does is give a toast saying "bad data format "when attempting to import the XML file as a task.
[Android General] Stupifier:
Only issue I can see with this is that it takes a while for the new host file changes (Blocking or Not Blocking) to be recognized and functional. For example, You disable AdBlocking and go visit a website with a bunch of ads you don't like....so you enable AdBlocking.......and go to the site again.......the ads are still there!

So then you wait about a minute and visit the site again.....the ads are gone (as they should be). I notice there is quite a delay for the AdBlocking to properly re-enable and REALLY work.
[Android General] yan_saputra:
[MENTION=4930863]mkhcb[/MENTION] Open tasker> click the tasks tab> press down on the tasks tab till a new menu opens> select import

Can you add a screenshot in detail bro? ?

I just found the xml import in quick task in tiles management (Not found in tasker), and found notif failed like in the following screenshot ... ?

can i know your telegram? ?

https://www.dropbox.com/s/iiiblmcc1ydrs10/Screenshot_20180216-031244-picsay.png?dl=0

https://www.dropbox.com/s/b66a0m2k6wjjyr8/Screenshot_20180216-031152.png?dl=0

https://www.dropbox.com/s/s12ubmspkkofyvh/Screenshot_20180216-031128.png?dl=0
[Android General] buffal0b1ll:
Enabling ad blocking needs to download the hosts files from the internet (just like enabling AdAway does) so if there's a long lag between Enabling Adblocking and Adblocking Enabled toasts, then blame your network connection speed. (I don't have a long lag at all, actually it's way faster than enabling AdAway by comparison). Once the Adblocking Enabled toast pops up you are blocking ads.

If you still see ads, then close and reopen your browser to keep cached state from persisting.
[Android General] buffal0b1ll:
If you're good with Tasker, you own Secure Settings app, and you want to make your browser automatically close and reopen so you can immediately benefit from the enabling or disabling of adblocking then here's 3 steps that can be added to the end of the task. My default browser is Chrome Beta (choose your browser accordingly).
[Android General] mkhcb:
That looks like a super old version of Tasker. Please update Tasker and try again.

My telegram username is "indest".
[Android General] ainurrofiq:
What if you make telegram group, so we can discuss it there faster
[Android General] mkhcb:
Http://t.me/taskerAdBlocker
[Android General] Stupifier:
Delete
[Android General] shouren04:
Nice app, works great, thank you!

Does this mean for the QS tile icon for the apk? I hope so.

If not, anyone know how to add one?
[Android General] Stupifier:
This ^^

You understand.....it isn't the internet connection....it is the fact that you have to FC/Reopen your app that makes this inconvenient! That is what I'm talking about here.

Secure Settings app is super old......I'll just use a shell command to force close and reopen my Foreground app. Even better, I'll use AutoInput to query my foreground app too so it works regardless of what browser/app I'm using at the time.....and I'll have a Yes/No popup to Let me decide if I want to FC the app or not.
[Android General] buffal0b1ll:
I do understand what you're saying. But the inconvenience of closing and reopening the browser is gonna be there when disabling or enabling any adbocker whether it's AdAway in the app, Adguard or DNS66 with a toggle. It's not unique to this Tasker tile.

It's the enabling and disabling (when compared to AdAway) that this tile saves us the most time. TBH AdAway takes so long to disable and reenable, I just never even bothered. If it was something I really wanted to open, then I'd dump log dns and add to whitelist.

Now tho, I'm excited to give this toggle a go as my adblocking DD. I already uninstalled AdAway. A far as my FC/reopen Chrome approach is concerned, it suits my needs fine. I don't mind using Secure Settings either, I have other tasks I already use it for and it gets the job done nicely. If you prefer shell and AutoInput that's great. That's the beauty of the Tasker approach. We can all share and learn from each other.

Another thing I've done to speed up the tile's adbocker enabling is move the task's steps for lists txt files download out into a profile. This downloads them once a day (if on wifi) so they're just waiting in the sdcard/Adblocking directory. Now the task doesn't have to download them on the fly while enabling adblocking..

It's fun to tweak this in Tasker and I'm super grateful to the OP for sharing this and sparking ideas of how I can best modify the task for my use case. The irony is that I'll probably seldom use the tile. Time will tell I guess. Maybe the AdAway stuff that I've whitelisted over the years is substantial, and I'll be toggling ads on and off more frequently than I think.
[Android General] mkhcb:
That is the plan. Right now I am working on another project. Soon I'll work on this again.
[Android General] shouren04:
Sounds good, thank you for your hard work. :good:
[Android General] KProject:
This is a great and powerful Adblock! Thanks for your hard work sir :D
[Android General] :
Absolutely f****** awesome. Thanks, this is one of the most useful thing I ever wanted
[Android General] fire1951:
Got no answer to my problem (Post #31) and since I couldn't get the xml to work in Tasker (Still don't understand what the apk does as far as toggling goes.) ..... I used a alternative approach to toggling ad blocking. Disabled Adaway, already had Adguard and Nova Launcher on my system......so I set up gestures (in Nova) to toggle Adguard on and off with a double tap on home screen. Seems to work fine.
[Android General] Stupifier:
Good idea. I'll do the same with a daily grab instead Everytime I toggle. Thanks.
[Android General] mkhcb:
The main post has been updated with my latest changes.
[Android General] shouren04:
Apk 11 is nice, thanks! :highfive:
[Android General] shouren04:
I have apk 11 installed. I just noticed in Settings>Accessibility under Services there is a toggle for AdBlocker which is off. What is this for? Toggling On doesn't seem to do anything except tell me that my text-to-speech language is not supported. The app works perfectly with the toggle off.
[Android General] buffal0b1ll:
That's probably just there because the apk was created from Tasker and Tasker has that toggle in Accessibility. It's not needed for AdBlocker to work when using Tasker either.
[Android General] shouren04:
Thanks
[Android General] jbm76:
[MENTION=4930863]mkhcb[/MENTION] this works really well .

Except starting from today, I can't have ad blocker enabled and run spotify, it says no internet connection in spotify. It seems to be the only app that has issues with it.

If I disable adblocker, spotify works as per normal.

I'm running apk11 - did the same on 6 too.
[Android General] mkhcb:
New APK uploaded with a new icon.

I'll dl Spotify and test it out tonight. They are probably detecting the adblocker and consequently denying service.
[Android General] jbm76:
I re-installed spotify and it seems to work now...
[Android General] mkhcb:
APK 20 speeds up the enabling process by only downloading the host files that are older than 1 week. If the host files are newer than 1 week, it will block ads with the current host files saved on your phone.

Also, APK 20 has the new icon.

I haven't updated the code on the thread, since I am on my phone. However, I did upload the newest tsk file (which is the new code).
[Android General] Stupifier:
Wonder if you can add a white list option
[Android General] buffal0b1ll:
The way that the current sdcard/Adbocker/*.txt files are complied into one hosts file doesn't lend itself to whitelisting nor is there a user interface in this Tasker task where you could add domains to a white list.

The whole idea behind a quick setting tile to toggle Adblocking is that you don't have to trouble yourself with maintaining a whitelist in AdAway anymore. If you want whitelisting you should be using AdAway instead.
[Android General] Ludespeed:
Hello; does the hosts file auto update? If so when does it update?
[Android General] mkhcb:
Weekly
[Android General] paradoxxman:
Hi, everytime I toggle on it's icon in the quicksettings panel, it says "enabling adblocker"...is this normal behaviour? I thought it was supposed to start on the first touch and then shut off on the second touch

(this is with .20.apk)
[Android General] Mackie Messer:
Normally it starts on the first touch and shut off on the second. Did you enable systemless hosts in the settings of MagiskSU/root client? It has to be enabled.
[Android General] paradoxxman:
I'm not using magisk, only SuperSU as root...this should be the cause?
[Android General] Mackie Messer:
Most likely YES. Try to find that option in SuperSU or change to Magisk and enable it there. The Quick setting tile works like intended - and really quick!
[Android General] shadowam:
Oh my God, I finally found exactly what I wanted. Thank you veryyyyy much! This is amazing and working perfectly :D
[Android General] shouren04:
Anyone having issues with the apk not working on Oreo? On Oreo it won't touch my hosts file, makes no changes. I'm back on Nougat now for other reasons but just thought I should ask.
[Android General] buffal0b1ll:
Magisk requires the setting Systemless Hosts ticked for this app to work. You checked that setting?
[Android General] shouren04:
Yes I'm aware of that but I'm not using Magisk. In Nougat it works perfectly fine without that setting.

So I take it that it is working fine for you in Oreo with Magisk?
[Android General] buffal0b1ll:
Yes it works fine in Oreo with Magisk. I don't use the Adblocker apk tho, I import the Tasker xml in the OP because I'm already a Tasker user. But it's the same thing.
[Android General] shouren04:
I see. SuperSu doesn't have a specific setting for systemless hosts but SuperSu that I'm using is systemless root. I'll test again the next time I flash back to Oreo. Thanks.
[Android General] david72262:
Very nice thank you.
[Android General] Nosferatu.:
Interesting concept. I'm going to give it a try!
[Android General] OrigamiOfficial:
Thank you guys

Awesome
[Android General] maikvitesse:
This is so awesome! GREAT!
[Android General] Mikolo007:
Am not sure the Ad blocker would work on my Xaomi phone
[Android General] SolideXX:
Hello mkhcb, i wanted to ask you about the rom/theme that is show in the screenshots you provided & the scrolling screenshot how did it had been taken.
[Android General] shouren04:
That's a feature that has been available on the past few generations of Samsung Galaxy phones but there are 3rd party apps available for those who don't have Samsung phones.
[Android General] atzohy:
Thanks for this, but unfortunately it's not working for me. Tasker gives me this error

14.01.10/E Run Shell: ->
14.01.10/E Run Shell: ->
14.01.10/E Run Shell: ->
14.01.10/Shell runBackground sort -u /sdcard/AdBlocker/*.txt > /etc/hosts root: true timeout: -1
14.01.10/Shell start process-thread ID 790
14.01.10/E add wait type Shell1 time 2147483647
14.01.10/E add wait type Shell1 done
14.01.10/E add wait task
14.01.10/E Error: 1

I'm using an Android 8.1 croid Rom.
[Android General] Stuart0610:
Using the APK you compiled, there is no Quick Setting tile that I can activate on MIUI. Would it work if I use the tasker file?
[Android General] BeeWall:
How did you add a QS tile with the App Factory?

Edit: nevermind I somehow missed it looking through the task.
[Android General] culiacanazo:
I downloaded the app, thank you. Even though I did purchase tasker years ago, I did it mostly to support the dev because I liked the implementation, because I have yet to learn how to use it lol
[Android General] zT2Dz:
Sir, can I add other hosts?
[Android General] Mackie Messer:
YES, mkhcb explained already:

"You can already do that manually. Navigate to /sdcard/AdBlocker and create extra files called extra_host.txt, blacklist.txt, etc (name really does not matter as long as they are txt files). Then appropriate the host files accordingly. The script will compile all txt files into 1, when it makes the host file."
[Android General] Menaku:
Have you enabled systemless host file in magisk or SuperSU?
[Android General] Try it or die:
On Android Pie it only blocks ads after a reboot. Is there something wrong on my side or is it the fault of the app?
[Android General] h3110:
Just tried .20.apk, have the same issue. Run the app keeps giving me "enabling adblocker" msg, and /etc/hosts is not updated.

BTW, it is supposed to ask for root permission in order to write to /etc/hosts, isn't it? But the app never asks for root permission.... Not sure if this is the cause.

I'm rooted with Magisk SU. Systemless hosts module is also enabled. Magisk version 18.
[Android General] mobbdeep:
Is using/buying Tasker the only way to go about this mod? I was reading reviews on Tasker and they're all horrible.
[Android General] buffal0b1ll:
1. Maybe you should reread the original post. It clearly states there are two pathways, one for those who have and know how to use Tasker and an app for those who don't.

2. Tasker has a 4.6 Star rating on PlayStore and over a million downloads. The only horrible reviews are people that are daunted by Tasker's learning curve.
[Android General] InventedTiME:
fiscal conservatives, lololol, that's awesome, best OP line I've read today.