Phonehook

Rating: 
5
Your rating: None Average: 5 (22 votes)

Phonehook is a multi-purpose Sailfish application to enhance phone functionality.

Now also for Android:
https://play.google.com/store/apps/details?id=com.omnight.phonehook

 

Caller Lookup

Information will appear in an overlay on top of the incoming call screen. This information is extracted directly from different online phone number directories.

Call Blocking

You can block unwanted callers by adding them to the block list. You can either pick a contact from your phone or add a number manually. Support for wildcards means you can block calls from a certain country or region. You can also add a source for automatic call blocking. All numbers flagged as spam by this source will be blocked. Since this feature could potentially end up blocking calls you actually want, use with caution! Check your blocked calls history now and then, and if you notice some source blocking calls it shouldn't, please report the issue on gituhub.

Directory Search

With the search functionality, you can search for people or businesses and call them directly from the app. You can also bring up the maps application for the listed address or save the result to your contacts. Some sources requires you to log in before this will give results.

 

Post a comment if you want to add a directory for your country and I will check it out! Directories that require login can be added as well, but require a bit more work.

Source code and issue tracker available on GitHub:
https://github.com/omnight/phonehook

 

Special Thanks

Finnish Localization - Termitebug
Russian Localization - Ancelad
Spanish Localization - Carmen F. B.
Swedish Localization - Åke Engelbrektson

About Sailfish OS Updates

Sailfish OS upgrades recommends uninstalling phonehook before upgrading. If you are running a somewhat recent version of phonehook (0.4.0 and later), this recommendation is no longer relevant. Newer versions of phonehook do not interfer with OS upgrades. Version 0.3.x and earlier modifies the Sailfish homescreen, which may cause issues in some scenarios. 0.4.0+ does not modify the homescreen.

 

Planned Features

  • ✓ Contact creation
  • ✓ Automated call blocking
  • ✓ Offline caching
  • ✓ Lookup recent incoming calls
  • ✓ Name search and dialing
  • ✓​ Manual & contact call blocking
Changelog: 

0.6.3

  • Updated for compability with Sailfish 2.1 (pre-release)
  • (0.6.3-3) Built with SDK 1701-1 to fix missing translation issue.

0.6.2-2

  • Restored missing translation files
  • Restored order of input fields on configuration page

0.6.2

  • New configuration/activation functionality for sources
  • Fixed issue with multiple SIM slots
  • Added Finnish translation (thanks Termitebug)
  • Added Russian translation (thanks Ancelad)

0.6.1

  • Added automatic update for sources (can be turned off). Data fetched directly from GitHub
  • Backported some code from Android port
  • Added Spanish localization (thanks Carmen F.B.)

0.6.0

All planned features complete!

  • Fix for obscured status bar
  • Fix layout breaking when swiping forward to search
  • Added full localization support (+ Swedish translation)
  • Added contact save feature on popup and search function
  • Added more views to call log (incoming, outgoing, missed calls)

 

0.5.0

  • Added automatic call blocking (Use with caution)
  • New popup look and functionality. If you want the old look back, there is a setting for that (requires daemon restart).
  • Added offline caching of results and HTML-responses
  • Added new OAuth-like login functionality (experimental)
  • ​Various GUI improvements

0.4.1

  • Fixed issue with lookups not working after phone reboot

0.4.0

  • Added call blocking function (beta). Number (with wildcard) and contact blocking.
  • Added recent call list lookups
  • No longer modifies homescreen
  • GUI navigation changes
  • Removed dependency to patch binary
  • Removed SMS lookups (for now)
  • Removed compability mode


0.3.3

  • Added popup timeout setting
  • Removed forcible uninstall of broken installation
  • Removed dependency on nemonotifications library

0.3.2

  • Possible fix for uninstallation/upgrade issues with earlier versions
  • Fixed scrolling problems on several pages
  • Scraper upgrades

0.3.1

  • Fixed broken connection manager dialog in Sailfish OS 1.1.2
  • Scraper upgrades

0.3.0

  • Added phonebook functionality (search for people & businesses)
  • Added cover action (Search)
  • Popup uses ambience colors
  • Popup no longer displays above the lockscreen
  • Added a compability mode to be used when the standard popup is not available
  • Added support for international numbers (will attempt to use foreign lookup sites if incoming call is from abroad)
  • Fixed uninstall issue when patch had been reverted before uninstall
  • Daemon now auto-starts with GUI
  • Improved daemon startup time
  • Added capability listing for sources (phonebook/lookup)
  • Numerous other small changes

0.2.1

  • Workaround for broken "Connect to Internet" dialog
  • Cleaned up "Add Source" page, auto-detects and defaults to users country.
  • Added setting to enable while roaming (default = not enabled)

