Giter Site home page Giter Site logo

androidsmsrelay's Introduction

Android SMS Relay

Script to forward android(with root) sms using adb

Useful when you have another phone number but unwilling to carry 2 phones out.

Features

  • Forward sms to telegram chat.
  • Match contacts automatically.
  • Send sms using telegram.
  • Some useful features:
    • Query phone number(You can import contacts from iCloud).
    • Query curriculum.
  • Dual sim card to different users.
  • Reply telegram message to reply sms quickly.

Prerequisite

  • An android device with root and debug mode open.
    • I use an android 4.0.4 because of poor, on other versions you should check the debug and lock screen settings.
  • A linux server(Rpi for example) with adb tools installed.
  • Proper network connection
    • I use shadowsocks to provide a socks5 proxy for connecting to telegram server due to the GFW.
    • Also a tinc VPN is used to forward requests to inner server:
    • Flask ===SOCK FILE=== nginx(Rpi, Fudan Uni.) ===TINC=== VPS nginx(AWS, Seoul)
  • Python 2.7, requests, requests[socks], flask, uwsgi, nginx, supervisor

How it works

  • Pull the database every several seconds, then check new sms from it. This process only cost about 0.01 sec, so it's fine.
  • Set a webhook to telegram bot, then it can receive message sent by the user.
  • Simulate key press when entering PIN code after reboot.

look1 (Send and receive sms, contacts matching automatically)


look2 (Query contacts)


look3 (Quick reply && Message for sending status)


look3 (Message update to sent status)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.