# pandaxu/smstransmitter architecture

> Architecture diagram of the GitHub repository pandaxu/smstransmitter, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-07-18). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/pandaxu/smstransmitter
- Repository: https://github.com/pandaxu/smstransmitter

## Overview

##### Project type and purpose
- This is a native Android mobile app (“短信助手”) whose sole purpose is to automatically forward any incoming SMS either to another phone number (via the native SMS API) or to WeChat.

##### File structure
- Top‐level: Gradle build files, settings.gradle, .gitignore, local.properties.
- Module “app”:
- src/main/java/com/pandacrm/smstransmitter:
– BootReceiver.java
– TransmitReceiver.java
– TransmitService.java
– MainActivity.java
– NotificationIcon.java
- src/androidTest & src/test: instrumented tests and unit tests
- build.gradle, proguard-rules.pro, gradle wrapper—standard Android build configuration.

##### README for additional insights
- Core feature: “收到短信自动转发到另一手机/微信”
- Uses dynamic permission library (PermissionsDispatcher)
- Optionally uses a third‐party Android UI library (wasabeef/awesome-android-ui)
- No backend server—forwarding is done purely on the device

## Diagram (Mermaid)

```mermaid
flowchart TD
    subgraph "Mobile App"
        BR["BootReceiver"]:::background
        TR["TransmitReceiver"]:::background
        TS["TransmitService"]:::background
        MA["MainActivity"]:::ui
        NI["NotificationIcon"]:::ui
        PD["PermissionsDispatcher"]:::config
        AL["ActivityLayout"]:::config
        MF["AndroidManifest"]:::config
        BG["BuildGradle"]:::config
    end

    OS["Android OS (SMS Broadcast subsystem)"]:::external
    SMSC["SMSC Network"]:::external
    WECHAT["WeChat App/SDK"]:::external

    OS -->|"Device Boot Intent"| BR
    BR -->|"Registers TransmitReceiver"| TR
    OS -->|"SMS_RECEIVED Broadcast"| TR
    TR -->|"Starts TransmitService"| TS
    TS -->|"Check/Request Permissions"| PD
    PD -->|"Permission Result"| TS
    TS -->|"sendTextMessage() to SMSC"| SMSC
    TS -->|"Launch WeChat Intent/API"| WECHAT
    TS -->|"Post Status Notification"| NI
    MA -->|"Update Settings (SharedPreferences)"| TS

    click BR "https://github.com/pandaxu/smstransmitter/blob/master/app/src/main/java/com/pandacrm/smstransmitter/BootReceiver.java"
    click TR "https://github.com/pandaxu/smstransmitter/blob/master/app/src/main/java/com/pandacrm/smstransmitter/TransmitReceiver.java"
    click TS "https://github.com/pandaxu/smstransmitter/blob/master/app/src/main/java/com/pandacrm/smstransmitter/TransmitService.java"
    click MA "https://github.com/pandaxu/smstransmitter/blob/master/app/src/main/java/com/pandacrm/smstransmitter/MainActivity.java"
    click NI "https://github.com/pandaxu/smstransmitter/blob/master/app/src/main/java/com/pandacrm/smstransmitter/NotificationIcon.java"
    click AL "https://github.com/pandaxu/smstransmitter/blob/master/app/src/main/res/layout/activity_main.xml"
    click MF "https://github.com/pandaxu/smstransmitter/blob/master/app/src/main/AndroidManifest.xml"
    click BG "https://github.com/pandaxu/smstransmitter/blob/master/app/build.gradle"
    click PD "https://github.com/pandaxu/smstransmitter/blob/master/app/build.gradle"

    classDef background fill:#D0E8FF,stroke:#004080
    classDef ui fill:#E0FFE0,stroke:#007000
    classDef external fill:#FFE0E0,stroke:#800000
    classDef config fill:#F5E6FF,stroke:#800080
```
