Content is user-generated and unverified.

FocusGate — Android Focus Launcher

AI-Powered Intent-Based Productivity App


Concept

FocusGate is an Android launcher that replaces the default home screen. Instead of blocking apps after the fact, it intercepts before you open anything — asking what you intend to do, then enforcing that intent while you work.

The core philosophy: friction before, not punishment after.


Technical Foundation

Built as a default launcher (Intent.CATEGORY_HOME), the app has a structural advantage over traditional blockers — it doesn't need to fight Android's security model.

FeatureAndroid API Used
App interceptionLauncher = gateway by default
Foreground app detectionUsageStatsManager
Screen content readingAccessibilityService
Notification suppressionNotificationListenerService
Overlay "Intent Wall"SYSTEM_ALERT_WINDOW
API key storageAndroid Keystore (hardware-encrypted)

Distribution note: Due to Play Store restrictions on AccessibilityService for non-disability apps, distribute via F-Droid or direct APK. This aligns naturally with the open-source model.


Core Features

1. The Intent Wall

The home screen is not an app grid — it's a chat interface.

Before launching any app, the user states their intent:

"I need to check the WhatsApp message from my project group."

The AI parses this and returns a structured permission object:

json
{
  "allow_apps": ["whatsapp"],
  "deep_link": "whatsapp://send?phone=GROUP_ID",
  "time_limit_minutes": 3,
  "focus_category": "communication"
}

The app opens directly to the specific contact/group via deep link — skipping the chat list, the Status tab, and every other distraction surface.


2. The Three-Strike Warning System

When UsageStatsManager or AccessibilityService detects context drift (e.g., you stated "React tutorial" but a MrBeast video title appears on screen):

  • Strike 1 — Nudge: Subtle haptic buzz + small overlay: "Still on React hooks?"
  • Strike 2 — Intervention: Screen blurs. You must type one sentence explaining the switch.
  • Strike 3 — Lockout: App force-closes. That category is locked for 5 minutes.

Strikes reset when a new intent session begins.


3. Semantic Topic Drift Detection

Using AccessibilityService, the app reads visible text on screen (video titles, article headlines, page content) and compares it semantically to the declared intent.

The AI doesn't use keyword matching — it understands that "Linus Torvalds interview" is still on-topic for a Linux study session, but "top 10 gaming setups" is not.

Action on drift: Screen desaturates to greyscale instantly. A prompt appears:

"Drifted from Linux → Entertainment. Heading back?"

One tap to return. No lecture.


4. Focus Credits

Your daily attention is a finite resource. The app makes that visible.

  • Start each day with 100 Focus Credits
  • Earn: Completing tasks, finishing focus sessions on-target, hitting streaks
  • Spend: Opening YouTube costs 8 credits/min. Instagram costs 12/min.
  • Penalty: At zero credits, all non-essential apps switch to Text-Only Mode — no images, no video. Boring by design.

Users can customize the credit costs and penalties per app category. The difficulty curve is yours to set.


5. Proof of Work Gate

Before opening a flagged app (Instagram, YouTube, etc.), the AI gives you a small task tied to your current goal.

If you're a BCA student studying Data Structures:

"Explain the difference between a stack and a queue in one sentence. Then I'll give you 5 minutes."

Why it works: The mental gear-shift from passive consumption to active recall often makes the urge to scroll disappear on its own. And if it doesn't, you've at least reviewed something useful.


6. Accountability Buddy (Duet Blocking)

Link with a friend. If you want to bypass a self-imposed block, your friend gets a push notification asking for permission.

Most people would rather not scroll than send the message: "Can I have 10 more minutes on TikTok?"

The social embarrassment is the mechanism. No shame lecture from an app — just the quiet awareness that someone else knows.


7. Distraction Heatmap

The app doesn't just track how much you got distracted — it tracks why.

After closing a doom-scrolling session, one question appears:

"How were you feeling? → Bored / Anxious / Tired / Procrastinating"

After a week, the dashboard shows:

"You scroll most on weeknights at 10 PM when Tired."

