Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve dummy for fitness.HistoryApi service #2163

Merged
merged 4 commits into from
Mar 23, 2024

Conversation

DaVinci9196
Copy link
Contributor

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

@ale5000-git
Copy link
Member

@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?

@DaVinci9196
Copy link
Contributor Author

@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.

@ale5000-git
Copy link
Member

ale5000-git commented Feb 9, 2024

@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

@mar-v-in mar-v-in changed the title supplementary number 57 fitness.HistoryApi implementation Add client API classes and dummy service for FITNESS_HISTORY(57) Feb 16, 2024
@ale5000-git
Copy link
Member

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

@DaVinci9196
Copy link
Contributor Author

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?

@ale5000-git
Copy link
Member

ale5000-git commented Feb 23, 2024

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}]}]}

@DaVinci9196
Copy link
Contributor Author

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: #2215
you can try to see if there is such an exception message.

@ale5000-git
Copy link
Member

@DaVinci9196
I have replied on #2215.

@mar-v-in mar-v-in added this to the 0.3.1 milestone Mar 7, 2024
@DaVinci9196 DaVinci9196 changed the title Add client API classes and dummy service for FITNESS_HISTORY(57) Improve dummy for fitness.HistoryApi service Mar 8, 2024
@mar-v-in mar-v-in merged commit a4c9657 into microg:master Mar 23, 2024
1 check passed
@DaVinci9196 DaVinci9196 deleted the fitness branch May 6, 2024 06:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants