1

What is the shell command to enable/toggle silent mode on an Android phone?

I ask because the Tasker app can run shell commands but only can enable vibration for my specific phone model.

Ahmed
  • 171
  • 1
  • 8
  • So you're saying Tasker's Do Not Disturb action doesn't work on your phone? May be try MacroDroid app because without root access there is no point asking for a shell command. – Firelord Nov 26 '17 at 07:44
  • Tasker only supports Vibrate, it reds out the Silent Mode. I have root access. – Ahmed Nov 26 '17 at 14:44
  • MacroDroid seems to only have Do Not Disturb mode, no Silent mode. – Ahmed Nov 26 '17 at 14:50
  • Silent mode was replaced by Do not Disturb. https://support.google.com/nexus/answer/6111295?hl=en Does DND fails to meet your needs? – Firelord Nov 26 '17 at 16:32
  • Correct, DND doesn't mute mini alarms like those from hourly chimes. Silent Mode still exists in my version--so its weird how Tasker doesn't allow toggling of it in this version.. – Ahmed Nov 26 '17 at 22:29

1 Answers1

0

The settings is supposed to be called mode_ringer.

I can read its current status via adb shell settings get global mode_ringer.

However, changing its value does not seem to produce any effect and i'm still investigating why...

eadmaster
  • 298
  • 1
  • 2
  • 11