FileTools extension issues with Android 10+

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. :smile:

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. :grin:

1 Like

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. :neutral_face:

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.

1 Like

... which will not be granted by Google for the vast majority of apps that are created by (normal) users.

1 Like

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 :rofl:.

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+ :thinking:? 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.

1 Like

I am trying to achieve that too. :sweat_smile:
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 :grin:

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+).

1 Like