yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] Skripka:
In case anyone was wondering...flashing broke cell data here on Nexus 6 SlimLP 5.0.2. Whereas copying and pasting hosts manually works fine.
[Android Software/Hacking General [Developers Only]] 1BadWolf:
How can that be?

I don't see anything in that script that would do anything to your mobile data whether positive or negative. It mounts the system, deletes the old hosts file, extracts the new hosts file from the zip and places it in /system/etc, sets the permissions, wipes the cache and unmounts the system. That's pretty much what you did manually, right?
[Android Software/Hacking General [Developers Only]] Skripka:
That is what I was scratching my head at.

Granted CWM is non existent for Nexus 6 and the only recovery is TWRP 2.8.x.x, which could well have a some kind of a flashing bug wrt this script...being that N6 is a completely new device.

Running the uninstaller script got data back, and I manually added the hosts.
[Android Software/Hacking General [Developers Only]] irish-sid:
http://adblock.mahakala.is added to adaway keeps freezing and stopping adaway when it's at the applying stage. I've changed system, etc and hosts permissions to rwe rwe rwe and have rebooted several times. Is there a solution?
[Android Software/Hacking General [Developers Only]] Skripka:
How do you know it is frozen? I just tried that method of applying the list in AdAway. It takes a *long* time to do each of the steps even on a top line SoC phone. The entire process probably took a good 5 minutes from downloading to finish of compile and applying, and that is with a fast connection.
[Android Software/Hacking General [Developers Only]] PiggyFlooper:
If the host file is to large it will crash.

Are you using Ad-Away version 2.3- people were having more success with that last year when the Moab file was around 11-12MB

Sent from above using Xparent Tapatalk
[Android Software/Hacking General [Developers Only]] irish-sid:
Downloading took about 15 seconds, applying force closed adaway after a minute or so.

Using adaway 2.9.2
[Android Software/Hacking General [Developers Only]] myrigon:
I'm not experiencing this issue on m7
[Android Software/Hacking General [Developers Only]] irish-sid:
M7?
[Android Software/Hacking General [Developers Only]] abhi08638:
I think he means HTC One M7

sent from my amazingly awesome OnePlus One with Stereo Mod

Don't forget to hit thanks!
[Android Software/Hacking General [Developers Only]] irish-sid:
Oh right. I'm note 3
[Android Software/Hacking General [Developers Only]] Masters2150:
This file messed up my phone, a Nexus 5.

It was extremely sluggish, play store stopped working, I couldn't even download your reset zip I had to do it through my computer.

I think the problem is that your host file is TOO big.
[Android Software/Hacking General [Developers Only]] JJsevol:
After applying the zip your phone was sluggish or downloading the hosts and applying through adaway?
[Android Software/Hacking General [Developers Only]] Masters2150:
After applying the zip. Everything was slugish. For instance, I turned on the LED flashlight, it didn't come on for almost a minute. Opening programs was slow, after rebooting, everything starting up was slow. The Play Store wouldn't work, and when I tried downloading the reset ZIP from this site, the download didn't go through.

I was able to download and apply the reset zip and everything works fine now.

I think the problem is that a 40mb host file is just way too massive.

PS. It DID block the ads though :)

I'm going to edit you're host file in the zip to be much smaller and see if that makes a difference.
[Android Software/Hacking General [Developers Only]] george_shudi:
I'll try this mod
[Android Software/Hacking General [Developers Only]] Gips3yD4ng3r:
Let me know how how this turns out i too have a nexus 5 and would like to free up my phone
[Android Software/Hacking General [Developers Only]] Basche:
I'm using this on my Nexus 5 and not sluggish at all. Maybe needs to clear cache in the recovery???
[Android Software/Hacking General [Developers Only]] Gips3yD4ng3r:
I done every time i flash something
[Android Software/Hacking General [Developers Only]] error404:
In nexus 4 I have no problem. When I was with KitKat worked perfectly, now in lollipop it doesn't block ads from some apps. It's not sluggish here.
[Android Software/Hacking General [Developers Only]] TRusselo:
please remove

rover.ebay.com

from the list, it stops actual real, useful email links from working regarding responding to disputes and item questions.
[Android Software/Hacking General [Developers Only]] Funkmasterchilla:
Hi! can you please add this domain please, lots of their awful ads are getting through here: trc.taboola.com/

Thx :)

D5503 UB KK.157 DstrikerZ1
[Android Software/Hacking General [Developers Only]] Funkmasterchilla:
This also please :)

engine.widespace.com/

