With Android 10, Google introduced partitioned storage for the first time. Partitioned storage is mandatory on Android 10 by default.
If added in the AndroidManifest requestLegacyExternalStorage = true symbol, is not subject to this restriction. However, when the Target API is updated to 30 (Android 11), the system ignores this configuration.
Platform adapter
Engine storage protocol adaptation: The engine ADAPTS the storage protocol fs://, cache:// provided by the engine. **2. Module adaptation: ** Official modules have been adapted. The developer modules will be adapted one after another. Since most modules are developed based on the engine protocol FS ://, few modules need to be adapted.
Application adapter
1. For file management or document management applications, add the manageStorage module and apply for permission to access all files. You need to describe what this permission is for on the Google Play console.
2. If the application is not a file management application, no special processing is required. After the application is compiled and tested, it can be submitted to the App Store if all functions are normal. If you find any abnormality in related functions, such as the file can not be saved, you can feedback in the forum, and the official will deal with it in time.
The Google Store states that from August 2021, new apps must be targeted at API level 30 (Android 11). From November 2021, all app updates must be targeted at API level 30 (Android 11).
How do I set the API level to 30
1. Download the manifest.xml in the attachment and update the targetSdkVersion to the target value, for example, 30;
2. Place manifest.xml in your/project code /res/ directory (widget/res/manifest.xml);
3. Modify all operations involving dynamic permissions in your APP code by referring to the code in the attachment of the original post. Please check the original post 🔗 for attachment download.
Photograph (such as video recording and so on need to use the camera, before the default processing does not need to apply for a camera permissions, dynamic and open access, must be before taking pictures, determine whether there is a camera, not to apply for, only the permissions the user agrees to the camera to take pictures next);
4. Submit code;
5. Check the permissions required by the APP in the cloud compilation interface;
6. Use the upgrade environment to compile APP or custom Loader.
Domestic APP stores such as Xiaomi and Huawei have not found any mandatory adaptation requirements for Android 11. If your APP has no line of Google Play, it will not be affected by the above.