[Galaxy S 4 i9500 Android Development] silverknight56:
Conatcs not working

Hello, first of all many thanks for the good work.

I am having issue with contacts app. After first boot, and syncing my google account, contacts work fine. All contacts visible and working.

Then after reboot, contacts app shows no contacts.

I am using:

gapps pico package

xposed framework v87

TWRP 2.8.7.0

I tried several times with clean slate (wiped cache, dalvik, data, system, data/media/0).

flashed rom zip from TWRP

flashed gapps pico package

flashed xposed framework

sync with google

conatcs visible. Reboot -> contacts gone.

force sync from settings > accounts > google > sync now

error: conatcs sync has stopped.

Also, omniSwitch settings are not persisting. I enable omniswitch. reboot and omniswitch is again disabled.

Moreover, sometimes, date and time settings get corrupted between reboots.

logcat shows these lines:

12-20 18:26:04.385 4981 4981 E dex2oat : Failed to create oat file: /data/dalvik-cache/arm/data@data@com.google.android.gms@app_chimera@m@00000001@DynamiteModulesA_GmsCore_prodmnc_xxhdpi_release.apk@classes.dex: Permission denied

12-20 18:26:04.385 4981 4981 I dex2oat : dex2oat took 1.633ms (threads: 4)

12-20 18:26:04.389 4799 4799 W art : Failed execv(/system/bin/dex2oat --runtime-arg -classpath --runtime-arg /system/framework/XposedBridge.jar --instruction-set=arm --instruction-set-features=smp,-div,-atomic_ldrd_strd --runtime-arg -Xnorelocate --boot-image=/system/framework/boot.art --runtime-arg -Xms64m --runtime-arg -Xmx512m --compiler-filter=speed --instruction-set-variant=cortex-a15 --instruction-set-features=default --dex-file=/data/data/com.google.android.gms/app_chimera/m/00000001/oat/arm/DynamiteModulesA_GmsCore_prodmnc_xxhdpi_release.odex --oat-file=/data/dalvik-cache/arm/data@data@com.google.android.gms@app_chimera@m@00000001@DynamiteModulesA_GmsCore_prodmnc_xxhdpi_release.apk@classes.dex) because non-0 exit status

12-20 18:26:04.392 4799 4799 W art : Falling back to interpreting /data/data/com.google.android.gms/app_chimera/m/00000001/oat/arm/DynamiteModulesA_GmsCore_prodmnc_xxhdpi_release.odex

12-20 18:26:04.393 4799 4799 W System : ClassLoader referenced unknown path: /data/user/0/com.google.android.gms/app_chimera/m/00000001/n/armeabi

---

12-20 18:29:06.249 3205 3245 I ActivityManager: Start proc 6326:com.google.process.gapps/u0a92 for service com.google.android.syncadapters.contacts/.ContactsSyncAdapterService

12-20 18:29:06.358 6339 6339 E dex2oat : Failed to create oat file: /data/dalvik-cache/arm/system@app@GoogleContactsSyncAdapter@GoogleContactsSyncAdapter.apk@classes.dex: Permission denied

12-20 18:29:06.358 6339 6339 I dex2oat : dex2oat took 1.632ms (threads: 4)

12-20 18:29:06.361 6326 6326 W art : Failed execv(/system/bin/dex2oat --runtime-arg -classpath --runtime-arg /system/framework/XposedBridge.jar --instruction-set=arm --instruction-set-features=smp,-div,-atomic_ldrd_strd --runtime-arg -Xnorelocate --boot-image=/system/framework/boot.art --runtime-arg -Xms64m --runtime-arg -Xmx512m --compiler-filter=speed --instruction-set-variant=cortex-a15 --instruction-set-features=default --dex-file=/system/app/GoogleContactsSyncAdapter/GoogleContactsSyncAdapter.apk --oat-file=/data/dalvik-cache/arm/system@app@GoogleContactsSyncAdapter@GoogleContactsSyncAdapter.apk@classes.dex) because non-0 exit status

12-20 18:29:06.433 6326 6326 W System : ClassLoader referenced unknown path: /system/app/GoogleContactsSyncAdapter/lib/arm

---

12-20 18:30:46.077 4908 6515 E ActivityThread: Failed to find provider info for com.android.contacts.metadata

12-20 18:30:46.084 3205 3245 D SyncManager: failed sync operation ***@gmail.com u0 (com.google), com.android.contacts.metadata, POLL, currentRunTime 528804, reason: UserStart, SyncResult: databaseError: true stats []

12-20 18:30:46.085 3205 3245 D SyncManager: not retrying sync operation because the error is a hard error: ***@gmail.com u0 (com.google), com.android.contacts.metadata, POLL, currentRunTime 649322, reason: UserStart

Edit: regardless of above errors, clearing data for contacts storage app (com.android.providers.contacts) and re-syncing after every reboot, contacts are working fine