# Google Play VPN Service & USE_EXACT_ALARM Special App Access Declaration Guide

> Google Play restricts high-privilege OS capabilities under Special App Access strictly to verified core-purpose applications. `android.net.VpnService` requires a verified D-U-N-S Organization account and core VPN/security functionality, while `USE_EXACT_ALARM` is limited exclusively to alarm clock, timer, and calendar apps — requiring all other apps to use `WorkManager` or `SCHEDULE_EXACT_ALARM`.

- **Canonical URL**: https://gootester.com/declarations/vpn-and-exact-alarm-special-access
- **Play Console Location**: `Monitor & improve -> Policy -> App content -> Special app access`
- **Mandatory For**: Conditional (Apps Declaring VpnService, USE_EXACT_ALARM, or High-Risk Permissions)
- **Account Requirement**: D-U-N-S Organization Required for Regulated Tiers

## Step-by-Step Walkthrough
1. **Scan your merged `.aab` manifest for restricted Special Access permissions**: Run `bundletool dump manifest --bundle=app-release.aab | grep -E 'USE_EXACT_ALARM|BIND_VPN_SERVICE|MANAGE_EXTERNAL_STORAGE|QUERY_ALL_PACKAGES'` before uploading to Play Console.
2. **Replace `USE_EXACT_ALARM` with `WorkManager` or user-granted `SCHEDULE_EXACT_ALARM` on non-clock apps**: Habit trackers, fasting reminders, medication logs, and todo apps are NOT permitted to declare `USE_EXACT_ALARM` unless calendar/alarm is the sole core purpose; remove `USE_EXACT_ALARM` via `tools:node="remove"` and use `SCHEDULE_EXACT_ALARM` or inexact alarms.
3. **Verify D-U-N-S Organization account & encryption standards before declaring `VpnService`**: Personal Play Console accounts cannot publish `VpnService` apps. Verified organizations must encrypt tunnel traffic end-to-end, obey Data Safety disclosures, and never manipulate ads or monetize redirected user traffic.
4. **Supersede older `.aab` builds across ALL tracks after removing restricted permissions**: If an earlier `versionCode 1` on `Internal testing` or `Closed testing` contained `USE_EXACT_ALARM`, roll out a clean `versionCode 2` across every affected track so Play Console clears the Special Access blocker.

## Common Rejection Traps
- **Declaring `USE_EXACT_ALARM` in a habit tracker, daily quote app, or water reminder**: Google Play strictly denies `USE_EXACT_ALARM` for general daily reminder notifications; non-alarm apps must degrade gracefully to `AlarmManager.setAndAllowWhileIdle` or user-authorized `SCHEDULE_EXACT_ALARM`.
- **Using local loopback `VpnService` inside an indie ad-blocker or screen-time tracker on a Personal account**: Even local DNS filtering via `VpnService` invokes `android.permission.BIND_VPN_SERVICE`, triggering Google's VPN core-purpose and mandatory Organization account enforcement.
- **Bundling `QUERY_ALL_PACKAGES` just to check if WhatsApp or Instagram is installed**: Android 11+ (`API 30+`) requires using targeted `<queries><package android:name="..." /></queries>` manifest declarations instead of broad `QUERY_ALL_PACKAGES`.

## Fixing the #1 Flutter & Expo Notification Blocker: `USE_EXACT_ALARM`

Introduced in Android 13 (`API 33`) and strictly policed across Android 14–16 (`API 34–36`), `android.permission.USE_EXACT_ALARM` grants unrevokable exact-second wakeups without prompting the user. Because unrestricted wakeups ruin standby battery life, Google Play limits `USE_EXACT_ALARM` exclusively to apps whose **primary identity** is an alarm clock, countdown timer, or calendar.
Whenever a habit tracker, prayer reminder, study flashcard app, or hydration logger bundles `USE_EXACT_ALARM` (frequently copied from outdated `flutter_local_notifications` or `notifee` READMEs), Play Console blocks the upload until a Special Access declaration is approved — and then rejects the declaration because the app isn't an alarm clock! Stripping `USE_EXACT_ALARM` and switching to `SCHEDULE_EXACT_ALARM` (checking `AlarmManager.canScheduleExactAlarms()` at runtime) or `WorkManager` resolves the block permanently.

## Why VPN & Tunneling Apps Require Verified D-U-N-S Organizations

Because `VpnService` can inspect and route every network packet leaving an Android handset, Google Play classifies VPN apps among its highest-trust categories alongside clinical health and regulated finance. Individual personal Play Console accounts are blocked from publishing apps utilizing `VpnService`; developers building legitimate WireGuard, OpenVPN, or enterprise SASE clients must register a verified D-U-N-S Organization developer account.
For non-VPN apps preparing for 14-day closed testing on personal accounts via GOOtester ($6 Basic, $12 Standard, $20 Premium), auditing your merged manifest for stray Special Access permissions before Day 1 guarantees your initial `.aab` enters Closed Testing cleanly without multi-week policy appeals.
