# Privacy Policy — Illam

**Last updated:** November 28, 2026

Illam (`io.github.pvkarthikk.illam`) is a household management app built to run offline on your family’s phones.

## No Accounts & No App Servers

- There are **no user accounts**.
- **No Illam server** stores your household data.
- Your household data (lists, chores, trips, meals, expenses, staff records, and settings) lives in an encrypted SQLite database (`SQLite3MultipleCiphers`) on the phones of your household members.

## Local Wi-Fi Sync

When family members pair phones and sync changes:

- Sync happens **directly between family phones on the same home Wi-Fi network**.
- All sync traffic and pairing messages are **end-to-end encrypted**.
- No third-party or developer server relays or stores your synced data.

## Camera, Bill Scanner (OCR) & QR Pairing

If you grant **Camera** permission or pick a bill photo/image:

- **QR Pairing:** QR codes for adding family members or importing Remote Sync config are scanned locally on-device using Google ML Kit Barcode Scanning (via `mobile_scanner`).
- **Bill Scanner:** Receipt images are processed locally on-device using Google ML Kit Text Recognition (`com.google.mlkit:text-recognition`) to extract merchant, date, and line items before you review and save them.
- Temporary camera capture files created for receipt scanning are deleted as soon as you save or close the scanner. Your photos and extracted bill text are **never** uploaded to developer servers.

## Encrypted Backups

If you choose to turn on backups:

- Backups are **passphrase-encrypted on your phone** before leaving the device.
- Encrypted `.nmbak` archives are stored **only in the destination you configure**: a local/external folder (phone storage, SD card, USB drive), Nextcloud, WebDAV, an S3-compatible bucket, an SFTP server, or (when configured) a connected cloud provider.
- **The developer never receives or has access to your backups, encryption passphrase, server credentials, or tokens.**

## Remote Sync (Experimental — Bring Your Own Firebase)

Remote Sync is **off by default**. If you turn it on and enter credentials for your own Firebase project:

- Updates are **compressed and end-to-end encrypted on your phone** with your home's shared key before leaving the device.
- Encrypted batches are relayed **only through the Cloud Firestore project you configured** using Firebase Anonymous Authentication on your own Firebase account.
- **The developer has no access to your Firebase project, API key, or synced content.**

## Gmail Invoice Import (Experimental — Bring Your Own Google OAuth)

Gmail Invoice Import is **off by default**. If you turn it on and configure your own Google Cloud Desktop App OAuth client:

- Illam signs in via PKCE loopback directly against Google and requests read-only Gmail access (`gmail.readonly`) using **your own OAuth client**.
- Emails and PDF attachments from supported retailers (Zepto, Blinkit, Amazon, Flipkart) are fetched directly to your phone and parsed **locally on-device** into unapproved Draft expenses.
- Nothing enters your household ledger unless you review and tap **Account it**, and **the developer never has access to your emails, OAuth tokens, or client secret.**

## Household & Staff Details

- Information you enter inside your home, including house-help (staff) names, attendance, paid/unpaid leave, salary records, and **phone numbers**, is shared only with the members of your home.

## Telemetry, SDK Diagnostics & Permissions

- **No advertising SDKs or third-party behavioral analytics.**
- **No SMS, call log, or notification-listener permissions or access.**
- Android cloud auto-backup and device-to-device transfer of app data are disabled (`allowBackup="false"`, excluded via `data_extraction_rules.xml`).
- **Google ML Kit operational diagnostics:** Illam bundles Google ML Kit on-device vision libraries (`text-recognition` and barcode scanning) for receipt scanning and QR pairing. Under [Google's ML Kit Android Data Disclosure](https://developers.google.com/ml-kit/android-data-disclosure), the ML Kit SDK may periodically send minimal anonymized operational diagnostics (API latency, error codes, model info, and installation/device identifiers — **never** your camera photos, bill text, QR payloads, or household data) directly to Google.

## How to Delete Your Data

You remain in full control of your data at all times:

- **Remove from this phone:** Open **Profile → Remove from this phone** to wipe the app’s local encrypted database and keys from your device.
- **Leave a home:** Leave your shared home from **Home & members**.
- **Delete a home:** Admins can permanently delete a home for all members.
- **Delete backups:** Delete `.nmbak` backup files directly in your configured folder, Nextcloud/WebDAV, S3, or SFTP destination.

## Contact

- **Developer email:** pvkarthikk@gmail.com
- **Source & issue tracker:** https://github.com/pvkarthikk/illam-app/issues
