Is there a way to disable the hosts file at an application level in Android? -
I am trying to move around to use host file DNS override in my application. Is there an App Property or TCP setting that can allow me to do this? Alternatively there is a DNS hook at an application level?
I'm basically trying to transfer ad blocking hosts to custom ROM people, but it does it at an application level. >
Essentially, if people do not like advertisements, then do not use my app, but I do not want to become a prick and have not run my app.
Is there an application property or TCP setting that will allow me to do this?
Not for your own IP address (e.g., HTTP request), you are welcome to find some Java DNS resolution libraries and use it instead of the system, but in your app There is no way to stop other requests from third-party code. / P>
Alternatively there is a DNS hook at an application level?
See no above.
Essentially, if people do not like advertisements, do not use my app, but I do not want to become a prick and I do not have an app.
Then you should fix (or work to fix your ad network) reasons your app does not go when the user has the "ad blocker host files custom ROM "should not be an ad banner accident because it can not resolve the DNS, because there are reasons for which" ad blocking hosting host file will be deleted. I do not have anything to do with ROM "(for example, when the DNS server is on a contingency).
Since you have not understood the meaning of "not run" in this context, it is difficult to provide more concrete advice.
Comments
Post a Comment