spocky / miproja1

253 stars 8 forks source link

Folder picker not supported on many Android Tv devices #69

Open whyisthisbroken opened 3 months ago

whyisthisbroken commented 3 months ago

Hi,

I have bought the Premium and would set now Videos as Launcher Background - but I can't set or pick a folder from my device. I click "pick folder" and nothing happens.

Also I don't understand the change log, must I download all video or can I say use for example the App to load the background Videos?

spocky commented 3 months ago

This seems to be related to a poor management of Google on Android Tv regarding file access. They refuse that standard apps browse the file system except for good reasons (ex: File managers). If you don't follow the rules, your app might not get approved on the Play Store or worse, could be banned. They advise developers to rely on other apps installed on the system in order to pick files/images/folders. However, apps that can do this do not necessarily exist on many stock Android Tv devices.

See here or here

As mentionned in one of these issues, this is working fine on Nvidia Shield.

The "pick folder" intent (aka ACTION_OPEN_DOCUMENT_TREE) doesn't seem to be supported by Fx File Explorer or Tv File Commander, but maybe there's another file manager that supports it. Please share if you find one.

In the meantime, I'll try to find a workaround if possible.

whyisthisbroken commented 3 months ago

Well, maybe Shizuku is a alternative way to go ? https://shizuku.rikka.app/ I try it with the Filemanager X-plore and i can access Android/Data with it. But not trough the launcher... I´ve googled arround and found that the Main Problem the App "com.google.android.documentsui" is missing with ATV11 and so the permissions are denied.... I dont know if it works with the your Launcher App to get Access trough Shizuku - i´m not a developer...

Glx28 commented 3 months ago

My issue is different that I can pick the video but not a folder.

koston-shpee-party commented 2 months ago

Is there anyway we can simply type in the directory's location as a work around on these devices?

6twenty commented 2 months ago

As mentionned in one of these issues, this is working fine on Nvidia Shield.

For what it's worth it only seems to work on my Shield (2019 Pro) for local filesystem directories, not mounted filesystems. I have a USB drive connected as well as an SMB share, and when I try to select a folder from one of those it'll ask if I want to allow Projectivy permission to access that folder and I'll hit yes, but then Projectivy's config remains unchanged. This is a bit frustrating as I want to point it to quite a large directory of images and I don't have enough free space on the internal filesystem to copy the folder to there.

6twenty commented 1 month ago

Update: I tried this again and selected a folder on a connected USB disk, then closed and re-opened Projectivy. This time when I went back to the wallpaper configure setting the folder I had selected was there, but it appears to be formatted incorrectly: it's showing content://com.android.externalstorage.documents/tree/6630/276C%3ANVIDIA_SHIELD%2FArt - unsure if that's just an Android thing but I didn't expect it to show URL-encoded characters in there? %3A is : and %2F is /. Regardless if this format is correct or not, Projectivy doesn't load any of the images from that folder and instead just shows the default wallpaper.

EDIT: after messing around with some of the other wallpaper settings, Projectivy is now loading images from that folder 🙌

jdfrye2 commented 1 month ago

Is a default location for wallpaper(s) an option for the time being while we wait on Google? Something like /storage/emulated/0/Pictures/projectivy. I had moved photos there and bought premium only to discover this issue on my Chromecast TV

MikaKitten7 commented 1 week ago

I'm using a Chromecast with Google TV,

I am unable to set a wallpaper or a folder for rotating wallpapers.

I am also unable to share wallpapers from other file manager apps nothing happens when I choose to share.

Additionally I can't seem to get any of the Reddit wallpapers to work only the default one. I did get an astrophotography wallpaper to load once, but now it won't change away from the default canyon wallpaper.

I successfully requested a refund because it was not mentioned that this feature did not work on Google TV devices, however I would be happy to repurchase if it is fixed.