Ask / Submit
12

[Sailfish X] Contacts not available on aliendalvik

asked 2017-10-13 18:46:46 +0200

xneo gravatar image

updated 2017-10-16 17:32:26 +0200

Since wednesday I am a proud Sailfish X user...

As I am using WhatsApp (installed through yalp) I have the problem, that contacts are not synced to WhatsApp. The Contacts were available on my Jolla 1... I am syncing my contact over my OpenXchange Server with Exchange Active Sync.

Making contacts available to aliendalvik is activated in the system-settings.

EDIT/16.10.2017: When I start "jolla-contacts" in Terminal it shows the same contacts that WhatsApp sees. When I open "Person" App it shows me my contacts from Exchange Server. Maybe there are two contact databases in different contexts...

edit retag flag offensive close delete

Comments

1

This happened to me too at some time but I don't remember how I came out of it. Probably by changing phone from Jolla 1 to Jolla C.

Giacomo Di Giacomo ( 2017-10-13 18:49:09 +0200 )edit
2

Have you already set "show all contacts" in whatsapp settings? normally it should work then

Zandi ( 2017-10-13 18:53:48 +0200 )edit

Yes, this option is activated in WhatsApp... :-/

Anyone there where WhatsApp is working correctly... Maybe I will try to delete all contacts and resync...

xneo ( 2017-10-13 18:57:57 +0200 )edit

i would first reboot the phone and click "update" in whatsapp contacts several times.

Zandi ( 2017-10-13 19:00:55 +0200 )edit

I already did that...

xneo ( 2017-10-13 19:02:17 +0200 )edit

9 Answers

Sort by » oldest newest most voted
4

answered 2017-10-16 15:05:47 +0200

Motoz gravatar image

I had the same issue with whatsapp contacts. I solved it by going to contacts (in whatsapp), and in the bottom of the page clicking 'help about contacts' (or something similar in English), and from the help page clicking 'show invisible contacts' (again freely translated... and a very strange place to hide such a setting indeed).

After that all my contacts showed up in whatsapp.

edit flag offensive delete publish link more
3

answered 2017-10-16 17:47:46 +0200

coderus gravatar image

IIRC Aliendalvik does NOT have access to online accunts. Only to local ones. You have to add contacts manually to local phonebook to work with them in android applications.

edit flag offensive delete publish link more

Comments

Thank you for your answer... I read that before at TJC. Now I imported all contacts with a file export and still I do not see any contacts in WhatsApp :-/

xneo ( 2017-10-16 18:51:05 +0200 )edit

This isn't correct. I have only google contacts (synced from google) and no local at all. About half of my contacts are visible in Whatsapp (I guess the rest doesn't use Whatsapp). I had to check the "show invisible contacts" setting in Whatsapp before getting any contacts at all to show up.

johanh ( 2017-10-17 22:18:02 +0200 )edit
2

answered 2017-10-16 12:30:02 +0200

xneo gravatar image

Some news here, but no success... :-/

I searched a lot on TJC an tried many things. I found out that is has to do something with Exchange synchronisation. When I add one contact manually in the "Contacts" App they appear in WhatsApp.

edit flag offensive delete publish link more

Comments

no problem for me with whatsapp but same behaviour in signal. add the number manually, the contact name appears

carepack ( 2017-10-16 13:44:25 +0200 )edit

Maybe the first App that is accessing the contacts database ist also locking it?

xneo ( 2017-10-16 13:49:18 +0200 )edit

Same here, but interestingly Signal shows the contact pics from the address book (for conversations started from another device), so at least there seems to be some access to the contacts

fifr ( 2017-10-16 13:49:39 +0200 )edit

Okay, I installed Skype an there I have full access... Seems in my case WhatsApp got stuck with an older contacts list. Maybe a copy joy needs to be startet ?

xneo ( 2017-10-16 15:07:50 +0200 )edit

signals also shows the contact picture if you start a new conversation and copy the number in the text field at the top

carepack ( 2017-10-16 15:09:03 +0200 )edit
1

answered 2017-10-16 13:06:36 +0200

objectifnul gravatar image

updated 2017-10-16 13:06:50 +0200

In Settings=>Android Support, make sure you have allowed Android apps to access contacts.

edit flag offensive delete publish link more

Comments

Doesn't help, that's the first thing I tried to do

Mariusmssj ( 2017-10-16 13:38:44 +0200 )edit
1

answered 2017-10-16 13:39:27 +0200

I also have this issue, I tried enabling access to contacts in the android app menu but with no luck!

