[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Linphone-developers] Uninstalling Linphone on Android seems to remo

From: Sylvain Berfini
Subject: Re: [Linphone-developers] Uninstalling Linphone on Android seems to remove all Contacts - what does initializeSyncAccount do?
Date: Mon, 8 Jun 2020 10:43:46 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.8.0

On the current release, no you can't change that through remote provisioning.
The only way to do it properly is for you to edit the non_localizable_custom.xml file in res/values/ and change the value of the "use_linphone_tag" boolean to false.

However with the future release based on the kotlin rewrite you will be able to do it through the remote provisoning by setting "use_linphone_tag=0" in the [app] section.

Sylvain Berfini
Software Engineer @ Belledonne Communications
Le 08/06/2020 à 10:01, Dave Osbourne a écrit :
Ah - thank you do much!!!

I thought I was going nuts.

Is there a linphonerc setting I can send to the device at provisioning that does a similar thing?  It seems like a better solution than mine (;


On 2020-06-08 09:00, Sylvain Berfini wrote:

Hi Dave,

Indeed Linphone Android app has 2 modes regarding the contacts: use it's own "storage" or the OS default one.

Using linphone's account we can do a little more things regarding SIP addresses that when using the default one, that's why it's the default mode. The downside is indeed that changes (and contacts created by the app) are removed when the app is uninstalled (because it's account is removed too, and so far I haven't found a way to make them stay). When you comment out the initializeSyncAccount method, it fallbacks in the default mode, hence the storage working properly.


Sylvain Berfini
Software Engineer @ Belledonne Communications
Le 08/06/2020 à 09:56, Dave Osbourne a écrit :
Hi All,

I have an issue with a new android device (Lineageos no gapps or google play) and Linphone (I do change recompile every now and then) using Android Studio.

When I uninstall Linhone all contacts that were added to the new phone seems to disappear. 

I didn't make the connection for quite a while (a few days), but after looking into the disappearing contacts I ended up commenting all the code in the initializeSyncAccount() routine inside package org.linphone.contacts; if I install and uninstall now I don't loose the contacts and Linphone doesn't seem any the worse for it.

I think my issues is around the Liphone contact upload / sync and it does something to "own" the contacts and when it's removed they are all removed too.

I would very much appreciate any light any one can shed on this...


Linphone-developers mailing list

Linphone-developers mailing list

reply via email to

[Prev in Thread] Current Thread [Next in Thread]