Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/luiscib3r/android_rpc
Remote procedure calls on android device through an API
https://github.com/luiscib3r/android_rpc
android flutter grpc mobile mobile-app rpc server shelf sms
Last synced: about 1 month ago
JSON representation
Remote procedure calls on android device through an API
- Host: GitHub
- URL: https://github.com/luiscib3r/android_rpc
- Owner: luiscib3r
- Created: 2022-03-12T20:21:01.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-03-13T01:03:06.000Z (almost 3 years ago)
- Last Synced: 2024-11-05T18:54:39.468Z (3 months ago)
- Topics: android, flutter, grpc, mobile, mobile-app, rpc, server, shelf, sms
- Language: Dart
- Homepage: https://luisciber.com
- Size: 22.5 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# AndroidRPC
## Notas iniciales
Después iré mejorando esto, la idea es ejecutar acciones en el móvil a través de una API. De momento he implementado una API REST usando shelf, posteriormente se implementará una API gRPC.
Acciones que puede ejecutar actualmente:
* Obtener lista de sms almacenados en el móvil.
* Enviar smsAh, la documentación: Le das al botón de start server (el que sale en rojo), eso levanta un servidor en un puerto aleatorio escuchando por todas las IP que tenga el móvil, los endpoint son `GET /messages` devuelve todos los sms que tienes en el movil, `POST /message` con `body` `{"number": "555555", "text": "Tu texto"}` eso envia un sms al numero 555555 con el texto `Tu texto`.
Si quieres que siempre levante en el mismo puerto le pasas el parámetro `port` a la función `runServer` está por ahí en el `main.dart`.
Es una app sencilla ya luego se va mejorando de momento resuelve el problema de mandar sms de forma remota.
## Initial Notes
Later I will improve this, the idea is to execute actions on the mobile through an API. At the moment I have implemented a REST API using shelf, later a gRPC API will be implemented.
Actions you can currently run:
* Get list of sms stored in the phone.
* Send SMSAh, the documentation: You hit the start server button (the one that appears in red), that starts a server on a random port listening for all the IPs that the mobile has, the endpoints are `GET /messages` it returns all the sms that you have on your mobile, `POST /message` with `body` `{"number": "555555", "text": "Your text"}` that sends an sms to the number 555555 with the text `Your text`.
If you want it to always run on the same port you pass the `port` parameter to the `runServer` function, it's somewhere in the `main.dart`.
It is a simple app and then it improves at the moment it solves the problem of sending sms remotely.