GmsCore icon indicating copy to clipboard operation
GmsCore copied to clipboard

Add client API classes and dummy service for FITNESS_HISTORY(57)

Open DaVinci9196 opened this issue 2 years ago • 3 comments

Solve the problem of being unable to log in to google_fit and add some fitness modules

DaVinci9196 avatar Jan 30 '24 06:01 DaVinci9196

@DaVinci9196 I have tried with a build that include both Fitness.HistoryApi and AuditApiService and I'm still not able to login in Google Fit. How did you get it?

ale5000-git avatar Jan 30 '24 19:01 ale5000-git

@ale5000-git open Google Fit without cache when logged in to a Google account, this way can login in. The problem of no successful login after completing the login operation in Google Fit is being tried.

DaVinci9196 avatar Jan 31 '24 01:01 DaVinci9196

@ale5000-git open Google Fit without cache when logged in to a Google account, this way can login in.

@DaVinci9196 This is what I have tried but it doesn't work, it say: "Impossible to verify the account. Check your internet connection." But the internet connection is working correctly.

Logcat: logcat.log

ale5000-git avatar Feb 09 '24 19:02 ale5000-git

I'm not sure if they are related to the login problem but when trying to login to Fit I see these errors many time:

02-22 13:48:37.746 24554 24574 W ConfigurationUpdater: Failed to update shared storage snapshot. GMS Core version too old.
02-22 13:48:37.746 24554 24574 W ConfigurationUpdater: hfw: Missing hed{name=get_storage_info_api, version=1}

02-22 13:48:38.107 24554 24588 W FitOneGoogle: Caused by: hff: 17: API: MobStoreFile.API is not available on this device. Connection failed with: heb{statusCode=API_DISABLED, resolution=null, message=null}

02-22 13:48:40.099 28354 29864 D GmsAuthenticator: Feature service_googleone not supported

ale5000-git avatar Feb 22 '24 13:02 ale5000-git

02-22 13:48:38.107 24554 24588 W FitOneGoogle: Caused by: hff: 17: API: MobStoreFile.API is not available on this device. Connection failed with: heb{statusCode=API_DISABLED, resolution=null, message=null}

@ale5000-git This looks like the mobstore service is not implemented. Will it cause a crash?

DaVinci9196 avatar Feb 23 '24 01:02 DaVinci9196

This looks like the mobstore service is not implemented. Will it cause a crash?

@DaVinci9196 It doesn't seems to cause a crash but it cause very lengthy exceptions in the logcat and probably also broke features like "Failed to load owner avatar"; like this:

02-23 12:58:01.006  8141  8153 D ChimeraServiceProvider: serviceIntentCall: com.google.android.gms.mdisync.service.START -> Intent { act=com.google.android.gms.mdisync.service.START pkg=com.google.android.gms cmp=com.google.android.gms/org.microg.gms.DummyService }
02-23 12:58:01.029  8141  8141 D GmsDummySvc: onBind: Intent { act=com.google.android.gms.mdisync.service.START pkg=com.google.android.gms cmp=com.google.android.gms/org.microg.gms.DummyService }
02-23 12:58:01.047  8141  8153 D GmsDummySvc: bound by: GetServiceRequest{serviceId=MDI_SYNC, gmsVersion=240404000, packageName='com.google.android.apps.fitness', extras=Bundle[{}], account=Account {[email protected], type=com.google}}
02-23 12:58:01.077  8141  8153 D GmsDummySvc: bound by: GetServiceRequest{serviceId=MOBSTORE, gmsVersion=240404000, packageName='com.google.android.apps.fitness', extras=Bundle[{}]}
02-23 12:58:01.111  8295  8338 W OneGoogle: Failed to load owner avatar
02-23 12:58:01.111  8295  8338 W OneGoogle: java.io.IOException: Unable to open file
02-23 12:58:01.111  8295  8338 W OneGoogle: 	at ihr.j(PG:11)
02-23 12:58:01.111  8295  8338 W OneGoogle: 	at ihr.i(PG:1)
02-23 12:58:01.111  8295  8338 W OneGoogle: 	at ihr.c(PG:2)
02-23 12:58:01.111  8295  8338 W OneGoogle: 	at lmu.c(PG:4)
02-23 12:58:01.111  8295  8338 W OneGoogle: 	at lnp.a(PG:20)
02-23 12:58:01.111  8295  8338 W OneGoogle: 	at kdt.b(PG:2)
02-23 12:58:01.111  8295  8338 W OneGoogle: 	at low.j(PG:1)
02-23 12:58:01.111  8295  8338 W OneGoogle: 	at low.g(PG:4)
02-23 12:58:01.111  8295  8338 W OneGoogle: 	at jqh.a(PG:59)
02-23 12:58:01.111  8295  8338 W OneGoogle: 	at noy.a(PG:17)
02-23 12:58:01.111  8295  8338 W OneGoogle: 	at noy.a(PG:24)
02-23 12:58:01.111  8295  8338 W OneGoogle: 	at oyc.a(PG:1)
02-23 12:58:01.111  8295  8338 W OneGoogle: 	at oxh.run(PG:4)
02-23 12:58:01.111  8295  8338 W OneGoogle: 	at oye.run(PG:1)
02-23 12:58:01.111  8295  8338 W OneGoogle: 	at owm.run(PG:3)
02-23 12:58:01.111  8295  8338 W OneGoogle: 	at isu.run(PG:1)
02-23 12:58:01.111  8295  8338 W OneGoogle: 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
02-23 12:58:01.111  8295  8338 W OneGoogle: 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
02-23 12:58:01.111  8295  8338 W OneGoogle: 	at imf.run(PG:24)
02-23 12:58:01.111  8295  8338 W OneGoogle: 	at java.lang.Thread.run(Thread.java:920)
02-23 12:58:01.111  8295  8338 W OneGoogle: 	at itb.run(PG:5)
02-23 12:58:01.111  8295  8338 W OneGoogle: Caused by: java.util.concurrent.ExecutionException: hff: 17: API: MobStoreFile.API is not available on this device. Connection failed with: heb{statusCode=API_DISABLED, resolution=null, message=null}
02-23 12:58:01.111  8295  8338 W OneGoogle: 	at iee.cB(PG:5)
02-23 12:58:01.111  8295  8338 W OneGoogle: 	at iee.A(PG:8)
02-23 12:58:01.111  8295  8338 W OneGoogle: 	at iho.call(PG:1)
02-23 12:58:01.111  8295  8338 W OneGoogle: 	at ihr.j(PG:1)
02-23 12:58:01.111  8295  8338 W OneGoogle: 	... 20 more
02-23 12:58:01.111  8295  8338 W OneGoogle: Caused by: hff: 17: API: MobStoreFile.API is not available on this device. Connection failed with: heb{statusCode=API_DISABLED, resolution=null, message=null}
02-23 12:58:01.111  8295  8338 W OneGoogle: 	at ivi.cM(PG:1)
02-23 12:58:01.111  8295  8338 W OneGoogle: 	at hgb.d(PG:1)
02-23 12:58:01.111  8295  8338 W OneGoogle: 	at hhw.t(PG:7)
02-23 12:58:01.111  8295  8338 W OneGoogle: 	at hhw.g(PG:2)
02-23 12:58:01.111  8295  8338 W OneGoogle: 	at hhw.j(PG:20)
02-23 12:58:01.111  8295  8338 W OneGoogle: 	at hhw.b(PG:1)
02-23 12:58:01.111  8295  8338 W OneGoogle: 	at androidx.wear.ambient.AmbientModeSupport$AmbientController.c(PG:1)
02-23 12:58:01.111  8295  8338 W OneGoogle: 	at hjn.a(PG:1)
02-23 12:58:01.111  8295  8338 W OneGoogle: 	at hjh.d(PG:6)
02-23 12:58:01.111  8295  8338 W OneGoogle: 	at hji.handleMessage(PG:38)
02-23 12:58:01.111  8295  8338 W OneGoogle: 	at android.os.Handler.dispatchMessage(Handler.java:106)
02-23 12:58:01.111  8295  8338 W OneGoogle: 	at android.os.Looper.loopOnce(Looper.java:201)
02-23 12:58:01.111  8295  8338 W OneGoogle: 	at android.os.Looper.loop(Looper.java:288)
02-23 12:58:01.111  8295  8338 W OneGoogle: 	at android.os.HandlerThread.run(HandlerThread.java:67)
02-23 12:58:01.170  8295  8295 W FontsContract: Platform version of downloadable fonts is deprecated. Please use androidx version instead.
02-23 12:58:01.172  8141  8349 E FontsProvider: query: content://com.google.android.gms.fonts [_id, file_id, font_ttc_index, font_variation_settings, font_weight, font_italic, result_code] query = ? [Google Sans:500]
02-23 12:58:01.224  2379  2529 I AccountManagerService: the accounts changed, sending broadcast of android.accounts.LOGIN_ACCOUNTS_CHANGED
02-23 12:58:01.265  2379  2546 D CompatibilityChangeReporter: Compat change id reported: 168419799; UID 10129; state: DISABLED
02-23 12:58:01.294  8141  8141 D AccountDataService: onBind: Intent { act=com.google.android.gms.auth.account.data.service.START pkg=com.google.android.gms }
02-23 12:58:01.324  8141  8152 D GmsPeopleSvcImpl: loadOwners: false, false, null, null, 1
02-23 12:58:01.338  7876  7876 W KeepApiaryClient: Notes API URL: https://notes-pa.googleapis.com/
02-23 12:58:01.393  8141  8153 D GmsAuthenticator: Feature service_googleone not supported
02-23 12:58:01.399  8141  8153 D GmsAuthenticator: Feature service_googleone not supported
02-23 12:58:01.433  8141  8381 D AccountDataService: bound by: GetServiceRequest{serviceId=ACCOUNT_DATA, gmsVersion=240404000, packageName='com.google.android.apps.fitness', extras=Bundle[{}]}
02-23 12:58:01.470  8141  8380 D GmsDummySvc: bound by: GetServiceRequest{serviceId=MOBSTORE, gmsVersion=240404000, packageName='com.google.android.apps.fitness', extras=Bundle[{}]}
02-23 12:58:01.479  8141  8167 D GmsAuthenticator: Feature service_googleone not supported
02-23 12:58:01.503  8295  8333 W FitOneGoogle: MDI Profile Sync not available on device. Reverting to backup implementation.
02-23 12:58:01.503  8295  8333 W FitOneGoogle: com.google.android.libraries.onegoogle.owners.mdi.MdiNotAvailableException$ApiNotConnectedException: java.io.IOException: Unable to open file
02-23 12:58:01.503  8295  8333 W FitOneGoogle: 	at ktq.call(PG:37)
02-23 12:58:01.503  8295  8333 W FitOneGoogle: 	at ovn.call(PG:3)
02-23 12:58:01.503  8295  8333 W FitOneGoogle: 	at owd.a(PG:1)
02-23 12:58:01.503  8295  8333 W FitOneGoogle: 	at oxh.run(PG:4)
02-23 12:58:01.503  8295  8333 W FitOneGoogle: 	at owg.execute(PG:1)
02-23 12:58:01.503  8295  8333 W FitOneGoogle: 	at owe.f(PG:1)
02-23 12:58:01.503  8295  8333 W FitOneGoogle: 	at owf.q(PG:1)
02-23 12:58:01.503  8295  8333 W FitOneGoogle: 	at ove.g(PG:6)
02-23 12:58:01.503  8295  8333 W FitOneGoogle: 	at ovd.run(PG:1)
02-23 12:58:01.503  8295  8333 W FitOneGoogle: 	at owg.execute(PG:1)
02-23 12:58:01.503  8295  8333 W FitOneGoogle: 	at oux.g(PG:1)
02-23 12:58:01.503  8295  8333 W FitOneGoogle: 	at oux.j(PG:12)
02-23 12:58:01.503  8295  8333 W FitOneGoogle: 	at oux.n(PG:4)
02-23 12:58:01.503  8295  8333 W FitOneGoogle: 	at ovb.run(PG:7)
02-23 12:58:01.503  8295  8333 W FitOneGoogle: 	at owg.execute(PG:1)
02-23 12:58:01.503  8295  8333 W FitOneGoogle: 	at oux.g(PG:1)
02-23 12:58:01.503  8295  8333 W FitOneGoogle: 	at oux.j(PG:12)
02-23 12:58:01.503  8295  8333 W FitOneGoogle: 	at oux.n(PG:4)
02-23 12:58:01.503  8295  8333 W FitOneGoogle: 	at oui.run(PG:12)
02-23 12:58:01.503  8295  8333 W FitOneGoogle: 	at owg.execute(PG:1)
02-23 12:58:01.503  8295  8333 W FitOneGoogle: 	at oux.g(PG:1)
02-23 12:58:01.503  8295  8333 W FitOneGoogle: 	at oux.j(PG:12)
02-23 12:58:01.503  8295  8333 W FitOneGoogle: 	at oux.n(PG:4)
02-23 12:58:01.503  8295  8333 W FitOneGoogle: 	at ovb.run(PG:7)
02-23 12:58:01.503  8295  8333 W FitOneGoogle: 	at owg.execute(PG:1)
02-23 12:58:01.503  8295  8333 W FitOneGoogle: 	at oux.g(PG:1)
02-23 12:58:01.503  8295  8333 W FitOneGoogle: 	at oux.j(PG:12)
02-23 12:58:01.503  8295  8333 W FitOneGoogle: 	at oux.n(PG:4)
02-23 12:58:01.503  8295  8333 W FitOneGoogle: 	at ovb.run(PG:7)
02-23 12:58:01.503  8295  8333 W FitOneGoogle: 	at owg.execute(PG:1)
02-23 12:58:01.503  8295  8333 W FitOneGoogle: 	at oux.g(PG:1)
02-23 12:58:01.503  8295  8333 W FitOneGoogle: 	at oux.j(PG:12)
02-23 12:58:01.503  8295  8333 W FitOneGoogle: 	at oux.n(PG:4)
02-23 12:58:01.503  8295  8333 W FitOneGoogle: 	at oui.run(PG:12)
02-23 12:58:01.503  8295  8333 W FitOneGoogle: 	at owg.execute(PG:1)
02-23 12:58:01.503  8295  8333 W FitOneGoogle: 	at oux.g(PG:1)
02-23 12:58:01.503  8295  8333 W FitOneGoogle: 	at oux.j(PG:12)
02-23 12:58:01.503  8295  8333 W FitOneGoogle: 	at oux.o(PG:5)
02-23 12:58:01.503  8295  8333 W FitOneGoogle: 	at owz.run(PG:1)
02-23 12:58:01.503  8295  8333 W FitOneGoogle: 	at owg.execute(PG:1)
02-23 12:58:01.503  8295  8333 W FitOneGoogle: 	at oux.g(PG:1)
02-23 12:58:01.503  8295  8333 W FitOneGoogle: 	at oux.j(PG:12)
02-23 12:58:01.503  8295  8333 W FitOneGoogle: 	at oux.o(PG:5)
02-23 12:58:01.503  8295  8333 W FitOneGoogle: 	at owz.run(PG:1)
02-23 12:58:01.503  8295  8333 W FitOneGoogle: 	at owg.execute(PG:1)
02-23 12:58:01.503  8295  8333 W FitOneGoogle: 	at oux.g(PG:1)
02-23 12:58:01.503  8295  8333 W FitOneGoogle: 	at oux.j(PG:12)
02-23 12:58:01.503  8295  8333 W FitOneGoogle: 	at oux.o(PG:5)
02-23 12:58:01.503  8295  8333 W FitOneGoogle: 	at owz.run(PG:1)
02-23 12:58:01.503  8295  8333 W FitOneGoogle: 	at owg.execute(PG:1)
02-23 12:58:01.503  8295  8333 W FitOneGoogle: 	at oux.g(PG:1)
02-23 12:58:01.503  8295  8333 W FitOneGoogle: 	at oux.j(PG:12)
02-23 12:58:01.503  8295  8333 W FitOneGoogle: 	at oux.o(PG:5)
02-23 12:58:01.503  8295  8333 W FitOneGoogle: 	at oyc.e(PG:2)
02-23 12:58:01.503  8295  8333 W FitOneGoogle: 	at oxh.run(PG:8)
02-23 12:58:01.503  8295  8333 W FitOneGoogle: 	at oye.run(PG:1)
02-23 12:58:01.503  8295  8333 W FitOneGoogle: 	at owm.run(PG:3)
02-23 12:58:01.503  8295  8333 W FitOneGoogle: 	at isu.run(PG:1)
02-23 12:58:01.503  8295  8333 W FitOneGoogle: 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
02-23 12:58:01.503  8295  8333 W FitOneGoogle: 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
02-23 12:58:01.503  8295  8333 W FitOneGoogle: 	at imf.run(PG:24)
02-23 12:58:01.503  8295  8333 W FitOneGoogle: 	at java.lang.Thread.run(Thread.java:920)
02-23 12:58:01.503  8295  8333 W FitOneGoogle: 	at itb.run(PG:5)
02-23 12:58:01.503  8295  8333 W FitOneGoogle: Caused by: java.io.IOException: Unable to open file
02-23 12:58:01.503  8295  8333 W FitOneGoogle: 	at ihr.j(PG:11)
02-23 12:58:01.503  8295  8333 W FitOneGoogle: 	at ihr.i(PG:1)
02-23 12:58:01.503  8295  8333 W FitOneGoogle: 	at ihr.c(PG:2)
02-23 12:58:01.503  8295  8333 W FitOneGoogle: 	at lmu.c(PG:4)
02-23 12:58:01.503  8295  8333 W FitOneGoogle: 	at lnp.a(PG:20)
02-23 12:58:01.503  8295  8333 W FitOneGoogle: 	at kdt.b(PG:2)
02-23 12:58:01.503  8295  8333 W FitOneGoogle: 	at low.j(PG:1)
02-23 12:58:01.503  8295  8333 W FitOneGoogle: 	at low.g(PG:4)
02-23 12:58:01.503  8295  8333 W FitOneGoogle: 	at jqh.a(PG:59)
02-23 12:58:01.503  8295  8333 W FitOneGoogle: 	at noy.a(PG:17)
02-23 12:58:01.503  8295  8333 W FitOneGoogle: 	at noy.a(PG:24)
02-23 12:58:01.503  8295  8333 W FitOneGoogle: 	at oyc.a(PG:1)
02-23 12:58:01.503  8295  8333 W FitOneGoogle: 	at oxh.run(PG:4)
02-23 12:58:01.503  8295  8333 W FitOneGoogle: 	... 8 more
02-23 12:58:01.503  8295  8333 W FitOneGoogle: Caused by: java.util.concurrent.ExecutionException: hff: 17: API: MobStoreFile.API is not available on this device. Connection failed with: heb{statusCode=API_DISABLED, resolution=null, message=null}
02-23 12:58:01.503  8295  8333 W FitOneGoogle: 	at iee.cB(PG:5)
02-23 12:58:01.503  8295  8333 W FitOneGoogle: 	at iee.A(PG:8)
02-23 12:58:01.503  8295  8333 W FitOneGoogle: 	at iho.call(PG:1)
02-23 12:58:01.503  8295  8333 W FitOneGoogle: 	at ihr.j(PG:1)
02-23 12:58:01.503  8295  8333 W FitOneGoogle: 	... 20 more
02-23 12:58:01.503  8295  8333 W FitOneGoogle: Caused by: hff: 17: API: MobStoreFile.API is not available on this device. Connection failed with: heb{statusCode=API_DISABLED, resolution=null, message=null}
02-23 12:58:01.503  8295  8333 W FitOneGoogle: 	at ivi.cM(PG:1)
02-23 12:58:01.503  8295  8333 W FitOneGoogle: 	at hgb.d(PG:1)
02-23 12:58:01.503  8295  8333 W FitOneGoogle: 	at hhw.t(PG:7)
02-23 12:58:01.503  8295  8333 W FitOneGoogle: 	at hhw.g(PG:2)
02-23 12:58:01.503  8295  8333 W FitOneGoogle: 	at hhw.j(PG:20)
02-23 12:58:01.503  8295  8333 W FitOneGoogle: 	at hhw.b(PG:1)
02-23 12:58:01.503  8295  8333 W FitOneGoogle: 	at androidx.wear.ambient.AmbientModeSupport$AmbientController.c(PG:1)
02-23 12:58:01.503  8295  8333 W FitOneGoogle: 	at hjn.a(PG:1)
02-23 12:58:01.503  8295  8333 W FitOneGoogle: 	at hjh.d(PG:6)
02-23 12:58:01.503  8295  8333 W FitOneGoogle: 	at hji.handleMessage(PG:38)
02-23 12:58:01.503  8295  8333 W FitOneGoogle: 	at android.os.Handler.dispatchMessage(Handler.java:106)
02-23 12:58:01.503  8295  8333 W FitOneGoogle: 	at android.os.Looper.loopOnce(Looper.java:201)
02-23 12:58:01.503  8295  8333 W FitOneGoogle: 	at android.os.Looper.loop(Looper.java:288)
02-23 12:58:01.503  8295  8333 W FitOneGoogle: 	at android.os.HandlerThread.run(HandlerThread.java:67)
02-23 12:58:01.503  8141  8152 D GmsPeopleSvcImpl: loadOwners[result]: DataHolder{columns=[_id, account_name, gaia_id, page_gaia_id, display_name, avatar, cover_photo_url, cover_photo_height, cover_photo_width, cover_photo_id, last_sync_start_time, last_sync_finish_time, last_sync_status, last_successful_sync_time, sync_to_contacts, is_dasher, dasher_domain, etag, sync_circles_to_contacts, sync_evergreen_to_contacts, last_full_people_sync_time, is_active_plus_account, sync_me_to_contacts, given_name, family_name, contacts_backup_and_sync], windows=[<unnamed> {b5741d00}], statusCode=0, metadata=Bundle[{account_metadata=Bundle[{[email protected]=com.google.android.gms.people.model.AccountMetadata@ffd639}]}]}

ale5000-git avatar Feb 23 '24 12:02 ale5000-git

It doesn't seems to cause a crash but it cause very lengthy exceptions in the logcat and probably also broke features like "Failed to load owner avatar"; like this:

@ale5000-git I tried to add the corresponding service content. pr: https://github.com/microg/GmsCore/pull/2215 you can try to see if there is such an exception message.

DaVinci9196 avatar Mar 01 '24 09:03 DaVinci9196

@DaVinci9196 I have replied on #2215.

ale5000-git avatar Mar 01 '24 14:03 ale5000-git