edit flag offensive delete publish link more
1

answered 2017-10-16 14:09:08 +0200

Raghu gravatar image

Same issue here ... tried rebooting and restarting aliendalvik ... nothing worked.

edit flag offensive delete publish link more
1

answered 2018-01-08 22:15:26 +0200

birefringence gravatar image

For me it worked with non-local contacts as well, now it suddenly stopped. I do no longer see any contacts in Signal. In the android logs (logcat) I get the following messages when trying to refresh contacts from within Signal:

W/ContactsDatabase(29892): Adding number: +xxxxxxxxxxx
W/ContactsDatabase(29892): Adding number: +xxxxxxxxxxx
D/dalvikvm( 5227): GC_CONCURRENT freed 398K, 4% free 17490K/18160K, paused 2ms+3ms, total 22ms
W/ContactsDatabase(29892): Adding number: +xxxxxxxxxxx
W/ContactsDatabase(29892): Adding number: +xxxxxxxxxxx
W/ContactsDatabase(29892): Adding number: +xxxxxxxxxxx
W/ContactsDatabase(29892): Adding number: +xxxxxxxxxxx
W/ContactsDatabase(29892): Adding number: +xxxxxxxxxxx
W/ContactsDatabase(29892): Adding number: +xxxxxxxxxxx
W/ContactsDatabase(29892): Adding number: +xxxxxxxxxxx
W/ContactsDatabase(29892): Adding number: +xxxxxxxxxxx
W/ContactsDatabase(29892): Adding number: +xxxxxxxxxxx
W/ContactsDatabase(29892): Adding number: +xxxxxxxxxxx
W/ContactsDatabase(29892): Adding number: +xxxxxxxxxxx
W/ContactsDatabase(29892): Adding number: +xxxxxxxxxxx
W/ContactsDatabase(29892): Adding number: +xxxxxxxxxxx
D/dalvikvm( 5227): GC_CONCURRENT freed 279K, 3% free 17639K/18160K, paused 2ms+3ms, total 18ms
W/ContactsDatabaseHelper( 5227): invalidateAllCache: [ContactsDatabaseHelper]
E/DatabaseUtils( 5227): Writing exception to parcel
E/DatabaseUtils( 5227): android.content.OperationApplicationException: insert failed
E/DatabaseUtils( 5227):         at android.content.ContentProviderOperation.apply(ContentProviderOperation.java:216)
E/DatabaseUtils( 5227):         at com.android.providers.contacts.AbstractContactsProvider.applyBatch(AbstractContactsProvider.java:237)
E/DatabaseUtils( 5227):         at com.android.providers.contacts.ContactsProvider2.applyBatch(ContactsProvider2.java:2243)
E/DatabaseUtils( 5227):         at android.content.ContentProvider$Transport.applyBatch(ContentProvider.java:260)
E/DatabaseUtils( 5227):         at android.content.ContentProviderNative.onTransact(ContentProviderNative.java:185)
E/DatabaseUtils( 5227):         at android.os.Binder.execTransact(Binder.java:404)
E/DatabaseUtils( 5227):         at dalvik.system.NativeStart.run(Native Method)
W/DirectoryHelper(29892): android.content.OperationApplicationException: insert failed
W/DirectoryHelper(29892):       at android.database.DatabaseUtils.readExceptionWithOperationApplicationExceptionFromParcel(DatabaseUtils.java:158)
W/DirectoryHelper(29892):       at android.content.ContentProviderProxy.applyBatch(ContentProviderNative.java:512)
W/DirectoryHelper(29892):       at android.content.ContentProviderClient.applyBatch(ContentProviderClient.java:377)
W/DirectoryHelper(29892):       at android.content.ContentResolver.applyBatch(ContentResolver.java:1227)
W/DirectoryHelper(29892):       at org.thoughtcrime.securesms.contacts.ContactsDatabase.setRegisteredUsers(ContactsDatabase.java:121)
W/DirectoryHelper(29892):       at org.thoughtcrime.securesms.util.DirectoryHelper.updateContactsDatabase(DirectoryHelper.java:163)
W/DirectoryHelper(29892):       at org.thoughtcrime.securesms.util.DirectoryHelper.refreshDirectory(DirectoryHelper.java:111)
W/DirectoryHelper(29892):       at org.thoughtcrime.securesms.util.DirectoryHelper.refreshDirectory(DirectoryHelper.java:59)
W/DirectoryHelper(29892):       at org.thoughtcrime.securesms.ContactSelectionActivity$RefreshDirectoryTask.doInBackground(ContactSelectionActivity.java:143)
W/DirectoryHelper(29892):       at org.thoughtcrime.securesms.ContactSelectionActivity$RefreshDirectoryTask.doInBackground(ContactSelectionActivity.java:128)
W/DirectoryHelper(29892):       at android.os.AsyncTask$2.call(AsyncTask.java:288)
W/DirectoryHelper(29892):       at java.util.concurrent.FutureTask.run(FutureTask.java:237)
W/DirectoryHelper(29892):       at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
W/DirectoryHelper(29892):       at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
W/DirectoryHelper(29892):       at java.lang.Thread.run(Thread.java:841)

