The main idea was to have simple app to turn on/off "Do Not Disturb" mode. I needed mini app accessed from screen widget to easily set quiet mode for important business meetings. For the first use, you'll have to set permissions to toggle "Do Not Disturb" mode and app will open settings screen for you. Just set app permission and click back. From that moment, app will be allowed to toggle quiet/normal mode.
In Android 6.0 (like my Samsung S7), app permission path is on the following location:
Settings -> Lock screen and security -> Other security settings -> Do not disturb permission
And is possible to customize how DnD mode will behave - like without any exceptions (as it's for Alarms). Just open the settings on the following path and set:
Settings -> Do not disturb -> Allow exceptions
แนวคิดหลักคือการมี app ง่ายที่จะเปิด / ปิด "ห้ามรบกวน" โหมด ผมจำเป็นต้องมีแอพพลิเคมินิเข้าถึงได้จากเครื่องมือหน้าจอการตั้งค่าได้อย่างง่ายดายโหมดเงียบสงบสำหรับการประชุมทางธุรกิจที่สำคัญ สำหรับการใช้งานครั้งแรกที่คุณจะต้องตั้งค่าสิทธิ์ที่จะสลับ "ห้ามรบกวน" โหมดและ app ที่จะเปิดหน้าจอการตั้งค่าสำหรับคุณ เพียงแค่ตั้งค่าสิทธิ์แอปและคลิกกลับ จากช่วงเวลาที่ app ที่จะได้รับอนุญาตให้สลับโหมดเงียบ / ปกติ
ใน Android 6.0 (เช่น Samsung S7 ของฉัน) เส้นทางสิทธิ์แอปที่อยู่ในตำแหน่งต่อไปนี้:
ตั้งค่า -> ล็อคหน้าจอและการรักษาความปลอดภัย -> การตั้งค่าความปลอดภัยอื่น ๆ -> อย่ารบกวนได้รับอนุญาต
และเป็นไปได้ที่จะกำหนดวิธีโหมด DnD จะทำงานที่ชอบ - โดยไม่ต้องข้อยกเว้นใด ๆ (รวมทั้งที่จะเป็นสัญญาณเตือนภัย) เพียงแค่เปิดการตั้งค่าบนเส้นทางและชุดต่อไปนี้:
ตั้งค่า -> อย่ารบกวน -> อนุญาตให้มีข้อยกเว้น