D5503 UB KK.157 DstrikerZ1
[Android Software/Hacking General [Developers Only]] freecore.mc:
can i flash this with safestrap for samsung phones with locked bootloader and would it be compatible?
[Android Software/Hacking General [Developers Only]] Gips3yD4ng3r:
You have to have a unlocked bootloader
[Android Software/Hacking General [Developers Only]] tsjanda:
Can this be flashed on vs980?
[Android Software/Hacking General [Developers Only]] Mrwirez:
I see a lot of requests for links/sites... I have been using Moaab with adaway, and use black and white lists for sites I like personally and it seems to be working fine.

Q: Can we also use a hosts editor to do the same?

P.S. My only worry is if moaab keeps adding "white lists" from requests, we end up with too many ads again...

examples:

rover.eBay

taboola.com (especially this one)
[Android Software/Hacking General [Developers Only]] Primokorn:
I only use MoaAB and Hosts Editor app. It works fine.
[Android Software/Hacking General [Developers Only]] Mrwirez:
Thanks Primokorn..
[Android Software/Hacking General [Developers Only]] Lw00d:
skripka, i just got my Nexus 6 today.. i came here because on my old GS4 i would always flash MoaAB. but it doesnt work with 5.0. i see you got it to work.. would you please give me a step by step guide of installing MoaAB
[Android Software/Hacking General [Developers Only]] Basche:
You can take the zip, extract the host file from there and copy and paste it into your host file. Check the permissions and restart your phone. However, I flashed the zip like normal and it works for me.
[Android Software/Hacking General [Developers Only]] Skripka:
Easiest way I got to work (and make getting updates a snap) is to add http://adblock.mahakala.is/ to Adaway's host sources. Be warned, downloading and compiling the sourced file will take 5 minutes or so even on N6. OFC, you need to be rooted for this to work.
[Android Software/Hacking General [Developers Only]] Lw00d:
im sorry but link is a host file.. does the host file have all of MoaAD info in it?? you confused me..
[Android Software/Hacking General [Developers Only]] bombadier:
You can either download the zip in the OP and not use adaway or if you use adaway you can add that address so it will use as a source,open adaway press the 3 dots top right and choose hosts sources then add the address from the above post

Tapatyping fae the Nexus 4
[Android Software/Hacking General [Developers Only]] pjilka:
There's no mention of 5.0 in the OP, but considering this is just host files, blocking links, shouldn't it work fine?

Need this working, BSDgeek_Jake has done a great job, you don't understand how effective it is until you don't have it.
[Android Software/Hacking General [Developers Only]] FlanjeUK:
Go for it, working fine for me on 5.0 and 5.0.2 :)
[Android Software/Hacking General [Developers Only]] kretex:
No update for a new year sir??[emoji4]
[Android Software/Hacking General [Developers Only]] Lw00d:
this work great.. thanks fellas..
[Android Software/Hacking General [Developers Only]] BSDgeek_Jake:
Updates On Way... This Time Release will be Optimized Minimal Version. Enjoy Everyone. ETA not decided but Anytime Soon...
[Android Software/Hacking General [Developers Only]] Delvator:
can i know this AD-Block competible to Android v5.-

thanks
[Android Software/Hacking General [Developers Only]] killall:
Yes it is
[Android Software/Hacking General [Developers Only]] diegocampy:
I use AdAway, it's possible have this file list, directly in txt file upload online? Because in this mode I can use this file directly and ever up-to-date last version.

Is this second file in the list?
[Android Software/Hacking General [Developers Only]] Beat_Slayer:
Yes, it is.
[Android Software/Hacking General [Developers Only]] diegocampy:
It doesn't work :( if I flag all (or only the second) the fonti host. Not work. If I unselected the second, it work fine.
[Android Software/Hacking General [Developers Only]] Beat_Slayer:
On some cellphones/roms adway exceeds the max memory allowed and fails to parse the hosts...:(
[Android Software/Hacking General [Developers Only]] Skripka:
Excuses to replace current phone: +1 ;)
[Android Software/Hacking General [Developers Only]] Beat_Slayer:
My cellphone it's brand new and has 2GB of RAM memory... :silly:
[Android Software/Hacking General [Developers Only]] Skripka:
Well, The Nexus 6 and its 3GB RAM is enough to AdAway compile.
[Android Software/Hacking General [Developers Only]] Beat_Slayer:
That's why I said "cellphones/ROMs"...

I've got an additional 2GB swap and can't.

I believe it's the max heapsize that determines the success here and growth limit...

