linphone-developers
[Top][All Lists]
Advanced

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

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


From: Dave Osbourne
Subject: Re: [Linphone-developers] Uninstalling Linphone on Android seems to remove all Contacts - what does initializeSyncAccount do?
Date: Mon, 8 Jun 2020 14:40:38 +0100
User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.9.0

OK, I think *I* might have been unclear...  but would like to thank everyone who is trying to help me - I can't tell you how much I appreciate your time.

This is my experience...  I start with a "vanilla" Linphone (v 4.3) code, there is no linphone app installed on my device (I've uninstalled it).

1) confirm I see my Contacts in the Contacts App - there were imported via <some other route>
2) compile and install linphone
3) allow 2 permissions requested
4) fetch a config (from my provisioning server)
5) dial a SIP contact [that Linphone has found]
6) check contacts - they're gone
7) uninstall linphone
8) check contacts - they're still gone

I re-import the contacts and I make this change to the Linphone source

    public void initializeContactManager() {
        if (!mInitialized) {
            if (mContext.getResources().getBoolean(R.bool.use_linphone_tag)) {
                if (hasReadContactsAccess()
                        && hasWriteContactsAccess()
                        && hasWriteSyncPermission()) {
                    if (LinphoneContext.isReady()) {
                        // initializeSyncAccount();
                        mInitialized = true;
                    }
                }
            }
        }
    }

Then
1) confirm I see my Contacts in the Conracts App - there were imported via <some other route>
2) compile and install linphone (with the modification above)
3) allow 2 permissions requested
4) fetch a config (from my provisioning server)
5) dial the same SIP contact [that Linphone has found]
6) check contacts - they're still there
7) uninstall linphone
8) check contacts - they're stillthere


I don't know why this is, but given that I'm wholly different to the majority of users (no gapps and no play store) this is almost certainly something I've done (or not done).

I can reliably repeat the above.  I'm more and more certain the unwanted interaction is only with linphone, but I can't tell what it's doing...

Dave





On 2020-06-08 13:59, Sylvain Berfini wrote:
Please find my answers below.

Sylvain Berfini
Software Engineer @ Belledonne Communications

Le 08/06/2020 à 14:49, Greg Troxel a écrit :
Sylvain Berfini <sylvain.berfini@belledonne-communications.com> writes:

Yes, contacts & modifications made through linphone app are stored by
Android under a raw id that is "owned" by our app, and Android removes
them when the app is uninstalled.
Do you mean:

   I have a contact on my carddav server.

   in linphone, I somehow add a sip address to it

   I remove linphone

   The entire contact is removed?  Or the sip address is removed?
No, only the SIP address will be removed.

Why does this behavior make sense?  Just because a contact entry was
made or modified by an app does not mean it should be removed when the
app is gone.  Consider someone using one mail client, storing email
addresses, and using a different client.

When this mode is disabled,
Which mode is this?  I flipped through settings in linhphone android
(from f-droid) and cannot figure it out.
It currently is a build setting, not a runtime setting.

SIP addresses are stored in the standard
SIP field of the contact, however many contact applications are only
displaying one.
Do you mean that the contact database has a sip field, but that
some/most contact display applications don't show it, and thus it's hard
to deal with?
Most applications do show it, but most of them only show one entry.

Cheers,

Sylvain Berfini
Software Engineer @ Belledonne Communications
Thank you very much for participating in the list.   I think it makes a
huge difference, and I hope comments from the community lead to
improvements in linphone, for both open source users and for your
proprietary license customers.

_______________________________________________
Linphone-developers mailing list
Linphone-developers@nongnu.org
https://lists.nongnu.org/mailman/listinfo/linphone-developers



reply via email to

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