0.2.0

  • Added cookie caching
  • Better handling of password fields
  • Added link field for sources
  • Source metadata stored in local db
  • Fixed gzip decompression bug

Comments

groxxorg's picture

Dear omnight,

while i was trying to uninstall phonehook, the following error-messages
prevented me from doing so. I hope you or someone else can help me?

screenshot

omnight's picture

This error is because the homescreen modifications have already been reverted (by a system upgrade or homescreen re-installation). I thought I already had handling for this but I guess not :(

The workaround for now is that you have to apply the patch again before you can uninstall.

Make sure you have enabled developer mode (System > Settings > Developer Mode) and set a root password. Also enable Remote Connection. Open the terminal app, run these commands:

devel-su
cd /usr/share/lipstick-jolla-home-qt5/
patch -N -p4  < /usr/share/phonehook/phonehook-lipstick-v3.patch;
pkcon remove phonehook
​

Now Phonehook should hopefully be uninstalled if there was no error. Sorry for your troubles!

groxxorg's picture

Thank you for your quick reply!
I have followed your hint and everything worked well.

wellef's picture

Please use the built in system notifications, which you find in the qml component Notification from org.nemomobile.notifications. To edit the system files to show a notification is not the best approach when it's already done by the nemo guys and is as easy as declaring a QQuickView with the Notification component from the daemon. This way you can also put an item in the eventview with the information. Let me know if you need an example.

omnight's picture

Hi! I am aware of nemo notifications and I have tried them out a bit before, but the limited amount of text and possible interactions with the notification made me look for other options. I took some inspiration from powermenu for the current approach, but I don't insert the entire popup qml into the system files, only a DBUS service to allow for qml injections at runtime (so even if phonehook is removed without reverting the system file changes, it shouldn't cause crashes).

If it is possible to show arbitrary qml overlayed without modifying the system files that would be preferable, but right now using notifications would degrade the usability and restrict future development.

Bysmyyr's picture

At least fonecta do not give any error about wrong password, just do not work.

 

Nice program, thanks a lot!

omnight's picture

I think they have disabled login with phonenumber recently. Anyway I have added some messages to fonecta for login errors :)

mousse04's picture

Hi, 

 

I tried the french source 'PagesJaunes", but unfortunately, when I tied to click "Install", application crashes and is closed :(.

 

omnight's picture

Hi! Try checking that the daemon is running before installing, it's responsible for creating the database. If that doesn't help, PM me.

Hartzi's picture

Fonecta.fi search doesn't work atm. It always displays "no results".

omnight's picture

Seems they have launched a new design for the site. I updated the scraper to version 3, you can test if that works better.

Hartzi's picture

Yes, it works now very well. Thank you!

Hartzi's picture

Current version breaks the connect to Internet dialog.

omnight's picture

Thanks for noticing this, I will fix it asap. If you need to access the dialog, uninstall + restart seems to do the trick

Update: Found the issue and made a workaround/fix for it. Will test it a bit more before release.

Update 2: Release 0.2.1 should restore functionality (I hope!)

Hartzi's picture

The bug appeared again in the current version.

omnight's picture

Still works for me (didn't change that code in 0.3.0), what Sailfish version are you using?

Hartzi's picture

1.1.2.15

omnight's picture

Alright, I'll install 1.1.2.15 tomorrow and try to work out what's been changed

anasyntes's picture

TACK! Funkar utmärkt. Super-app!

tobru's picture

It would be very nice to have support for http://tel.search.ch/ or http://www.local.ch/ =) Thanks

omnight's picture

Added them both

tobru's picture

Wow! That was fast... Thanks a LOT

flywheel's picture

I recall a similar program for the N900, which used the eniro services (as they are present in both Denmark, Norway and Sweden). Naturally I am particularly interested in the danish one :o)

omnight's picture

Hi! I've added www.krak.dk which is the provider for eniro.dk

jesseuitto's picture

Fonecta is now updated to version 2, which removes first field that is totally unecessary.

 

FIN:

Fonecta päivittynyt uuteen versioon, joka poistaa ensimmäisen kentän, joka sisälsi jonkin näköisen Fonectan oman tiedotteen.

gautelund's picture

Can you please give some pointers on how to create scrapers? I'd love to do a couple of Norwegian ones myself.

omnight's picture

The scrapers are using undocumented XML syntax (a C++ port from a .NET project I made earlier), and I don't have anything in place to create custom scrapers at this point. If there are sites you want added I will have a look at integrating them.

sandsmark's picture

what is the current list of supported services/countries? and is the source available anywhere?

omnight's picture

Currently supported countries are Sweden, Finland and Germany but it changes frequently. Check in-app for the updated list.

I plan to make the source available, but I need to get it a bit more organized first. This is actually my first Sailfish app :)

nightmare's picture

can you add a german directory like dasoertliche.de, dastelefonbuch.de or klicktel.de?

Pages