What values you've got on your device?
[Android Software/Hacking General [Developers Only]] diegocampy:
My nexus5 have 2gb ram, rom stock rooted
[Android Software/Hacking General [Developers Only]] TheIntruder:
Deleted
[Android Software/Hacking General [Developers Only]] diegocampy:
Sorry? This tread are not for all the devices? :-o
[Android Software/Hacking General [Developers Only]] TheIntruder:
My bad sorry, wrong thread
[Android Software/Hacking General [Developers Only]] diegocampy:
I don't know, where is the problem. With other list flag AdAway work fine.
[Android Software/Hacking General [Developers Only]] Beat_Slayer:
That's exactly the problem I was talking about, and that's also why I was asking the heapsize and growth limit of the android vm of someone that has successfully compiled the hosts file with adaway.

But it seems no-one wants to share them...
[Android Software/Hacking General [Developers Only]] BSDgeek_Jake:
Work paused.

work paused.
[Android Software/Hacking General [Developers Only]] Skripka:
Not sure his to check the growth limit. Heap size is 256MiB...at least on Liquid Smooth nightlies
[Android Software/Hacking General [Developers Only]] Nick_73:
Is that actually 5.0 or a theme? Cuz adaway doesn't work on L for me... Would this work if I manually place file in /etc/hosts?
[Android Software/Hacking General [Developers Only]] diegocampy:
yes I have Nexus5 with L, but if I use other list AdAway work find, only with this Fonte host I have the problem :rolleyes:
[Android Software/Hacking General [Developers Only]] myrigon:
What device are you using? It's working without issue on my m7, running sd gpe L.
[Android Software/Hacking General [Developers Only]] Nick_73:
I'm on my Tab 2 10.1" with CM12
[Android Software/Hacking General [Developers Only]] Beat_Slayer:
Thanks for sharing the info:

This are my settings taken from the build.prop file:

dalvik.vm.heapgrowthlimit=128m

dalvik.vm.heapsize=256m

And I can't compile the hosts file on adaway... :(

If some generous member can share their settings from a cellphone that is successful compiling, maybe we can nail the issue... :)
[Android Software/Hacking General [Developers Only]] Skripka:
This is what the build.prop says...however since I'm using Lollipop and therefore ART, who knows if it applies

dalvik.vm.heapgrowthlimit=256m

dalvik.vm.heapstartsize=8m

dalvik.vm.heapsize=512m

dalvik.vm.heaptargetutilization=0.75

dalvik.vm.heapminfree=512k

dalvik.vm.heapmaxfree=8m
[Android Software/Hacking General [Developers Only]] myrigon:
Are you trying to flash it, or use it through adaway?
[Android Software/Hacking General [Developers Only]] Nick_73:
I was wondering if it would flash since adaway says it can't find my hosts file tho I directed it towards it...
[Android Software/Hacking General [Developers Only]] myrigon:
I'm not familiar with your device, but it sounds like you don't have access to your system partition. If you do, you shouldn't need to point adaway to your hosts file.

You should http://adblock.mahakala.is to your hosts list, and then let adaway download and merge the hosts file in the normal manner.
[Android Software/Hacking General [Developers Only]] Nick_73:
My rom is still in Alpha stage, so it just may be a bug. But I'll mess around with it a bit to see what I can do to get it to work.
[Android Software/Hacking General [Developers Only]] Beat_Slayer:
Thanks for sharing the info, and has I suspected, with the settings below I was able to successfully compile the hosts file.

dalvik.vm.heapgrowthlimit=256m

dalvik.vm.heapsize=512m

Thank you Skripka for providing the info so I could test on mine without having to do some guesswork and trial and error. :fingers-crossed:
[Android Software/Hacking General [Developers Only]] myrigon:
Hopefully you can get it going. Some of the m7 users have had issues with the internal storage not working as expected, which was fixed with a terminal command. I won't post it. though, just in case it's not relevant to your device
[Android Software/Hacking General [Developers Only]] ihbarvar:
I can't understand why stitcher.com got blocked. Don't you think it's too much to block?
[Android Software/Hacking General [Developers Only]] mistermojorizin:
i added http://adblock.mahakala.is to adblock hosts sources, but now adblock will download the file, but while "applying, parsing and merging hosts files" it suddenly closes and the notification remains in the status bar. If I reopen adaway it goes back to the downloading stage for a minute, then says update available. Anyone experience this problem ever? It's jb 4.2.2 with 2gb of ram (was thinking maybe it runs out of memory or something.
[Android Software/Hacking General [Developers Only]] Skripka:
To Adaway compile the list, you need a 512MB heap size we believe.
[Android Software/Hacking General [Developers Only]] mistermojorizin:
I increasd my heap size to 512mb (or mB?) using Ram Manager Pro. Restarted the phone and same results. I actually did this right after posting earlier, funny that you bring it up.

