Open private DNS as a trigger

  • Thread starter Deleted member 8206
  • Start date
D

Deleted member 8206

Guest
I'm using private DNS to block explicit content for my child. But he knows how to disable it. Many apps can open the DNS setting directly you may think of it as MacroDoid's action. Can we reverse it, that means can we make it a trigger? So that I can make click the home button as an action when the kid opens the private DNS setting to disable it.

Or do you have any other idea how to deal with it?
 

Endercraft

Moderator (& bug finder :D)
Screen content should be enough.

You can also add a warning to explain to your child that access is restricted, then add +1 to a variable so you can check how many time (s)he tried to disable it.
Restrict_access_to_Private_DNS_settings.png
 

Attachments

  • Restrict_access_to_Private_DNS_settings.macro
    2.6 KB · Views: 3
Last edited:
D

Deleted member 8206

Guest
But this requires accessibility, which is a big problem. Any other way?
 

Dimlos

Well-known member
I made the macros as you said, although I'm sure they'll soon get through with this childish trickery.
 

Attachments

  • Private_DNS_Settings.macro
    1.3 KB · Views: 7

Dimlos

Well-known member
Sorry, you can probably call it with an intent, but I don't know where it is in the original settings menu.
The only thing I can think of is to search the internet for Private DNS settings with your device name.
 
D

Deleted member 8206

Guest
Can you use ADB hack? If yes, you can activate and keep accessibility services enabled. If not, where is the DNS setting located?
Yes, I can use the ADB hack. What is the command to keep accessibility services enabled?
 

Endercraft

Moderator (& bug finder :D)
(In MacroDroid) Settings -> Keep Accessibility Services Running -> [Select the MacroDroid accessibility services]
 

Jacob L

Moderator (Lawsonator)
Trigger: interval
Action: system setting action>find the private DNS setting>set it how you want. There's also a tool called BlockSite. Remember you can also use family link, digital well-being and parental controls
 

Dimlos

Well-known member
I also tried @Endercraft' macro, but my macro only works when the Private DNS setting is pressed and logcat is triggered reliably, so it is easier to use with fewer malfunctions.

I need ADB Hack.
Code:
adb shell pm grant com.arlosoft.macrodroid android.permission.READ_LOGS
It is useless if MacroDroid is stopped. I think the browser worked in safe mode, so if you know this loophole, you should be able to see all the sites you want.

If it's rooted, it knows about the service and can disable it, but I'm sure it's not rooted first!
 

Dimlos

Well-known member
I couldn't use this as solution as Logcat is broken on my device. I just can't use it in any way.
Indeed, my solution may be limited because there are some environments, such as Android 13, where logcat triggers are not available.
 

Dimlos

Well-known member
Sorry, we have an environment for Android 9-13 devices, but as expected, we do not have Android 7 devices.
This macro has been tested on Android 11 / MacroDroid v5.27.8.
 
D

Deleted member 8206

Guest
Trigger: interval
Action: system setting action>find the private DNS setting>set it how you want. There's also a tool called BlockSite. Remember you can also use family link, digital well-being and parental controls
Can md keep accessibility enabled for blocksite?
 
Top