Even saving is possible, but requires additional permission.
That's fine. I was about to ask you to split the topic as a pm. But you are fast.
Yes.But then Google will ask us a lot of questions and at last there will be high chances that the app will get rejected.
Not everyone puts their apps into the google store. You could make a completely separate extension that would allow writing, i.e. an extension that would add appropriate permissions to the manifest. Then using the file extension and the one with additional permission, you could save files in the same way as in older versions of android. Google is not everything.
Yes that's way.
But still Google will put more restrictions in future Android versions.
No consistency.
Someone may want to do a file manager with ai2, then google probably can't reject such an app.
Yes, they make restrictions for third-party developers every now and then, and they themselves track users and flood them with their ads, earning us millions.
... which will not be granted by Google for the vast majority of apps that are created by (normal) users.
So I can't create an app that will save files anywhere without sending it to the google store? Not everyone puts apps on the google store, so whether google declines an app or not is an individual problem.
Maybe google will introduce paid certificates, and everyone will be able to buy the option to save files. Google will earn extra money as usual and be satisfied .
Something else I discovered during testing.
I need to do some more tests to confirm that.
If you do not want to publish in the Play Store, no additional (new) extension is required, because it is sufficient to leave the targetSdkVersion
at 29 (using e.g. APK Editor Studio or an offline version of AI2).
And it will work on android 11+ ? So why are there so many user posts that can't save files to any directory in android 11 even though ai2 is set to api 29 level? It seems to me that there is such a possibility on android 10, but not on android 11+.
Actually external storage is only readable.
So those files are visible to your app as long as ai2 targets API 29.
Yes (using the File extension from @vknow360 and @Taifun).
This is because AI2 for Android 10+ redirects the path of the corresponding components (which can save something) to the ASD. However, this does not apply to the File
extensions.
I am trying to achieve that too.
I noticed some differences in assets and data path with Companion.
Hmm. I wish I had android11 yet, if I tested it myself I would understand it better
Please don't do that.
It is sufficient if you point out that it is no longer possible to save files in the root directory of the external storage or in sub-folders, since WRITE permission no longer exists for Android 11 (targetSdkVersion = 30).
What do you mean? An Android 11 device and / or an APK that targets Android 11?
Btw, I have both and I tested it, see here (read the whole thread):
I also think so, so as not to limit the reading and writing of files only to ASD. In my opinion, the extension should provide every function that google provides, even restrictive save in every directory. Who will use it - will use it, and who will not - will not.
I mean, I don't have an android 11 device. If I did, I could test it to myself, and I can only read what other people write.
That would be easier for me to implement as now I only have to fix few issues with Companion.
Exactly, just two small problems with Companion (on Android 10+).