Which clearly shows that it can actually access some contacts and then fails at some point.

edit flag offensive delete publish link more

Comments

After deleting and re-importing all contacts I get the same log as above but it fails already after three added numbers.

birefringence ( 2018-01-21 09:54:50 +0200 )edit

Ok, the above error message does not seem to be related to the problem. I deleted all contacts again and also deleted any database files (from /home/nemo/.local/share/system/privileged/Contacts/qtcontacts-slite and /home/.android/data/data/com.andoid.providers.contacts/dabases/). Now the error message disappeared, but android apps still do not see any contacts.

birefringence ( 2018-05-08 00:16:38 +0200 )edit

I get the following log messages when starting alien dalvik:

D/AlienContacts_jni(10949): JNI_OnLoad
D/AlienContacts_jni(10949): AlienContacts_nativeStartSyncContacts
D/ProcessState(10949): getContextObject - ALIEN_ID=[alien]
I/ContactLocale(10949): AddressBook Labels [de_DE]: [, A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, Sch, St, T, U, V, W, X, Y, Z, Α, Β, Γ, Δ, Ε, Ζ, Η, Θ, Ι, Κ, Λ, Μ, Ν, Ξ, Ο, Π, Ρ, Σ, Τ, Υ, Φ, Χ, Ψ, Ω, , А, Б, В, Г, Д, Е, Є, Ж, З, И, І, Ї, Й, К, Л, М, Н, О, П, Р, С, Т, У, Ф, Х, Ц, Ч, Ш, Щ, Ю, Я, , א, ב, ג, ד, ה, ו, ז, ח, ט, י, כ, ל, מ, נ, ס, ע, פ, צ, ק, ר, ש, ת, , ا, ب, ت, ث, ج, ح, خ, د, ذ, ر, ز, س, ش, ص, ض, ط, ظ, ع, غ, ف, ق, ك, ل, م, ن, ه, و, ي, , ก, ข, ฃ, ค, ฅ, ฆ, ง, จ, ฉ, ช, ซ, ฌ, ญ, ฎ, ฏ, ฐ, ฑ, ฒ, ณ, ด, ต, ถ, ท, ธ, น, บ, ป, ผ, ฝ, พ, ฟ, ภ, ม, ย, ร, ฤ, ล, ฦ, ว, ศ, ษ, ส, ห, ฬ, อ, ฮ, , ㄱ, ㄴ, ㄷ, ㄹ, ㅁ, ㅂ, ㅅ, ㅇ, ㅈ, ㅊ, ㅋ, ㅌ, ㅍ, ㅎ, , あ, か, さ, た, な, は, ま, や, ら, わ, #, ]
D/AlienContacts(10949): queryNativeKeys - got 0 contacts
E/JniHandler(10949): Can't find any data about native key and timestamp info. in android contact table
E/AlienContactsService(10625): mQContactList is empty!

How should the correct log look like?

birefringence ( 2018-05-08 22:46:42 +0200 )edit
0

answered 2017-10-16 19:43:41 +0200

melg01 gravatar image

Using Whatsapp, Skype and MS Exchange without problems. But I only use local contacts in Sailfish X, I don't sync them anywhere else (neither with MS Exchange). I see anf use W'app and Skype contacts with full names and pics.

edit flag offensive delete publish link more
0

answered 2017-10-17 17:01:56 +0200

xneo gravatar image

At the end I set my phone back to factory reset. Then I imported my Exchange export an installed WhatsApp later. Now everything works and I have disabled Contacts sync to prevent further issues...

edit flag offensive delete publish link more

Comments

I deleted all my contacts and re-imported them via CalDAV. This didn't help at all.

birefringence ( 2018-01-21 09:54:00 +0200 )edit
Login/Signup to Answer

Question tools

Follow
6 followers

Stats

Asked: 2017-10-13 18:46:46 +0200

Seen: 1,215 times

Last updated: Jan 08 '18