The app then surfaces a suggestion — a short walk, a breathing exercise, a nap timer — instead of just a block.


8. Single-Task Tunnel

Activate Deep Work Mode for a specific goal and the phone's UI collapses.

  • Wallpaper goes minimal/dark
  • All notification icons hidden
  • Only declared apps are accessible (e.g., PDF reader + notes app for studying)
  • Switching to any other app triggers the Intent Wall immediately

Inside this mode, a persistent Quick Query bubble lets you ask the AI questions without leaving the tunnel. It answers — but never shows external links, news, or unrelated content. You stay in the flow.


9. Session Summaries

At the end of every Deep Work session, the AI generates a plain-English report:

"You spent 52 minutes on the Operating Systems PDF, wrote 180 words of notes, and had 2 drift attempts (both caught). You're 20% through this chapter."

No generic "great job." Just honest progress data.


10. Bring Your Own Brain (BYO API Key)

Users input their own API keys. The app never sees your usage bills, and you choose which model fits which task.

Suggested setup:

  • Intent checks: Gemini Flash — fast, cheap, good enough
  • Study tutor / Socratic mode: Claude Sonnet — strong reasoning, follows system prompts well
  • Code help: Claude Sonnet or GPT-4o
  • Offline fallback: Gemma 2B running locally on the phone's NPU — no internet needed

Keys are stored in Android Keystore, encrypted at hardware level. Never leave the device.


New Ideas

11. Intent Templates

Save frequently used intents as one-tap shortcuts:

  • "Quick WhatsApp check" → opens WhatsApp, 3 min, specific group
  • "YouTube study video" → opens YouTube, 20 min, topic-locked to current subject
  • "Evening catch-up" → unlocks all apps, 30 min, no restrictions

Reduces the friction of typing an intent every time, without removing the intentionality.


12. Scheduled Open Windows

Pre-define guilt-free distraction slots in the app's weekly schedule.

"Every day 8:00–8:30 PM: all apps open, no questions asked."

During these windows, FocusGate steps completely out of the way. This prevents the psychological trap of feeling like the app is a prison — you always know freedom is scheduled, not forbidden.


13. Contextual Auto-Suggestions

Based on time of day, day of week, and your historical patterns, the app proactively suggests an intent when you pick up your phone:

"It's 10 AM on a Tuesday. Starting your usual study block?"

One tap to confirm. Reduces the daily decision fatigue of "what should I focus on now."


14. Reentry Ritual

After a timed distraction session ends (e.g., 5-minute Instagram break), the app doesn't immediately snap back to work mode.

Instead, a 10-second transition screen appears — a breath prompt, a reminder of your current goal, or just a dark screen with the intent displayed. Small reset. Clears the mental residue before deep work resumes.


15. App Category Tagging (Onboarding)

During first setup, the user swipes each installed app into one of three buckets:

  • 🟢 Productive (study apps, note apps, browser for work)
  • 🟡 Neutral (maps, camera, calculator)
  • 🔴 Distracting (social media, streaming, games)

The AI uses this map for all enforcement decisions. Users can retag at any time. This makes the app feel personal, not authoritarian.


16. Focus Streak + Milestone System

Track consecutive days where you hit your focus targets. At milestone days (7, 30, 100), unlock cosmetic rewards: new launcher themes, new Intent Wall styles, new streak badges.

No premium paywall. Just acknowledgment that discipline compounds.


Privacy Architecture

  • All intent analysis runs locally where possible
  • Screen content read by AccessibilityService is processed immediately and discarded — never stored, never sent
  • API calls contain only the intent string and current app context — no screen data
  • Full README.md documents every permission the app requests and exactly why
  • Open source: the code is the privacy policy

Modes Summary

ModeAI RoleStrictness
StudySocratic tutor, no answer-dumpingHigh
ResearchAnswer engine, blocks off-topic queriesMedium-High
CoderTechnical partner, markdown + code viewHigh
Deep WorkSilent enforcer, no queriesMaximum
Open WindowOffNone
Content is user-generated and unverified.
    FocusGate: AI-Powered Android Focus Launcher Concept | Claude