Skip to content

About

πŸ›‘οΈ Consent-first, open-source parental controls for Android - Bypass-evident, not bypass-proof

Resources

Code of conduct

Contributing

Security policy

Stars

2 stars

Watchers

0 watching

Forks

Repository files navigation

πŸ›‘οΈ OpenParental

Consent-first, open-source parental controls for Android.

Bypass-evident, not bypass-proof β€” the kid always knows it's there, and the parent always knows when it's off.

CI License: MIT PRs Welcome Kotlin Flutter NestJS

Why OpenParental? β€’ Features β€’ Architecture β€’ Quick start β€’ Roadmap β€’ Contributing


πŸ’‘ Why OpenParental?

Most parental-control apps compete on how well they hide: stealth modes, covert screenshots, secret microphones. OpenParental makes the opposite bet β€” supervision a teenager can verify beats spyware they'll route around.

  • Overt and consent-based. The child app has a UI, says what it does, and shows what it reports. Nothing runs in secret.
  • Bypass-evident by design. Without Device Owner you can't make an app un-killable β€” so OpenParental doesn't pretend to. Instead, every bypass (disabling accessibility, revoking a permission, force-stopping the app, the device going dark) becomes a parent alert within minutes. Turning it off is always possible β€” and never silent.
  • Hard privacy lines. No covert audio or camera. No ambient recording. No covert screen capture. No server-side storage of minors' photos. No Device Owner / no device wipe. These are design constraints, not roadmap items.

✨ Features

Feature How it works
πŸ”— Pairing Parent generates a short code β†’ child app claims it β†’ device gets its own scoped token
πŸ”’ Remote lock & ping Command spine: enqueue β†’ push/poll β†’ device ack β†’ result, fully audited
🚫 App blocking Versioned policy engine β€” blocklists, per-app daily limits, schedules (e.g. no games after 9pm)
🌐 DNS content filter DNS-only VpnService blocks filtered domains β€” no traffic inspection, no MITM
🧭 Guided onboarding Child-app setup walks through every grant β€” battery, accessibility, usage, admin, filter, OEM auto-start
⏱️ Screen-time limits Accessibility service bounces blocked / over-limit / out-of-schedule apps
🚨 Tamper evidence Disabled accessibility, revoked permissions, force-stop, "went dark" β€” all surfaced as alerts
πŸŒ™ Went-dark reconciler Presence tracked in Redis, reconciled from Postgres β€” a Redis restart never causes a false alarm
πŸ†• New-app detection Parent is alerted when a new app is installed
πŸ“ Location Periodic location reporting to the parent dashboard
πŸ“Š Usage visibility Daily per-app usage reported to the backend
πŸ”” Alert feed Tamper, went-dark, new-app and unblock-request alerts in the parent app
πŸ“Ί Live screen MediaProjection granted once at child setup β†’ parent taps Live Screen β†’ JPEG frames over Socket.IO (no per-view kid popup)

πŸ—οΈ Architecture

flowchart LR
    P["πŸ“± Parent app<br/>(Flutter)"] -- "REST + JWT" --> B
    subgraph B["βš™οΈ Backend (NestJS)"]
        direction TB
        API[API] --- PG[(Postgres<br/>Prisma)]
        API --- R[(Redis<br/>presence)]
        API --- F[FCM push]
    end
    B -- "commands Β· policies" --> C["πŸ§’ Child app<br/>(Kotlin, sideloaded)"]
    C -- "heartbeat Β· events Β· tamper<br/>location Β· usage" --> B
Loading

Three components, one monorepo:

openparental/
β”œβ”€β”€ research/flashget/ Reference monorepo: APKs (LFS), JADX decompile β€” drives UI/flow parity ([`docs/FLASHGET_REFERENCE_BUILD.md`](docs/FLASHGET_REFERENCE_BUILD.md))
β”œβ”€β”€ android-installer/   Kids bootstrap APK (`app.monii.installer`), FlashGet installer UX ref
β”œβ”€β”€ backend/           NestJS + Postgres (Prisma) + Redis + FCM
β”‚   β”œβ”€β”€ src/           auth Β· pairing Β· devices Β· policies Β· commands Β·
β”‚   β”‚                  events Β· heartbeats Β· tamper Β· alerts Β· locations
β”‚   └── test/          77 unit tests + e2e
β”œβ”€β”€ android-managed/   Kotlin child app (sideloaded APK)
β”‚   └── app/           FGS supervisor Β· accessibility enforcement Β·
β”‚                      tamper watchers Β· heartbeat Β· visibility reporters
β”œβ”€β”€ app-parent/        Flutter parent app (Android APK today)
β”‚   └── lib/           login Β· pairing Β· dashboard Β· lock/ping Β·
β”‚                      policy editor Β· alert feed
β”œβ”€β”€ web/               Next.js marketing site + **parent web dashboard**
β”‚   └── app/           landing (both app downloads) Β· /login Β· /dashboard
└── .github/           CI: backend, web, Android assemble, Flutter analyze

