[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Linphone-developers] Uninstalling Linphone on Android seems to remo
From: |
Greg Troxel |
Subject: |
Re: [Linphone-developers] Uninstalling Linphone on Android seems to remove all Contacts - what does initializeSyncAccount do? |
Date: |
Thu, 11 Jun 2020 14:39:09 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.3 (berkeley-unix) |
Dave Osbourne <dave@osbourne.uk.eu.org> writes:
> 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/>
As I understand it, the Contacts App doesn't actually store contacts -
it is a view into a Contacts Provider. So where are your contacts - are
they via davx5, or "local", or ? I think that may well matter.
FWIW, my contacts are in nextcloud's carddav server, accessed on android
via davx5 (which is a carddav client and an android contacts provider).
> 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
This is the odd part - things are getting bad just from using linphone.
> 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();**
I would advise reading the docs and code for this; I'm not really sure
what it does.
> * mInitialized = true;
> }
> }
> }
> }
> }
> 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 think gapps only comes in, in that many people have contacts in some
cloud place where google code is used to be a bridge from remote to
contacts provider.
> 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...
I have been using linphone (and trying to make it work with asterisk) on
and off for years, and surely have uninstalled it. I have never seen
what you're talking about.
But I have not tried 4.3 yet; still on 4.2.
Do you think this is a new problem?
- Re: [Linphone-developers] Uninstalling Linphone on Android seems to remove all Contacts - what does initializeSyncAccount do?, (continued)
- Re: [Linphone-developers] Uninstalling Linphone on Android seems to remove all Contacts - what does initializeSyncAccount do?, Sylvain Berfini, 2020/06/08
- Re: [Linphone-developers] Uninstalling Linphone on Android seems to remove all Contacts - what does initializeSyncAccount do?, Dave Osbourne, 2020/06/08
- Re: [Linphone-developers] Uninstalling Linphone on Android seems to remove all Contacts - what does initializeSyncAccount do?, Sylvain Berfini, 2020/06/08
- Re: [Linphone-developers] Uninstalling Linphone on Android seems to remove all Contacts - what does initializeSyncAccount do?, Greg Troxel, 2020/06/08
- Re: [Linphone-developers] Uninstalling Linphone on Android seems to remove all Contacts - what does initializeSyncAccount do?, Sylvain Berfini, 2020/06/08
- Re: [Linphone-developers] Uninstalling Linphone on Android seems to remove all Contacts - what does initializeSyncAccount do?, Dave Osbourne, 2020/06/08
- Re: [Linphone-developers] Uninstalling Linphone on Android seems to remove all Contacts - what does initializeSyncAccount do?,
Greg Troxel <=
- Re: [Linphone-developers] Uninstalling Linphone on Android seems to remove all Contacts - what does initializeSyncAccount do?, Greg Troxel, 2020/06/11
- Re: [Linphone-developers] Uninstalling Linphone on Android seems to remove all Contacts - what does initializeSyncAccount do?, Greg Troxel, 2020/06/11