izivkov/CasioGShockSmartSync

Unable to access Actions screen

kaskaush opened this issue · 13 comments

Hi @izivkov ,
First off, great app! Was looking something like this when I purchased my GWB5600. It's really useful.

Coming to the issue, I'm seeing an Actions not granted.. Cannot access Actions screen despite giving all the required permissions. Can you please help me out here? I've attached a screenshot too.

Screenshot_20230512_111548_Casio G-Shock Smart Sync

@izivkov tagging you for better visibility.

Some additional notes:

  • Tried installing older verions of the app from Fdroid, still no luck
  • I'm running on Android 13
  • I've also uninstalled Gshock watches app

Hi. this usually happens when you are asked to give permissions a few times, and you have declined. The app stops asking you after that and displays this message. I'm not quite sure why this happens if you have given the permissions. I just downloaded the latest version from F-Droid and tried it on my pixel-3 with Android 12, and it works. I do not have a Android 13 device, but about half of the installations are running 13, and I would have heard about it. I am curious why this happens, and would like to get more info. What phone make/model do you have? I know some Samsung phones modify their Android. Also, what is the version of the app - you can find this by pressing the Info icon at the initial screen, and scroll to the bottom.

Here is what you can do:

  • Go the your phone settings, select "Apps & notifications" -> select the App -> "Storage and Cache", -> "Clear storage". Also, "Force Stop" the app. Restart the app, and it will ask you for permissions again. Grant all permissions, and see if this will fix the problem.
  • If this does not work, again from Phone setting, select the app -> then select "Permissions", and see what permissions are not granted. Here you can grant them manually, and try running the app again. Please let me know if you had any permissions not granted.

BTW, you did not have to uninstall "Gshock watches app". Just make sure it is not running by "Force Stopping" it from the Phone Settings.

I also noticed on you screen, under "Local time", there should be displayed the time zone, like "Americas/Toronto". I do not see it on your screen. Also, it should display Home Time". Did you black these out, or is this how the screen appears?

Hi, adding more info.. I'm currently running Android 13 on a Samsung Galaxy S20 FE 5G and the app verison is 7.9. I've tried clearing the storage and cache and restarted the app, still no luck. I'm attaching a screenshots of the permissions I've provided as the app requested.

Regarding the timezone, I am able to see my local timezone. It's just that I've masked it in the screenshot.

Screenshot_20230512_225916_Permission controller

mk0x9 commented

I have the same issue! I have GMW-B5000D-1ER, I had reset bluetooth linking in the watch and force stopped g-shock app, and stopped smart sync and reset it's storage before recording video.

I'm using nothing phone (1) with Android 13. I can try to build version with debugging enabled and attach logs, but I need a few pointers on how to do it...

screen-20230512-195406.mp4

OK, thanks for the video. When I try to access the the Actions screen, it asks me for one more permission: "Files and Media", which I did not see on your video. Maybe there is something new in Android 13.

Anyway, please try this:
Settings > Privacy > Permission manager > Files and media page. Select the app, and give it access to Media. Please try this, and see if this fixes the problem. If so, I will find a solution and will update the app.

Also, just want to make sure that your phones are not centrally managed from you company, or something like this, which will restrict permission.

Regards

@mk0x9 , when you look at the App's permissions, are you seeing the same permissions as @kaskaush, and are they all granted?

Thanks

mk0x9 commented

Yes, everything is granted

image

@mk0x9 OK, on my phone, instead of "Nearby Devices" I have "Files and Media". Did you have a chance to try giving permissions through "Privacy" setting as described in my message above?

mk0x9 commented

Unfortunately there is no such permission. I'll try later to debug the app and see an exception in the android studio

Screenshot_20230512-211259.png
Screenshot_20230512-211304.png

I had checked all of the pages, smart sync app is not present anywhere, except the pages where I had already granted permissions, from the screenshot in my previous comment

mk0x9 commented

It's not listed under Photos and video, Music and audio or Files under the Settings → Privacy → Permission manager.

I've tried to debug, and the reason is that actions screen is failing is because WRITE_EXTERNAL_STORAGE is not granted:

image

According to the docs it was deprecated in the Android 11: https://developer.android.com/about/versions/11/privacy/storage#permissions-target-11

I prepared MR to conditionally include this permission in the list of the requested ones: #35

Thanks to @mk0x9 for fixing this. I will publish to F-Droid.

Thank you @izivkov and @mk0x9 for responding really quick and resolving this issue!