I am trying to modify the hosts file in my android device without any rooting and after a quick search I came across this adb method to push hosts file to a non rooted device.
I followed all the instructions in the The non-root method
section with developer mode enabled. But at the last command adb push F:\hosts /system/etc/
I am getting this error.
adb: error: failed to copy 'F:\hosts' to '/system/etc/hosts': remote couldn't create file: Read-only file system
I tried adb reboot
and adb remount
but its showing this info Not running as root. Try "adb root" first.
. How can I push the hosts file with out any rooting?
ads
tag. The question was not about ad blocking alone but to push hosts file modification without root.