edit: just read up a bit in the thread and noticed my heapgrowth limit was set to 96m while yours is 256m. Maybe that's the culprit.

edit2: well the thing is now still "compiling" - it would have crashed by now without the heapgrowth limit increased, but it's not completed yet, so i'll see if it works

edit3: it worked, took like 30 minutes (for just this 1 list selected). so I can say that the vm growth limit is necessary. Thanks for the help.

And now some questions: 1) do you guys just use this list by itself, or do you also use the other host sources in adaway with this? 2) does having to go through a lengthy list every time it loads a page now, will this slow down browsing?
[Android Software/Hacking General [Developers Only]] Ejvyas:
Results of my test (not technical, all user experience based)

I have 2013 Moto X with CM12 nightly.

So I tried this and gave it a good 2 days. In those 2 days, I found that my phone is really slow and all apps are taking inordinate amount of time to load. The ads were blocked for sure

Note: There was no app that was installed/upgraded during this period.

I reverted back to old hosts (thanks for providing the script) and now the phone is zoom zoom.

I know that "Little delay is better than ADs, Malwares and Spywares..." but it was not little for me. Each click would take time equal to old dial-up connection time to load. Even simple text pages.

Thanks for all the hard work but is there any other compressed version of this that I can try out? I am back to AdAway for now
[Android Software/Hacking General [Developers Only]] devilsdouble:
Guys I have a question, I want to use this (anyone will want anyway, LOL) but I had a problem with AdAway. Does this app also block a lot of web pages? I mean with AdAway, along with blocking in-app ads it also blocked ads on Chrome and whole system, but it also blocked some websites too! Which is weird! Does this app react the same way?
[Android Software/Hacking General [Developers Only]] Ejvyas:
Yes its the same hosts file. This will block even more
[Android Software/Hacking General [Developers Only]] Skripka:
It is not weird whatsoever...that is what a hosts file blacklist does...drop calls to those hosts wherever they happen to come from in the OS. Be it apps, or websites, or wherever. Only exception is Google Apps, which Google has managed to dodge ads server calls getting filtered by hosts blocking.

Hell you could copy the MoAB list on your Windows machine and it would work the same.
[Android Software/Hacking General [Developers Only]] devilsdouble:
Okay understood. So I can't do anything to stop that behaviour? I mean it's really irritating to keep adding different websites under Whitelist :(
[Android Software/Hacking General [Developers Only]] BSDgeek_Jake:
my mistake. Cheers.

transported from Tapatalk2 over GalaxyS4/XperiaZ
[Android Software/Hacking General [Developers Only]] MBariya:
Can't understand for non root phone. As I am having non rooted galaxy note 2, but there is no option for link local host files in adfree or adblock app.

Please guide me in details.
[Android Software/Hacking General [Developers Only]] BSDgeek_Jake:
Hey. You only need to add 'adblock.mahakala.is' without quotes in your app. This is the web-based hosting of my hosts file for ADBlocking Apps. You can add it under Subscription/s section/menu :D
[Android Software/Hacking General [Developers Only]] MBariya:
Not possible for non rooted device as adfree app not opening. Tried all apps. Adfree, adaway, Adblocker, Adblock. All gives su binary errors. So not possible for non rooted devices.

I will try through abd shell.
[Android Software/Hacking General [Developers Only]] vladmir:
I think for using adb shell you have to got a insecure kernel.
[Android Software/Hacking General [Developers Only]] Arrowblue:
hey guys ,,

host file is not working for me ,, i flashed it via cwm ,, cant seems to find it any where . can any one tell me where will be that host file ?? so i can find it and check that permission are ok.
[Android Software/Hacking General [Developers Only]] EDNYLaw:
/system/etc

The file is "hosts" and permissions should be rw - r - r

Alternatively, you can just extract the hosts file from the zip, put in it /system/etc, set permissions for rw-r-r and you're good to go
[Android Software/Hacking General [Developers Only]] Arrowblue:
thnx but didnt worked.
[Android Software/Hacking General [Developers Only]] EDNYLaw:
What didn't work?

If you're just placing the file in /system/etc make sure your /system is mounted as RW (by default it's mounted RO). So long as you're rooted, you can run the terminal command "busybox mount -o remount,rw /system" (no quotes) as root. Though, most file explorers have the ability to mount the system as RW, just make sure that it's selected, put the file in /system/etc and set the correct permissions.
[Android Software/Hacking General [Developers Only]] Arrowblue:
The way you told me i already did that it would not. but using terminal command it worked.
[Android Software/Hacking General [Developers Only]] EDNYLaw:
Glad it worked. Using file explorers like root explorer or es file explorer, the rw option should work to mount system as rw.

