Commit Graph

45 Commits

Author SHA1 Message Date
Marius Gripsgard
adeb168d20 Merge branch 'personal/peat-psuwit/sms-fallback' into 'main'
qti_ims_sms: honor request to retry and fallback from Binder service

See merge request ubports/development/core/hybris-support/ofono-binder-plugin-ext-qti!9
2025-11-02 21:51:04 +00:00
Ratchanan Srirattanamet
3aa1d58511 qti_ims_sms: honor request to retry and fallback from Binder service
Sometimes the QTI IMS service indicates that it wants a fallback. If we
use `BINDER_EXT_SMS_SEND_RESULT_ERROR` as an error code, then the
required fallback won't happen. Switch to `_SEND_RESULT_RETRY` instead
which will trigger a GSM fallback inside ofono-binder-plugin.

While we're at it, do the same with retry request as well. I suspect
it actually meant to retry with IMS again, but I guess going straight
to GSM directly won't hurt?

Fixes: https://forums.ubports.com/post/89917
Fixes: https://t.me/ubports_devel/97049
2025-11-02 02:16:54 +07:00
Marius Gripsgard
1ca8078199 Merge branch 'personal/mariogrip/hotfix' into 'main'
Fix incorrect amount of args

See merge request ubports/development/core/hybris-support/ofono-binder-plugin-ext-qti!7
2025-09-08 02:38:42 +00:00
Marius Gripsgard
43010c38ed Fix incorrect amount of args 2025-09-08 04:26:05 +02:00
Marius Gripsgard
8d2b8feb35 Merge branch 'personal/mariogrip/sms' into 'main'
Add SMS status report handling support and Implement proper SMS message reference tracking and queueing

See merge request ubports/development/core/hybris-support/ofono-binder-plugin-ext-qti!5
2025-09-07 16:06:47 +00:00
Marius Gripsgard
7b54162992 Address review comments 2025-09-06 19:52:57 +00:00
Marius Gripsgard
cffd140f74 Fix compiler warnings 2025-08-30 23:01:34 +00:00
Marius Gripsgard
f7fa1f1fc1 ims: Implement proper SMS message reference tracking and queueing
- Add message reference tracking for incoming SMS acknowledgments using FIFO queue
- Implement SMS and report queueing when no handlers are connected
- Add proper SMS status report signal handling (SIGNAL_SMS_REPORT)
- Fix SMS acknowledgment to use proper message references instead of hardcoded -1
- Add handler connection tracking to process queued messages when handlers connect
- Improve memory management with proper cleanup of queues and structures
- Fix format string warnings in debug messages
2025-08-30 22:22:41 +00:00
Marius Gripsgard
ea91202d49 radio: Add SMS status report handling support
- Add QtiRadioExtSmsReportFunc typedef for SMS report callbacks
- Add qti_radio_ext_add_sms_report_handler() function
- Implement qti_radio_ext_handle_sms_report_indication() to parse SMS status reports
- Add SIGNAL_EXT_ON_SMS_REPORT signal for SMS status reports
- Enable SMS_STATUS_REPORT_INDICATION handling in indication dispatcher
2025-08-30 22:22:26 +00:00
Mike Gabriel
0b26827078 Merge branch 'rpm' into 'main'
This plugin does not require androidproperties/libhybris unlike the mtk plugin this was taken from

