title: How to update metadata of audio file in Android Q media store?
body: <p>Updating metadata of audio file in media store is not working in Android Q OS, it works in all other OS.</p>
  
  <p>I am using content provider with uri specified as MediaStore.Audio.Media.EXTERNAL_CONTENT_URI. It is working fine in all below Android Q device. Below is the code that I am using to update track metadata.</p>
  
  <pre><code>ContentValues cv = new ContentValues();
  ContentResolver resolver = getContentResolver();
  Uri uri = MediaStore.Audio.Media.EXTERNAL_CONTENT_URI;
  
  cv.put(MediaStore.Audio.Media.TITLE, newTitle);
  cv.put(MediaStore.Audio.Media.ALBUM, newAlbumName);
  cv.put(MediaStore.Audio.Media.ARTIST, newArtistName);
  
  int rowsUpdated = resolver.update(uri, cv, 
  MediaStore.Audio.Media._ID + " = ? ", new String[]{audioId});
  </code></pre>
  
  <p>For Android Q device, rowsUpdated is always 0 with no exception.
  How are other music player updating tracks metadata in Android Q ?</p>