From a136b7da8b192b5159df6e592f1b6c641c4be959 Mon Sep 17 00:00:00 2001 From: Sylvain Berfini Date: Tue, 6 Aug 2024 11:39:05 +0200 Subject: [PATCH] Added missing start at boot feature --- CHANGELOG.md | 3 ++ app/src/main/AndroidManifest.xml | 15 +++++- .../java/org/linphone/core/BootReceiver.kt | 46 +++++++++++++++++++ 3 files changed, 63 insertions(+), 1 deletion(-) create mode 100644 app/src/main/java/org/linphone/core/BootReceiver.kt diff --git a/CHANGELOG.md b/CHANGELOG.md index 95c032391..9ce9a30e5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -29,9 +29,11 @@ Group changes to describe their impact on the project, as follows: ### Added - Contacts trust: contacts for which all devices have been validated through a ZRTP call with SAS exchange are now highlighted with a blue circle (and with a red one in case of mistrust). That trust is now handled at contact level (instead of conversation level in previous versions). - Media & documents exchanged in a conversation can be easily found through a dedicated screen. +- A brand new chat message research has been added to conversations. - You can now react to a chat message using any emoji. - Screen sharing in conference: only desktop app starting with 6.0 version is able to start it, but on mobiles you'll be able to see it. - Chat while in call: a shortcut to a conversation screen with the remote. +- You can choose whatever ringtone you'd like for incoming calls (in Android notification channel settings). - Security focus: security & trust is more visible than ever, and unsecure conversations & calls are even more visible than before. - CardDAV: you can configure as many CardDAV servers you want to synchronize you contacts in Linphone (in addition or in replacement of native addressbook import). - OpenID: when used with a SSO compliant SIP server (such as Flexisip), we support single-sign-on login. @@ -46,6 +48,7 @@ Group changes to describe their impact on the project, as follows: ### Fixed - No longer trying to play vocal messages & call recordings using bluetooth when connected to an Android Auto car, causing playback issues. +- AAudio driver no longer causes delay when switching between devices (SDK fix). ## [5.2.5] - 2024-05-03 diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 49bc95b92..5509d4b07 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -34,9 +34,14 @@ without it app won't be able to access network if data saver is ON (for example) --> + messages & calls for third party accounts for which push notifications aren't available, + and starting Android 15 dataSync is limited to 6 hours per day + and can't be used with RECEIVE_BOOT_COMPLETED intent either --> + + + + + + + + + + . + */ +package org.linphone.core + +import android.content.BroadcastReceiver +import android.content.Context +import android.content.Intent +import org.linphone.LinphoneApplication.Companion.corePreferences +import org.linphone.core.tools.Log + +class BootReceiver : BroadcastReceiver() { + companion object { + private const val TAG = "[Boot Receiver]" + } + + override fun onReceive(context: Context, intent: Intent) { + val keepAlive = corePreferences.keepServiceAlive + if (intent.action.equals(Intent.ACTION_BOOT_COMPLETED, ignoreCase = true)) { + Log.i( + "$TAG Device boot completed, keep alive service is ${if (keepAlive) "enabled" else "disabled"}" + ) + } else if (intent.action.equals(Intent.ACTION_MY_PACKAGE_REPLACED, ignoreCase = true)) { + Log.i( + "$TAG App has been updated, keep alive service is ${if (keepAlive) "enabled" else "disabled"}" + ) + } + // Starting the keep alive service will be done by CoreContext directly + } +}