sxmo-utils/scripts/core
Stacy Harper 91fe7fbeab Fix the unreliable modem numbers prefix issues
Sometime, the modem will give 0611924312 as incoming text or
call number instead of +33611924312 (example in france).

This cause two issues cause of format missmatch:

* Notifications sometime come from "Unknown" when we actually know
the contact
* Text/Dial menu entries are duplicated with "Unknown" persons

We try here to fix boths issues with a simple idea. We will fallback
to a default prefix when it is missing (on phone like numbers,
composed of 10 numbers).

This prefix is an environment variable that cause 0 impact if missing.

* sxmo_contacts.sh will fix the recent numbers prefixes with the default
* sxmo_modemmonitor.sh will also fix the prefix with the default one

This should solve missmatch issues as both will use country code format

I only recommend to always store contacts in the prefixed format in the
contacts.tsv file.

Signed-off-by: Stacy Harper <contact@stacyharper.net>
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2021-04-10 13:20:19 +02:00
..
sxmo_appmenu.sh add Profanity to app menu; add System Menu to Network menu 2021-04-05 20:47:27 +02:00
sxmo_audiocurrentdevice.sh Shellcheck and tabindent all scripts 2020-06-13 20:36:13 -05:00
sxmo_audioout.sh various scripts were not sourcing the common include script yet (noted by mrrabbit1155) 2021-02-21 15:14:16 +01:00
sxmo_blinkled.sh various scripts were not sourcing the common include script yet (noted by mrrabbit1155) 2021-02-21 15:14:16 +01:00
sxmo_bluetoothmenu.sh Try to make bluetooth menu connection more reliable 2021-03-29 20:29:22 +02:00
sxmo_brightness.sh various scripts were not sourcing the common include script yet (noted by mrrabbit1155) 2021-02-21 15:14:16 +01:00
sxmo_common.sh added some more apps to the app menu 2021-04-05 17:18:52 +02:00
sxmo_contactmenu.sh Fix the unreliable modem numbers prefix issues 2021-04-10 13:20:19 +02:00
sxmo_contacts.sh Fix the unreliable modem numbers prefix issues 2021-04-10 13:20:19 +02:00
sxmo_dmenu_with_kb.sh Do not close svkbd if it was already open before dmenu 2021-03-24 21:40:02 +01:00
sxmo_edit_screen.sh Shellcheck and tabindent all scripts 2020-06-13 20:36:13 -05:00
sxmo_flashtoggle.sh various indentation fixes (spaces to tabs and stripping trailing whitespace) 2020-11-20 18:10:17 +01:00
sxmo_gesturehandler.sh use 2-finger swipe down to close window, 3 to kill window 2021-03-22 19:49:48 +01:00
sxmo_gpsutil.sh Moved checkmark to icons 2021-03-16 22:01:41 +01:00
sxmo_hotcorner.sh complete revision of gestures, using new edge system 2020-10-31 13:53:46 +01:00
sxmo_keyboard.sh Do not close svkbd if it was already open before dmenu 2021-03-24 21:40:02 +01:00
sxmo_killwindow.sh use 2-finger swipe down to close window, 3 to kill window 2021-03-22 19:49:48 +01:00
sxmo_lisgdstart.sh fixed top right hotcorner #229 2021-04-02 17:45:52 +02:00
sxmo_lock.sh fixed shellcheck problem after applying last patch 2021-03-15 14:27:01 +01:00
sxmo_networks.sh add Profanity to app menu; add System Menu to Network menu 2021-04-05 20:47:27 +02:00
sxmo_open.sh various scripts were not sourcing the common include script yet (noted by mrrabbit1155) 2021-02-21 15:14:16 +01:00
sxmo_pipecomplete.sh Added sxmo_keyboard script that acts as an intermediary to opening and closing the keyboard 2021-03-15 13:51:48 +01:00
sxmo_postwake.sh Suspend Conky during screenlock #177 2021-02-23 19:05:54 +01:00
sxmo_powerbutton.sh compatibility with megapixels 0.16: power button takes a picture instead of toggling the keyboard, only when megapixels is active 2021-03-28 22:15:25 +02:00
sxmo_presuspend.sh ensure clickclack and svkbd are killed prior to suspending (may fix a sound stuttering problem) 2021-03-30 21:02:42 +02:00
sxmo_resetscaninterval.sh reduce wifi reconnection time after deep sleep #150 2021-01-30 21:40:56 +01:00
sxmo_rotate.sh Fix sxmo rotate left 2021-04-09 22:56:20 +02:00
sxmo_rotateautotoggle.sh increased verbosity in various scripts, and do not run xargs kill when argument is empty (cleaner and clearer stderr messages) 2021-01-30 21:41:08 +01:00
sxmo_rtcwake.sh Implementing optional rtc wakeup at regular intervals, added presuspend, rtcwake and postwake scripts (with hooks) 2020-10-31 12:13:22 +01:00
sxmo_setpermissions.sh fix: path should be absolute 2021-03-18 19:21:41 +01:00
sxmo_statusbar.sh fixed whitespace problem after last patch 2021-04-05 16:43:23 +02:00
sxmo_statusbarupdate.sh increased verbosity in various scripts, and do not run xargs kill when argument is empty (cleaner and clearer stderr messages) 2021-01-30 21:41:08 +01:00
sxmo_surf_linkselect.sh Added sxmo_keyboard script that acts as an intermediary to opening and closing the keyboard 2021-03-15 13:51:48 +01:00
sxmo_timezonechange.sh Removed explicit font from most dmenu calls, dmenu font is read from Xresources now and kept as uniform as possible 2021-02-01 18:32:32 +01:00
sxmo_upgrade.sh we expect people to upgrade with apk upgrade -a (quoting ollieparanoid from pmos) 2021-03-31 11:48:32 +02:00
sxmo_urlhandler.sh removed hardcoded font 2021-03-22 19:49:48 +01:00
sxmo_vol.sh various scripts were not sourcing the common include script yet (noted by mrrabbit1155) 2021-02-21 15:14:16 +01:00
sxmo_xinit.sh Implement default hooks for ringing and incoming texts, playing audio 2021-03-30 21:02:42 +02:00