Back to overview
Deep Dive // System Architecture

Built for physical hardware sovereignty.

Examine how every component inside ApnaSandesh functions offline, from the TelephonyManager RIL radio hooks to the encrypted Room SQLite local storage.

02 / System Architecture & Features

Engineered for physical reliability, not cloud lock-in.

Every layer of ApnaSandesh is designed for local business owners who want complete ownership over their outreach without server bills, API downtime, or privacy compromises.

01/HARDWARE TELEPHONYCarrier Compliant

Autonomous SIM dispatch with adaptive safety intervals

Rather than routing your business messages through expensive third-party cloud aggregators with 300% markup, ApnaSandesh leverages Android’s native TelephonyManager and SmsManager directly. Sequential dispatches are spaced by an enforced 3.5s to 6.0s jittered throttle to honor carrier fair-use policies and protect your SIM reputation.

Operates seamlessly with single or dual SIM configurations across Jio, Airtel, Vodafone Idea, and BSNL without requiring DLT portal registration for individual subscriber quotas.

Carrier Markup
₹0.00 / SMS
Dispatch Throttle
3.5s – 6.0s
Dual-SIM Mode
Auto-Select
Autonomous SIM dispatch with adaptive safety intervals
SPECIMEN 01 // HIGH RES100% OPERATIONAL
02/PRIVACY & DATA CUSTODYZero Cloud Storage

100% on-device Room SQLite database. Zero cloud leakage.

Cloud SMS portals store your customer names, mobile numbers, purchase history, and message content on remote multi-tenant databases prone to scraping, breaches, and competitive surveillance. ApnaSandesh writes every contact, campaign log, and opt-out suppression entry to an encrypted Room SQLite database inside your phone’s isolated application sandbox.

Even if you completely disable Wi-Fi and Cellular Mobile Data, ApnaSandesh executes your queued campaigns flawlessly using only cellular baseband radio.

Remote Server Calls
0 per day
Database Engine
Room 2.6 SQLite
Data Encryption
Device Sandbox
100% on-device Room SQLite database. Zero cloud leakage.
SPECIMEN 02 // HIGH RES100% OPERATIONAL
03/TEMPLATING & ENCODINGUnicode Protected

Real-time dynamic template tokens with live GSM-7 safety

Personalize bulk messages with custom placeholder tags ({name}, {date}, {balance}, {order_id}) imported directly from your contact spreadsheets. ApnaSandesh’s live tokenizer recalculates character counts on keystroke, warning you before unicode characters convert a standard 160-char SMS into a 70-char UCS-2 multi-part segment.

Comes pre-loaded with 30+ production-tested Hindi, Hinglish, and English templates designed for billing reminders, festive offers, and service updates.

Pre-loaded Templates
30+ Industry Sets
Token Interpolation
Sub-millisecond
Encoding Guard
GSM-7 Auto-lock
Real-time dynamic template tokens with live GSM-7 safety
SPECIMEN 03 // HIGH RES100% OPERATIONAL
04/DATA INGESTIONInjection Safe

Sanitized CSV contact importer with automated deduplication

Bring your existing customer databases without tedious reformatting. ApnaSandesh accepts standard comma-delimited or semicolon-delimited CSV spreadsheets exported from Excel, Google Sheets, Tally, Vyapar, or Khatabook. The ingestion pipeline strips malicious formula injections, validates 10-digit Indian mobile formats, and suppresses unsubscribed numbers.

Import 500 contacts in under 1.2 seconds directly from your phone’s storage or SD card.

Import Speed
500 rows / 1.2s
Format Validation
E.164 & 10-Digit
Opt-Out Filter
Auto-suppressed
Sanitized CSV contact importer with automated deduplication
SPECIMEN 04 // HIGH RES100% OPERATIONAL
05 / Engineering Blueprint & Security

Native Android architecture. Zero network sockets.

Written in Kotlin with Jetpack Compose, Dagger Hilt, and Room SQLite. ApnaSandesh operates inside Android’s isolated security sandbox with complete offline autonomy.

TELEPHONY PIPELINE & PRIVACY SANDBOX100% ON-DEVICE
┌─────────────────────────────────────────────────────────────────┐
│               ANDROID STORAGE ACCESS FRAMEWORK                  │
│       Contacts Address Book    │     CSV Spreadsheet Import     │
└───────────────────────────────┬─────────────────────────────────┘
                                │ SAF Intent (Sandboxed read)
                                ▼
┌─────────────────────────────────────────────────────────────────┐
│                   APNASANDESH DOMAIN ENGINE                     │
│   • E.164 Normalizer (+91)    │ • Dynamic Template Renderer     │
│   • Duplicate Resolver        │ • GSM-7 / UCS-2 Segment Guard   │
└───────────────────────────────┬─────────────────────────────────┘
                                │
                                ▼
┌─────────────────────────────────────────────────────────────────┐
│               LOCAL ROOM DATABASE (SQLITE SANDBOX)              │
│   • customers table           │ • message_templates             │
│   • campaigns table           │ • opt_out_suppression_firewall  │
└───────────────────────────────┬─────────────────────────────────┘
                                │
          ┌─────────────────────┴─────────────────────┐
          │                                           │
          ▼ Mode 1: COMPOSER                          ▼ Mode 2: DIRECT SIM
┌───────────────────────────────┐           ┌───────────────────────────────┐
│   COMPOSER SMS INTENT         │           │   FOREGROUND SERVICE WAKELOCK │
│   Handoff to Google Messages  │           │   Sequential throttle (3s-6s) │
│   Zero Android permissions    │           │   Dual-SIM Slot Selection     │
└───────────────────────────────┘           └───────────────┬───────────────┘
                                                            │
                                                            ▼
                                            ┌───────────────────────────────┐
                                            │   ANDROID TELEPHONY MANAGER   │
                                            │   SmsManager.sendTextMessage  │
                                            └───────────────┬───────────────┘
                                                            │ Cellular Radio
                                                            ▼
                                            ┌───────────────────────────────┐
                                            │   PHYSICAL SIM CARD (JIO/AIR) │
                                            └───────────────────────────────┘
01 / TelephonyManager & SmsManager
Direct Carrier Radio Access

Dispatches messages through native Android RIL radio interface. Honors carrier limits with configurable 3.5s to 6.0s spacing intervals.

02 / Android Foreground Service
Background Process Stability

Uses an explicit Android Foreground Service with a sticky status notification so OEM battery killers (MIUI, ColorOS, OneUI) do not terminate dispatches mid-campaign.

03 / Room 2.6 Persistence
Isolated SQLite Storage

Every contact, campaign, and template is saved locally in private app storage. Zero cloud synchronizers. Complete data custody remains in your pocket.

04 / Opt-Out Firewall
Autonomous Unsubscribe Guard

Recipients who reply with STOP, UNSUBSCRIBE, or CANCEL are automatically added to the local suppression table and excluded from future dispatches.