Bug in Account manager related to DAV protocol

Hi , Account Manager is showing some synchronization issues. It is related to DAV protocol using to sync contacts or calendar information in google address book. I don’t know which one causes the issue, the contacts app or Account manager (Is it V=DAVX^5 ) . It is getting a 401 or 404 from google servers, stating as an unauthorized access even though credentials are correct I am attaching the debug info.

--- BEGIN DEBUG INFO ---
SYNCHRONIZATION INFO
Account name: Address Book (someemail@gmail.com CQ)
Authority: com.android.contacts

HTTP REQUEST:
Request{method=PROPFIND, url=https://apidata.googleusercontent.com/carddav/v1/principals/someemail@gmail.com/lists/default/, tags={}}
<?xml version='1.0' encoding='UTF-8' ?><propfind xmlns="DAV:" xmlns:CAL="urn:ietf:params:xml:ns:caldav" xmlns:CARD="urn:ietf:params:xml:ns:carddav"><prop><CARD:supported-address-data /><supported-report-set /><n0:getctag xmlns:n0="http://calendarserver.org/ns/" /><sync-token /></prop></propfind>

HTTP RESPONSE:
Response{protocol=h2, code=401, message=, url=https://apidata.googleusercontent.com/carddav/v1/principals/someemail@gmail.com/lists/default/}



REMOTE RESOURCE:
https://apidata.googleusercontent.com/carddav/v1/principals/someemail@gmail.com/lists/default/

EXCEPTION:
foundation.e.dav4jvm.exception.UnauthorizedException: HTTP 401 
	at foundation.e.dav4jvm.DavResource.checkStatus(DavResource.kt:411)
	at foundation.e.dav4jvm.DavResource.checkStatus(DavResource.kt:397)
	at foundation.e.dav4jvm.DavResource.processMultiStatus(DavResource.kt:491)
	at foundation.e.dav4jvm.DavResource.propfind(DavResource.kt:384)
	at foundation.e.accountmanager.syncadapter.ContactsSyncManager$queryCapabilities$1.invoke(ContactsSyncManager.kt:128)
	at foundation.e.accountmanager.syncadapter.ContactsSyncManager$queryCapabilities$1.invoke(ContactsSyncManager.kt:75)
	at foundation.e.accountmanager.syncadapter.SyncManager.useRemote(SyncManager.kt:831)
	at foundation.e.accountmanager.syncadapter.SyncManager.useRemoteCollection(SyncManager.kt:852)
	at foundation.e.accountmanager.syncadapter.ContactsSyncManager.queryCapabilities(ContactsSyncManager.kt:126)
	at foundation.e.accountmanager.syncadapter.SyncManager$performSync$1.invoke(SyncManager.kt:125)
	at foundation.e.accountmanager.syncadapter.SyncManager$performSync$1.invoke(SyncManager.kt:57)
	at foundation.e.accountmanager.syncadapter.SyncManager.unwrapExceptions(SyncManager.kt:857)
	at foundation.e.accountmanager.syncadapter.SyncManager.performSync(SyncManager.kt:116)
	at foundation.e.accountmanager.syncadapter.GoogleContactsSyncAdapterService$ContactsSyncAdapter.sync(GoogleContactsSyncAdapterService.kt:68)
	at foundation.e.accountmanager.syncadapter.SyncAdapterService$SyncAdapter.onPerformSync(SyncAdapterService.kt:122)
	at android.content.AbstractThreadedSyncAdapter$SyncThread.run(AbstractThreadedSyncAdapter.java:334)

SOFTWARE INFORMATION
* foundation.e.accountmanager 2.6.3-ose (328)
* com.android.providers.contacts 11 (30)
* com.android.providers.calendar 11 (30)
* foundation.e.tasks 1.2.3-73-g8bb90f4 (7700)
* com.android.contacts 1.7.31 (10731)
* foundation.e.calendar 11 (30)

CONNECTIVITY (at the moment)
- [ Transports: CELLULAR Capabilities: IMS&NOT_METERED&TRUSTED&NOT_VPN&VALIDATED&NOT_ROAMING&FOREGROUND&NOT_CONGESTED&NOT_SUSPENDED LinkUpBandwidth>=15000Kbps LinkDnBandwidth>=30000Kbps Specifier: <TelephonyNetworkSpecifier [mSubId = 1]> AdministratorUids: [] RequestorUid: -1 RequestorPackageName: null]
- [ Transports: CELLULAR Capabilities: SUPL&INTERNET&NOT_RESTRICTED&TRUSTED&NOT_VPN&VALIDATED&NOT_ROAMING&FOREGROUND&NOT_CONGESTED&NOT_SUSPENDED LinkUpBandwidth>=15000Kbps LinkDnBandwidth>=30000Kbps Specifier: <TelephonyNetworkSpecifier [mSubId = 1]> AdministratorUids: [] RequestorUid: -1 RequestorPackageName: null]

CONFIGURATION
Power saving disabled: yes
Notifications (not blocked):
  [group] sync isBlocked=false
    syncProblems: importance=3
    syncIoErrors: importance=1
    syncWarnings: importance=2
  general: importance=3
  debug: importance=4
Permissions:
  READ_CONTACTS: granted
  WRITE_CONTACTS: granted
  READ_CALENDAR: granted
  WRITE_CALENDAR: granted
  READ_TASKS: granted
  WRITE_TASKS: granted
  ACCESS_COARSE_LOCATION: granted
System-wide synchronization: automatically

ACCOUNTS
Account: johndoe@gmail.com
  Address book sync. interval: 15 min
  Calendar     sync. interval: 15 min
  OpenTasks    sync. interval: 15 min
  WiFi only: false
  [CardDAV] Contact group method: CATEGORIES
  [CalDAV] Time range (past days): 90
           Manage calendar colors: true
           Use event colors: false
Account: someemail@gmail.com
  Address book sync. interval: 15 min
  Calendar     sync. interval: 15 min
  OpenTasks    sync. interval: 15 min
  WiFi only: false
  [CardDAV] Contact group method: CATEGORIES
  [CalDAV] Time range (past days): 90
           Manage calendar colors: true
           Use event colors: false
Account {name=johndoe@gmail.com, type=e.foundation.webdav.google} is invalid: No main account assigned to address book account
Account {name=someemail@gmail.com, type=e.foundation.webdav.google} is invalid: No main account assigned to address book account

SQLITE DUMP
android_metadata
	|  locale |
	|  en_GB |
----------
service
	|  id | accountName | authState | accountType | addressBookAccountType | type | principal |
	|  1 | johndoe@gmail.com | {"refreshToken":"1\/\/0gVHiYkRJ6DQOCgYIARAAGBASNwF-L9IrPGGFecKEBLHpkTNPHcws73BZr0qjlcvyNo7is_t3J2NKHLk-6u4ITl-GtUfUfM435w0","scope":"openid https:\/\/www.googleapis.com\/auth\/userinfo.profile https:\/\/www.googleapis.com\/auth\/userinfo.email https:\/\/www.googleapis.com\/auth\/calendar https:\/\/mail.google.com\/ https:\/\/www.googleapis.com\/auth\/carddav","lastAuthorizationResponse":{"request":{"configuration":{"authorizationEndpoint":"https:\/\/accounts.google.com\/o\/oauth2\/v2\/auth","tokenEndpoint":"https:\/\/oauth2.googleapis.com\/token","discoveryDoc":{"issuer":"https:\/\/accounts.google.com","authorization_endpoint":"https:\/\/accounts.google.com\/o\/oauth2\/v2\/auth","device_authorization_endpoint":"https:\/\/oauth2.googleapis.com\/device\/code","token_endpoint":"https:\/\/oauth2.googleapis.com\/token","userinfo_endpoint":"https:\/\/openidconnect.googleapis.com\/v1\/userinfo","revocation_endpoint":"https:\/\/oauth2.googleapis.com\/revoke","jwks_uri":"https:\/\/www.googleapis.com\/oauth2\/v3\/certs","response_types_supported":["code","token","id_token","code token","code id_token","token id_token","code token id_token","none"],"subject_types_supported":["public"],"id_token_signing_alg_values_supported":["RS256"],"scopes_supported":["openid","email","profile"],"token_endpoint_auth_methods_supported":["client_secret_post","client_secret_basic"],"claims_supported":["aud","email","email_verified","exp","family_name","given_name","iat","iss","locale","name","picture","sub"],"code_challenge_methods_supported":["plain","S256"],"grant_types_supported":["authorization_code","refresh_token","urn:ietf:params:oauth:grant-type:device_code","urn:ietf:params:oauth:grant-type:jwt-bearer"]}},"clientId":"100496780587-pbiu5eudcjm6cge2phduc6mt8mgbsmsr.apps.googleusercontent.com","responseType":"code","redirectUri":"com.googleusercontent.apps.100496780587-pbiu5eudcjm6cge2phduc6mt8mgbsmsr:\/oauth2redirect","scope":"openid profile email https:\/\/www.googleapis.com\/auth\/carddav https:\/\/www.googleapis.com\/auth\/calendar https:\/\/mail.google.com\/","state":"Fw7r1_-p9oVwhuPuHOZcxQ","codeVerifier":"lX9X8rp6miPoOvEFFQ3d40f7IIr_uSWRiB_2A9zlRQtiWfWi5KocXkmM-k6XkaNS4XJDsTcEE6w_CNPDrX5ENA","codeVerifierChallenge":"99SP7U39L6fpd8ndHcYMro77bFLmkDuNbCbUuuC323A","codeVerifierChallengeMethod":"S256","additionalParameters":{}},"state":"Fw7r1_-p9oVwhuPuHOZcxQ","code":"4\/0AdQt8qj09vCIbdqbWGfCsZR_An_bD9z-sFQLtQMt5EdC8bFzelV1Wq10HZnwEdjf85-E5Q","scope":"email profile openid https:\/\/www.googleapis.com\/auth\/userinfo.profile https:\/\/www.googleapis.com\/auth\/userinfo.email https:\/\/www.googleapis.com\/auth\/carddav https:\/\/www.googleapis.com\/auth\/calendar https:\/\/mail.google.com\/","additional_parameters":{"authuser":"0","prompt":"consent"}},"mLastTokenResponse":{"request":{"configuration":{"authorizationEndpoint":"https:\/\/accounts.google.com\/o\/oauth2\/v2\/auth","tokenEndpoint":"https:\/\/oauth2.googleapis.com\/token","discoveryDoc":{"issuer":"https:\/\/accounts.google.com","authorization_endpoint":"https:\/\/accounts.google.com\/o\/oauth2\/v2\/auth","device_authorization_endpoint":"https:\/\/oauth2.googleapis.com\/device\/code","token_endpoint":"https:\/\/oauth2.googleapis.com\/token","userinfo_endpoint":"https:\/\/openidconnect.googleapis.com\/v1\/userinfo","revocation_endpoint":"https:\/\/oauth2.googleapis.com\/revoke","jwks_uri":"https:\/\/www.googleapis.com\/oauth2\/v3\/certs","response_types_supported":["code","token","id_token","code token","code id_token","token id_token","code token id_token","none"],"subject_types_supported":["public"],"id_token_signing_alg_values_supported":["RS256"],"scopes_supported":["openid","email","profile"],"token_endpoint_auth_methods_supported":["client_secret_post","client_secret_basic"],"claims_supported":["aud","email","email_verified","exp","family_name","given_name","iat","iss","locale","name","picture","sub"],"code_challenge_methods_supported":["plain","S256"],"grant_types_supported":["authorization_code","refresh_token","urn:ietf:params:oauth:grant-type:device_code","urn:ietf:params:oauth:grant-type:jwt-bearer"]}},"clientId":"100496780587-pbiu5eudcjm6cge2phduc6mt8mgbsmsr.apps.googleusercontent.com","grantType":"authorization_code","redirectUri":"com.googleusercontent.apps.100496780587-pbiu5eudcjm6cge2phduc6mt8mgbsmsr:\/oauth2redirect","scope":"openid profile email https:\/\/www.googleapis.com\/auth\/carddav https:\/\/www.googleapis.com\/auth\/calendar https:\/\/mail.google.com\/","authorizationCode":"4\/0AdQt8qj09vCIbdqbWGfCsZR_An_bD9z-sFQLtQMt5EdC8bFzelV1Wq10HZnwEdjf85-E5Q","additionalParameters":{}},"token_type":"Bearer","access_token":"ya29.A0AVA9y1s41FsmhLLZZY46niYIuo9bJfID9xKWvAUuKAl0oB2lAkjkug8zRufcDNYQ9ybIHZP8RuFJ3LyC2tDQLlGjlHMiIeQY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I_c84gU1zGZzxXD-ugTh8QwR3KREoXwAUnZnfCOqJlcicPIF9Di7MA8t-RRpxEUA5JFsLnV3OSiothUJL29IM6FnvncHAuob3DP7nzoKKty1rFbFpXoNShT-dfGoGha6Jma_8jHtBgOWCD4SzgTn__j6gN4bcOLF3blmN2Vl1yPMf5VZ1fVfo8mYHfkpMsRVNJjIvyQGiXMHi0mkJcSMpcR0powpi5UFwvOaBNnVwBbf8fWV2ERqMxmxfGaZfPVAcuig","refresh_token":"1\/\/0gVHiYkRJ6DQOCgYIARAAGBASNwF-L9IrPGGFecKEBLHpkTNPHcws73BZr0qjlcvyNo7is_t3J2NKHLk-6u4ITl-GtUfUfM435w0","scope":"openid https:\/\/www.googleapis.com\/auth\/userinfo.profile https:\/\/www.googleapis.com\/auth\/userinfo.email https:\/\/www.googleapis.com\/auth\/calendar https:\/\/mail.google.com\/ https:\/\/www.googleapis.com\/auth\/carddav","additionalParameters":{}}} | e.foundation.webdav.google | foundation.e.accountmanager.google.address_book | carddav | https://apidata.googleusercontent.com/carddav/v1/principals/johndoe@gmail.com |
	|  2 | johndoe@gmail.com | {"refreshToken":"1\/\/0gVHiYkRJ6DQOCgYIARAAGBASNwF-L9IrPGGFecKEBLHpkTNPHcws73BZr0qjlcvyNo7is_t3J2NKHLk-6u4ITl-GtUfUfM435w0","scope":"openid https:\/\/www.googleapis.com\/auth\/userinfo.profile https:\/\/www.googleapis.com\/auth\/userinfo.email https:\/\/www.googleapis.com\/auth\/calendar https:\/\/mail.google.com\/ https:\/\/www.googleapis.com\/auth\/carddav","lastAuthorizationResponse":{"request":{"configuration":{"authorizationEndpoint":"https:\/\/accounts.google.com\/o\/oauth2\/v2\/auth","tokenEndpoint":"https:\/\/oauth2.googleapis.com\/token","discoveryDoc":{"issuer":"https:\/\/accounts.google.com","authorization_endpoint":"https:\/\/accounts.google.com\/o\/oauth2\/v2\/auth","device_authorization_endpoint":"https:\/\/oauth2.googleapis.com\/device\/code","token_endpoint":"https:\/\/oauth2.googleapis.com\/token","userinfo_endpoint":"https:\/\/openidconnect.googleapis.com\/v1\/userinfo","revocation_endpoint":"https:\/\/oauth2.googleapis.com\/revoke","jwks_uri":"https:\/\/www.googleapis.com\/oauth2\/v3\/certs","response_types_supported":["code","token","id_token","code token","code id_token","token id_token","code token id_token","none"],"subject_types_supported":["public"],"id_token_signing_alg_values_supported":["RS256"],"scopes_supported":["openid","email","profile"],"token_endpoint_auth_methods_supported":["client_secret_post","client_secret_basic"],"claims_supported":["aud","email","email_verified","exp","family_name","given_name","iat","iss","locale","name","picture","sub"],"code_challenge_methods_supported":["plain","S256"],"grant_types_supported":["authorization_code","refresh_token","urn:ietf:params:oauth:grant-type:device_code","urn:ietf:params:oauth:grant-type:jwt-bearer"]}},"clientId":"100496780587-pbiu5eudcjm6cge2phduc6mt8mgbsmsr.apps.googleusercontent.com","responseType":"code","redirectUri":"com.googleusercontent.apps.100496780587-pbiu5eudcjm6cge2phduc6mt8mgbsmsr:\/oauth2redirect","scope":"openid profile email https:\/\/www.googleapis.com\/auth\/carddav https:\/\/www.googleapis.com\/auth\/calendar https:\/\/mail.google.com\/","state":"Fw7r1_-p9oVwhuPuHOZcxQ","codeVerifier":"lX9X8rp6miPoOvEFFQ3d40f7IIr_uSWRiB_2A9zlRQtiWfWi5KocXkmM-k6XkaNS4XJDsTcEE6w_CNPDrX5ENA","codeVerifierChallenge":"99SP7U39L6fpd8ndHcYMro77bFLmkDuNbCbUuuC323A","codeVerifierChallengeMethod":"S256","additionalParameters":{}},"state":"Fw7r1_-p9oVwhuPuHOZcxQ","code":"4\/0AdQt8qj09vCIbdqbWGfCsZR_An_bD9z-sFQLtQMt5EdC8bFzelV1Wq10HZnwEdjf85-E5Q","scope":"email profile openid https:\/\/www.googleapis.com\/auth\/userinfo.profile https:\/\/www.googleapis.com\/auth\/userinfo.email https:\/\/www.googleapis.com\/auth\/carddav https:\/\/www.googleapis.com\/auth\/calendar https:\/\/mail.google.com\/","additional_parameters":{"authuser":"0","prompt":"consent"}},"mLastTokenResponse":{"request":{"configuration":{"authorizationEndpoint":"https:\/\/accounts.google.com\/o\/oauth2\/v2\/auth","tokenEndpoint":"https:\/\/oauth2.googleapis.com\/token","discoveryDoc":{"issuer":"https:\/\/accounts.google.com","authorization_endpoint":"https:\/\/accounts.google.com\/o\/oauth2\/v2\/auth","device_authorization_endpoint":"https:\/\/oauth2.googleapis.com\/device\/code","token_endpoint":"https:\/\/oauth2.googleapis.com\/token","userinfo_endpoint":"https:\/\/openidconnect.googleapis.com\/v1\/userinfo","revocation_endpoint":"https:\/\/oauth2.googleapis.com\/revoke","jwks_uri":"https:\/\/www.googleapis.com\/oauth2\/v3\/certs","response_types_supported":["code","token","id_token","code token","code id_token","token id_token","code token id_token","none"],"subject_types_supported":["public"],"id_token_signing_alg_values_supported":["RS256"],"scopes_supported":["openid","email","profile"],"token_endpoint_auth_methods_supported":["client_secret_post","client_secret_basic"],"claims_supported":["aud","email","email_verified","exp","family_name","given_name","iat","iss","locale","name","picture","sub"],"code_challenge_methods_supported":["plain","S256"],"grant_types_supported":["authorization_code","refresh_token","urn:ietf:params:oauth:grant-type:device_code","urn:ietf:params:oauth:grant-type:jwt-bearer"]}},"clientId":"100496780587-pbiu5eudcjm6cge2phduc6mt8mgbsmsr.apps.googleusercontent.com","grantType":"authorization_code","redirectUri":"com.googleusercontent.apps.100496780587-pbiu5eudcjm6cge2phduc6mt8mgbsmsr:\/oauth2redirect","scope":"openid profile email https:\/\/www.googleapis.com\/auth\/carddav https:\/\/www.googleapis.com\/auth\/calendar https:\/\/mail.google.com\/","authorizationCode":"4\/0AdQt8qj09vCIbdqbWGfCsZR_An_bD9z-sFQLtQMt5EdC8bFzelV1Wq10HZnwEdjf85-E5Q","additionalParameters":{}},"token_type":"Bearer","access_token":"ya29.A0AVA9y1s41FsmhLLZZY46niYIuo9bJfID9xKWvAUuKAl0oB2lAkjkug8zRufcDNYQ9ybIHZP8RuFJ3LyC2tDQLlGjlHMiIeQYGGOzI7PTaM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zxXD-ugTh8QwR3KREoXwAUnZnfCOqJlcicPIF9Di7MA8t-RRpxEUA5JFsLnV3OSiothUJL29IM6FnvncHAuob3DP7nzoKKty1rFbFpXoNShT-dfGoGha6Jma_8jHtBgOWCD4SzgTn__j6gN4bcOLF3blmN2Vl1yPMf5VZ1fVfo8mYHfkpMsRVNJjIvyQGiXMHi0mkJcSMpcR0powpi5UFwvOaBNnVwBbf8fWV2ERqMxmxfGaZfPVAcuig","refresh_token":"1\/\/0gVHiYkRJ6DQOCgYIARAAGBASNwF-L9IrPGGFecKEBLHpkTNPHcws73BZr0qjlcvyNo7is_t3J2NKHLk-6u4ITl-GtUfUfM435w0","scope":"openid https:\/\/www.googleapis.com\/auth\/userinfo.profile https:\/\/www.googleapis.com\/auth\/userinfo.email https:\/\/www.googleapis.com\/auth\/calendar https:\/\/mail.google.com\/ https:\/\/www.googleapis.com\/auth\/carddav","additionalParameters":{}}} | e.foundation.webdav.google | foundation.e.accountmanager.google.address_book | caldav | https://apidata.googleusercontent.com/caldav/v2/johndoe@gmail.com/user/calendar-proxy-write/ |
	|  3 | someemail@gmail.com | {"refreshToken":"1\/\/0gSPei_JVPXlOCgYIARAAGBASNwF-L9IrUuw4ZpeaCX3kNY6cAy5Uw0oYYUjv5a3nYG4-MAgslVcx-7-2fh3B35z8oZPjcOos1bw","scope":"openid https:\/\/mail.google.com\/ https:\/\/www.googleapis.com\/auth\/userinfo.profile https:\/\/www.googleapis.com\/auth\/userinfo.email https:\/\/www.googleapis.com\/auth\/carddav https:\/\/www.googleapis.com\/auth\/calendar","lastAuthorizationResponse":{"request":{"configuration":{"authorizationEndpoint":"https:\/\/accounts.google.com\/o\/oauth2\/v2\/auth","tokenEndpoint":"https:\/\/oauth2.googleapis.com\/token","discoveryDoc":{"issuer":"https:\/\/accounts.google.com","authorization_endpoint":"https:\/\/accounts.google.com\/o\/oauth2\/v2\/auth","device_authorization_endpoint":"https:\/\/oauth2.googleapis.com\/device\/code","token_endpoint":"https:\/\/oauth2.googleapis.com\/token","userinfo_endpoint":"https:\/\/openidconnect.googleapis.com\/v1\/userinfo","revocation_endpoint":"https:\/\/oauth2.googleapis.com\/revoke","jwks_uri":"https:\/\/www.googleapis.com\/oauth2\/v3\/certs","response_types_supported":["code","token","id_token","code token","code id_token","token id_token","code token id_token","none"],"subject_types_supported":["public"],"id_token_signing_alg_values_supported":["RS256"],"scopes_supported":["openid","email","profile"],"token_endpoint_auth_methods_supported":["client_secret_post","client_secret_basic"],"claims_supported":["aud","email","email_verified","exp","family_name","given_name","iat","iss","locale","name","picture","sub"],"code_challenge_methods_supported":["plain","S256"],"grant_types_supported":["authorization_code","refresh_token","urn:ietf:params:oauth:grant-type:device_code","urn:ietf:params:oauth:grant-type:jwt-bearer"]}},"clientId":"100496780587-pbiu5eudcjm6cge2phduc6mt8mgbsmsr.apps.googleusercontent.com","responseType":"code","redirectUri":"com.googleusercontent.apps.100496780587-pbiu5eudcjm6cge2phduc6mt8mgbsmsr:\/oauth2redirect","scope":"openid profile email https:\/\/www.googleapis.com\/auth\/carddav https:\/\/www.googleapis.com\/auth\/calendar https:\/\/mail.google.com\/","state":"DzL6DSDFLAhMAIimiD-2LA","codeVerifier":"dS1vGigYSch6vbzalAelcONgjN7b5t7mR87l-drU9ff7eHVV7mvlWDL1vpYyevIVUrm2Pb1626fxNQ1UEJOHUA","codeVerifierChallenge":"Jq3a5Ji1aVfSF8zcH8zEgCfEeCxWtZwiyUNsMfIQE28","codeVerifierChallengeMethod":"S256","additionalParameters":{}},"state":"DzL6DSDFLAhMAIimiD-2LA","code":"4\/0AdQt8qiUO79pVsT08AECT2bjPj9smZXyMVATX-7YZXGiqecbHyS2q-wVn4HBjfBUva_mdw","scope":"email profile openid https:\/\/www.googleapis.com\/auth\/userinfo.profile https:\/\/www.googleapis.com\/auth\/userinfo.email https:\/\/www.googleapis.com\/auth\/carddav https:\/\/www.googleapis.com\/auth\/calendar https:\/\/mail.google.com\/","additional_parameters":{"authuser":"1","hd":"kce.ac.in","prompt":"consent"}},"mLastTokenResponse":{"request":{"configuration":{"authorizationEndpoint":"https:\/\/accounts.google.com\/o\/oauth2\/v2\/auth","tokenEndpoint":"https:\/\/oauth2.googleapis.com\/token","discoveryDoc":{"issuer":"https:\/\/accounts.google.com","authorization_endpoint":"https:\/\/accounts.google.com\/o\/oauth2\/v2\/auth","device_authorization_endpoint":"https:\/\/oauth2.googleapis.com\/device\/code","token_endpoint":"https:\/\/oauth2.googleapis.com\/token","userinfo_endpoint":"https:\/\/openidconnect.googleapis.com\/v1\/userinfo","revocation_endpoint":"https:\/\/oauth2.googleapis.com\/revoke","jwks_uri":"https:\/\/www.googleapis.com\/oauth2\/v3\/certs","response_types_supported":["code","token","id_token","code token","code id_token","token id_token","code token id_token","none"],"subject_types_supported":["public"],"id_token_signing_alg_values_supported":["RS256"],"scopes_supported":["openid","email","profile"],"token_endpoint_auth_methods_supported":["client_secret_post","client_secret_basic"],"claims_supported":["aud","email","email_verified","exp","family_name","given_name","iat","iss","locale","name","picture","sub"],"code_challenge_methods_supported":["plain","S256"],"grant_types_supported":["authorization_code","refresh_token","urn:ietf:params:oauth:grant-type:device_code","urn:ietf:params:oauth:grant-type:jwt-bearer"]}},"clientId":"100496780587-pbiu5eudcjm6cge2phduc6mt8mgbsmsr.apps.googleusercontent.com","grantType":"authorization_code","redirectUri":"com.googleusercontent.apps.100496780587-pbiu5eudcjm6cge2phduc6mt8mgbsmsr:\/oauth2redirect","scope":"openid profile email https:\/\/www.googleapis.com\/auth\/carddav https:\/\/www.googleapis.com\/auth\/calendar https:\/\/mail.google.com\/","authorizationCode":"4\/0AdQt8qiUO79pVsT08AECT2bjPj9smZXyMVATX-7YZXGiqecbHyS2q-wVn4HBjfBUva_mdw","additionalParameters":{}},"token_type":"Bearer","access_token":"ya29.A0AVA9y1tlyedMCD_T2lzvwSZ1ypLrSwaWTZ3QHS4AlpTTehgHrMkC0zbpKwcsXHoiJY2Gjul5Ytv6FPJOXahWtmrBUT851CDWNAEX4L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6SJd8MD7MNZBtIUw8LnjfzKgfn2NTA6gDjYqqI6wzaEuFq_oCmLtdQ3ZVwAksAUW3LOxlZ2SVXjwZrexlPovnufHCoiQBhhamRCEw24xPkUIOVy4a58o1XCg4IH3OgNf3aFqAKHExaKNf2iPS0saXex2b3T2snAJSy2j9soXg17U3wC2Z0X7hn_gXRYpGIqbv_OdimSBofMXVh5wqFRa8oTEu-MSy_Hw_Yd7_Ww4AzICDbRiAGmAFp0tBF9zachaDd-kkttgL4cAJ1BOJ5w","refresh_token":"1\/\/0gSPei_JVPXlOCgYIARAAGBASNwF-L9IrUuw4ZpeaCX3kNY6cAy5Uw0oYYUjv5a3nYG4-MAgslVcx-7-2fh3B35z8oZPjcOos1bw","scope":"openid https:\/\/mail.google.com\/ https:\/\/www.googleapis.com\/auth\/userinfo.profile https:\/\/www.googleapis.com\/auth\/userinfo.email https:\/\/www.googleapis.com\/auth\/carddav https:\/\/www.googleapis.com\/auth\/calendar","additionalParameters":{}}} | e.foundation.webdav.google | foundation.e.accountmanager.google.address_book | carddav | https://apidata.googleusercontent.com/carddav/v1/principals/someemail@gmail.com |
	|  4 | someemail@gmail.com | {"refreshToken":"1\/\/0gSPei_JVPXlOCgYIARAAGBASNwF-L9IrUuw4ZpeaCX3kNY6cAy5Uw0oYYUjv5a3nYG4-MAgslVcx-7-2fh3B35z8oZPjcOos1bw","scope":"openid https:\/\/mail.google.com\/ https:\/\/www.googleapis.com\/auth\/userinfo.profile https:\/\/www.googleapis.com\/auth\/userinfo.email https:\/\/www.googleapis.com\/auth\/carddav https:\/\/www.googleapis.com\/auth\/calendar","lastAuthorizationResponse":{"request":{"configuration":{"authorizationEndpoint":"https:\/\/accounts.google.com\/o\/oauth2\/v2\/auth","tokenEndpoint":"https:\/\/oauth2.googleapis.com\/token","discoveryDoc":{"issuer":"https:\/\/accounts.google.com","authorization_endpoint":"https:\/\/accounts.google.com\/o\/oauth2\/v2\/auth","device_authorization_endpoint":"https:\/\/oauth2.googleapis.com\/device\/code","token_endpoint":"https:\/\/oauth2.googleapis.com\/token","userinfo_endpoint":"https:\/\/openidconnect.googleapis.com\/v1\/userinfo","revocation_endpoint":"https:\/\/oauth2.googleapis.com\/revoke","jwks_uri":"https:\/\/www.googleapis.com\/oauth2\/v3\/certs","response_types_supported":["code","token","id_token","code token","code id_token","token id_token","code token id_token","none"],"subject_types_supported":["public"],"id_token_signing_alg_values_supported":["RS256"],"scopes_supported":["openid","email","profile"],"token_endpoint_auth_methods_supported":["client_secret_post","client_secret_basic"],"claims_supported":["aud","email","email_verified","exp","family_name","given_name","iat","iss","locale","name","picture","sub"],"code_challenge_methods_supported":["plain","S256"],"grant_types_supported":["authorization_code","refresh_token","urn:ietf:params:oauth:grant-type:device_code","urn:ietf:params:oauth:grant-type:jwt-bearer"]}},"clientId":"100496780587-pbiu5eudcjm6cge2phduc6mt8mgbsmsr.apps.googleusercontent.com","responseType":"code","redirectUri":"com.googleusercontent.apps.100496780587-pbiu5eudcjm6cge2phduc6mt8mgbsmsr:\/oauth2redirect","scope":"openid profile email https:\/\/www.googleapis.com\/auth\/carddav https:\/\/www.googleapis.com\/auth\/calendar https:\/\/mail.google.com\/","state":"DzL6DSDFLAhMAIimiD-2LA","codeVerifier":"dS1vGigYSch6vbzalAelcONgjN7b5t7mR87l-drU9ff7eHVV7mvlWDL1vpYyevIVUrm2Pb1626fxNQ1UEJOHUA","codeVerifierChallenge":"Jq3a5Ji1aVfSF8zcH8zEgCfEeCxWtZwiyUNsMfIQE28","codeVerifierChallengeMethod":"S256","additionalParameters":{}},"state":"DzL6DSDFLAhMAIimiD-2LA","code":"4\/0AdQt8qiUO79pVsT08AECT2bjPj9smZXyMVATX-7YZXGiqecbHyS2q-wVn4HBjfBUva_mdw","scope":"email profile openid https:\/\/www.googleapis.com\/auth\/userinfo.profile https:\/\/www.googleapis.com\/auth\/userinfo.email https:\/\/www.googleapis.com\/auth\/carddav https:\/\/www.googleapis.com\/auth\/calendar https:\/\/mail.google.com\/","additional_parameters":{"authuser":"1","hd":"kce.ac.in","prompt":"consent"}},"mLastTokenResponse":{"request":{"configuration":{"authorizationEndpoint":"https:\/\/accounts.google.com\/o\/oauth2\/v2\/auth","tokenEndpoint":"https:\/\/oauth2.googleapis.com\/token","discoveryDoc":{"issuer":"https:\/\/accounts.google.com","authorization_endpoint":"https:\/\/accounts.google.com\/o\/oauth2\/v2\/auth","device_authorization_endpoint":"https:\/\/oauth2.googleapis.com\/device\/code","token_endpoint":"https:\/\/oauth2.googleapis.com\/token","userinfo_endpoint":"https:\/\/openidconnect.googleapis.com\/v1\/userinfo","revocation_endpoint":"https:\/\/oauth2.googleapis.com\/revoke","jwks_uri":"https:\/\/www.googleapis.com\/oauth2\/v3\/certs","response_types_supported":["code","token","id_token","code token","code id_token","token id_token","code token id_token","none"],"subject_types_supported":["public"],"id_token_signing_alg_values_supported":["RS256"],"scopes_supported":["openid","email","profile"],"token_endpoint_auth_methods_supported":["client_secret_post","client_secret_basic"],"claims_supported":["aud","email","email_verified","exp","family_name","given_name","iat","iss","locale","name","picture","sub"],"code_challenge_methods_supported":["plain","S256"],"grant_types_supported":["authorization_code","refresh_token","urn:ietf:params:oauth:grant-type:device_code","urn:ietf:params:oauth:grant-type:jwt-bearer"]}},"clientId":"100496780587-pbiu5eudcjm6cge2phduc6mt8mgbsmsr.apps.googleusercontent.com","grantType":"authorization_code","redirectUri":"com.googleusercontent.apps.100496780587-pbiu5eudcjm6cge2phduc6mt8mgbsmsr:\/oauth2redirect","scope":"openid profile email https:\/\/www.googleapis.com\/auth\/carddav https:\/\/www.googleapis.com\/auth\/calendar https:\/\/mail.google.com\/","authorizationCode":"4\/0AdQt8qiUO79pVsT08AECT2bjPj9smZXyMVATX-7YZXGiqecbHyS2q-wVn4HBjfBUva_mdw","additionalParameters":{}},"token_type":"Bearer","access_token":"ya29.A0AVA9y1tlyedMCD_T2lzvwSZ1ypLrSwaWTZ3QHS4AlpTTehgHrMkC0zbpKwcsXHoiJY2Gjul5Ytv6FPJ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IKOWZiTml_vmLgndbyB8Q6SJd8MD7MNZBtIUw8LnjfzKgfn2NTA6gDjYqqI6wzaEuFq_oCmLtdQ3ZVwAksAUW3LOxlZ2SVXjwZrexlPovnufHCoiQBhhamRCEw24xPkUIOVy4a58o1XCg4IH3OgNf3aFqAKHExaKNf2iPS0saXex2b3T2snAJSy2j9soXg17U3wC2Z0X7hn_gXRYpGIqbv_OdimSBofMXVh5wqFRa8oTEu-MSy_Hw_Yd7_Ww4AzICDbRiAGmAFp0tBF9zachaDd-kkttgL4cAJ1BOJ5w","refresh_token":"1\/\/0gSPei_JVPXlOCgYIARAAGBASNwF-L9IrUuw4ZpeaCX3kNY6cAy5Uw0oYYUjv5a3nYG4-MAgslVcx-7-2fh3B35z8oZPjcOos1bw","scope":"openid https:\/\/mail.google.com\/ https:\/\/www.googleapis.com\/auth\/userinfo.profile https:\/\/www.googleapis.com\/auth\/userinfo.email https:\/\/www.googleapis.com\/auth\/carddav https:\/\/www.googleapis.com\/auth\/calendar","additionalParameters":{}}} | e.foundation.webdav.google | foundation.e.accountmanager.google.address_book | caldav | https://apidata.googleusercontent.com/caldav/v2/someemail@gmail.com/user/calendar-proxy-write/ |
----------
sqlite_sequence
	|  name | seq |
	|  service | 4 |
	|  homeset | 4 |
	|  collection | 5 |
----------
homeset
	|  id | serviceId | url | privBind | displayName |
	|  1 | 2 | https://apidata.googleusercontent.com/caldav/v2/johndoe%40gmail.com/ | 1 | <null> |
	|  2 | 1 | https://apidata.googleusercontent.com/carddav/v1/principals/johndoe@gmail.com/lists/ | 1 | Homeset |
	|  3 | 4 | https://apidata.googleusercontent.com/caldav/v2/20p103%40kce.ac.in/ | 1 | <null> |
	|  4 | 3 | https://apidata.googleusercontent.com/carddav/v1/principals/someemail@gmail.com/lists/ | 1 | Homeset |
----------
collection
	|  id | serviceId | type | url | privWriteContent | privUnbind | forceReadOnly | displayName | description | color | timezone | supportsVEVENT | supportsVTODO | supportsVJOURNAL | source | sync |
	|  1 | 1 | ADDRESS_BOOK | https://apidata.googleusercontent.com/carddav/v1/principals/johndoe@gmail.com/lists/default/ | 1 | 1 | 0 | Address Book | My Contacts | <null> | <null> | <null> | <null> | <null> | <null> | 1 |
	|  2 | 2 | CALENDAR | https://apidata.googleusercontent.com/caldav/v2/johndoe%40gmail.com/events/ | 1 | 1 | 0 | johndoe@gmail.com | johndoe@gmail.com | -6299161 | <null> | 1 | 0 | 0 | <null> | 1 |
	|  3 | 3 | ADDRESS_BOOK | https://apidata.googleusercontent.com/carddav/v1/principals/someemail@gmail.com/lists/default/ | 1 | 1 | 0 | Address Book | My Contacts | <null> | <null> | <null> | <null> | <null> | <null> | 1 |
	|  4 | 4 | CALENDAR | https://apidata.googleusercontent.com/caldav/v2/20p103%40kce.ac.in/events/ | 1 | 1 | 0 | someemail@gmail.com | someemail@gmail.com | -6299161 | <null> | 1 | 0 | 0 | <null> | 1 |
	|  5 | 4 | CALENDAR | https://apidata.googleusercontent.com/caldav/v2/c5i68sj5edpm4rrfdchm6rreehgm6t3j81jn4rrle0n7cbj3c5m6arj4c5p2sprfdtjmop9ecdnmq%40virtual/events/ | 0 | 0 | 0 | Birthdays | addressbook#contacts@group.v.calendar.google.com | -7151168 | <null> | 1 | 0 | 0 | <null> | 1 |
----------
room_master_table
	|  id | identity_hash |
	|  42 | 044be2cd4cd7622698b35c31c42a129a |
----------

SYSTEM INFORMATION
Android version: 11 (e_miatoll-userdebug 11 RQ3A.211001.001 eng.root.20220527.025939 dev-keys)
Device: Xiaomi POCO M2 Pro (gram)

--- END DEBUG INFO ---

http 401 is unauthorized

just speculating, stupid question first, you didn’t change your account password? - is there any optional “3rd party App support” you’d need to enable at the Google settings to allow for carddav sync? if no, maybe setting up the Google Account again helps, renewing the tokens.

(Edit: there’s some work in the accountmanager for Google Accounts, maybe issues like yours triggered this: Draft: 516 google account setup (!59) · Merge requests · e / os / AccountManager · GitLab)

Ok, I did some research and if I try to add email and password for account manager I am getting invalid credentials. I tried both app password and my email password. And regarding google settings its all fine

what’s your choice in username, the whole email, just the local-part of the email (stuff before @) ?

There should be more users as you, did you find similar issues to yours in the forum?

I did look for 401 on the carddav address but didn’t find one exactly as yours, lots of others… but had a different code path (your stacketrace, how the Call ended up at that error)

I could add my google account to the account manager via settings->Accounts->Add Account-> Google . The problem is when account manager tries to sync calendar or contacts with google server. Google server responds with a 401 which means unauthorized. If I check at security in my google account page, The account manager has access to gmail, contacts and calendar but still could not sync. I don’t see any issues. And I know the primary reason to use /e/ is to avoid google, but I am curious why this ain’t working.