Is it possible to stop OOS adding 8.8.8.8 as a secondary DNS? - OnePlus 6 Questions & Answers

Hi,
OnePlus is known for adding 8.8.8.8 (Google) as a secondary DNS if the network provides only one DNS server with DHCP lease.
Is there any method to stop this unwanted behaviour? Maybe a patch for OOS? It's really annoying.
My device is rooted. As I can't make changes to all the networks I'm using, I'd prefer a OOS patch (NOT an additional firewall/port filter).
I already explored the system partition and searched for 8.8.8.8 which is referenced by a few apk. I'm not familiar with Android internals such as network interfaces and scripts.

Related

[GUIDE] Cloudflare DNS for Android Pie

I thought that this might be useful to some.
There's a new feature in Android Pie under "Settings > Network & Internet > Advanced" called Private DNS.
This can be used to change the DNS used system wide.
Just head to: https://blog.cloudflare.com/enable-private-dns-with-1-1-1-1-on-android-9-pie/ for full, simple instructions.
you can just enter 1.1.1.1
RavinduSha said:
you can just enter 1.1.1.1
Click to expand...
Click to collapse
This works system wide on all WiFi networks and mobile networks.

[HOW TO][NO-ROOT] Blocking ads without additional software in Android 9.0 Pie

The next method allows us to block ads in Android without to installing any additional software. It's working on any android device working with Android 9 Pie and above. ​
How to do it:
Go to Settings => Connections => More connection settings => Private DNS.
Check Private DNS provider hostname
Then you can use some of the rest. The first one is recommended.
dns.adguard.com
dns-family.adguard.com
dot-de.blahdns.com
Another DNS that you can check is NextDNS. It's free to use and provide some nice features on their website.
How to block ads in Google Chrome
The DNS method works also for Google Chrome, but you need to change something to make it work. ​
Open Chrome, type in chrome://flags
Then search for async DNS resolver (#enable-async-dns) and choose disabled in the drop-down menu. Otherwise, chrome could use a built-in DNS resolver which does not block ads.
Source: Reddit
wow, thanks
So it works only in Pie or will it work in Oreo also?
bocondo said:
So it works only in Pie or will it work in Oreo also?
Click to expand...
Click to collapse
Only for Pie.
Thanks, I have a questions
1. can i choose only one dns address?
2. in chrome i should choose enable or disable?
gtrs36 said:
Thanks, I have a questions
1. can i choose only one dns address?
2. in chrome i should choose enable or disable?
Click to expand...
Click to collapse
1. Yes
2. Disabled
Cheers for this it works great.
Try Blokada. Does even more. My personal tip.
I dont understand this one? System wide ads?

Enable private DNS on MIUI 10 android pie.

Hi guys.
I'm new to pocophone F1. Coming from a galaxy note 3 with aosp pie rom, i found that i cannot use private dns on pocophone miui 10 pie rom. Several articles on the net said it was removed from miui pie rom. The truth is it was hidden deep within miui 10.
Here's how to access it:
1. Install quick shortcut maker from playstore. Here's the link https://play.google.com/store/apps/details?id=com.sika524.android.quickshortcut
2. Open quick shortcut maker and then scroll to settings. Click on it and then find com.android.settings.Settings$NetworkDashboardActivity (also easier to find it by typing "mor" on search bar. Click on it and then choose try, it will go to network and internet settings where you now can set private DNS there. You can create a shortcut for later use after that.
Thanks. Any code/keyword to enable WiFi sharing (e.g. share WiFi from hotspot using phone with no mobile phone signal)- it is a feature in pixel but not available in miui
radii said:
Thanks. Any code/keyword to enable WiFi sharing (e.g. share WiFi from hotspot using phone with no mobile phone signal)- it is a feature in pixel but not available in miui
Click to expand...
Click to collapse
Not this one?
stonedead said:
Not this one?
Click to expand...
Click to collapse
the option is turned on for me but does not allow wi-fi sharing or doesn't work for me does it work for you? I I've tried
radii said:
the option is turned on for me but does not allow wi-fi sharing or doesn't work for me does it work for you? I I've tried
Click to expand...
Click to collapse
Never tried it before, will test it once i get home later today.
stonedead said:
Hi guys.
I'm new to pocophone F1. Coming from a galaxy note 3 with aosp pie rom, i found that i cannot use private dns on pocophone miui 10 pie rom. Several articles on the net said it was removed from miui pie rom. The truth is it was hidden deep within miui 10.
Here's how to access it:
1. Install quick shortcut maker from playstore. Here's the link https://play.google.com/store/apps/details?id=com.sika524.android.quickshortcut
2. Open quick shortcut maker and then scroll to settings. Click on it and then find com.android.settings.Settings$NetworkDashboardActivity (also easier to find it by typing "mor" on search bar. Click on it and then choose try, it will go to network and internet settings where you now can set private DNS there. You can create a shortcut for later use after that.
Click to expand...
Click to collapse
Good finding!!!
If you want to use the 1.1.1.1 private DNS from CloudFlare, you can just get the 1.1.1.1 app which does it for you
donk165 said:
If you want to use the 1.1.1.1 private DNS from CloudFlare, you can just get the 1.1.1.1 app which does it for you
Click to expand...
Click to collapse
It's not the same mate. Private dns in pie use DNS over TLS which is encrypted and more secure. Also you can use adguard dns in private dns to block ads so you don't need to use any adblocker app or even root your device to block ads system wide. To use adguard dns just put dns.adguard.com to that private dns.
stonedead said:
It's not the same mate. Private dns in pie use DNS over TLS which is encrypted and more secure. Also you can use adguard dns in private dns to block ads so you don't need to use any adblocker app or even root your device to block ads system wide. To use adguard dns just put dns.adguard.com to that private dns.
Click to expand...
Click to collapse
Yeah that is true. Its a shame that MIUI doesnt allow you to set the private DNS settings. Im on crdroid so I can set the dns without any issues. Hopefully they patch it in
donk165 said:
Yeah that is true. Its a shame that MIUI doesnt allow you to set the private DNS settings. Im on crdroid so I can set the dns without any issues. Hopefully they patch it in
Click to expand...
Click to collapse
Using the method i posted here works fine on miui 10.
radii said:
the option is turned on for me but does not allow wi-fi sharing or doesn't work for me does it work for you? I I've tried
Click to expand...
Click to collapse
It seems to work fine for me. I did not enable the setting in developer option. Took out my sim card and then connect to other phone, check from other phone and confirmed the internet is working fine on on both phones.
The third icon from your screen shot is missing on my pocophone, I'll consider factory reset
donk165 said:
If you want to use the 1.1.1.1 private DNS from CloudFlare, you can just get the 1.1.1.1 app which does it for you
Click to expand...
Click to collapse
Private DNS on setting on any PIE AOSP or any PIE Roms is systemwide.
The app itself only the application is affected and by using vpn.
The app is useless if you have the settings available on your device.
On xiaomi.eu when i press DNS the settings app crashes so i cannot set it.
Thanks, works fine here. But seems like I can't connect to internet when using CloudFare dns so I changed to Adguard and it works fine. Both wifi and data has no connection after connecting to CloudFare dns. Btw good sharing!
I'm on crDroid so the private DNS settings work fine for me I've attached a screenshot of the settings I'm using, might be helpful if that menu is available on your ROM
Forgot to attach
Hi...
if i already change to private dns... Will it stick after restart device?
and why i cannot create a shortcut to that setting. ?
Sent from my MI 8 using Tapatalk
MFAR198 said:
Thanks, works fine here. But seems like I can't connect to internet when using CloudFare dns so I changed to Adguard and it works fine. Both wifi and data has no connection after connecting to CloudFare dns. Btw good sharing!
Click to expand...
Click to collapse
That's cause it's cloudflare not cloudfare.
1dot1dot1dot1.cloudlfare-dns.com
Negi9 said:
That's cause it's cloudflare not cloudfare.
1dot1dot1dot1.cloudlfare-dns.com
Click to expand...
Click to collapse
Yeah, my bad. Forgot the 'l'. Like missing a semicolon in a coding ?

Best Adblocking solutions for rooted phone, no VPN?

I know the title is rather generic and not strictly related to OP7, but I didn't know where else to post, and as this applies to my OP7, I thought to post here.
OP7
OOS 10.0.7
Rooted, Magisk+TWRP
So far I have been using Blokada to stop ads and it's been a bliss, but the limitation of Android to only run one VPN at a time makes using another VPN a compromise.
Recently I decided to use NordVPN, but as the situation stays now, I must choose between really no ads (Blokada), or NordVPN, but rely on Nord's as filtering which isn't really doing much.
Can you recommend me some reliable Adblocking solutions for rooted phone that can work in parallel with NordVPN and do equally good job as Blokada is doing? I need to block apps across the whole system (apps, websites).
P.S. using YouTube Vanced, so that one is sorted.
Energized magisk module, energized.pro for info on which version best suits you
Adguard dns without any app
Isn't DNS ad-blocking problematic? I've been reading that apps and websites can detect ad- locking DNS and act strangely.
Also, some ISP may not like some DNS... What has been your experience with DNS Adblocking so far?
Hi
I'm using OP7T OOS Beta 7 at the moment. I've been using Blokada for a short time and liked it a lot. But a minor was indeed not being able to combine it with a VPN from another provider. So I tried Blokada VPN. I had the feeling that it was working smoother than the VPN I'm always using. And I like the way they handle accounts. So you could use Blokada and VPN together if you pay for the VPN from Blokada.
So what stopped me using it? Having a long time subscription at NordVPN. I'm not using a vpn much lately. My setup is as follows:
- setup private dns under settings-networks-private dns: dns.adguard.com
- setup Adaway from FDroid (you need root)
- setup NordVPN. Beware to use the apk from the website and not from the Play Store. Only the apk from the website has working cybersec functionality. It can be used together with Adaway.
I've no problems using a dns server that blocks ads and malware. Neither do I have problems using hosts file based blocking like Adaway. Besides that I'm using browsers like Privacy Browser, Firefox nightly, Bromite and ungoogled chromium. And I try not to use apps with ads.
SvenC said:
- setup private dns under settings-networks-private dns: dns.adguard.com
- setup Adaway from FDroid (you need root)
- setup NordVPN. Beware to use the apk from the website and not from the Play Store. Only the apk from the website has working cybersec functionality. It can be used together with Adaway.
Click to expand...
Click to collapse
Thanks, I made the same setup... Seems less strict compared to Blokada, but this I am sure is just a matter of hosts list in adaway.
Do you recommend any hosts in particular besides the ones already in Adaway?
Also, what kind of apps do you split tunnel in NordVPN? Or no need? Everything working as it should?
derei said:
Thanks, I made the same setup... Seems less strict compared to Blokada, but this I am sure is just a matter of hosts list in adaway.
Do you recommend any hosts in particular besides the ones already in Adaway?
Also, what kind of apps do you split tunnel in NordVPN? Or no need? Everything working as it should?
Click to expand...
Click to collapse
Be sure to update hosts file in Adaway regularly. I haven't changed any sources in Adaway. Just the standard setup. It blocks system wide and I don't want it to be too strict. Maybe I want to reach a domain sometimes on some site without hassle. You can start up "dns log"in Adaway and then just use your phone like you always do. It then monitors every request. After a while you can go back to Adaway to view which requests occurred. From there you can block domains that were allowed. Or allow domains that were blocked.
I'm not using vpn a lot lately as I'm in my home country. I use it especially when I'm abroad in less privacy conscious countries. That's why I haven't split anything. But I would just it more, I would split apps like Signal private messenger which are end to end encrypted, and apps that don't seem to work well going through the vpn tunnel.
If you are really concerned about your privacy/ISP, then you should setup VPN always on, or force apps to use vpn tunnel by using a firewall. Although opinions differ on this. To me that's overkill anyway. Do you have apps still showing ads? Or do you mean ads while browsing websites?
SvenC said:
Do you have apps still showing ads? Or do you mean ads while browsing websites?
Click to expand...
Click to collapse
Yes, some apps are still showing placeholders. Didn't check all apps...but with Blokada I didn't even have the placeholders. Isn't a big nuisance, but if I can find a solution for it, for the better.
As for vpn usage... i just made some network speed tests... what do you see... it was better over the vpn. For some reason my isp was throttling my mobile (weird). So, I decided to allow NordVPN to always connect to the fastest server.
About tunneling, I was interested if any app misbehaves when on vpn (for example Netflix, or banking apps, if you personally encountered some issue).
derei said:
Yes, some apps are still showing placeholders. Didn't check all apps...but with Blokada I didn't even have the placeholders. Isn't a big nuisance, but if I can find a solution for it, for the better.
As for vpn usage... i just made some network speed tests... what do you see... it was better over the vpn. For some reason my isp was throttling my mobile (weird). So, I decided to allow NordVPN to always connect to the fastest server.
About tunneling, I was interested if any app misbehaves when on vpn (for example Netflix, or banking apps, if you personally encountered some issue).
Click to expand...
Click to collapse
I keep apps with ads at a minimum, so probably that's why I haven't any problems like that. I remember having problems setting up Payconiq and Transferwise while on vpn. After finishing the setup, only Transferwise still gives problems while on vpn. I don't have streaming or social apps besides Telegram and Keybase.
That said, if I didn't have a subscription from NordVPN, I would use Blokada and pay for its vpn. Everything in one app. But in case speed is important, probably Nord is a better option.
derei said:
Isn't DNS ad-blocking problematic? I've been reading that apps and websites can detect ad- locking DNS and act strangely.
Also, some ISP may not like some DNS... What has been your experience with DNS Adblocking so far?
Click to expand...
Click to collapse
You may have the same problems you have with VPN apps, I have not had any problems for the moment and I have been using dns adguard for some time ... once there was a problem in the server and they crashed but just set '' automatic dns' 'until the problem is solved. In any case, if you don't have root the only way is vpn or dns
I tried the Magisk module Energized but couldn't make it work. I got an error that it was not compatible although I had systemless hosts installed. Otherwise it seemed promising.
I'm testing another app now: Nebulo. At first sight I like it very much. But don't download it from Google Play cause that's a very limited version. Downloading it from Aurora Droid seems the easiest way. It's like Blokada, but I like it more. You can add packages to block ads. And the choice is large. You have a lot of dns servers to choose from. You can test the speed of the servers. Not just a ping test, but a revolution test. You can use cache to avoid sending the same dns requests over and over to the server; to speed up browsing. And a lot of other settings. Worth taking a look at.
Tried Magisk module energized.pro module on another ROM with success now. Using private DNS settings in android combined with that module. My favorite setup at the moment.

Modify hosts file without root?

OP 8T phone I use for company work, can't root. Is there a way to replace the hosts file with a larger, modified one to block all the spam advertising when browsing? or an Android FireFox add-in that blocks them?
Phone is original unlocked 8T (no TMo bloatware), with TMo 5G SIM.
TIA
No way to replace hostfile without root as far as I know.
Wisiwyg said:
OP 8T phone I use for company work, can't root. Is there a way to replace the hosts file with a larger, modified one to block all the spam advertising when browsing? or an Android FireFox add-in that blocks them?
Phone is original unlocked 8T (no TMo bloatware), with TMo 5G SIM.
TIA
Click to expand...
Click to collapse
Use DNS66 - see https://forum.xda-developers.com/t/app-5-0-dns66-open-source-host-ad-blocker-without-root.3487497/
Thank you for the suggestion of DNS66. I'll pass.
Couple of reasons... It isn't found in PlayStore, you have to side load outside of 'protected' apps. Also, it functions as a private DNS, routing all lookups through a DNS service that resides.... somewhere.
I've found another possible way by using ADB and Android Tools, pull/push files. But don't know if I need to unlock to do this.
Change to any dns with adblocking like dns.adguard.com by setting private dns in android settings.
Wisiwyg said:
Thank you for the suggestion of DNS66. I'll pass.
Couple of reasons... It isn't found in PlayStore, you have to side load outside of 'protected' apps. Also, it functions as a private DNS, routing all lookups through a DNS service that resides.... somewhere.
I've found another possible way by using ADB and Android Tools, pull/push files. But don't know if I need to unlock to do this.
Click to expand...
Click to collapse
Hello
Did you find a way to edit the host file without root on OnePlus 8t ?
Thank you in advanced
you could use surfboard or clash for android to modify hosts ,but it need use VPN
You can use AdAway in VPN mode or
install Ublock Origin Firefox plugin or
use private DNS as suggested by @Rootk1t

Categories

Resources