Remember when a new piece of code hit Gmail Labs called Mail Goggles - the one that made you do a few math problems before emailing somebody at pre-determined time-frames (such as late at night on the weekends)? Today, Brian was browsing the CyanogenMod (CM) Gerrit and noticed a new series of code - similar to Mail Goggles - has been added: Drunk Mode.


As I'm not a developer, I haven't the slightest idea how it works (and Brian is "in drunk mode" himself) - but I'd guess the "professional" in the description provides something of a hint. Also noteworthy: it has yet to be officially approved, although Cyanogen himself seems to be on-board with it, saying "This is hilarious and awesome, and I would take this feature..."

Now if only they could figure out something to prevent beer goggles....


Update: Artem deciphered the commit in the comment below.

Update 2: Official explanation in this code:

* Drunk mode allows the user to indicate that he wants his communications to be filtered. When
* filtering communications, the drunk mode will ask for a confirmation before performing a
* professional communication (or simply cancel it) during a given period of the day. This should
* allow the user to avoid any inconveniance like calling his boss in the middle of a party...
* 'Professional communications' refers to any communication where the phone number is in the
* ContactProvider and it type is setted as TYPE_WORK, TYPE_WORK_MOBILE or TYPE_WORK_PAGER.
* This feature is dedicated to Fafa, since his misfortune with his coworkers inspired it :)

[Source: CM Gerrit]

Aaron Gingrich
Aaron is a geek who has always had a passion for technology. When not working or writing, he can be found spending time with his family, playing a game, or watching a movie.

  • http://androidpolice.com Brian

    Lies and slander.

    • Aaron Gingrich

      Brian O.: is it worth writing about?
      I'm in drunk mode myself

  • http://www.AndroidPolice.com Artem Russakovskii

    I've taken a look at the code, and indeed, the new CM commits add a Drunk Mode. It seems to prevent you from dialing and sending SMS to what they're calling "professional" numbers (TYPE_WORK, TYPE_WORK_MOBILE, TYPE_WORK_PAGER) if Drunk Mode is enabled.

    Drunk Mode seems to also auto-disable itself in the morning, if set (all you morning drunks are out of luck).

    I think the easiest way to get the gist of the functionality is by reading these xml bits:

    <!-- Drunk Mode -->
    <string name="title_drunk_mode">Drunk mode</string>
    <string name="summary_drunk_mode">Filter professional outgoing communications</string>
    <string name="title_drunk_mode_app">Filtered applications</string>
    <string name="summary_drunk_mode_app">Select which communication modes you want to filter</string>
    <string name="title_drunk_mode_enabled">Enable drunk mode</string>
    <string name="summary_on_drunk_mode_enabled">Professional outgoing communications will be filtered</string>
    <string name="summary_off_drunk_mode_enabled">No communication will be filtered</string>
    <string name="title_drunk_mode_start">Start of drunk mode</string>
    <string name="summary_drunk_mode_start">When to start filtering outgoing calls</string>
    <string name="title_drunk_mode_end">End of drunk mode</string>
    <string name="summary_drunk_mode_end">When to end filtering outgoing calls</string>
    <string name="title_drunk_mode_confirmation_enabled">Request for confirmation</string>
    <string name="summary_on_drunk_mode_confirmation_enabled">A confirmation will be requested before filtering the communication</string>
    <string name="summary_off_drunk_mode_confirmation_enabled">Communications will be filtered without confirmation</string>
    <string name="title_drunk_mode_phone_enabled">Phone</string>
    <string name="summary_on_drunk_mode_phone_enabled">Professional outgoing phone calls will be filtered</string>
    <string name="summary_off_drunk_mode_phone_enabled">No phone calls will be filtered</string>
    <string name="title_drunk_mode_sms_enabled">SMS</string>
    <string name="summary_on_drunk_mode_sms_enabled">Professional SMS will be saved as draft</string>
    <string name="summary_off_drunk_mode_sms_enabled">No SMS will be filtered</string>

  • John Doe

    Dude whatever! Drunk dialing someone is the best activity ever. Especially if you are at a convention with friends, and people can't make it. Drunk dialing FTW!

    • jake

      yea, unless you call your boss and tell him to fuck himself. Drunk mode only deals with work numbers.

  • brian

    drunk mode sounds like a good idea to me

  • http://androidclip.com androidclip

    Great idea. Similar to mail goggles in google mail.

  • David Bidorff

    Actually, in its current implementation, it is much more lazier than Mail Goggles as it only uses the time of the day you specify in order to filter the communications.

    But I'm trying to implement an algorithm similar to Mail Goggles that would allow to unlock to Drunk Mode for a short period of time... So stay tuned ;)

    • Aaron Gingrich

      Cool, (code) author reply :D

    • Gabernasher

      much MORE lazier? Try "much lazier" as more is implied by "lazIER"
      Much more lazy works too.