Skip to content
simlinedevPublic

About

No description, website, or topics provided.

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Simline Community for Android

The Android app for Simline Community servers: it turns an Android phone into the SMS line of your own Simline server. Your apps, AI agents and dashboard send texts through the phone's SIM, and new incoming texts reach your server.

  • Pairs with your server: you choose its address when you pair.
  • Sends and receives SMS, multi-SIM, with incoming-text filters on the phone.
  • Never reads the texts already on your phone, never touches your call log.
  • No analytics, no crash reporting, no Google Play services or Firebase. It talks only to your server.

Install

  1. On the phone with the SIM, download the latest simline-community-X.Y.Z.apk from Releases and open it. Android asks you to allow installs from your browser or file manager.
  2. Check the download if you like: each release lists the APK's SHA-256 and the signing certificate's SHA-256 (sha256sum simline-community-X.Y.Z.apk). Updates must be signed with the same certificate.
  3. Android 13 and later: if Android blocks the SMS permission for an app installed this way ("Restricted setting"), open Settings → Apps → Simline Community, tap ⋮ → Allow restricted settings, then come back to the app. The app shows these steps when it happens.

Simline on Google Play is a different app (for Simline's hosted service) and can't pair with a self-hosted server; both can be installed side by side.

Pair with your server

  1. In your server's dashboard, open Devices → Pair a phone. It shows a QR code and a 6-character code.
  2. Either scan the QR code with the phone's camera (or a QR scanner app): it opens Simline Community with your server and the code filled in. Or open the app and type your server's address (e.g. https://sms.example.com) and the code.
  3. Tap Connect. The app checks that a Simline server answers at that address, then pairs.

The address must be https://. To pair with another server, disconnect in the app (menu → Disconnect this phone) and pair again.

The app keeps a live connection to your server while it runs and checks in every 15 minutes when Android stops it. Push wake-ups (Firebase) are not part of this build. Open Keep Simline running in the app to stop Android from pausing it.

Build from source

Requirements: JDK 17 or later and the Android SDK (platform 36, build-tools 36). Point Gradle at the SDK with ANDROID_HOME or a local.properties file (sdk.dir=/path/to/sdk).

./gradlew :app:testDebugUnitTest :app:lintDebug   # unit tests and lint
./gradlew :app:assembleDebug                      # app/build/outputs/apk/debug/app-debug.apk
scripts/check-permissions.sh                      # the APK asks only for PERMISSIONS.md

Debug builds also accept http:// for a server on your machine or network, so you can run the server with wrangler dev and pair the emulator with http://10.0.2.2:8787 (a development server also accepts the pairing code DEVABC).

Release builds

export SIMLINE_COMMUNITY_KEYSTORE=/path/to/release.keystore
export SIMLINE_COMMUNITY_KEYSTORE_PASSWORD=…  SIMLINE_COMMUNITY_KEY_ALIAS=…  SIMLINE_COMMUNITY_KEY_PASSWORD=…
./gradlew -Psimline.versionName=1.2.3 -Psimline.versionCode=10203 :app:assembleRelease

Without a keystore the release APK is unsigned. Never commit a keystore. Version codes are major * 10000 + minor * 100 + patch, the scheme the server's update prompts use.

Pushing a tag vX.Y.Z runs .github/workflows/release.yml: tests, a signed APK and a GitHub release. It needs the repository secrets SIMLINE_COMMUNITY_KEYSTORE_BASE64, SIMLINE_COMMUNITY_KEYSTORE_PASSWORD, SIMLINE_COMMUNITY_KEY_ALIAS and SIMLINE_COMMUNITY_KEY_PASSWORD; without them it builds an unsigned APK as a workflow artifact and publishes nothing.

Layout

Path What
app/src/main/java/dev/simline/app/link The connection to the server: pairing, the WebSocket, catch-up
app/src/main/java/dev/simline/app/sms Sending and receiving SMS
app/src/main/java/dev/simline/app/ui The screens (Jetpack Compose, Material 3)
app/src/main/java/dev/simline/app/AppVariant.kt Server, privacy and update links
app/src/test Unit tests (JVM, Robolectric)

The phone ↔ server protocol is defined by the server's schemas (src/protocol in simlinedev/simline).

Privacy, security, license

About

No description, website, or topics provided.

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages