IngoZenz / personaldnsfilter

See http://www.zenz-solutions.de/personaldnsfilter for details
GNU General Public License v2.0
611 stars 53 forks source link

Scoped Storage Android14 #291

Open skyhigh24 opened 4 months ago

skyhigh24 commented 4 months ago

Since Android 14 there is no good/constant way to access the /storage/emulated/0/Android/data/ folder without a rooted Phone.

Wouldn't it be better, to backup to an open folder like /storage/emulated/0/Downloads Or /storage/emulated/0/Documents Which are accessible without root?

Alternatively: A "share with" and "restore form" option would be nice. Cause the only app which can access the file, is the app which is the owner of it.

IngoZenz commented 4 months ago

I am aware of this problem but didn't have the time to deal with it. Also there are File Managers like Total Commander which can access the app folders. So the issue isn't with high prio for me.

skyhigh24 commented 4 months ago

I understand that this isnt a high priority.

Please allow me one question, as you mentioned TotalCommander: On a New Android 14 device i only get the "you cant use this folder, create a New" Message from the Android System. With No Chance to Access the folder without root. Even with "Access to all folders" allowed. This happens with TotalCommander, Solidexplorer and MixPlorer. Am i doing Something wrong?

On an Upgrades device (12->13->14) it seems to Work due to the permission existing before the Upgrade.

IngoZenz commented 4 months ago

I will try again with total commander on a fresh Android 14 emulator and will post the screenshots... maybe I have some time next week...

IngoZenz commented 4 months ago

Find video linked - it was working on fresh Android 14 Emulator. See https://www.zenz-solutions.de/downloads/various/access_appdir_on_android14.webm

skyhigh24 commented 4 months ago

Thanks for the Video, thats Interesting.

On all 3 of my Devices (Samsung Galaxy A52s; Galaxy Tab S6 lite (2022); Google Pixel 7a all without root) i can follow the Video until that point:

Screenshot_20240301_164621_Total Commander

Screenshot_20240301_164630_Files

after choosing /storage/0/Android only /media is accessible with no way to choose /data: Screenshot_20240301_164637_Files

IngoZenz commented 4 months ago

did you get it working? I got a mail notification with an comment that you got it working but seems you deleted it again?

skyhigh24 commented 4 months ago

unfortunally not, i was a little to enthusiastic at first.

on the first Dialog i could see the /data Folder, but then when choosing /data it failed.

IngoZenz commented 4 months ago

so seems to be device specific? Btw: I took Total Commander from here.

IngoZenz commented 4 months ago

I just tried on my Pixel 6 with Android 14. I uninstalled Total Commander, installed it from playstore and it worked like in the Video...

skyhigh24 commented 4 months ago

i dont think it is device Specific. If it only happend on the Samsung Devices, i would agree. but i also cant get it to work on my Google Pixel.

yeah i took TotalCommander from Github and now i tested it from your link. i cant get it to work.

I just tried on my Pixel 6 with Android 14. I uninstalled Total Commander, installed it from playstore and it worked like in the Video...

Thats strange.. i dont get it.. but ive read: if the Permission was set before the Android 14 Update, it will last.

yeah..all thoose testing/trying to get access borked my Galaxy Tab and i now have an empty internal storage... i think im gonna call it now.

thankfully i have a backup of my files..

Anyway: Thanks for your Time :)

IngoZenz commented 4 months ago

shit - good luck with recovery

skyhigh24 commented 4 months ago

Recovery was successfull (and i know how it happend now - i misconfigured my Sync App while trying to get Access to /data that way. )

the Main reason for Access was, that i tried to Sync the Config from personalDNSfilter with my Nas and the other Phones.

Now i saw an Option for remote Configuration personalDNSfilter in the Config File. Is there a documentary about this function? Maybe this would slove my "original Plan"

IngoZenz commented 4 months ago

You find this in file "how_to_remote_control" in the full package:

BlackDex commented 4 months ago

Well, getting access to the backup isn't that hard it seems. Via total commander it will open the built-in file explorer. You can see the files, copy them to somewhere else, but that is about it.

I can't copy files to that folder. No way to easily restore a backup. I have to copy/paste the whole file instead of easily click restore.

Would be nice if we can export it to a global folder.

skyhigh24 commented 4 months ago

You find this in file "how_to_remote_control" in the full package:

Thanks im gonna look into it

Via total commander it will open the built-in file explorer. You can see the files, copy them to somewhere else, but that is about it.

you get much further than i am. Total Commander wont show me anything.

BlackDex commented 4 months ago

Via total commander it will open the built-in file explorer. You can see the files, copy them to somewhere else, but that is about it.

you get much further than i am. Total Commander wont show me anything.

I am using the beta version btw. That is probably why it works for me. Saw they mentioned this way on there forum.

skyhigh24 commented 4 months ago

That is probably why it works for me.

seems like you´re right, with the beta it will open Androids internal FileExplorer on the desired path, but you can only copy OUT of that folder, not INTO (as you also described). so it will do as a Backup... but How to Restore it?