How to Allow Caller Who Can Call You During "Alarms Only"?


Question

I am using Android 6.0.
I would like to allow my mother call me also when the mode "Alarms only" is active. I have her in Starred contacts i.e. priority list. She calls me to double verify that I wake up in some mornings.



I would like the caller can vibrate your phone even in the Alarms only mode.



How can you setup a caller who can call and disturb you by vibration during the mode Alarms only?


Answer

You can use Tasker in this case. Although I tried so, I still couldn't come up with a non-root method.



Follow these instructions:




  • Profile: Event → Phone → Phone Ringing:




    • Caller: A single Contact → choose your contact

    • Priority: Highest




    You can add multiple contacts there. It is not relevant here whether your contact is a starred contact or is allowed in Priority mode's list.


  • Task: (Actions):




    • Code → Run Shell:




      • Command: settings get global zen_mode

      • tick Use Root

      • Store Output In: %ZenMode


    • Task → If → Condition:




      • %ZenMod eq 2

      • Or

      • %ZenMode eq 3


    • Alert → Vibrate → Time: 1000


    • Task → Wait → Seconds: 2

    • Task → Goto:




      • Type: Action Number

      • Number: 3





    The first action stores the status of Do Not Disturb mode. The second action checks whether the device is currently in Alarms only or Total Silence mode. (Remove %ZenMod eq 2 if you don't want to be disturbed during Total Silence mode). If yes, then when the call from that particular contact comes in, the device will vibrate. You can customize the settings for Vibrate and Wait action. Their job is to vibrate the device then wait for few seconds. The use of Goto causes the task to follow the same vibrate and wait cycle for infinite times.


  • Profile: You need to setup two contexts. See How to create a profile with multiple context in Tasker? for related help.




    • Event → Phone → Phone Idle → Priority: Highest

    • State → Tasker → Task Running → Name: select the task you assigned to first profile - the same task meant to vibrate the device


  • Task: (Actions): Task → Stop → Task: select the task meant to vibrate the device



This profile would make sure that the vibration stops only when either the incoming call is dismissed by yourself or ends up as a missed call simply because the caller dismissed the call from their end or you didn't pick up the call resulting in timeout.




  • Profile:




    • Event → Phone → Phone Offhook → Priority: Highest

    • State → Tasker → Task Running → Name: select the task you assigned to first profile - the same task meant to vibrate the device


  • Task: (Actions): Task → Stop → Task: select the task meant to vibrate the device




This profile makes sure that the vibration stops once the call is picked up by you.



Try it. It worked on my unofficial CM13.


Topics


2D Engines   3D Engines   9-Patch   Action Bars   Activities   ADB   Advertisements   Analytics   Animations   ANR   AOP   API   APK   APT   Architecture   Audio   Autocomplete   Background Processing   Backward Compatibility   Badges   Bar Codes   Benchmarking   Bitmaps   Bluetooth   Blur Effects   Bread Crumbs   BRMS   Browser Extensions   Build Systems   Bundles   Buttons   Caching   Camera   Canvas   Cards   Carousels   Changelog   Checkboxes   Cloud Storages   Color Analysis   Color Pickers   Colors   Comet/Push   Compass Sensors   Conferences   Content Providers   Continuous Integration   Crash Reports   Credit Cards   Credits   CSV   Curl/Flip   Data Binding   Data Generators   Data Structures   Database   Database Browsers   Date &   Debugging   Decompilers   Deep Links   Dependency Injections   Design   Design Patterns   Dex   Dialogs   Distributed Computing   Distribution Platforms   Download Managers   Drawables   Emoji   Emulators   EPUB   Equalizers &   Event Buses   Exception Handling   Face Recognition   Feedback &   File System   File/Directory   Fingerprint   Floating Action   Fonts   Forms   Fragments   FRP   FSM   Functional Programming   Gamepads   Games   Geocaching   Gestures   GIF   Glow Pad   Gradle Plugins   Graphics   Grid Views   Highlighting   HTML   HTTP Mocking   Icons   IDE   IDE Plugins   Image Croppers   Image Loaders   Image Pickers   Image Processing   Image Views   Instrumentation   Intents   Job Schedulers   JSON   Keyboard   Kotlin   Layouts   Library Demos   List View   List Views   Localization   Location   Lock Patterns   Logcat   Logging   Mails   Maps   Markdown   Mathematics   Maven Plugins   MBaaS   Media   Menus   Messaging   MIME   Mobile Web   Native Image   Navigation   NDK   Networking   NFC   NoSQL   Number Pickers   OAuth   Object Mocking   OCR Engines   OpenGL   ORM   Other Pickers   Parallax List   Parcelables   Particle Systems   Password Inputs   PDF   Permissions   Physics Engines   Platforms   Plugin Frameworks   Preferences   Progress Indicators   ProGuard   Properties   Protocol Buffer   Pull To   Purchases   Push/Pull   QR Codes   Quick Return   Radio Buttons   Range Bars   Ratings   Recycler Views   Resources   REST   Ripple Effects   RSS   Screenshots   Scripting   Scroll Views   SDK   Search Inputs   Security   Sensors   Services   Showcase Views   Signatures   Sliding Panels   Snackbars   SOAP   Social Networks   Spannable   Spinners   Splash Screens   SSH   Static Analysis   Status Bars   Styling   SVG   System   Tags   Task Managers   TDD &   Template Engines   Testing   Testing Tools   Text Formatting   Text Views   Text Watchers   Text-to   Toasts   Toolkits For   Tools   Tooltips   Trainings   TV   Twitter   Updaters   USB   User Stories   Utils   Validation   Video   View Adapters   View Pagers   Views   Watch Face   Wearable Data   Wearables   Weather   Web Tools   Web Views   WebRTC   WebSockets   Wheel Widgets   Wi-Fi   Widgets   Windows   Wizards   XML   XMPP   YAML   ZIP Codes