hide or remove private dns activity

Search This thread

agh623

New member
Jun 2, 2021
1
0
hello everyone
my mobile is xiaomi poco x3 nfc
i want to set specific "private dns" that nobody never can change it even me
i want to set private dns then remove or hide or lock private dns activity for ever
can i do this without root permission? for example use TWRP recovery or adb command
if i can plz provide full Instructions
if i can't, are there any app that can lock private dns settings activity?
 

warleysr

New member
Aug 22, 2022
3
1
Minas Gerais, Brasil
It's a very old thread but I'm now able to give an suitable answer. You can block Private DNS Activity but I don't know for sure if you can without root access. You can try use
Bash:
adb shell pm disable com.android.settings/.network.PrivateDnsSettingsActivity
command but on my attempts it failed.

If you really want to, install Magisk on your phone and do the following:

1. Install AppManager
2. Open it and grant root access
3. Search for com.android.settings on search bar
4. Click and then go to the Activities tab
5. Search for "dns" and you will find the PrivateDnsActivity
6. Click on the block icon

By this you will not be able to change your private dns, and you can uninstall AppManager and unroot your phone to be sure :)
 
Last edited:

Jikodis

New member
Mar 31, 2011
3
0
@warleysr I do not see the Activity of PrivateDnsActivity when searching in the Settings app using AppManager. I found an alternative action named "Network & Internet" that is not ideal to block, but I attempted to do so in any case.

When I tried to block the activity, the AppManager app brought up a dialog of "Rules are not applied".

I like the idea you posed to block Private DNS, but I have not been able to get it to work.
 

warleysr

New member
Aug 22, 2022
3
1
Minas Gerais, Brasil
@warleysr I do not see the Activity of PrivateDnsActivity when searching in the Settings app using AppManager. I found an alternative action named "Network & Internet" that is not ideal to block, but I attempted to do so in any case.

When I tried to block the activity, the AppManager app brought up a dialog of "Rules are not applied".

I like the idea you posed to block Private DNS, but I have not been able to get it to work.
I think it can have different names for each device brand. In MIUI itwas located in the app with package name com.android.settings, instead of the com.miui.settings which probably have some MIUI specific settings.

About the "Rules not applied" message you can click on the three dots on the right corner and then click "Apply rules".
 

Jikodis

New member
Mar 31, 2011
3
0
I think it can have different names for each device brand. In MIUI itwas located in the app with package name com.android.settings, instead of the com.miui.settings which probably have some MIUI specific settings.

About the "Rules not applied" message you can click on the three dots on the right corner and then click "Apply rules".
Thanks for clarifying the "Apply rules" way of how the app works.

In terms of the com.android.settings app actions on the Pixel 4A and Android 13, it throws a bunch of the actions behind something called SubSettings. Unfortunately that is not granular enough for my needs. I have seen others running into the same issue.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 1
    Very handy for a direct MITM attack... :unsure:
    I don't know the potential risks but I think it's a good option to put a Family protection DNS like Adguard on a child's phone or even on yourself's. Btw, I recommend CleanBrowsing Adult Filtering DNS because the Adguard one puts YouTube on Restricted mode and so the comments will be blocked.