zobnin / aiolauncher_scripts

Scripts for the AIO Launcher
https://aiolauncher.app
86 stars 20 forks source link

Add Google Fit Workout Shortcut #8

Closed sriramsv closed 1 year ago

sriramsv commented 2 years ago

I have not been able to fully test this due to some missing permissions on the AIO launcher side: I get an error which says the following:

@/storage/emulated/0/Android/data/ru.execbit.aiolauncher/files/google-fit.lua:28 vm error: java.lang.SecurityException: Permission Denial: starting Intent { act=vnd.google.fitness.TRACK cat=[android.intent.category.DEFAULT] typ=vnd.google.fitness.activity/other pkg=com.google.android.apps.fitness cmp=com.google.android.apps.fitness/.shared.gateway.FitGateway (has extras) } from ProcessRecord{6b57e5d 4684:ru.execbit.aiolauncher/u0a11} (pid=4684, uid=10011) requires android.permission.START_VIEW_PERMISSION_USAGE
stack traceback:
    /storage/emulated/0/Android/data/ru.execbit.aiolauncher/files/google-fit.lua:28: in function </storage/emulated/0/Android/data/ru.execbit.aiolauncher/files/google-fit.lua:21>
    [Java]: in ?

It would be great If you can add that permission request in your manifest and let me know

zobnin commented 2 years ago

android.permission.START_VIEW_PERMISSION_USAGE permission has nothing to do with your case. It's about something else.