Sent from my Galaxy Nexus using Xparent BlueTapatalk 2
[Android Software/Hacking General [Developers Only]] Arrowblue:
Yeah normaly shoudl work with root explorer i gave it also propper rights and restart my mobile but yeah it did not worked but with terminal command it did.
[Android Software/Hacking General [Developers Only]] kapil_dheer:
Dear BSDgeek_Jake,

As per your above post, I tried wit h decompile of an example app attached.

I was abole to see folders Millenial MEdia, Mdot M, adwhirl, ZestADZ, inmobil etc..........all these are AD sites.

But how do I get the particulars of IP/Hostname/symlinks etc.

Can you guide me for folders>files>line nos. of this example app........

Thanks
[Android Software/Hacking General [Developers Only]] BSDgeek_Jake:
You will have to search through the smali code. There is no such fixed location and its varies with the App/Developer.

I will do it for you. Let me validate the source. Wait for the updates... ;)

Also request you to kindly remove the attachment asap.

Regards.
[Android Software/Hacking General [Developers Only]] cliveke:
love this

sweet

epic work!!!
[Android Software/Hacking General [Developers Only]] kapil_dheer:
DId remove the attachment as you directed.

The app is not giving me Ads as the blocking might have been already implemented for this.

Just wanted to use it as a learning example.

Still wiould request you to tell me the locations where you actually found the ad locations.

Thanks.
[Android Software/Hacking General [Developers Only]] BSDgeek_Jake:
:) search the smali code for strings like http:// or ads.com and reference IP address... then query the destination pattern for HTTP/S GET REQUEST and RESPONSE. Its the personal experience and the sense of right patterns which is needed in AD detection and blocking. Its not so different and difficult but not too easy also. Enjoy Your Experience ;)

transported from Tapatalk2 over GalaxyS4/XperiaZ
[Android Software/Hacking General [Developers Only]] drastic00:
So far no ads in Slacker radio, TuneIn, IHeartRadio and others. Installed using TWRP. :thumbup:

Sent from my SubGenius™ LG P925 with XBSA vR3D ROM and supercharged Slack™
[Android Software/Hacking General [Developers Only]] jeevanreddy:
hi, i

I installed the file. i dont see any AD-Blocking icon in my APPs list. is it normal?? i am on LSS rooted V.

thanks for the help
[Android Software/Hacking General [Developers Only]] shahabazas:
Yup its normal its not an app its a file and it just replace the default hosts file from /system/etc so you wont find any app icon.
[Android Software/Hacking General [Developers Only]] jah2110:
With your adblock my phone is soooo slow... I go back adblock. Buy good job anyway.
[Android Software/Hacking General [Developers Only]] FPSUsername:
I see ads appearing on puffin browser and tapatalk. I hope it will be fixed in the next update :)
[Android Software/Hacking General [Developers Only]] PiggyFlooper:
Puffin Browser is a proxy browser, it doesn't use hosts, btw, which version tapatalk are you using?

Sent from above using Xparent Tapatalk
[Android Software/Hacking General [Developers Only]] FPSUsername:
Newest version available on the play store: 4.10.4
[Android Software/Hacking General [Developers Only]] vikraminside:
Does same apply to opera mini?

What are other browsers that use proxies?
[Android Software/Hacking General [Developers Only]] PiggyFlooper:
Dolphin doesn't, and neither does UC Browser

Sent from above using Xparent Tapatalk
[Android Software/Hacking General [Developers Only]] FPSUsername:
Chrome and firefox also don't use that.
[Android Software/Hacking General [Developers Only]] sonwon:
And Ghostery for privacy although it appears to be slow.
[Android Software/Hacking General [Developers Only]] Ejvyas:
Doesn't Chrome "data saver" feature use proxy ?

At least Adaway doesn't work when its turned on. Adaway uses hosts file too
[Android Software/Hacking General [Developers Only]] myrigon:
It does, indeed.
[Android Software/Hacking General [Developers Only]] FPSUsername:
Adblock Plus use proxy and it actually works very well on an unrooted device.
[Android Software/Hacking General [Developers Only]] JustArchi:
It's nice to note that in non-root mode, it needs to filter all traffic, and this is a big price just for adblocking feature.
[Android Software/Hacking General [Developers Only]] snabo:
Am I going crazy or i really have a feeling that after the host file pages load more slowly?