Okay. As I understand you developed the extension: DownloadToASD.
My question was to you as developer. I know you are very active on the subject of false permissions asks of file component. As u can develop extension like that I just wanted to know if there are any obstacles to make extension which would work for private directory as well or no one is interested in creating an extension like the one I talk about (working with files on internal storage without permission).
As I said before, there is no extension that writes / stores in the internal storage (Private dir), not even the EFile extension, which is almost a duplicate of the File componente, but does not require permissions for the ASD.
So what’s the problem with using the ASD (instead of the private dir)?
I know there’s no such an extension. My question is why there’s not such an extension. Do you know if it’s hard to do it or there’s no interest in private dir no permission extension.
EFile works for ASD i know it, i use it, but it doesn’t work for internal storage. It makes me think that there’s a problem with making internal storage read/write without permission extension working correctly on kodular platform (that’s the key for my qustion). vknow360 didn’t answer my questions.
Different form of question. Is it a problem (any obstacle which makes internal storage read/write without permission impossible to do) to make an extension with possibility to write/read internal app storage (private dir) with no permission required.
If u don’t know the answer for my question just say you don’t know - there’s no problem. You were answering my question very, very indirectly like a politician on TV.
There is no acces for users without root to internal storage. My app sometimes need to receive encrypted files from server, like .json. What is more (about internal storage):
The system prevents other apps from accessing these locations, and on Android 10 (API level 29) and higher, these locations are encrypted.
As u can see internal storage is a better place for sensitive data. Additionaly, Firebase storage component can easily save files to internal storage without permission.
@vknow360 thank you for some movement about my case! I will check the beta extension soon.
@hammerhai I will try it as well. But it would be nice to change internal/external path with blocks.
Yes, that’s the reason why I store all my media files always in the assets (app package).
Is that really possible? Then I would be wrong to claim that only the File component could do this. Is there an example (blocks, aia) that you can post?
I checked it and it seems to work, at least on Android 11 (Companion).
As i know files in assets can be easily discovered by downloading the .apk from google play store (there are sites that makes it possible) and unzipping it. Maybe something has changed.
It just works. I inspected the location of the files with the help of FileList block in the TaifunFile extension earlier. As Firebase Storage component doesn’t work with companion it’s hard to show you the outcome (i have to code command line interface in my app to show the result of my files directory). I download files form firebase on companion using webviewer and javascript. But my exported apk download files directly using Firebase component. I have 2 exact copies of firebase - one for the companion test purposes and one real for exported app.
That was the block which allowed me to check if firebase storage really have ability to write internal storage without permission.
EDIT: I checked it again on the exported apk. Firebase storage component can download files directly to internal storage without permission prompt. The path of these files is: /data/data/<package name>/files/. The symlink is /data/user/0/<package name>/files.
@vknow360 Internal storage works for Android 10. Thank you! I will check it on different Android versions soon.