See merge request ubports/development/core/hybris-support/ofono-binder-plugin-ext-qti!4
2025-05-25 19:15:19 +00:00
Adam Pigg
c609ee8d84 This plugin does not require androidproperties/libhybris unlike the mtk
plugin this was taken from
2025-05-14 20:35:17 +01:00
Marius Gripsgard
9a5e76ce62 ims: Return error on error not if enabled or not 2025-03-19 04:17:28 +01:00
Marius Gripsgard
de0acd64bf ims: Only call complete if it exsists 2025-03-19 04:08:39 +01:00
Marius Gripsgard
82ba26101a src: Add sms support 2025-03-19 04:08:37 +01:00
Marius Gripsgard
c6a260bac3 call: Fill in missing values for hangup call 2025-03-19 04:07:44 +01:00
Marius Gripsgard
da5e8bd36a call: Set call details to FALSE 2025-03-19 04:07:44 +01:00
Marius Gripsgard
b9a3ce6d43 radio_ext: Pass copied reader 2025-03-19 04:07:44 +01:00
Marius Gripsgard
3edef608fc radio_ext: Rename call info new 2025-03-19 04:07:41 +01:00
Marius Gripsgard
0cc9aed3f3 radio_ext: Start from 1 (as 0 means FALSE) 2025-03-19 04:05:07 +01:00
Marius Gripsgard
ff4d0dd70c call: Dont set id_mapped 2025-03-19 04:05:07 +01:00
Marius Gripsgard
1123032ed1 call: Use binder's hangup for now 2025-03-19 04:05:07 +01:00
Marius Gripsgard
50af4143b1 call: Don't unref twice 2025-03-19 04:05:07 +01:00
Marius Gripsgard
6ba1ee987c radio_ext: Add retries if it fails to connect to service (max 5 times) 2025-03-19 04:05:04 +01:00
Marius Gripsgard
2e179668ef ims: Get updated reg state on set regstate 2025-03-19 04:03:07 +01:00
Marius Gripsgard
3e0ea43099 Merge branch 'rpm' into 'main'
Add RPM packaging

See merge request ubports/development/core/hybris-support/ofono-binder-plugin-ext-qti!1
2024-10-21 22:29:36 +00:00
Adam Pigg
9d795c71c1 Address review comment. V0.0.1, GPLv2 License. 2024-10-21 20:53:56 +01:00
Marius Gripsgard
7c9b91d9cb Merge branch 'main' into 'main'
qti_radio_ext_new with version

See merge request ubports/development/core/hybris-support/ofono-binder-plugin-ext-qti!3
2024-10-19 19:44:40 +00:00
5d9f48990b qti_radio_ext_new with version 2024-10-19 19:44:40 +00:00
Adam Pigg
9a006ab0c1 Add RPM packaging 2024-10-18 17:34:15 +01:00
Marius Gripsgard
fc5f80b72e debian: Inital packaging 2024-10-13 19:51:45 +02:00
Marius Gripsgard
21baec2d5f Add correct license 2024-10-13 19:48:30 +02:00
Marius Gripsgard
0ee934bf82 radio_ext: minor cleanup 2024-10-13 19:24:49 +02:00
Marius Gripsgard
92a288cd35 treewide: Add copyright 2024-10-13 19:24:09 +02:00
Marius Gripsgard
c54598bee1 call: Fixup dial and call changed ind 2024-10-13 19:18:52 +02:00
Marius Gripsgard
b86fcb9aa3 call: Add answer and hangup 2024-10-13 19:17:47 +02:00
Marius Gripsgard
133778edde radio_ext: Add more types and add 1.1 and 1.2 of qtiradio 2024-10-13 16:03:25 +02:00
Marius Gripsgard
3d692e3989 call: Add ring ind handler 2024-10-13 15:40:18 +02:00
Marius Gripsgard
2b2f016700 radio_ext: Move debug functions out of header 2024-10-13 15:28:28 +02:00
Marius Gripsgard
9161addd8f types: Add missing call info and fixup alignment 2024-10-10 18:57:16 +02:00
Marius Gripsgard
fbbca314f2 call: Make sure call exists before we check state 2024-10-10 18:56:06 +02:00
Marius Gripsgard
a4efb194c5 call: Fix passing of ptr 2024-10-10 17:14:50 +02:00
Marius Gripsgard
63be8813a1 treewide: Inital call support (unstable) 2024-10-10 16:03:58 +02:00
Marius Gripsgard
68ca473945 Checkpoint: inital impl of qti radio
This now registrers and reports the state to ofono
2024-10-08 02:19:12 +02:00
Marius Gripsgard
09f11f9a9f Rename sample to qti 2024-10-01 14:49:48 +02:00
Slava Monich
012681a1af [sample] Initial commit 2022-05-19 18:26:08 +03:00