The Android app
The app turns an Android phone into a gateway. It runs on Android 8.0 and later.
The app is still in development
It has been run on one phone model so far. Pairing with a typed code, the permission steps, sending a message and receiving its delivery report worked there. Test it on your own phone before you depend on it.
Install it
Open this link on the phone:
Download YourSMS Gateway for Android (version 0.1.0, 20 MB)
- Open the downloaded file.
- Android asks whether your browser may install apps. Allow it, then choose Install.
- Open the app and pair the phone.
The app is not on Google Play, and will not be: Google Play allows the SMS permissions only for apps that replace the phone's messaging app. That is why you install it from a file, and why Android asks first.
This is a test build
It is for trying the gateway on phones you control. It is signed with a development key, so a later official build cannot update it in place: you will uninstall this one and pair the phone again.
Build it yourself
You need JDK 17 and the Android SDK.
git clone https://github.com/GerardNgabo/yoursms-gateway.git
cd yoursms-gateway/android
./gradlew assembleDebug
adb install app/build/outputs/apk/debug/app-debug.apkChoosing a phone
- Any phone on Android 8.0 or later with a working SIM slot. A phone with two SIM cards can send from either.
- Use a phone you can leave alone: on a charger, on Wi-Fi or mobile data, somewhere with good signal.
- An old phone is fine. A phone someone carries around and switches off is not.
What the app does
While it is paired, the app runs all the time and shows a permanent notification. Every few seconds it:
- Reports in to the server, with its battery level, network and SIM cards.
- Reports the results the server does not have yet.
- Passes on messages the phone received.
- Asks for new messages to send.
Everything is written to the phone's own storage first. If the connection drops or the phone restarts, nothing is lost: results and received messages are passed on when the server can be reached again.
Things to know before relying on it
- Android limits how fast an app may send SMS. Past the limit it asks the person holding the phone to confirm, which stalls a gateway nobody is watching. The limit differs by Android version and phone maker. Measure it on your phone, and keep both the app's daily limit (under its Settings, 2,000 by default) and the server's per-phone limit below it.
- Phone makers stop background apps in their own ways. Turning off battery saving for the app is necessary and, on some brands, not enough. Check the phone's settings for "auto-start" or "background activity".
- Delivery reports depend on the operator. Many operators never send them. A message then stays at Sent, which means the network accepted it.
- Message text stays on the phone for seven days, in the app's private storage, so its Messages tab can show it. The tab hides the middle of every number and anything that looks like a code.
- Your operator's terms apply. Some plans forbid automated or bulk sending, and an operator may block a SIM card that sends a lot. Read the terms.
Unpair a phone
Remove the device in the dashboard, or unpair from the app's Settings. Either way the server stops accepting that phone at once.
