HearthSim / Arcane-Tracker

An automatic Hearthstone tracker for Android
https://arcanetracker.com/
Other
148 stars 36 forks source link

arcane tracker not working with Android 11 (beta) #150

Open pukha23 opened 4 years ago

pukha23 commented 4 years ago

overlays and app are working generally, but there is no knowledge of my deck, or cards played by either player.

martinbonnin commented 4 years ago

Android 11 introduced Scoped Storage which puts additional restriction on reading log files: https://developer.android.com/preview/privacy/storage#other-apps-private-dirs

I'll dig a bit more to see if this can be workaround'd

gweedo767 commented 4 years ago

Won't work until some time in 2021: https://support.google.com/googleplay/android-developer/answer/9956427?hl=en&ref_topic=2364761

CognitiveMango commented 4 years ago

Android 11 introduced Scoped Storage which puts additional restriction on reading log files: https://developer.android.com/preview/privacy/storage#other-apps-private-dirs

I'll dig a bit more to see if this can be workaround'd

Seems like you can work around it by not increasing the target API, and requesting all files access for the app.

https://support.google.com/googleplay/android-developer/answer/9956427?hl=en&ref_topic=2364761

But hsreplay just posted that arcane tracker is being discontinued. Did Google not approve your request for all files access?

martinbonnin commented 4 years ago

Seems like you can work around it by not increasing the target API, and requesting all files access for the app.

That doesn't work. From https://developer.android.com/preview/privacy/storage

Access to app-specific directories on external storage
On Android 11, apps can no longer access files in any other app's dedicated, app-specific directory 
within external storage.
CognitiveMango commented 4 years ago

Seems like you can work around it by not increasing the target API, and requesting all files access for the app.

That doesn't work. From https://developer.android.com/preview/privacy/storage

Access to app-specific directories on external storage
On Android 11, apps can no longer access files in any other app's dedicated, app-specific directory 
within external storage.

Bummer. I read your reddit posts and seems like you intend to support in the short term till it's eventually phased out depending on HS changes or until Android 11 is rolled out widely enough. Thanks for that. I think the scoped storage changes are a good thing, but hopefully someone more knowledgeable than me is able to make a root version of the deck tracker soon, because my phone has a 90hz screen but my laptop doesn't, so I prefer playing on my phone. I suppose if it uses root it's not going to be featured on hsreplay though (assuming that collaboration gets you paid in some way). That said, the best solution is for Blizzard to implement a deck tracker in game, not sure why they haven't done that yet.

Btw, is there any way to view game replays locally? Server uploads were supposed to end on Aug 31, but I was able to play a few games on Sep 1 and clicking on the replay opens a hsreplay page and it still works.