事件背景:
首先是谷歌应用市场在之前已经提示大家在今年下半年开始上架应用必须targetsdkversion到30了也就是android11。
Starting May 5th, you must let us know why your app requires broad storage access
We've detected that your app contains the requestLegacyExternalStorage flag in the manifest file of 1 or more of your app bundles or APKs.
Developers with apps on devices running Android 11+ must use Scoped Storage to give users better access control over their device storage. To release your app on Android 11 or newer after May 5th, you must either:
Update your app to use more privacy friendly best practices, such as the Storage Access Framework or Media Store API
Update your app to declare the All files access (MANAGE_EXTERNAL_STO