[Google Pixel Watch 2] simplepinoi177:
So, I really wanted the Do Not Disturb (and

just

the DND) on my watch to match with my phone.

Now before any of you immediately go at me and state that “For WearOS 4; in the Watch app on the phone, there’s a ‘Sync across watch and phone’”, but like I said (key aspect) is “just the DND” -- if you look at that setting carefully, it states that it also syncs Bedtime modes as well….

The thing is that I utilize the Bedtime mode because I like how it monitors my snoring and coughing when I'm sleeping (during the times Bedtime mode is active) -- but I don't like its impact on my phone, but because you are required to have at least one option selected in "Customized" for the schedule/time to have it become active, I opt for simply having my wallpaper dimmed (vs. DND, turn off always-on display [on the phone], dark theme).

And I very much do

not

prefer WearOS bedtime mode…! I mean, I’m alright that it includes some of the considerations DND has – calls from starred contacts, repeat callers, & alarms and nothing else – but what makes it pointless for me (disclaimer; just "for me" and not speaking for anyone else) is that it also turns off tilt-to-wake, touch, AND the display as well…! When I’m sleeping, and I need to check the time, I really rather just be able to see the time (as I do during the day) rather than tapping or pressing the watch. And I don’t know why Google made it that it must include both protocols and you can’t choose or distinguish which one you want, but this was troublesome for me…

So, you don’t know how much trouble I’ve gone through trying to get this to work, the myriad various methods I’ve tried, and how much I’ve been racking my brain trying to get this figured out to work (whatever clever workarounds & ideas I could think of)!

Spoiler content hidden.

But after all that, I remembered in my research on the subject that there was an old module/method that dealt with "sync"ing DND to (at the time) Galaxy Watch 3 or 4 and I thought it might be a good idea to see if that or something like it worked for WearOS 4. And when I saw it and blunden had just recently (2 weeks at this time) updated it, I dove right in, had a couple missteps and figuring out, but got it working perfectly for the Pixel Watch 2!

These steps should help since things didn’t go as straightforward as the given directions in the Github and/or one would think – a few extra steps & considerations are necessary to get it working.

Also, if it's not obvious enough; Root is required

Note; these directions assumes you are using a Command Prompt (cmd) – maybe that’s why the command didn’t work as directed exactly in the Github; maybe you’re supposed to do it in powershell to work or bash/linux script or something….

Go to Do Not Disturb Sync main branch’s Github and download both .apks

Install phone .apk (on your phone, naturally)

Run app

Grant permission

It will most likely say Restricted setting

You will have to go to the Apps section in the OS Settings, find the app, click the 3 dots on the top right and tap “Allow restricted settings”

Then go back and trigger the switch and “Allow” the notification access

Then tap the cog on the top right (in the app) and tap

“Do Not Disturb permission

Status: Granted”

You’ll see a toast message saying “Permission has already been granted”

You’ll know it worked properly by going back (to the app main page) and seeing “Permission: Granted” at the bottom; instead of “Grant Permission”

For whatever reason, even if you’ve enabled, without tapping the

“Do Not Disturb permission

Status: Granted”,

while the permission does stand, it seems to not actually trigger in the app until you do this and change from "Grant Permission"

Then install the corresponding watch.apk in whatever method you prefer

Adb install command

or Adb push and install on the watch (package installer)

or somehow (bluetooth, nearby share, 3rd party app) get the .apk on the watch and install/run

Connect watch to computer and connect adb in a command prompt that's open/directed to your platform-tools folder to watch (you should be familiar with this as you've rooted)

wired -- just run adb devices

you may need to authorize it on the watch

wireless -- follow steps found elsewhere to connect through adb wireless and run adb devices to make sure you're connected

you may need to authorize it on the watch

Then run adb shell

If this doesn't work, you most likely have to Grant it in Magisk or enable the switch in Superuser

Then run the command

cmd notification allow_listener se.blunden.donotdisturbsync/se.blunden.donotdisturbsync.DNDSyncNotificationService

(credit: “…to rhaeus on XDA for finding the new command”)

(source)

You do not need to include "$ adb shell" as it shows in the Github

Run Do Not Disturb Sync on the watch again and you should see

“You have successfully granted the permission on your watch! Do Not Disturb state should now synchronize”

Profit!

There might be other walkthroughs(Github) and threads discussing this module and directions/steps, but I don't know for sure if it at all differs between those smartwatches (it seems Samsung Galaxy smartwatches for the most part) and the Pixel Watch 2.

So, if you feel as I do and are in the same situation (PW2 matching Do Not Disturb to the phone but not Bedtime mode) and wish to have this kind of a set up, here you go! Hope it helps!