Skip to content

Helps you retrieving your misplaced/lost/stolen SailfishOS phone

License

Notifications You must be signed in to change notification settings

slowcyclist/phone-finder

Repository files navigation

phone-finder

Damn, where is my phone?!

Most of the time you'll have simply misplaced it (but unfortunately it is in silent mode...).

It may also happen that you have lost your phone while outdoors (It happened to me... I could call the phone, but I had no clue where to look for it! It gave me the motivation for writing this code)

In the worst case, your phone was stollen...

In all these situations, this program can help retrieving your phone.

Features:

  • When an incoming SMS contains some predefined text, it triggers actions

    • Switch the phone to non-silent
    • Performs gps localization and return the coordinates to the caller (this is usefull if you loose your phone outdoors...)
    • Execute an arbitary non-interactive shell command and send the result back via sms
    • Have the phone ssh to a predefined host (automatically with key) with a reverse tunnel. From this server you can then ssh to the phone and use it's terminal interactively. OTOH if your carrier delivers IPV6 addresses, you may be able to directly ssh into the phone (not implemented yet - my carrier is still in the stone age of internet).
    • Extensible to do anything else you want (and know how to do it): record sound... This could be geared up to make a near replacement of the SMSCON application that existed on the N900
  • Watch for incoming calls from a set of predefined numbers If the phone is in silent mode and the call is not answered, it (optionally) sends an sms to the caller to warn the phone is silent. If the same caller calls a given number of time within a predefined period (say twice within 1 minute, meaning this person really wants to talk to you) it switches the phone to non-silent (and the phone rings, of course).

  • If someone enters a wrong unlock code, it takes a quick selfie, performs gps localization and sends both by email.

Configuration

For this to work, the script needs to run continuously in the background (it consumes negligible battery when inactive) You can do this by starting the script automatically with systemd

You also need to edit the configuration file for setting the predefined sms messages, the preferred callers, the default email address and server, etc.

Don't forget to test all the use cases to ensure they'll work as expected when the time comes.

Installation

Technical details

All this is written in python which means it is relatively easy to tweak the behavior of the program or expand it.

TODO : handle dual-sims, IPV6

About

Helps you retrieving your misplaced/lost/stolen SailfishOS phone

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages