Samurai016 / Audiotagger

This library allow you to read and write ID3 tags to MP3 files.
https://pub.dev/packages/audiotagger
MIT License
22 stars 20 forks source link

Proper android 11 support #19

Open shaan-mephobic opened 3 years ago

shaan-mephobic commented 3 years ago

Android 11 has changed a few things in how apps access files. Regular writing and reading permissions aren't enough now to edit or delete files now. <uses-permission android:name="android.permission.MANAGE_EXTERNAL_STORAGE"/> / all files access permission has been introduced to do those things. Google Play is very strict about apps needing all files access permission, in fact they reject most apps needing that permission unless it's it's core functionality like an antivirus or file manager.

Core functionality is defined as the main purpose of the app. Without this core functionality, the app is "broken" or rendered unusable. The core functionality, as well as any core features that comprise this core functionality, must all be prominently documented and promoted in the app's description.

This is what they say,

Issue: Need to use Media Store API or No Access to Files.

You have requested access to All Files Access permission but it appears that your app's core feature requires access to only Media Files or does not need access to any Files. In case your app needs access to Media Files, with the MediaStore API, apps can contribute and access media that's available on an external storage volume without the need for the access all files permission.Please update your app so that the feature uses Media Store APIs and remove All Files Access (MANAGE_EXTERNAL_STORAGE) permission.

adem74 commented 2 years ago

Hello, Could you find a solution for this issue? @shaan-mephobic

shaan-mephobic commented 2 years ago

@adem74 I've been using on_audio_edit package to edit songs.

adem74 commented 2 years ago

@shaan-mephobic Thanks for your response. I tried it yesterday. But when I tried editing artwork. My application has gone crash(It says invalid uri etc.). Could you send your codes for editing the artwork image my code is below; _audioEdit.editArtwork("path of mp3 files", openFilePicker:false, imagePath:"image path");