0

The common storage of Android API 31 is not accessible without the picker and that changes the environment for many old apps updating.

A basic problem is that the NDK (25.1.8937393) is not integrated with the Java picker and will hardly be so in the future. So getting the filename from the picker of the general storage and open with fopen() and the new policies will not work.

However fopen() can still be used in the apps own storage.

What to do about it?

Jan Bergström
  • 736
  • 6
  • 15

1 Answers1

0

The picker intent.getData() and OutputStream for reading and wring has to be used instead. The NDK fopen() can't be used.

But the resolver and URL can be stored to make file update writing without a new picker session, on a picker opened file.

Jan Bergström
  • 736
  • 6
  • 15