5,605,685 Members 48,527 Now Online
XDA Developers Android and Mobile Development Forum

[SOLUTION] AdAway Not Working - Stuck on "Applying hosts file"

Tip us?
 
xnickfx
Old
#1  
xnickfx's Avatar
Member - OP
Thanks Meter 83
Posts: 64
Join Date: May 2013
Default [SOLUTION] AdAway Not Working - Stuck on "Applying hosts file"

Here is an easy solution/fix for those who wish to use AdAway v2.8 but end up getting stuck on the final step to enabling ad blocking, "Applying hosts file".

If you are trying to enable AdAway but are stuck on "Applying hosts file" as seen in the screenshot below, then please follow these very simple instructions.
Click image for larger version

Name:	uploadfromtaptalk1390802174044.jpg
Views:	1276
Size:	45.5 KB
ID:	2541659

1. Download a root explorer. I prefer using Root Explorer because I think its the best file explorer on the android market. If you have problems with purchasing apps you can always use the free version Explorer, or if you prefer using another file explorer that's fine, just make sure it has root access enabled.
Click image for larger version

Name:	uploadfromtaptalk1390802238287.jpg
Views:	1176
Size:	68.8 KB
ID:	2541661

2. Once you have a file explorer installed that has root access enabled, navigate to "system/etc" and find the file labeled "hosts" as seen in the screenshot below.
Click image for larger version

Name:	uploadfromtaptalk1390802268825.jpg
Views:	1218
Size:	86.9 KB
ID:	2541662

3. Hold down/select the file labeled "hosts" and select "permissions" from the selection as seen in the screenshot below.
Click image for larger version

Name:	uploadfromtaptalk1390802285765.jpg
Views:	1090
Size:	93.2 KB
ID:	2541663

4. After selecting permissions a window should have popped up where you can change the permissions of the file as seen in the screenshot below.
Click image for larger version

Name:	uploadfromtaptalk1390802303565.jpg
Views:	1036
Size:	57.9 KB
ID:	2541664

4. Change the permissions of the hosts file to "rw-rw-rw" just like in the screenshot below. Hit "OK" to apply the permission changes and close the file explorer completely and head back over to AdAway.
Click image for larger version

Name:	uploadfromtaptalk1390802332780.jpg
Views:	1416
Size:	59.1 KB
ID:	2541665

5. Once you have AdAway back open, click "Download files and apply ad blocking" and try again. Depending on your internet connection it shouldn't take very long, but you should see something like this, hit "Yes".
Click image for larger version

Name:	uploadfromtaptalk1390802403445.jpg
Views:	995
Size:	62.7 KB
ID:	2541666

6. After your phone has rebooted, open AdAway again and you should see something like this saying newest hosts files enabled.
Click image for larger version

Name:	uploadfromtaptalk1390802561016.jpg
Views:	798
Size:	50.2 KB
ID:	2541669

Congratulations, AdAway is now working and ad blocking is enabled!
Current Device:
Google Nexus 5
Android KitKat 4.4.2 ROM
Faux 008 Ultimate Kernel
Xposed Framework 2.4.1

My Creations:
The N5 Collection V2

Please hit thanks if I helped you.
The Following 8 Users Say Thank You to xnickfx For This Useful Post: [ Click to Expand ]
 
0xetrov1
Old
#2  
Junior Member
Thanks Meter 2
Posts: 26
Join Date: Jan 2014
Thanks man, it worked great
 
BanziBaby
Old
#3  
BanziBaby's Avatar
Senior Member
Thanks Meter 25
Posts: 126
Join Date: Oct 2010
Cheers for the post, was getting this issue on ASOB 1.3.2 rom & it was starting to get annoying, sometimes it would apply the HOSTS file after a reboot, other times it wouldn't
 
dex4ever
Old
#4  
Junior Member
Thanks Meter 0
Posts: 6
Join Date: May 2010
Thanks, this works for me too !
 
neoavi7
Old
#5  
neoavi7's Avatar
Member
Thanks Meter 12
Posts: 76
Join Date: Aug 2009
Thanks...Seems Adaway randomly breaks this permission.
My mind is constantly going. For me to completely relax, I gotta get rid of my cell phone.
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes