Temporary Root for host file customization (AdAway) - Xperia Z5 Q&A, Help & Troubleshooting

Is there a way to get root access for host file customization. I want to use AdAway for blocking ads, then uninstall AdAway.
Any help appreciated

Related

[Q] Blocking ADs on Kitkat

I am on Speedmod ROM 4.4.2 by Giugiu. I have tried many AD blocking apps like Adaway, Adfree, Adblock etc and even this one:
http://forum.xda-developers.com/showthread.php?t=1916098
but none of them seem to work. The hosts file in /system/etc gets modified all right, but ADs still appear in most of the apps. Could anyone help me out here?
I had no problems when on GB or JB, its only on KK that I get this issue.
Try this
mon_iker said:
I am on Speedmod ROM 4.4.2 by Giugiu. I have tried many AD blocking apps like Adaway, Adfree, Adblock etc and even this one:
http://forum.xda-developers.com/showthread.php?t=1916098
but none of them seem to work. The hosts file in /system/etc gets modified all right, but ADs still appear in most of the apps. Could anyone help me out here?
I had no problems when on GB or JB, its only on KK that I get this issue.
Click to expand...
Click to collapse
Using any root file explorer navigate to system/etc/host file and set the permissions as readable and writable.
Then try again using any of the ad blocker.
Hope this helps you..
Good luck
​
bibhu60 said:
Using any root file explorer navigate to system/etc/host file and set the permissions as readable and writable.
Then try again using any of the ad blocker.
Hope this helps you..
Good luck
​
Click to expand...
Click to collapse
Thanks! But what's strange here is I'm perfectly able to replace the hosts file. It's a whopping 13 MB in size and has the list of all the ad sources to be blocked. Funnily enough none of the ads get blocked.

Adblock plus no root lollipop not work

Is there any alternative to ad block plus for device not rooted ( lollipop)?
Questions belong in Q&A.
Adblockers modify the hosts file or use iptables to redirect ad URLs to localhost, which requires root access. I don't know of any that don't.
Tks
Adblock plus don't modify any host file , but apply a filter in port 2020 with a proxy on localhost.
On kitkat work fine , on lollipop don't work.
Think she is confused with adaway which does create a host file. All you can do uprooted is use the app you are to warn you of ads so you can take apps out. I use adaway but I buy apps when there is a paid version. If I'm not willing to pay I take it out. If they give me no choice but to have ads I block them.
fraussantin said:
Is there any alternative to ad block plus for device not rooted ( lollipop)?
Click to expand...
Click to collapse
This: http://forum.xda-developers.com/android/apps-games/adguard-ad-blocker-doesnt-require-root-t2958895
zerosum0 said:
Think she is confused with adaway which does create a host file.
Click to expand...
Click to collapse
I meant that I didn't know of any that don't require root access other than the mentioned.

Temp root?

Hi,
What would be the best way to temporarily root? I want to install an adblock hosts file, but then go back to unrooted so I can use banking apps.
Banking apps work fine for me with root. To answer your question, I don't know.
Sent from my slim1+1 using Tapatalk
Do you have a custom recovery? If so:
Flash SuperSU
Use your preferred ad blocker to apply host file
Open SuperSU
Go to the far right tab
There should be an option for full unroot
Reboot
Enjoy!
Thanks, I'll try that. My bank has a really well written root detection routine, does supersu leave anything at all behind¿

Can I install adaway or the adaway host file without rooting on the P900 ?

Hello everyone, I don't want to root my device just yet due to the fact that it's still under warranty... So since I only want to remove ads, can you tell me if there's a way to block ads on an unroot device, like pushing the file on adb shell or something like that ? I don't want to use adblock plus it simply doesn't work.
Thanks in advance !
leomon32 said:
Hello everyone, I don't want to root my device just yet due to the fact that it's still under warranty... So since I only want to remove ads, can you tell me if there's a way to block ads on an unroot device, like pushing the file on adb shell or something like that ? I don't want to use adblock plus it simply doesn't work.
Thanks in advance !
Click to expand...
Click to collapse
There are only so many ways to replace a system (hosts in this case) file within Android and almost all of them require rooting the device or tripping Knox with TWRP. You might be able to do it with adb push/pull commands but that is quite an advanced technique. Even then, I've had it request root access in CM to run the adb commands on the system apps. In reality the easy ways to do it requires root and my advice would be to try using the adblock browser or another custom browser that blocks ads until you are ready to root it.
AlkaliV2 said:
There are only so many ways to replace a system (hosts in this case) file within Android and almost all of them require rooting the device or tripping Knox with TWRP. You might be able to do it with adb push/pull commands but that is quite an advanced technique. Even then, I've had it request root access in CM to run the adb commands on the system apps. In reality the easy ways to do it requires root and my advice would be to try using the adblock browser or another custom browser that blocks ads until you are ready to root it.
Click to expand...
Click to collapse
Thanks, that's actually just what I thought. It's weird because you can change the density and the resolution of that tablet with the adb push on the fly without root or knox tripping but I guess the whole file is read only and that's why root is needed (the hosts).
There is a proxy ad blocker on market. Works just fine and does not require root . search market and you find a few.
use hosts without root
I know a simple way to use hosts without root:
enter playstore
search: "virtual hosts"
you will see a green icon of the apk
download it
open it and then you will see a big switch button.
click on it and then choose the host that you want to use
(if you want to make the host to be on startup, just click the plus icon in the corner and then you will see an android icon. just click on it).

Use AdAway on rooted P8max? Hosts file can't be overwritten, any workarounds?

Hi,
I just rooted my P8max. Now I installed AdAway to block ads, but it seems like the hosts file cannot be overwritten. Are there any workaround for that to make the AdAway work?
Thanks in advance.
EDIT:
I rerooted and it works now.

Categories

Resources