The flow, end-to-end: parent registers β†’ creates a pairing code β†’ child app claims it β†’ parent sees the device, sends Lock/Ping, edits a blocked-apps policy that pushes to the device β†’ the child app enforces it and reports heartbeat, tamper, new apps, location and usage β†’ parent gets alerts.

πŸš€ Quick start

1. Backend β€” Node 20+, Docker

cd backend
cp .env.example .env
docker compose up -d              # Postgres 16 + Redis 7
npm install
npm run prisma:generate && npm run prisma:migrate
npm run start:dev                 # β†’ http://localhost:3000/health

2. Child app β€” JDK 17, Android Studio

Open android-managed/ in Android Studio and run it on a device. In the app, set the backend URL (http://10.0.2.2:3000 from an emulator) and enter a pairing code.

3. Parent β€” Flutter Android app or web dashboard (iPhone-friendly)

cd web && cp .env.example .env.local && npm install && npm run dev
# Landing + dashboard β†’ http://localhost:3000 (set NEXT_PUBLIC_API_URL to your API)

See docs/WEB_AND_IOS.md for iPhone/Safari and deploy notes.

3b. Parent Android app β€” Flutter 3.22+

cd app-parent
flutter pub get
flutter run                       # set the backend URL on the login screen

Register, create a pairing code, type it into the child app β€” the device appears on your dashboard.

πŸ”₯ Firebase setup (optional β€” needed for push notifications)

Push notifications (FCM) let commands arrive instantly and alerts appear on the parent's phone without waiting for the next poll cycle. Without Firebase, the system works but devices poll every 60 seconds.

1. Create a Firebase project

Go to the Firebase Console and create a new project (or reuse an existing one).

2. Android (child app)

  1. In Firebase Console β†’ Project Settings β†’ Add app β†’ Android
  2. Package name: app.monii.managed
  3. Download google-services.json
  4. Place it at android-managed/app/google-services.json

3. Backend

  1. In Firebase Console β†’ Project Settings β†’ Service accounts β†’ Generate new private key
  2. Download the JSON file
  3. Place it at backend/fcm-service-account.json
  4. Set in backend/.env:
    FCM_SERVICE_ACCOUNT_PATH=./fcm-service-account.json
    

4. Parent app (Flutter)

  1. In Firebase Console β†’ Project Settings β†’ Add app β†’ iOS and Android (for the parent app package)
  2. Follow the FlutterFire setup:
    cd app-parent
    flutter pub add firebase_core firebase_messaging
    flutterfire configure  # downloads google-services.json + GoogleService-Info.plist
  3. The backend registers the parent's FCM token on login via PATCH /auth/fcm-token

πŸ—ΊοΈ Roadmap

  • v1 β€” enforcement, limits, tamper-evidence, location, alerts (built, CI-green)
  • FCM push β€” instant command delivery (wire your Firebase project; see Firebase setup)
  • Guided onboarding β€” per-permission grant flow in the child app (incl. OEM auto-start)
  • DNS content filter β€” DNS-only VpnService, domain blocklists
  • Per-family DNS blocklist β€” parent app Family policy β†’ DNS tab pushes blockedDomains to the child VPN filter
  • Filter lists β€” maintained category blocklist sources beyond Cloudflare Families defaults
  • Live screen (clip) β€” setup-time MediaProjection grant + Socket.IO JPEG relay; parent tap streams with no kid popup
  • v1.1 β€” live painting overlay
  • v1.5 β€” WebRTC upgrade for screen-view (replace clip transport) + AMBER mode hardening

🧰 Tech stack

Component Stack
Backend Node 20, NestJS, TypeScript, Prisma + Postgres 16, Redis 7, firebase-admin
Child app Kotlin 2.0, AGP 8.6, Gradle 8.9, SDK 35, JDK 17
Parent app Flutter 3.22+, Dart
CI GitHub Actions β€” backend build + 77 tests, assembleDebug, flutter analyze

🀝 Contributing

Contributions are welcome β€” especially OEM survival reports (does the FGS anchor survive overnight on your Xiaomi/Samsung/OnePlus?), enforcement edge cases, and parent-app UX. See CONTRIBUTING.md to get started.

One rule is non-negotiable: PRs adding covert surveillance (hidden recording, stealth modes, secret capture) will be declined β€” that's the whole point of the project. See why OpenParental?

πŸ” Security

Found a vulnerability? Please report it privately via GitHub Security Advisories β€” see SECURITY.md.

πŸ“„ License

MIT Β© 2026 Suhaib


If OpenParental's approach resonates with you, a ⭐ helps other parents find it.

About

πŸ›‘οΈ Consent-first, open-source parental controls for Android - Bypass-evident, not bypass-proof

Resources

Code of conduct

Contributing

Security policy

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages