i followed a lot of tutorials, at the moment i have:
created a new project on google developer console
created a new api key, restricted it to android app, added my package name (package="XXXX.YYYY" field of manifest tag in AndroidManifest.xml), added my SHA1 (using this command
keytool -exportcert -alias androiddebugkey -keystore ~/.android/debug.keystore -list -v)
added INTERNET, ACCESS_NETWORK_STATE and GET_ACCOUNTS permissions in my AndroidManifest.xml
added <meta-data android:name="com.google.android.apps.drive.APP_ID" android:value="id=My_Key_copied_from_google_devel_console" /> inside application tag in AndroidManifest.xml
added this dep in gradle: compile 'com.google.android.gms:play-services-drive:9.0.0'
created a new activity and copy-pasted MainActivity from quickstart example from google
now i get this error when i click on my accout to authenticate it:
02-23 20:47:20.105 1931-2504/com.google.android.gms.persistent W/GLSUser: [AppCertManager] IOException while requesting key:
java.io.IOException: Invalid device key response.
at enr.a(:com.google.android.gms:282)
at enr.a(:com.google.android.gms:4237)
at enq.a(:com.google.android.gms:46)
at enk.a(:com.google.android.gms:53)
at enj.a(:com.google.android.gms:111)
at com.google.android.gms.auth.account.be.legacy.AuthCronChimeraService.b(:com.google.android.gms:4052)
at dxg.call(:com.google.android.gms:2043)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
at kzi.run(:com.google.android.gms:450)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
at ldm.run(:com.google.android.gms:17)
at java.lang.Thread.run(Thread.java:818)
i'm testing with android emulator 5.0 x86_64 with google apis.
where am I doing wrong?
EDIT:
as Bertrand Martel pointed out i must sign my apk, but still no luck.
also here is a full log:
02-23 22:19:15.605 1493-1519/system_process I/ActivityManager: Displayed rmbq.patrol_one_v2.unbrand/rmbq.patrol_one_v2.WelcomeActivity: +84ms
02-23 22:19:15.623 3083-3100/rmbq.patrol_one_v2.unbrand D/OpenGLRenderer: endAllStagingAnimators on 0x7fc2591be400 (RippleDrawable) with handle 0x7fc25a73e660
02-23 22:19:16.997 1493-1559/system_process W/AudioTrack: AUDIO_OUTPUT_FLAG_FAST denied by client
02-23 22:19:16.997 1493-2523/system_process I/ActivityManager: START u0 {cmp=rmbq.patrol_one_v2.unbrand/rmbq.patrol_one_v2.SettingsActivity} from uid 10063 on display 0
02-23 22:19:17.022 1493-1657/system_process W/AppOps: Bad call: specified package com.google.android.gms under uid 10063 but it is really 10007
02-23 22:19:17.023 1493-1806/system_process W/AppOps: Bad call: specified package com.google.android.gms under uid 10063 but it is really 10007
02-23 22:19:17.023 1493-1941/system_process W/AppOps: Bad call: specified package com.google.android.gms under uid 10063 but it is really 10007
02-23 22:19:17.025 1493-1938/system_process W/AppOps: Bad call: specified package com.google.android.gms under uid 10063 but it is really 10007
02-23 22:19:17.055 1493-1519/system_process I/ActivityManager: Displayed rmbq.patrol_one_v2.unbrand/rmbq.patrol_one_v2.SettingsActivity: +58ms
02-23 22:19:17.081 1493-1508/system_process I/ActivityManager: START u0 {act=com.google.android.gms.signin.action.SIGN_IN cmp=com.google.android.gms/.signin.activity.SignInActivity (has extras)} from uid 10007 on display 0
02-23 22:19:17.083 2481-2481/com.google.android.gms.ui D/ChimeraActivityProxy: Loading activity implementation for ComponentInfo{com.google.android.gms/com.google.android.gms.signin.activity.SignInActivity}
02-23 22:19:17.083 2481-2481/com.google.android.gms.ui D/ChimeraActivityProxy: Proxying container activity ComponentInfo{com.google.android.gms/com.google.android.gms.signin.activity.SignInActivity} to Chimera activity impl .signin.activity.SignInChimeraActivity
02-23 22:19:17.090 1493-1807/system_process I/ActivityManager: START u0 {act=com.google.android.gms.common.account.CHOOSE_ACCOUNT_USERTILE pkg=com.google.android.gms cmp=com.google.android.gms/.common.account.AccountChipAccountPickerActivity (has extras)} from uid 10007 on display 0
02-23 22:19:17.111 2481-2481/com.google.android.gms.ui D/ChimeraActivityProxy: Loading activity implementation for ComponentInfo{com.google.android.gms/com.google.android.gms.common.account.AccountChipAccountPickerActivity}
02-23 22:19:17.111 2481-2481/com.google.android.gms.ui D/ChimeraActivityProxy: Proxying container activity ComponentInfo{com.google.android.gms/com.google.android.gms.common.account.AccountChipAccountPickerActivity} to Chimera activity impl .common.account.AccountChipAccountPickerChimeraActivity
02-23 22:19:17.151 1493-1519/system_process I/ActivityManager: Displayed com.google.android.gms/.common.account.AccountChipAccountPickerActivity: +58ms (total +69ms)
02-23 22:19:19.007 1493-1559/system_process W/AudioTrack: AUDIO_OUTPUT_FLAG_FAST denied by client
02-23 22:19:19.040 2481-2780/com.google.android.gms.ui D/OpenGLRenderer: endAllStagingAnimators on 0x7fc245fd7400 (ListView) with handle 0x7fc25aa627e0
02-23 22:19:19.059 2481-2481/com.google.android.gms.ui D/StrictMode: Wrote violation #0 of 3: 12720 bytes
02-23 22:19:19.061 2030-2044/com.google.android.gms D/StrictMode: Wrote violation #0 of 3: 13676 bytes
02-23 22:19:19.221 1120-1120/? W/SurfaceFlinger: couldn't log to binary event log: overflow.
02-23 22:19:19.341 1889-2403/com.google.android.gms.persistent W/ContentTaskController: Invalid task was provided to stopTracking.
02-23 22:19:19.375 1493-1808/system_process W/AppOps: Bad call: specified package com.google.android.gms under uid 10063 but it is really 10007
02-23 22:19:19.381 1889-2220/com.google.android.gms.persistent I/art: Explicit concurrent mark sweep GC freed 55504(3MB) AllocSpace objects, 13(214KB) LOS objects, 30% free, 9MB/13MB, paused 136us total 12.142ms
02-23 22:19:19.383 1493-2523/system_process I/ActivityManager: START u0 {act=com.google.android.gms.signin.action.SIGN_IN cmp=com.google.android.gms/.signin.activity.SignInActivity (has extras)} from uid 10007 on display 0
02-23 22:19:19.386 1889-1889/com.google.android.gms.persistent W/GLSUser: [DeviceKeyStore] Cannot load key: Device key file not found.
02-23 22:19:19.391 1131-1530/? E/Drm: Failed to find drm plugin
02-23 22:19:19.391 2559-2904/com.google.android.gms.unstable W/DG.WV: Widevine DRM not supported on this device
android.media.UnsupportedSchemeException: Failed to instantiate drm object.
at android.media.MediaDrm.native_setup(Native Method)
at android.media.MediaDrm.<init>(MediaDrm.java:180)
at obk.a(:com.google.android.gms:119)
at nyd.run(:com.google.android.gms:1092)
at kzi.run(:com.google.android.gms:450)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
at ldm.run(:com.google.android.gms:17)
at java.lang.Thread.run(Thread.java:818)
02-23 22:19:19.392 2481-2481/com.google.android.gms.ui D/ChimeraActivityProxy: Loading activity implementation for ComponentInfo{com.google.android.gms/com.google.android.gms.signin.activity.SignInActivity}
02-23 22:19:19.392 2481-2481/com.google.android.gms.ui D/ChimeraActivityProxy: Proxying container activity ComponentInfo{com.google.android.gms/com.google.android.gms.signin.activity.SignInActivity} to Chimera activity impl .signin.activity.SignInChimeraActivity
02-23 22:19:19.393 1493-1657/system_process I/ActivityManager: START u0 {act=com.google.android.gms.common.account.CHOOSE_ACCOUNT_USERTILE pkg=com.google.android.gms cmp=com.google.android.gms/.common.account.AccountChipAccountPickerActivity (has extras)} from uid 10007 on display 0
02-23 22:19:19.411 2481-2481/com.google.android.gms.ui D/ChimeraActivityProxy: Loading activity implementation for ComponentInfo{com.google.android.gms/com.google.android.gms.common.account.AccountChipAccountPickerActivity}
02-23 22:19:19.411 2481-2481/com.google.android.gms.ui D/ChimeraActivityProxy: Proxying container activity ComponentInfo{com.google.android.gms/com.google.android.gms.common.account.AccountChipAccountPickerActivity} to Chimera activity impl .common.account.AccountChipAccountPickerChimeraActivity
02-23 22:19:19.412 2481-2481/com.google.android.gms.ui D/StrictMode: Wrote violation #0 of 3: 16236 bytes
02-23 22:19:19.453 1493-1519/system_process I/ActivityManager: Displayed com.google.android.gms/.common.account.AccountChipAccountPickerActivity: +58ms (total +70ms)
02-23 22:19:20.164 1493-1571/system_process D/TaskPersister: removeObsoleteFile: deleting file=135_task.xml
02-23 22:19:20.164 1493-1571/system_process D/TaskPersister: removeObsoleteFile: deleting file=135_task_thumbnail.png
02-23 22:19:21.876 1889-2478/com.google.android.gms.persistent W/Conscrypt: Could not set socket write timeout: null
02-23 22:19:21.911 1889-2478/com.google.android.gms.persistent W/Conscrypt: Could not set socket write timeout: null
02-23 22:19:22.311 1889-2478/com.google.android.gms.persistent W/GLSUser: [AppCertManager] IOException while requesting key:
java.io.IOException: Invalid device key response.
at enr.a(:com.google.android.gms:282)
at enr.a(:com.google.android.gms:4237)
at enq.a(:com.google.android.gms:46)
at enk.a(:com.google.android.gms:53)
at enj.a(:com.google.android.gms:111)
at com.google.android.gms.auth.account.be.legacy.AuthCronChimeraService.b(:com.google.android.gms:4052)
at dxg.call(:com.google.android.gms:2043)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
at kzi.run(:com.google.android.gms:450)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
at ldm.run(:com.google.android.gms:17)
at java.lang.Thread.run(Thread.java:818)
02-23 22:19:22.312 1889-2403/com.google.android.gms.persistent W/ContentTaskController: Invalid newTask was provided to startTracking.
all steps in my question were correct but i was missing one:
create an ID client OAuth 2.0 in google developer console with my SHA1 and package name.
EDIT:
after some testing API KEY isn't needed, only ID client OAuth 2.0
Related
i'm trying to make a Facebook app invite in Unity on Android platform. I'm currently using Facebook SDK 4.11.0 and Unity 2017.2.0.
The flow here would be:
Facebook init at app launch
User press app invite button
Check if the user has publish_actions and user_friends read/write permissions.
Ask for login in case the permissions are not granted.
If success, then make a Facebook app invite through API.
The code of the app invite looks like this:
public void FbAppInvite(string message)
{
FacebookHelper.AuthenticateWithPublishPermissions(new List<string>() { "publish_actions" },
(bool publishSuccess) =>
{
if (publishSuccess)
{
FacebookHelper.AuthenticateWithReadPermissions(new List<string>() { "user_friends" }, (bool success) =>
{
if (success)
{
FB.Mobile.AppInvite(
new System.Uri("https://mycustomurl"),
new System.Uri("https://mycustomimage.png"),
(IAppInviteResult result) =>
{
if (string.IsNullOrEmpty(result.Error)
&& !result.Cancelled)
{
object o;
if (result.ResultDictionary != null
&& result.ResultDictionary.TryGetValue("did_complete", out o))
{
if (o.Equals(true))
{
// Success
}
}
}
}
);
}
});
}
}
);
}
At this point, the app tries to authenticate (which returns success) and finally makes the app invite call. Then the app freezes in a white screen for a couple of seconds and then nothing happens.. the friend dialog never gets displayed.
This is the resumed log:
02-23 12:45:57.515: V/com.facebook.unity.FB(3209): sending to Unity OnLoginComplete({"access_token":"EAAYpxPZBpQAQBALx89AgtWMkwLXgDLTAJrI5xJILs6EvkqWzziPJIF9zp4HBm9is5DM20J09ArnJyF4OpPZCsLNX8KuZBnM9W51TOPxyUulj8EO2UZB92p3hkJeDBTw7O8xyne7GGgrKDuHfG7ZArcx0LfPwA1qNYFs9Vj89K6Q1mVo3tZBAMpp5GqvZA380gZBokIZBoylDNy4DaCgcaAuTW1eKCyFO5jRQ26odQhf8C3AZDZD","user_id":"104382067059532","callback_id":"5","key_hash":"kH5qC25dEVrn9wK4fwqWG5ubgbM=\n","permissions":"publish_actions,public_profile,user_friends","expiration_timestamp":"1524584697","last_refresh":"1519400757","opened":true,"declined_permissions":""})
02-23 12:45:58.756: V/com.facebook.unity.FB(3209): sending to Unity OnLoginComplete({"access_token":"EAAYpxPZBpQAQBAEbZC4bRSVAOiFZAkmaWYRdaODOHJVz1jfnq2Pj73Pj2VrjrFl6oshZAQTSihAtev2ZCEe5FCZAbUNRZAH411cjn5eJzdcC9aLrDTJgcFZA4g9Xv3ZAf4yXrVduwYVPyuczG0Xh1lNyoSOxRcf2YHAUgEdfKjXTqO9nhT1ru3IohzSSQbt7VPYSgIyIo21gelLoqeLSRId1NLuRLnKRvqe8rZBZAAJjyXrnU0KQHTyCfO7","user_id":"104382067059532","callback_id":"6","key_hash":"kH5qC25dEVrn9wK4fwqWG5ubgbM=\n","permissions":"publish_actions,public_profile,user_friends","expiration_timestamp":"1524584697","last_refresh":"1519400758","opened":true,"declined_permissions":""})
02-23 12:45:58.863: V/com.facebook.unity.FB(3209): AppInvite({"appLinkUrl":"https://polygonstudios.app.link/c1dstrdVKK","previewImageUrl":"http://polygontechstudios.com.ar/motormaniak/fbshare.png","callback_id":"7"})
02-23 12:45:58.865: I/ActivityManager(3512): START u0 {cmp=com.polygontech.motormaniak/com.facebook.unity.AppInviteDialogActivity (has extras)} from uid 10126
02-23 12:45:59.113: I/ActivityManager(3512): START u0 {act=com.facebook.platform.PLATFORM_ACTIVITY cat=[android.intent.category.DEFAULT] pkg=com.facebook.katana cmp=com.facebook.katana/com.facebook.platform.common.activity.PlatformWrapperActivity (has extras)} from uid 10126
02-23 12:45:59.308: W/PersistToDiskTh(29545): type=1400 audit(0.0:3535): avc: denied { read } for name="vmstat" dev="proc" ino=4026546034 scontext=u:r:untrusted_app_25:s0:c512,c768 tcontext=u:object_r:proc:s0 tclass=file permissive=0
02-23 12:45:59.312: D/AppStateLogger(29527): Activity com.facebook.platform.common.activity.PlatformWrapperActivity changed state to Created
02-23 12:45:59.313: D/AppStateMemParser(29527): Could not open vmstat file
02-23 12:45:59.313: D/AppStateMemParser(29527): java.io.FileNotFoundException: /proc/vmstat (Permission denied)
02-23 12:45:59.313: D/AppStateMemParser(29527): at java.io.FileInputStream.open0(Native Method)
02-23 12:45:59.313: D/AppStateMemParser(29527): at java.io.FileInputStream.open(FileInputStream.java:200)
02-23 12:45:59.313: D/AppStateMemParser(29527): at java.io.FileInputStream.<init>(FileInputStream.java:150)
02-23 12:45:59.313: D/AppStateMemParser(29527): at java.io.FileInputStream.<init>(FileInputStream.java:103)
02-23 12:45:59.313: D/AppStateMemParser(29527): at java.io.FileReader.<init>(FileReader.java:58)
02-23 12:45:59.313: D/AppStateMemParser(29527): at X.00n.run(:3877)
02-23 12:45:59.347: D/AppStateLogger(29527): Successfully dumped app state to log file
02-23 12:45:59.404: I/WindowManager(3512): Screen frozen for +503ms due to Window{6941acf u0 StatusBar}
02-23 12:45:59.428: W/PersistToDiskTh(29545): type=1400 audit(0.0:3536): avc: denied { read } for name="vmstat" dev="proc" ino=4026546034 scontext=u:r:untrusted_app_25:s0:c512,c768 tcontext=u:object_r:proc:s0 tclass=file permissive=0
02-23 12:45:59.432: D/AppStateLogger(29527): Activity com.facebook.platform.common.activity.PlatformWrapperActivity changed state to Started
02-23 12:45:59.433: D/AppStateMemParser(29527): Could not open vmstat file
02-23 12:45:59.433: D/AppStateMemParser(29527): java.io.FileNotFoundException: /proc/vmstat (Permission denied)
02-23 12:45:59.433: D/AppStateMemParser(29527): at java.io.FileInputStream.open0(Native Method)
02-23 12:45:59.433: D/AppStateMemParser(29527): at java.io.FileInputStream.open(FileInputStream.java:200)
02-23 12:45:59.433: D/AppStateMemParser(29527): at java.io.FileInputStream.<init>(FileInputStream.java:150)
02-23 12:45:59.433: D/AppStateMemParser(29527): at java.io.FileInputStream.<init>(FileInputStream.java:103)
02-23 12:45:59.433: D/AppStateMemParser(29527): at java.io.FileReader.<init>(FileReader.java:58)
02-23 12:45:59.433: D/AppStateMemParser(29527): at X.00n.run(:3877)
02-23 12:45:59.446: D/AppStateLogger(29527): Activity com.facebook.platform.common.activity.PlatformWrapperActivity changed state to Resumed
02-23 12:45:59.469: D/AppStateLogger(29527): Successfully dumped app state to log file
02-23 12:45:59.495: W/PersistToDiskTh(29545): type=1400 audit(0.0:3537): avc: denied { read } for name="vmstat" dev="proc" ino=4026546034 scontext=u:r:untrusted_app_25:s0:c512,c768 tcontext=u:object_r:proc:s0 tclass=file permissive=0
02-23 12:45:59.501: D/AppStateMemParser(29527): Could not open vmstat file
02-23 12:45:59.501: D/AppStateMemParser(29527): java.io.FileNotFoundException: /proc/vmstat (Permission denied)
02-23 12:45:59.501: D/AppStateMemParser(29527): at java.io.FileInputStream.open0(Native Method)
02-23 12:45:59.501: D/AppStateMemParser(29527): at java.io.FileInputStream.open(FileInputStream.java:200)
02-23 12:45:59.501: D/AppStateMemParser(29527): at java.io.FileInputStream.<init>(FileInputStream.java:150)
02-23 12:45:59.501: D/AppStateMemParser(29527): at java.io.FileInputStream.<init>(FileInputStream.java:103)
02-23 12:45:59.501: D/AppStateMemParser(29527): at java.io.FileReader.<init>(FileReader.java:58)
02-23 12:45:59.501: D/AppStateMemParser(29527): at X.00n.run(:3877)
02-23 12:45:59.536: D/AppStateLogger(29527): Activity com.facebook.platform.common.activity.PlatformWrapperActivity changed state to Paused
02-23 12:45:59.542: D/AppStateLogger(29527): Successfully dumped app state to log file
02-23 12:45:59.610: D/AppStateLogger(29527): Activity com.facebook.platform.webdialogs.PlatformWebDialogsActivity changed state to Created
02-23 12:45:59.651: D/AppStateLogger(29527): Activity com.facebook.platform.webdialogs.PlatformWebDialogsActivity changed state to Started
02-23 12:45:59.805: D/AppStateLogger(29527): Activity com.facebook.platform.webdialogs.PlatformWebDialogsActivity changed state to Resumed
02-23 12:45:59.820: I/ActivityManager(3512): Start proc 4133:com.android.chrome:sandboxed_process0/u0i447 for webview_service com.facebook.katana/org.chromium.content.app.SandboxedProcessService0
02-23 12:45:59.833: E//system/bin/webview_zygote32(4133): Failed to make and chown /acct/uid_99447: Permission denied
02-23 12:45:59.833: E/Zygote(4133): createProcessGroup(99447, 0) failed: Permission denied
02-23 12:45:59.836: I//system/bin/webview_zygote32(4133): Late-enabling -Xcheck:jni
02-23 12:45:59.934: I/GoogleInputMethod(4974): onStartInput() : Dummy InputConnection bound
02-23 12:45:59.981: I/ActivityManager(3512): Displayed com.facebook.katana/com.facebook.platform.webdialogs.PlatformWebDialogsActivity: +413ms (total +1s63ms)
02-23 12:46:00.010: E/fb4a.GRAPHQL_QUERY_STRING(29527): Trying to set unknown parameter 'node_id' on query 'ImportantFeedStorySubV2'
02-23 12:46:00.011: E/fb4a.GRAPHQL_QUERY_STRING(29527): Trying to set unknown parameter 'include_comments_disabled_fields' on query 'ImportantFeedStorySubV2'
02-23 12:46:00.016: I/ActivityManager(3512): Process com.google.android.gm (pid 1502) has died: cch+6CEM
02-23 12:46:00.016: W/zygote64(3512): kill(-1502, 9) failed: No such process
02-23 12:46:00.017: I/zygote64(3512): Successfully killed process cgroup uid 10091 pid 1502 in 1ms
02-23 12:46:00.027: E/fb4a.GRAPHQL_QUERY_STRING(29527): Trying to set unknown parameter 'enable_comment_reactions' on query 'ImportantFeedStorySubV2'
02-23 12:46:00.028: E/fb4a.GRAPHQL_QUERY_STRING(29527): Trying to set unknown parameter 'enable_comment_reactions_icons' on query 'ImportantFeedStorySubV2'
02-23 12:46:00.029: E/fb4a.GRAPHQL_QUERY_STRING(29527): Trying to set unknown parameter 'max_reactors' on query 'ImportantFeedStorySubV2'
02-23 12:46:00.031: E/fb4a.GRAPHQL_QUERY_STRING(29527): Trying to set unknown parameter 'enable_ranked_replies' on query 'ImportantFeedStorySubV2'
02-23 12:46:00.032: E/fb4a.GRAPHQL_QUERY_STRING(29527): Trying to set unknown parameter 'enable_private_reply' on query 'ImportantFeedStorySubV2'
02-23 12:46:00.032: E/fb4a.GRAPHQL_QUERY_STRING(29527): Trying to set unknown parameter 'enable_comment_replies_most_recent' on query 'ImportantFeedStorySubV2'
02-23 12:46:00.033: E/fb4a.GRAPHQL_QUERY_STRING(29527): Trying to set unknown parameter 'max_comment_replies' on query 'ImportantFeedStorySubV2'
02-23 12:46:00.033: E/fb4a.GRAPHQL_QUERY_STRING(29527): Trying to set unknown parameter 'enable_comment_shares' on query 'ImportantFeedStorySubV2'
02-23 12:46:00.034: E/fb4a.GRAPHQL_QUERY_STRING(29527): Trying to set unknown parameter 'enable_comment_reactions' on query 'ImportantFeedStorySubV2'
02-23 12:46:00.034: E/fb4a.GRAPHQL_QUERY_STRING(29527): Trying to set unknown parameter 'enable_comment_reactions_icons' on query 'ImportantFeedStorySubV2'
02-23 12:46:00.035: E/fb4a.GRAPHQL_QUERY_STRING(29527): Trying to set unknown parameter 'max_reactors' on query 'ImportantFeedStorySubV2'
02-23 12:46:00.056: E/asset(4147): setgid: Operation not permitted
02-23 12:46:00.060: W/ActivityManager(3512): Permission Denial: opening provider com.android.providers.contacts.CallLogProvider from ProcessRecord{f75e551 29527:com.facebook.katana/u0a125} (pid=29527, uid=10125) requires android.permission.READ_CALL_LOG or android.permission.WRITE_CALL_LOG
02-23 12:46:00.060: W/ContentService(3512): Ignoring content changes for content://call_log/calls from 10125: Permission Denial: opening provider com.android.providers.contacts.CallLogProvider from ProcessRecord{f75e551 29527:com.facebook.katana/u0a125} (pid=29527, uid=10125) requires android.permission.READ_CALL_LOG or android.permission.WRITE_CALL_LOG
02-23 12:46:00.160: W/ActivityManager(3512): Permission Denial: Accessing service ComponentInfo{com.google.android.music/com.google.android.music.dial.DialMediaRouteProviderService} from pid=29527, uid=10125 that is not exported from uid 10084
02-23 12:46:00.538: W/PersistToDiskTh(29545): type=1400 audit(0.0:3540): avc: denied { read } for name="vmstat" dev="proc" ino=4026546034 scontext=u:r:untrusted_app_25:s0:c512,c768 tcontext=u:object_r:proc:s0 tclass=file permissive=0
02-23 12:46:00.543: D/AppStateMemParser(29527): Could not open vmstat file
02-23 12:46:00.543: D/AppStateMemParser(29527): java.io.FileNotFoundException: /proc/vmstat (Permission denied)
02-23 12:46:00.543: D/AppStateMemParser(29527): at java.io.FileInputStream.open0(Native Method)
02-23 12:46:00.543: D/AppStateMemParser(29527): at java.io.FileInputStream.open(FileInputStream.java:200)
02-23 12:46:00.543: D/AppStateMemParser(29527): at java.io.FileInputStream.<init>(FileInputStream.java:150)
02-23 12:46:00.543: D/AppStateMemParser(29527): at java.io.FileInputStream.<init>(FileInputStream.java:103)
02-23 12:46:00.543: D/AppStateMemParser(29527): at java.io.FileReader.<init>(FileReader.java:58)
02-23 12:46:00.543: D/AppStateMemParser(29527): at X.00n.run(:3877)
I'm using a test user (configured in app console) loged in facebook app and my real user configured as administrator.
Looks like there is a file vmstat in the device that is trying to open which it does not have permission, don't really know why.
I've tried granting all permissions asked by Facebook app in my device, still no luck.
I'm using the right permissions for this request? The idea is that the user share the app (install) to their friends.
My device is currently at Android 8.1.0. Could this be an issue?
Any ideas?
Well the problem most probably comes because the Facebook app invites has been deprecated since 5 february 2018....
I've build 2 different APK files of my app with 2 different package names com.xxx.digital (Production version) and com.xxx.digital.staging (Staging/ test version)
Once I've installed one of the 2 APK, installation of the other fails.
What's wrong?
build.gradle:
productFlavors {
staging {
applicationIdSuffix ".staging"
resValue "string", "app_name", "Staging"
}
production {
resValue "string", "app_name", "My App"
}
}
I installed com.xxx.digital.staging first, when trying to install com.xxx.digital on the same device:
01-05 17:26:24.038 I/Timeline: Timeline: Activity_launch_request id:com.google.android.packageinstaller time:194533616
--------- beginning of system
01-05 17:26:24.041 I/ActivityManager: START u0 {dat=file:///data/user/0/io.crash.air/files/com.xxx.digital_350c86df94f9416190d72a69f606a36d.apk cmp=com.google.android.packageinstaller/com.android.packageinstaller.InstallAppProgress (has extras)} from uid 10043 on display 0
01-05 17:26:24.132 I/ActivityManager: Start proc 22726:com.android.defcontainer/u0a33 for service com.android.defcontainer/.DefaultContainerService
01-05 17:26:24.205 I/ActivityManager: Displayed com.google.android.packageinstaller/com.android.packageinstaller.InstallAppProgress: +144ms
01-05 17:26:24.212 E/NativeLibraryHelper: Failed to load assets verifier: 0
01-05 17:26:24.225 D/OpenGLRenderer: endAllActiveAnimators on 0x7f95f35400 (RippleDrawable) with handle 0x7f914aa4e0
01-05 17:26:24.232 I/Timeline: Timeline: Activity_idle id: android.os.BinderProxy#8f234c0 time:194533809
01-05 17:26:24.260 I/Finsky: [1] com.google.android.vending.verifier.PackageVerificationReceiver.onReceive(41): Verification requested, id = 34
01-05 17:26:24.337 W/SurfaceFlinger: couldn't log to binary event log: overflow.
01-05 17:26:24.392 I/Timeline: Timeline: Activity_windows_visible id: ActivityRecord{ca91c0e u0 com.google.android.packageinstaller/com.android.packageinstaller.InstallAppProgress t658} time:194533969
01-05 17:26:30.325 I/Finsky: [44062] com.google.android.finsky.services.ForegroundCoordinator.a(104): Task 7 requested foreground
01-05 17:26:30.328 I/Finsky: [44062] com.google.android.finsky.services.ForegroundCoordinator.a(116): Not entering foreground
01-05 17:26:31.977 I/Finsky: [1] com.google.android.vending.verifier.ar.a_(1793): Verification id=34 response=0
01-05 17:26:31.987 I/Finsky: [1] com.google.android.vending.verifier.ak.c(195): Verification complete: id=34, package_name=com.xxx.digital
01-05 17:26:31.988 I/Finsky: [1] com.google.android.vending.verifier.ak.g(17021): Verifying id=34, result=1
01-05 17:26:32.008 D/DefContainer: Copying /data/user/0/io.crash.air/files/com.xxx.digital_350c86df94f9416190d72a69f606a36d.apk to base.apk
01-05 17:26:32.607 E/NativeLibraryHelper: Failed to load assets verifier: 0
01-05 17:26:37.744 I/MSM-irqbalance: Decided to move IRQ215 from CPU3 to CPU2
01-05 17:26:37.944 I/art: Background sticky concurrent mark sweep GC freed 181035(9MB) AllocSpace objects, 29(4MB) LOS objects, 18% free, 56MB/69MB, paused 4.073ms total 129.503ms
01-05 17:26:38.023 E/NativeLibraryHelper: Failed to load assets verifier: 0
01-05 17:26:38.119 I/PackageManager.DexOptimizer: Running dexopt (dex2oat) on: /data/app/vmdl1217860958.tmp/base.apk pkg=com.xxx.digital isa=arm64 vmSafeMode=false debuggable=false oatDir = /data/app/vmdl1217860958.tmp/oat bootComplete=true
01-05 17:26:38.118 I/kworker/u16:0: type=1400 audit(0.0:140340): avc: denied { dac_override } for capability=1 scontext=u:r:kernel:s0 tcontext=u:r:kernel:s0 tclass=capability permissive=1
01-05 17:26:38.346 I/dex2oat: Starting dex2oat.
01-05 17:26:41.844 W/dex2oat: Before Android 4.1, method android.graphics.PorterDuffColorFilter android.support.graphics.drawable.VectorDrawableCompat.updateTintFilter(android.graphics.PorterDuffColorFilter, android.content.res.ColorStateList, android.graphics.PorterDuff$Mode) would have incorrectly overridden the package-private method in android.graphics.drawable.Drawable
01-05 17:26:41.974 W/dex2oat: Before Android 4.1, method int android.support.v7.widget.ListViewCompat.lookForSelectablePosition(int, boolean) would have incorrectly overridden the package-private method in android.widget.ListView
01-05 17:26:42.736 I/MSM-irqbalance: Decided to move IRQ304 from CPU3 to CPU2
01-05 17:26:47.750 I/MSM-irqbalance: Decided to move IRQ224 from CPU3 to CPU2
01-05 17:26:47.809 I/dex2oat: Skipping compilation of void com.fasterxml.jackson.core.json.UTF8StreamJsonParser._skipString(): it contains a non natural loop
01-05 17:26:48.588 I/ActivityManager: Process com.google.android.googlequicksearchbox:search (pid 19656) has died
01-05 17:26:48.646 I/ActivityManager: Process eu.chainfire.supersu (pid 19185) has died
01-05 17:26:48.695 I/ActivityManager: Process com.instagram.android (pid 22053) has died
01-05 17:26:48.762 I/ActivityManager: Process android.process.acore (pid 20841) has died
01-05 17:26:50.121 W/dex2oat: Compilation of void com.google.android.youtube.player.internal.x.a(java.util.Map, java.lang.String) took 133.910ms
01-05 17:26:51.284 W/dex2oat: Compilation of void com.google.zxing.oned.EANManufacturerOrgSupport.initIfNeeded() took 102.399ms
01-05 17:26:51.380 I/dex2oat: Skipping compilation of boolean com.loopj.android.http.Base64$Encoder.process(byte[], int, int, boolean): it contains a non natural loop
01-05 17:26:51.980 W/dex2oat: No verified method for method calling String.<init>: void android.provider.SearchRecentSuggestions.<init>(android.content.Context, java.lang.String, int)
01-05 17:26:52.591 I/dex2oat: Skipping compilation of boolean cz.msebera.android.httpclient.extras.Base64$Encoder.process(byte[], int, int, boolean): it contains a non natural loop
01-05 17:26:52.736 I/MSM-irqbalance: Decided to move IRQ57 from CPU3 to CPU1
01-05 17:26:53.812 W/dex2oat: No verified method for method calling String.<init>: java.lang.String java.io.ByteArrayOutputStream.toString()
01-05 17:26:56.126 I/dex2oat: dex2oat took 17.849s (threads: 8) arena alloc=2MB java alloc=23MB native alloc=61MB free=4MB
01-05 17:26:56.259 E/installd: Couldn't opendir /data/data/com.xxx.digital: No such file or directory
01-05 17:26:56.282 W/PackageManager: Package couldn't be installed in /data/app/com.xxx.digital-1
com.android.server.pm.PackageManagerException: Can't install because provider name .db.MySuggestionProvider (in package com.xxx.digital) is already used by com.xxx.digital.staging
at com.android.server.pm.PackageManagerService.scanPackageDirtyLI(PackageManagerService.java:7094)
at com.android.server.pm.PackageManagerService.scanPackageLI(PackageManagerService.java:6769)
at com.android.server.pm.PackageManagerService.installNewPackageLI(PackageManagerService.java:12135)
at com.android.server.pm.PackageManagerService.installPackageLI(PackageManagerService.java:12916)
at com.android.server.pm.PackageManagerService.access$3300(PackageManagerService.java:297)
at com.android.server.pm.PackageManagerService$9.run(PackageManagerService.java:10496)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:234)
at android.os.HandlerThread.run(HandlerThread.java:61)
at com.android.server.ServiceThread.run(ServiceThread.java:46)
Manifest.xml:
<application>
<provider
android:name=".db.MySuggestionProvider"
android:authorities=".db.MySuggestionProvider"/>
</application>
MySuggestionProvider:
public class MySuggestionProvider extends SearchRecentSuggestionsProvider {
public final static String AUTHORITY = "MySuggestionProvider";
public final static int MODE = DATABASE_MODE_QUERIES;
public MySuggestionProvider() {
setupSuggestions(AUTHORITY, MODE);
}
}
A content URI is a URI that identifies data in a provider source:google.deveoper.com
You are trying to build two different APK's with the same CONTENT AUTHORITY in Content Provider.
The solution I would suggest is to use BuildConfig.APPLICATION_ID as AUTHORITY, that is going to be different in all the various flavours.
MySuggestionProvider
public class MySuggestionProvider extends SearchRecentSuggestionsProvider {
public final static String AUTHORITY =BuildConfig.APPLICATION_ID;
public final static int MODE = DATABASE_MODE_QUERIES;
public MySuggestionProvider() {
setupSuggestions(AUTHORITY, MODE);
}
}
It looks like you are using different package names for the app but the content providers have still the same packgage name. Thats not allowed.
This error happes on update TurnBasedMatch of google play services:
03-31 10:01:15.139 9179-9192/? W/AppOps: Bad call: specified package com.google.android.play.games under uid 10238 but it is really 10062
03-31 10:01:15.139 9179-9803/? W/AppOps: Bad call: specified package com.google.android.play.games under uid 10238 but it is really 10062
03-31 10:01:15.530 14236-4012/? E/Volley: [36392] BasicNetwork.performRequest: Unexpected response code 403 for https://www.googleapis.com/games/v1/turnbasedmatches/ChEKCQTE4Jn3xhYQAhACGAAgARCI66qZ-IqAntsB/turn?language=en_GB
03-31 10:01:15.532 14236-9563/? E/TurnBasedAgent: Failed to update match: null
Few hours before i was playing it, so it's more likely the error on the service's side. Rebooting the phone doesn't help me as was suggested here
When I attempt to sign-in to my game application using Google Play Services, the login fails (error logs included below), and a dialog pops up that says "Unknown issue with Google Play services." I have the google-play-services_lib properly setup as a library dependency in Android Studio and my Activity extends the BaseGameActivity class.
As you can see in the Logs, it says the error is because: "Access Not Configured. The API (Drive API) is not enabled for your project." It comes from com.google.android.gms.drive.auth.c. However, nowhere in my Manifest file or in my code do I use the Drive API. I don't need this API at all, and have not imported or included it anywhere. I am simply calling the beginUserInitiatedSignIn(); method from the BaseGameActivity class. Why is this error message being generated?
I have noticed one line from the logs in particular that doesn't make much sense, but seems to be related:
I/GLSUser﹕ [GLSUser] getTokenFromCache: [account: , callingPkg: com.soerenwalls.gravlfree, service: oauth2:https://www.googleapis.com/auth/plus.login https://www.googleapis.com/auth/games https://www.googleapis.com/auth/drive.appdata https://www.googleapis.com/auth/appstate]
But I still can't wrap my head around why it's seemingly attempting to get data from the drive API. Any help would be really appreciated.
Here are the error logs as promised:
05-25 03:00:49.359 1250-1250/? V/GLSActivity﹕ AuthDelegateWrapperCreated with selected intent: Intent { cmp=com.google.android.gms/.auth.DefaultAuthDelegateService }
05-25 03:00:49.372 1448-1448/? D/ChimeraSrvcProxy﹕ Creating service proxy ComponentInfo{com.google.android.gms/com.google.android.gms.games.chimera.GamesAsyncServiceProxy}
05-25 03:00:49.372 1448-1448/? D/ChimeraSrvcProxy﹕ Proxying container service ComponentInfo{com.google.android.gms/com.google.android.gms.games.chimera.GamesAsyncServiceProxy} to Chimera service impl com.google.android.gms.games.service.PlayGamesAsyncService
05-25 03:00:49.372 1448-1448/? D/ChimeraCfgMgr﹕ Loading module com.google.android.gms.games from APK com.google.android.play.games
05-25 03:00:49.372 1448-1448/? D/ChimeraModuleLdr﹕ Module APK com.google.android.play.games already loaded
05-25 03:00:49.387 1250-9249/? I/GLSUser﹕ [GLSUser] getTokenFromCache: [account: <ELLIDED:-4362>, callingPkg: com.soerenwalls.gravlfree, service: oauth2:https://www.googleapis.com/auth/plus.login https://www.googleapis.com/auth/games https://www.googleapis.com/auth/drive.appdata https://www.googleapis.com/auth/appstate]
05-25 03:00:49.392 1250-9249/? I/Auth.Core﹕ [TokenCache] Missing snowballing token: no granted scopes set.
05-25 03:00:49.412 1448-21701/? V/AuthAccountOperation﹕ offline access is not requested; requesting access token
05-25 03:00:49.428 1250-1990/? I/GLSUser﹕ [GLSUser] getTokenFromCache: [account: <ELLIDED:-4362>, callingPkg: com.soerenwalls.gravlfree, service: oauth2:https://www.googleapis.com/auth/games https://www.googleapis.com/auth/plus.login https://www.googleapis.com/auth/appstate https://www.googleapis.com/auth/drive.appdata]
05-25 03:00:49.431 1250-1990/? I/Auth.Core﹕ [TokenCache] Missing snowballing token: no granted scopes set.
05-25 03:00:49.437 1448-21701/? V/AuthAccountOperation﹕ access token request successful
05-25 03:00:49.463 1448-21698/? W/BaseAppContext﹕ Using Auth Proxy for data requests.
05-25 03:00:49.466 1448-21698/? W/BaseAppContext﹕ Using Auth Proxy for data requests.
05-25 03:00:49.476 1250-1278/? I/GLSUser﹕ [GLSUser] getTokenFromCache: [account: <ELLIDED:-4362>, callingPkg: com.soerenwalls.gravlfree, service: oauth2:https://www.googleapis.com/auth/plus.login https://www.googleapis.com/auth/games https://www.googleapis.com/auth/drive.appdata https://www.googleapis.com/auth/appstate]
05-25 03:00:49.481 1250-1278/? I/Auth.Core﹕ [TokenCache] Missing snowballing token: no granted scopes set.
05-25 03:00:49.490 1250-1990/? I/GLSUser﹕ [GLSUser] getTokenFromCache: [account: <ELLIDED:-4362>, callingPkg: com.soerenwalls.gravlfree, service: oauth2:https://www.googleapis.com/auth/plus.login https://www.googleapis.com/auth/games https://www.googleapis.com/auth/drive.appdata https://www.googleapis.com/auth/appstate]
05-25 03:00:49.496 1250-1990/? I/Auth.Core﹕ [TokenCache] Missing snowballing token: no granted scopes set.
05-25 03:00:49.523 1448-21701/? V/AuthAccountOperation﹕ offline access is not requested; requesting access token
05-25 03:00:49.541 1250-9249/? I/GLSUser﹕ [GLSUser] getTokenFromCache: [account: <ELLIDED:-4362>, callingPkg: com.soerenwalls.gravlfree, service: oauth2:https://www.googleapis.com/auth/games https://www.googleapis.com/auth/plus.login https://www.googleapis.com/auth/appstate https://www.googleapis.com/auth/drive.appdata]
05-25 03:00:49.543 1250-9249/? I/Auth.Core﹕ [TokenCache] Missing snowballing token: no granted scopes set.
05-25 03:00:49.552 1448-21701/? V/AuthAccountOperation﹕ access token request successful
05-25 03:00:49.754 746-1172/? I/art﹕ Explicit concurrent mark sweep GC freed 26211(1326KB) AllocSpace objects, 2(32KB) LOS objects, 22% free, 55MB/71MB, paused 1.903ms total 134.343ms
05-25 03:00:50.138 1046-1559/? D/skia﹕ --- SkImageDecoder::Factory returned null
05-25 03:00:50.139 1046-1559/? W/AssetUtil﹕ loadBitmapAssetFromResources: failed to decode bitmap resource for package com.twitter.android
05-25 03:00:50.204 1448-9053/? E/Volley﹕ [220] BasicNetwork.performRequest: Unexpected response code 403 for https://www.googleapis.com/drive/v2beta/apps/self?prettyPrint=false&fields=id
05-25 03:00:50.210 3043-3105/? D/﹕ PORT_WriteDataCO: tx queue is full,tx.queue_size:10312,tx.queue.count:11,available:6683
05-25 03:00:50.222 1448-21694/? W/BaseAppContext﹕ Using Auth Proxy for data requests.
05-25 03:00:50.225 1448-21698/? E/ClientConnectionOperation﹕ Handling authorization failure
com.google.android.gms.drive.auth.c: Authorization failed: server returned error: Access Not Configured. The API (Drive API) is not enabled for your project. Please use the Google Developers Console to update your configuration.. See https://developers.google.com/drive/handle-errors for details.
at com.google.android.gms.drive.auth.g.a(SourceFile:209)
at com.google.android.gms.drive.auth.g.a(SourceFile:139)
at com.google.android.gms.drive.api.g.<init>(SourceFile:226)
at com.google.android.gms.drive.api.a.k.a(SourceFile:46)
at com.google.android.gms.common.service.g.run(SourceFile:178)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
at java.lang.Thread.run(Thread.java:818)
05-25 03:00:50.273 1250-2712/? I/GLSUser﹕ [GLSUser] getTokenFromCache: [account: <ELLIDED:-4362>, callingPkg: com.soerenwalls.gravlfree, service: oauth2:https://www.googleapis.com/auth/games https://www.googleapis.com/auth/plus.login https://www.googleapis.com/auth/appstate https://www.googleapis.com/auth/drive.appdata]
05-25 03:00:50.276 1250-2712/? I/Auth.Core﹕ [TokenCache] Missing snowballing token: no granted scopes set.
05-25 03:00:50.556 1448-9055/? E/Volley﹕ [222] BasicNetwork.performRequest: Unexpected response code 403 for https://www.googleapis.com/drive/v2beta/apps/self?prettyPrint=false&fields=id
05-25 03:00:50.559 1448-21698/? E/ClientConnectionOperation﹕ Handling authorization failure
com.google.android.gms.drive.auth.c: Authorization failed: server returned error: Access Not Configured. The API (Drive API) is not enabled for your project. Please use the Google Developers Console to update your configuration.. See https://developers.google.com/drive/handle-errors for details.
at com.google.android.gms.drive.auth.g.a(SourceFile:209)
at com.google.android.gms.drive.auth.g.a(SourceFile:139)
at com.google.android.gms.drive.api.g.<init>(SourceFile:226)
at com.google.android.gms.drive.api.a.k.a(SourceFile:46)
at com.google.android.gms.common.service.g.run(SourceFile:178)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
at java.lang.Thread.run(Thread.java:818)
05-25 03:00:50.562 20197-20197/? W/GameHelper﹕ disconnect() called when client was already disconnected.
05-25 03:00:50.564 20197-20197/? E/GooglePlayServicesUtil﹕ Internal error occurred. Please see logs for detailed information
im having this problem with my project. and I dont know what to do. please help me. here is the logcat for the application ran by simulator 2.2
02-23 07:48:27.474: I/PhoneGapLog(274): Changing log level to DEBUG(3)
02-23 07:48:27.474: D/DroidGap(274): DroidGap.onCreate()
02-23 07:48:27.485: D/DroidGap(274): DroidGap.init()
02-23 07:48:27.653: D/DroidGap(274): DroidGap.loadUrl(file:///android_asset/www/index.html, 9000)
02-23 07:48:27.693: D/SoftKeyboardDetect(274): Ignore this event
02-23 07:48:27.804: D/SoftKeyboardDetect(274): Ignore this event
02-23 07:48:36.753: D/DroidGap(274): DroidGap.loadUrl(file:///android_asset/www/index.html)
02-23 07:48:36.753: D/DroidGap(274): DroidGap: url=file:///android_asset/www/index.html baseUrl=file:///android_asset/www/
02-23 07:48:37.245: D/dalvikvm(274): GC_FOR_MALLOC freed 2060 objects / 177440 bytes in 140ms
02-23 07:48:37.423: D/dalvikvm(274): GC_FOR_MALLOC freed 1065 objects / 68792 bytes in 55ms
02-23 07:48:39.503: I/Database(274): sqlite returned: error code = 14, msg = cannot open file at source line 25467
02-23 07:48:40.154: E/Contact Query(274): Value {"birthday":null,"ims":null,"nickname":null,"rawId":null,"urls":null,"organizations":null,"emails":null,"phoneNumbers":null,"photos":null,"id":null,"name":{"middleName":null,"familyName":null,"formatted":"","givenName":"","honorificSuffix":null,"honorificPrefix":null},"categories":null,"addresses":null,"displayName":null,"note":null} at 0 of type org.json.JSONObject cannot be converted to JSONArray
02-23 07:48:40.154: E/Contact Query(274): org.json.JSONException: Value {"birthday":null,"ims":null,"nickname":null,"rawId":null,"urls":null,"organizations":null,"emails":null,"phoneNumbers":null,"photos":null,"id":null,"name":{"middleName":null,"familyName":null,"formatted":"","givenName":"","honorificSuffix":null,"honorificPrefix":null},"categories":null,"addresses":null,"displayName":null,"note":null} at 0 of type org.json.JSONObject cannot be converted to JSONArray
02-23 07:48:40.154: E/Contact Query(274): at org.json.JSON.typeMismatch(JSON.java:96)
02-23 07:48:40.154: E/Contact Query(274): at org.json.JSONArray.getJSONArray(JSONArray.java:459)
02-23 07:48:40.154: E/Contact Query(274): at com.phonegap.ContactManager.execute(ContactManager.java:87)
02-23 07:48:40.154: E/Contact Query(274): at com.phonegap.api.PluginManager$1.run(PluginManager.java:150)
02-23 07:48:40.154: E/Contact Query(274): at java.lang.Thread.run(Thread.java:1096)
02-23 07:48:40.543: D/PhoneGapLog(274): Error in error callback: Contacts2 = ReferenceError: Can't find variable: elert
02-23 07:48:40.543: D/PhoneGapLog(274): file:///android_asset/www/phonegap-1.4.1.js: Line 717 : Error in error callback: Contacts2 = ReferenceError: Can't find variable: elert
02-23 07:48:40.543: I/Web Console(274): Error in error callback: Contacts2 = ReferenceError: Can't find variable: elert at file:///android_asset/www/phonegap-1.4.1.js:717
02-23 07:48:42.493: D/dalvikvm(274): GC_FOR_MALLOC freed 3339 objects / 726120 bytes in 158ms
That's a a little garbled... can you edit your question, wrap the stuff in a code block and give it some newlines? Just at first blush I see a lot of PhoneGap stuff, perhaps you can tag your post with that as well. Anyway it's hard to decipher what's going on, which is the significant error, etc.
Oh there it is... give me a moment...
Well it looks like you're trying to coerce some single JSONObject into a JSONArray... which it seems is bad news. Can you post some code?
This line:
02-23 07:48:39.503: I/Database(274): sqlite returned: error code = 14, msg = cannot open file at source line 25467
Looks like there is an error connecting to the database.
Which in turn causes this error line:
02-23 07:48:40.154: E/Contact Query(274): Value {"birthday":null,"ims":null,"nickname":null,"rawId":null,"urls":null,"organizations":null,"emails":null,"phoneNumbers":null,"photos":null,"id":null,"name":{"middleName":null,"familyName":null,"formatted":"","givenName":"","honorificSuffix":null,"honorificPrefix":null},"categories":null,"addresses":null,"displayName":null,"note":null} at 0 of type org.json.JSONObject cannot be converted to JSONArray
Because all the values that are probably supposed to be pulled from the database are null values, and thus why your application is failing.
The first error tells you exactly which line of code is failing: 25467.
Look at that line in your project.
I think I could help if I could see your HTML code. It appears that you are trying to do a navigator.contacts.find() and it isn't returning any results. The other thing I notice is your error callback is trying to execute "elert" but that probably should be "alert".